/* =====================================================
   VibeChat Landing Page Styles
   Premium, Modern Design System
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #0B141A;
    --bg-primary: #111B21;
    --bg-secondary: #1F2C34;
    --bg-tertiary: #2A3942;

    --text-primary: #E9EDEF;
    --text-secondary: #8696A0;
    --text-muted: rgba(134, 150, 160, 0.6);

    --accent-primary: #00A884;
    --accent-secondary: #25D366;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-gradient: linear-gradient(135deg, #00A884 0%, #25D366 100%);
    --accent-gradient-alt: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 168, 132, 0.3);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(11, 20, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(134, 150, 160, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-logo {
    font-size: 32px;
}

.nav-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--duration-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 168, 132, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--bg-dark);
}

.btn-white:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 168, 132, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    bottom: 20%;
    right: -5%;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(30px, 10px) rotate(3deg);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 168, 132, 0.1);
    border: 1px solid rgba(0, 168, 132, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: var(--space-lg);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--accent-gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-tertiary);
}

/* Chat Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.chat-mockup {
    width: 100%;
    max-width: 380px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(134, 150, 160, 0.1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--duration-normal) var(--ease-out);
}

.chat-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(134, 150, 160, 0.1);
}

.mockup-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.mockup-info {
    flex: 1;
}

.mockup-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.mockup-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.mockup-messages {
    padding: var(--space-md);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mockup-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    position: relative;
    animation: messageIn 0.4s var(--ease-out);
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mockup-message.received {
    background: var(--bg-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mockup-message.sent {
    background: #005C4B;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mockup-message p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
}

.message-check {
    font-size: 12px;
    color: #34B7F1;
    margin-left: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* =====================================================
   Sections Common Styles
   ===================================================== */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 168, 132, 0.1);
    border: 1px solid rgba(0, 168, 132, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(134, 150, 160, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 168, 132, 0.3);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 168, 132, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   How It Works Section
   ===================================================== */
.how-it-works {
    background: var(--bg-primary);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 24px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow);
}

.step-connector {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin-top: 32px;
    border-radius: 2px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-centered {
    text-align: center;
}

/* =====================================================
   Privacy Promise Section
   ===================================================== */
.privacy-promise {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-dark) 100%);
}

.promise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.promise-text .section-title {
    text-align: left;
}

.promise-text .section-description {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.promise-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.promise-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 16px;
}

.promise-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.promise-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-glow {
    position: absolute;
    inset: -30px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.shield-icon {
    position: relative;
    z-index: 1;
}

.shield-icon svg {
    width: 120px;
    height: 120px;
    color: var(--accent-secondary);
}