/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Green-Blue Theme */
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #06b6d4;
    --accent: #3b82f6;
    --success: #10b981;
    --error: #ef4444;
    
    /* Neutral Colors - Light Theme */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-medium: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-primary: #10b981;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 70px; /* Space for sticky header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   STICKY HEADER
   =================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.sticky-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-brand svg {
    width: 32px;
    height: 32px;
}

.header-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-brand-wordmark {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.header-cta-btn {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-cta-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .sticky-header {
        height: auto;
    }
    
    .header-container {
        padding: 0.9rem var(--spacing-sm) !important;
        align-items: center;
        min-height: 50px;
        gap: var(--spacing-xs);
    }
    
    .header-brand-name {
        font-size: 1.3rem;
    }
    
    .header-brand-wordmark {
        font-size: 1.3rem;
        letter-spacing: 0.12em;
        flex-shrink: 0;
    }
    
    .header-cta-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Ensure no gap between header and hero */
    .hero-section {
        margin-top: 0 !important;
        padding-top: 80px !important;
        overflow-x: hidden !important;
    }
    
    .container {
        overflow-x: hidden !important;
    }
    
    /* Make phone image bigger on mobile but contained */
    .three-phones-showcase {
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .phones-svg {
        max-width: 125% !important;
        width: 125% !important;
        margin: 0 -12.5% !important;
        transform: scale(1.08) !important;
    }
}

/* ===================================
   FLOATING PARTICLES BACKGROUND
   =================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 0 0;
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
}

/* ===================================
   BRAND MARK - RITUALS STYLE
   =================================== */
.brand-mark {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out;
}

.brand-wordmark {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
    display: inline-block;
}

.brand-wordmark::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content {
    text-align: center;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    will-change: transform, opacity;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.main-tagline {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

.subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   HERO VISUAL - FLOATING UI ELEMENTS
   =================================== */
.hero-visual {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    will-change: transform, opacity;
}

.three-phones-showcase {
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================
   THREE PHONES SVG
   =================================== */
.phones-svg {
    width: 100%;
    max-width: 1300px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    animation: fadeInUp 0.8s ease-out both;
    will-change: transform, opacity;
}

.phones-svg text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}


/* ===================================
   PHONE 1: INTERACTIVE LESSONS
   =================================== */
.lesson-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.question-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.sentence-build {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.word-chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.word-chip.filled {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.word-chip.empty {
    background: var(--bg-white);
    border: 2px dashed var(--border-medium);
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}

.word-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.option-chip {
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-chip:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.progress-dots {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: auto;
}

.progress-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all var(--transition-fast);
}

.progress-dots .dot.active {
    background: var(--primary);
}

.progress-dots .dot.current {
    background: var(--primary);
    transform: scale(1.3);
}

/* ===================================
   PHONE 2: REAL CONVERSATIONS
   =================================== */
.live-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.live-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow-y: auto;
}

.chat-bubble {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.chat-bubble.user {
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bubble-content {
    max-width: 70%;
}

.bubble-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.bubble-text {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-bubble.partner .bubble-text {
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
}

.chat-bubble.user .bubble-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md);
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-top: auto;
}

.input-placeholder {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mic-icon {
    font-size: 1.2rem;
}

/* ===================================
   PHONE 3: GLOBAL COMMUNITY
   =================================== */
.world-map-container {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.world-map {
    width: 100%;
    height: auto;
}

.community-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.online-users {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1.5px solid var(--border-light);
}

.user-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.user-avatars .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.avatar-more {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===================================
   RESPONSIVE PHONE SCREENS
   =================================== */

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-icon {
    font-size: 1.2rem;
}

.word-display {
    text-align: center;
}

.flag-circle {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.word-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.word-translation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.pronunciation {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.speaker-icon {
    font-size: 1rem;
}

/* Card 2: Streak Card */
.card-vocabulary {
    width: 280px;
    animation-delay: 0.2s;
}

.vocab-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.vocab-main {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1.5px solid var(--border-light);
}

.vocab-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.vocab-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.vocab-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.vocab-word {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    color: var(--text-primary);
}

.vocab-bullet {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Card 3: Chat Card */
.card-chat {
    width: 300px;
    animation-delay: 0.3s;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.message-text {
    font-size: 1rem;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: inline-block;
}

.user-message .message-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    justify-content: center;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

/* Card 4: Progress Card */
.card-progress {
    width: 300px;
    animation-delay: 0.4s;
}

.progress-item {
    margin-bottom: var(--spacing-md);
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.progress-flag {
    font-size: 1.5rem;
}

.progress-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percent {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    transition: width var(--transition-base);
}

.progress-fill.secondary {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
}


/* Mini Floating Elements */
.mini-element {
    position: absolute;
    animation: floatIn 1s ease-out both;
}

.element-voice {
    top: 10%;
    right: 5%;
    animation-delay: 0.6s;
}

.element-star {
    bottom: 15%;
    left: 5%;
    animation-delay: 0.7s;
}

.voice-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.voice-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.star-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-number {
    color: var(--primary);
    font-size: 1rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Responsive adjustments for floating UI elements */
@media (max-width: 1024px) {
    .three-phones-showcase {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .three-phones-showcase {
        min-height: auto;
        padding: var(--spacing-md);
    }
    
    .phones-svg {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        padding: var(--spacing-lg) 0;
    }
    
    .three-phones-showcase {
        padding: var(--spacing-sm);
        min-height: auto;
    }
}

/* ===================================
   MOCKUP CONTAINER (Legacy - Hidden)
   =================================== */
.mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-2xl) 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.phone-mockup {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(var(--shadow-xl));
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.mockup-svg {
    width: 100%;
    height: auto;
}

/* ===================================
   FORM SECTION
   =================================== */
.form-section {
    padding: var(--spacing-md) 0;
    background: var(--bg-light);
    position: relative;
    scroll-margin-top: 80px; /* For smooth scroll with sticky header */
}

.form-container {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.optional-label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 0.25rem;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input[type="email"]::placeholder {
    color: var(--text-muted);
}

/* ===================================
   CUSTOM SELECT DROPDOWN
   =================================== */
.custom-select {
    position: relative;
}

.select-trigger {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    user-select: none;
}

.select-trigger:hover {
    border-color: var(--border-medium);
}

.select-trigger.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.select-placeholder {
    color: var(--text-muted);
}

.select-trigger.has-value .select-placeholder {
    color: var(--text-primary);
}

.select-arrow {
    transition: transform var(--transition-base);
    color: var(--text-secondary);
}

.select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.select-dropdown.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.select-search {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: none;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.select-search:focus {
    outline: none;
    background: var(--bg-light);
}

.select-search::placeholder {
    color: var(--text-muted);
}

.select-options {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--spacing-xs);
}

.select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.select-option:hover {
    background: var(--bg-light);
}

.select-option.selected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-weight: 500;
}

.select-option.popular {
    font-weight: 600;
}

.option-flag {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.option-text {
    flex: 1;
}

.popular-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===================================
   MULTI-SELECT TAGS
   =================================== */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    min-height: 0;
    transition: min-height var(--transition-base);
}

.selected-tags:empty {
    display: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    animation: tagAppear 0.3s ease-out;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-flag {
    font-size: 1rem;
}

.tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   PRIVACY CHECKBOX
   =================================== */
.privacy-notice {
    margin-top: var(--spacing-sm);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-base);
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.privacy-link {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.privacy-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   ERROR MESSAGES
   =================================== */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    display: none;
    margin-top: var(--spacing-xs);
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input,
.form-group.error .select-trigger {
    border-color: var(--error);
}

/* ===================================
   SUBMIT BUTTON
   =================================== */
.submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform var(--transition-base);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   SUCCESS MESSAGE
   =================================== */
.success-message {
    display: none;
    text-align: center;
    padding: var(--spacing-xl);
    animation: successAppear 0.6s ease-out;
}

.success-message.show {
    display: block;
}

@keyframes successAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    margin: 0 auto var(--spacing-md);
    animation: checkmark 0.8s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--success);
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.6s; }

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: var(--spacing-lg) 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-right {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
.select-options::-webkit-scrollbar {
    width: 8px;
}

.select-options::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-sm);
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .brand-wordmark {
        font-size: 3rem;
        letter-spacing: 0.12em;
    }
    
    .brand-wordmark::after {
        width: 40px;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .headline {
        font-size: 2rem;
    }
    
    .subheadline {
        font-size: 1rem;
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-left {
        justify-content: center;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-wordmark {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }
    
    .brand-wordmark::after {
        width: 30px;
        bottom: -6px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .main-tagline {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .form-container {
        padding: var(--spacing-sm) var(--spacing-md);
        max-width: 90%;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
    }
    
    .submit-btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Form Inputs */
    input, select, textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
    
    label {
        font-size: 0.85rem;
    }
}

