/* Landing, marketing, and legal surfaces — loaded on / and legal/guide pages */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-guarantee {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

/* Hero Button Styles */
.hero-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
    position: relative;
    z-index: 10;
}

.hero-button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e3a8a;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 36px;
    min-width: 220px;
}

.hero-button.primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-button.secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.hero-button.secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

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

/* Hero Visual */
.phone-mockup {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid #1e293b;
    animation: phoneFloat 6s ease-in-out infinite;
    width: 350px;
    max-width: 90vw;
}

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

.secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-guarantee {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.feature-card li:before {
    content: "•";
    color: #1e40af;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    padding: 2rem 0 4rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-align: center;
    position: relative;
    border-top: 3px solid #1d4ed8;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* How It Works Section Styles */
.how-it-works-section {
    padding: 4rem 0 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.how-it-works-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(30, 64, 175, 0.1);
    letter-spacing: -0.02em;
}

.how-it-works-section .section-intro {
    font-size: 1.4rem;
    color: #475569;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.demo-caption {
    font-size: 1.4rem;
    color: #374151;
    margin-bottom: 3rem;
    font-weight: 600;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: inline-block;
    border: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
    .demo-caption {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .demo-chat {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

.demo-chat {
    display: none !important;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.demo-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af, #6366f1);
    border-radius: 24px 24px 0 0;
}

/* Demo Phases */
.demo-phase {
    display: none !important;
    transition: all 0.5s ease;
}


/* Transformation CTA */
.transformation-cta {
    text-align: center;
    margin-top: 2rem;
}

.try-it-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.try-it-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Word highlighting animation */
.word-highlight {
    display: inline-block;
    padding: 3px 6px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.word-highlight.highlighted {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-color: #1e40af;
}

/* Enhanced demo phase transitions */
.demo-phase {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.demo-phase[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure demo text is properly aligned */
.demo-phase .message-text {
    text-align: left !important;
}

.demo-phase .cantonese-text,
.demo-phase .pronunciation-text,
.demo-phase .meaning-text {
    text-align: left !important;
    margin-bottom: 0.75rem;
}

/* Auth Section Styles */
.auth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.auth-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: authSlideIn 0.3s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.auth-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1e40af;
}


.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-description {
    color: #6b7280;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.auth-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.google-auth-button {
    width: 100%;
    padding: 12px 16px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.google-auth-button:hover {
    background: #f9fafb;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.auth-consent {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.auth-consent a {
    color: #1e40af;
    text-decoration: underline;
}

.auth-consent a:hover {
    color: #1d4ed8;
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-switch a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Close button for auth modal */
.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-close:hover {
    background: #f3f4f6;
    color: #374151;
}

@media (max-width: 768px) {
    .auth-section {
        padding: 16px;
        align-items: center;
    }

    .auth-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 2.75rem 1.25rem 1.5rem;
        border-radius: 20px;
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .auth-header {
        margin-bottom: 1.25rem;
    }

    .auth-header-title {
        font-size: 1.5rem;
    }

    .auth-header p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .auth-form {
        padding: 0;
    }

    .auth-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .auth-close {
        top: 12px;
        right: 12px;
    }

    .auth-consent {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

/* Transformation Section */
.transformation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.transformation-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #2d3748;
}

.transformation-section .section-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 60px;
    color: #4a5568;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.transformation-showcase {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.transformation-scene {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.transformation-scene:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.transformation-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.transformation-scene.before::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.transformation-scene.after::before {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.scene-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.transformation-scene h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #2d3748;
}

.scene-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #4a5568;
    font-style: italic;
}

.scene-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scene-details span {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.transformation-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arrow-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4);
    border-radius: 1px;
}

.arrow-head {
    font-size: 24px;
    color: #4ecdc4;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.transformation-cta {
    text-align: center;
    margin-top: 60px;
}

.transformation-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #4a5568;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: white;
    /* Essential visibility */
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 200px;
}

.how-it-works-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #2d3748;
}

.how-it-works-section .section-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 60px;
    color: #4a5568;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.step-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.step-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .transformation-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .transformation-arrow {
        display: none;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    
    
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .primary-cta, .secondary-cta {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .transformation-section,
    .how-it-works-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .transformation-scene,
    .step-card,
}

/* AI Understanding Section */
.ai-understanding-section {
    padding: 80px 0;
    background: white;
}

.ai-understanding-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.understanding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.understanding-card {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.understanding-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.understanding-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.understanding-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.understanding-list {
    list-style: none;
    padding: 0;
}

.understanding-list li {
    padding: 8px 0;
    color: #374151;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.understanding-list li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Social Proof Section */
.social-proof-section {
    padding: 80px 0;
    background: #f9fafb;
}

.social-proof-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 48px;
    font-style: italic;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #374151;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    font-size: 2rem;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.9rem;
    color: #6b7280;
}


body:has(.landing-page) {
    background-color: #0a0f1a;
    color: #c5d0e0;
}

.landing-page {
    --landing-bg: #0a0f1a;
    --landing-surface: rgba(12, 18, 32, 0.88);
    --landing-accent: #7eb8ff;
    --landing-accent-hover: #a5ceff;
    --landing-accent-soft: rgba(126, 184, 255, 0.1);
    --landing-accent-border: rgba(126, 184, 255, 0.28);
    --landing-cta-from: #4a82ee;
    --landing-cta-to: #6ba3f9;
    --landing-cta-text: #f8fafc;
    --landing-text-muted: #8b9cb8;
    --landing-text-body: #c5d0e0;
    --landing-border: rgba(126, 184, 255, 0.1);
    --landing-empathy: #9ebef0;
    --landing-glow: rgba(100, 160, 255, 0.12);
    --landing-glow-violet: rgba(130, 110, 255, 0.08);
    --landing-band-deep: #0a0f1a;
    --landing-band-deep-mid: #0c1322;
    --landing-band-raised: #0e1628;
    --landing-band-raised-mid: #121e34;
    background-color: var(--landing-bg);
    color: #ffffff;
    min-height: 100vh;
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-page .section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--landing-accent);
    margin-bottom: 12px;
}

.landing-page .section-lead {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 560px;
    margin: -8px auto 36px;
    line-height: 1.6;
}

.landing-page .section-lead-line {
    display: block;
}

.landing-page .section-lead-line + .section-lead-line {
    margin-top: 0.4em;
}

.landing-page .section-title {
    text-align: center;
    color: #f8fafc;
}

/* Scroll reveal */
.landing-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-stagger-item {
    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stagger-i, 0) * 90ms);
}

[data-reveal-stagger].is-stagger-visible .landing-stagger-item {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-section {
    position: relative;
    overflow: hidden;
}

.landing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
}

/* Alternating section bands: deep (base) / raised (lifted) for scroll rhythm */
.landing-section--band-deep {
    background: linear-gradient(
        180deg,
        var(--landing-band-deep) 0%,
        var(--landing-band-deep-mid) 52%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--band-raised {
    background: linear-gradient(
        180deg,
        var(--landing-band-raised) 0%,
        var(--landing-band-raised-mid) 52%,
        var(--landing-band-raised) 100%
    );
}

.landing-section--hk {
    background: linear-gradient(180deg, #0c1220 0%, var(--landing-band-raised) 45%, var(--landing-band-raised-mid) 100%);
    overflow: visible;
}

.landing-section--difference {
    background: linear-gradient(
        180deg,
        var(--landing-band-deep) 0%,
        var(--landing-band-deep-mid) 52%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--difference::before {
    background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--landing-glow), transparent 60%);
}

.landing-section--trust {
    background: linear-gradient(
        180deg,
        var(--landing-band-raised) 0%,
        var(--landing-band-raised-mid) 52%,
        var(--landing-band-raised) 100%
    );
}

.landing-section--segments {
    background: linear-gradient(
        180deg,
        var(--landing-band-deep) 0%,
        var(--landing-band-deep-mid) 52%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--modes {
    background: linear-gradient(
        180deg,
        var(--landing-band-raised) 0%,
        #152238 48%,
        var(--landing-band-raised) 100%
    );
}

.landing-section--faq {
    background: linear-gradient(
        180deg,
        var(--landing-band-deep) 0%,
        var(--landing-band-deep-mid) 52%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--guides {
    background: linear-gradient(
        180deg,
        var(--landing-band-raised) 0%,
        var(--landing-band-raised-mid) 52%,
        var(--landing-band-raised) 100%
    );
}

.landing-section--cta {
    background: linear-gradient(
        180deg,
        var(--landing-band-raised) 0%,
        #152238 45%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--hk::before {
    background:
        radial-gradient(ellipse 55% 45% at 15% 50%, var(--landing-glow), transparent 55%),
        radial-gradient(ellipse 50% 40% at 88% 40%, var(--landing-glow-violet), transparent 52%);
}

.landing-hk-callout {
    padding: 72px 20px 56px;
}

.hk-callout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 56px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hk-callout-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.hk-callout-eyebrow {
    display: inline-block;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--landing-accent);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--landing-accent-soft);
    border: 1px solid var(--landing-accent-border);
    margin-bottom: 18px;
}

.hk-callout-title {
    color: #f8fafc;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.22;
    margin: 0 0 16px;
    text-align: left;
    letter-spacing: -0.02em;
    max-width: 100%;
}

.hk-callout-highlight {
    display: inline;
    background: linear-gradient(135deg, var(--landing-accent) 0%, #b8d4ff 55%, var(--landing-accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hk-callout-lead {
    color: var(--landing-text-body);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 20px;
    text-align: left;
    max-width: 100%;
}

.hk-positioning-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 100%;
}

.hk-positioning-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    color: var(--landing-text-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hk-positioning-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--landing-accent);
    background: var(--landing-accent-soft);
    border: 1px solid var(--landing-accent-border);
}

.hk-callout-lead strong {
    color: #f1f5f9;
    font-weight: 600;
}

.hk-callout-lead em {
    color: var(--landing-accent);
    font-style: normal;
    font-weight: 600;
}

.hk-positioning-list strong {
    color: #f1f5f9;
    font-weight: 600;
}

.hk-callout-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--landing-accent);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.hk-callout-link:hover {
    color: var(--landing-accent-hover);
    gap: 8px;
}

.hk-contrast-stage {
    position: relative;
}

.hk-contrast-scenario {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-accent);
    margin-bottom: 14px;
}

.hk-contrast-duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}

.hk-contrast-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hk-contrast-vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #94a3b8;
    background: #0a0f1a;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 0 0 6px rgba(10, 15, 26, 0.9);
}

.hk-contrast-card {
    border-radius: 16px;
    padding: 18px 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hk-contrast-card--textbook {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    opacity: 0.72;
    transform: scale(0.97);
}

.hk-contrast-card--hk {
    background: linear-gradient(160deg, rgba(74, 130, 238, 0.14) 0%, rgba(12, 18, 32, 0.95) 55%);
    border: 1px solid var(--landing-accent-border);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(74, 130, 238, 0.12);
    transform: scale(1.02);
}

.hk-contrast-stage.is-swapping .hk-contrast-card {
    opacity: 0.4;
    transform: scale(0.96);
}

.hk-contrast-stage.is-swapping .hk-contrast-card--hk {
    opacity: 1;
    transform: scale(1.02);
}

.hk-contrast-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
}

.hk-contrast-badge--muted {
    color: #94a3b8;
    background: rgba(100, 116, 139, 0.15);
}

.hk-contrast-badge--live {
    color: var(--landing-accent);
    background: var(--landing-accent-soft);
    border: 1px solid var(--landing-accent-border);
}

.hk-contrast-line--muted {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 8px 0 0;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.45);
}

.hk-contrast-note {
    margin: auto 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.hk-contrast-cantonese {
    color: #f1f5f9;
    font-size: 1.2rem;
    line-height: 1.45;
    margin: 6px 0 0;
}

.hk-contrast-jyutping {
    color: var(--landing-accent);
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0.9;
}

.hk-contrast-english {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.hk-contrast-audio {
    margin-top: auto;
    align-self: flex-start;
}

.hk-contrast-card--hk .demo-audio-wave i {
    animation: demoAudioBar 0.85s ease-in-out infinite;
}

.landing-page .hk-contrast-card--hk .demo-audio-btn {
    margin-top: 10px;
    background: var(--landing-accent-soft);
    border-color: var(--landing-accent-border);
    color: var(--landing-accent);
}

.landing-page .hk-contrast-card--hk .demo-audio-icon {
    background: var(--landing-accent);
    box-shadow: 0 0 12px rgba(126, 184, 255, 0.45);
}

.landing-page .hk-contrast-card--hk .demo-audio-wave i {
    background: var(--landing-accent);
}

.hk-contrast-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hk-contrast-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hk-contrast-dots span.is-active {
    background: var(--landing-accent);
    transform: scale(1.15);
}

@media (max-width: 960px) {
    .hk-callout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hk-callout-copy {
        order: -1;
        align-items: center;
    }

    .hk-contrast-stage {
        order: 0;
    }

    .hk-callout-title,
    .hk-callout-lead {
        text-align: center;
    }

    .hk-callout-lead {
        margin-inline: auto;
        max-width: 520px;
    }

    .hk-positioning-list {
        margin-inline: auto;
        max-width: 420px;
    }

    .hk-callout-link {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hk-contrast-duel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hk-contrast-vs {
        order: -1;
    }

    .hk-contrast-vs span {
        width: 32px;
        height: 32px;
    }

    .hk-contrast-card {
        min-height: 0;
    }

    .hk-contrast-card--textbook {
        transform: none;
    }

    .hk-contrast-card--hk {
        transform: none;
    }
}

.landing-section--trust::before {
    background: radial-gradient(ellipse 65% 45% at 50% 20%, var(--landing-glow), transparent 62%);
    opacity: 0.55;
}

.landing-section--segments::before {
    background: radial-gradient(ellipse 55% 40% at 88% 25%, var(--landing-glow), transparent 55%);
}

.landing-section--modes::before {
    background: radial-gradient(ellipse 60% 45% at 12% 75%, var(--landing-glow), transparent 55%);
}

.landing-section--pricing {
    background: linear-gradient(
        180deg,
        var(--landing-band-deep) 0%,
        var(--landing-band-deep-mid) 52%,
        var(--landing-band-deep) 100%
    );
}

.landing-section--pricing::before {
    background: radial-gradient(ellipse 55% 42% at 50% 0%, var(--landing-glow), transparent 58%);
}

.landing-section--faq::before {
    background: radial-gradient(ellipse 55% 42% at 50% 0%, var(--landing-glow), transparent 58%);
}

.landing-section--guides::before {
    background: radial-gradient(ellipse 50% 40% at 50% 100%, var(--landing-glow), transparent 55%);
}

.landing-section--cta::before {
    background: radial-gradient(ellipse 65% 55% at 50% 35%, rgba(74, 130, 238, 0.14), transparent 58%);
    opacity: 0.85;
}

.landing-trust .stat-number {
    color: var(--landing-accent);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.25rem, 5vw, 3rem);
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.segment-card-featured {
    background: linear-gradient(160deg, #1e293b 0%, #172033 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.mode-showcase {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.landing-final-cta .hero-button.primary-cyan.large {
    box-shadow: 0 8px 28px rgba(74, 130, 238, 0.32);
}

.landing-page .hero-button.primary-cyan,
.landing-final-cta .hero-button.primary-cyan {
    background: linear-gradient(145deg, var(--landing-cta-from), var(--landing-cta-to));
    color: var(--landing-cta-text);
    border: 1px solid rgba(165, 206, 255, 0.3);
}

.landing-page .hero-button.primary-cyan:hover,
.landing-final-cta .hero-button.primary-cyan:hover {
    background: linear-gradient(145deg, #5a90f0, var(--landing-accent));
    box-shadow: 0 6px 24px rgba(74, 130, 238, 0.38);
}

.landing-section > .container,
.landing-section > .hero-container {
    position: relative;
    z-index: 1;
}

.hero-product-mockup {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.hero-gradient-orb {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.segment-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .landing-stagger-item {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .hero-product-mockup,
    .hero-gradient-orb {
        transform: none !important;
        transition: none;
    }
}

.landing-reveal-delay {
    transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    .landing-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Nav */
.landing-navbar .nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link-quiet {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 10px;
    transition: color 0.2s ease;
}

.nav-link-quiet:hover {
    color: #f8fafc;
}

.landing-navbar .nav-button.primary-cyan {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Navigation - Dark Theme */
.landing-navbar {
    background: rgba(10, 15, 26, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none !important;
    box-shadow: none;
    padding: 16px 0;
}

.landing-navbar .logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.landing-navbar .nav-button.secondary {
    background: transparent;
    color: #d1d5db;
    border: 2px solid #404040;
}

.landing-navbar .nav-button.secondary:hover {
    background: #404040;
    color: #ffffff;
    border-color: #525252;
}

.landing-navbar .nav-button.primary-cyan {
    background: linear-gradient(145deg, var(--landing-cta-from), var(--landing-cta-to));
    color: var(--landing-cta-text);
    border: 1px solid rgba(165, 206, 255, 0.35);
    box-shadow: 0 2px 14px rgba(74, 130, 238, 0.28);
}

.landing-navbar .nav-button.primary-cyan:hover {
    background: linear-gradient(145deg, #5a90f0, var(--landing-accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(74, 130, 238, 0.38);
}

/* Hero Section - Dark Theme */
.landing-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #060a14 0%, #0a0f1a 42%, #0c1220 100%);
    padding: 72px 20px 64px;
    min-height: min(88vh, 880px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 18% 18%, var(--landing-glow), transparent 58%),
        radial-gradient(ellipse 55% 45% at 82% 62%, var(--landing-glow-violet), transparent 52%),
        radial-gradient(ellipse 50% 35% at 50% 100%, rgba(74, 130, 238, 0.08), transparent 48%);
    animation: landingMeshShift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes landingMeshShift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.04); }
}

.landing-hero .hero-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.landing-hero .hero-title {
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.landing-hero .hero-coach-tagline {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin: 0 0 10px;
}

.landing-hero .hero-coach-tagline strong {
    color: #f8fafc;
    font-weight: 600;
}

.landing-hero .hero-coach-tagline .hero-inline-formats {
    display: inline;
    white-space: nowrap;
}

.landing-hero .hero-coach-tagline .hero-inline-formats .reply-format-item,
.landing-hero .hero-coach-tagline .hero-inline-formats .reply-format-sep {
    display: inline;
    font-size: inherit;
    line-height: inherit;
}

.landing-hero .hero-coach-tagline .hero-inline-formats .reply-format-sep {
    font-size: 1.05em;
    opacity: 0.85;
}

.landing-hero .hero-coach-tagline em {
    font-style: normal;
    color: #f8fafc;
    font-weight: 600;
}

.landing-hero .hero-title-highlight {
    color: var(--landing-accent);
    background: linear-gradient(145deg, var(--landing-accent), var(--landing-accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tts-icon {
    font-size: 0.95rem;
    opacity: 0.85;
    cursor: pointer;
}

.hero-scenario-chips,
.segment-scenario-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-scenario-chips {
    margin-bottom: 24px;
}

.segment-scenario-chips {
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.hero-scenario-chip,
.segment-scenario-chip {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-scenario-chip:hover,
.segment-scenario-chip:hover {
    border-color: var(--landing-accent-border);
    color: #f1f5f9;
}

.hero-scenario-chip.is-active,
.segment-scenario-chip.is-active {
    border-color: var(--landing-accent-border);
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    box-shadow: 0 0 0 1px rgba(126, 184, 255, 0.15);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.landing-page .hero-button.hero-button-ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.landing-page .hero-button.hero-button-ghost:hover {
    border-color: var(--landing-accent-border);
    background: rgba(126, 184, 255, 0.08);
    color: #f8fafc;
    transform: none;
}

.hero-social-proof {
    margin: 14px 0 0;
    padding: 0;
    text-align: left;
    font-size: 0.84rem;
    color: var(--landing-text-muted);
    line-height: 1.45;
}

.hero-social-proof strong {
    color: #94a3b8;
    font-weight: 600;
}

.mockup-live-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
}

.landing-hero .hero-subtitle-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.landing-hero .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--landing-text-body);
    margin: 0;
}

.landing-hero .hero-subtitle-format {
    margin: 0 0 14px;
}

.reply-format-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.9rem;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--landing-text-muted);
}

.reply-format-label {
    font-weight: 500;
    white-space: nowrap;
}

.reply-format-item {
    color: #cbd5e1;
    font-weight: 600;
    white-space: nowrap;
}

.reply-format-sep {
    color: #7eb8ff;
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1;
    opacity: 0.95;
    flex-shrink: 0;
}

.trust-format-strip {
    justify-content: center;
    font-size: 0.95rem;
    gap: 0.5rem 1rem;
}

.landing-hero .hero-subtitle strong {
    color: #e2e8f0;
    font-weight: 600;
}

.landing-hero .hero-cta-stack {
    margin-bottom: 24px;
}

.landing-hero .hero-ctas {
    margin-bottom: 24px;
}

.landing-hero .hero-button.primary-cyan {
    background: linear-gradient(145deg, var(--landing-cta-from), var(--landing-cta-to));
    color: var(--landing-cta-text);
    border: 1px solid rgba(165, 206, 255, 0.35);
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 22px rgba(74, 130, 238, 0.32);
    min-width: 220px;
}
.landing-hero .hero-button.primary-cyan:hover {
    background: linear-gradient(145deg, #5a90f0, var(--landing-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74, 130, 238, 0.42);
}

.landing-hero .hero-button.primary-cyan.large {
    padding: 20px 40px;
    font-size: 1.3rem;
    min-width: 280px;
}

.landing-hero .hero-guarantee {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 12px;
}

.landing-hero .hero-trust {
    margin-top: 32px;
}

.trust-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    color: #22d3ee;
    font-size: 0.9rem;
}

.trust-text {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 16px;
}

/* Hero Visual - Minimal Chat Preview */
.hero-visual {
    position: relative;
}

/* Align hero chat demo flush-left within its column to avoid perceived extra right padding */
.landing-hero .hero-visual {
    justify-content: center;
    align-items: center;
    width: 100%;
}
.landing-hero .hero-chat-demo { width: 100%; margin-left: auto; margin-right: auto; display: flex; justify-content: center; }

.hero-gradient-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(70px);
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.06); }
}

/* Hero product mockup */
.hero-product-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(34, 211, 238, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-product-mockup:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 56px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 130, 238, 0.14);
}

.mockup-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-left: 4px;
}

.mockup-lang {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--landing-accent);
    background: var(--landing-accent-soft);
    border: 1px solid var(--landing-accent-border);
    padding: 3px 8px;
    border-radius: 6px;
}

.mockup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.landing-demo-journal .message {
    margin: 0;
}

.landing-demo-journal .message.user-message {
    margin-left: auto;
    margin-right: 0;
    align-self: flex-end;
    max-width: 88%;
    width: auto;
}

.landing-demo-journal .message.warm-message {
    align-self: flex-start;
    max-width: 100%;
    width: 100%;
}

.landing-demo-journal .message-content {
    font-size: 0.9rem;
}

.landing-demo-journal .cantonese-response-box {
    margin: 0;
}

/* Landing product UI — dark-surface readability (mirrors translate/pronounce journal) */
.landing-page .landing-product-ui {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 14px;
}

.landing-page .hero-product-mockup .landing-product-ui {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.12);
}

.landing-page .landing-product-ui .message.user-message .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.landing-page .landing-product-ui .message.user-message .message-content:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.landing-page .landing-product-ui .message.warm-message .message-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px 18px 18px 6px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.landing-page .landing-product-ui .message.warm-message .message-content:hover {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94)) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
}

.landing-page .landing-product-ui .cantonese-text,
.landing-page .landing-product-ui .cantonese-word,
.landing-page .landing-product-ui .pronounce-syl-char {
    color: #22d3ee;
    font-weight: 700;
}

.landing-page .landing-product-ui .pronunciation-text,
.landing-page .landing-product-ui .pronunciation-word,
.landing-page .landing-product-ui .pronounce-syl-jyut {
    color: #94a3b8;
    font-style: italic;
}

.landing-page .landing-product-ui .meaning-text {
    color: #cbd5e1;
    font-style: normal;
}

.landing-page .landing-product-ui .translate-result-box .meaning-text {
    color: #e2e8f0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 1rem;
    line-height: 1.5;
}

.landing-page .landing-product-ui .response-field-label,
.landing-page .landing-product-ui .pronounce-english-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-right: 6px;
}

.landing-page .landing-product-ui .translate-result-card,
.landing-page .landing-product-ui .pronounce-result-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 16px 18px;
    border-radius: 16px;
}

.landing-page .landing-product-ui .translate-result-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-page .landing-product-ui .translate-result-eyebrow {
    color: #94a3b8;
}

.landing-page .landing-product-ui .pronounce-listen-panel.pronounce-result-box {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    padding: 10px 4px 2px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-page .landing-product-ui .pronounce-english-meaning {
    color: #cbd5e1;
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-page .landing-product-ui .message.warm-message .message-content > .cantonese-response-box,
.landing-page .landing-product-ui .cantonese-response-box.translate-result-box {
    width: 100%;
    box-sizing: border-box;
    flex-direction: column !important;
    align-items: flex-start;
}

.landing-page .landing-product-ui .pronounce-listen-panel.pronounce-result-box,
.seo-guide-page .seo-guide-pronounce-demo .pronounce-listen-panel.pronounce-result-box {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    box-sizing: border-box;
}

.landing-page .landing-product-ui .pronounce-listen-panel .pronounce-strip-body,
.seo-guide-page .seo-guide-pronounce-demo .pronounce-listen-panel .pronounce-strip-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-page .landing-product-ui .cantonese-response-box .text-content {
    width: 100%;
}

.landing-page .landing-product-ui .demo-audio-btn {
    margin-top: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.landing-page .landing-product-ui .pronounce-listen-panel .demo-audio-btn,
.seo-guide-page .seo-guide-pronounce-demo .pronounce-listen-panel .demo-audio-btn {
    align-self: center;
    margin: 0;
    flex-shrink: 0;
}

.mode-showcase-panels .mode-preview[hidden] {
    display: none !important;
}

.landing-page .mode-preview-coach:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 24px 24px;
    box-sizing: border-box;
}

.landing-page .mode-preview-coach .mode-exchange-user {
    width: min(22rem, 100%);
    max-width: min(22rem, 100%);
    align-self: center;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
}

.landing-page .mode-preview-coach .landing-coach-card {
    align-self: center;
    margin-left: 0;
}

.landing-page .landing-coach-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: min(22rem, 100%);
    align-self: flex-end;
    margin-left: auto;
    padding: 12px 14px 14px 16px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(18, 42, 56, 0.96), rgba(15, 23, 42, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.55);
    overflow: hidden;
    box-sizing: border-box;
}

.landing-page .landing-coach-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.landing-page .landing-coach-card--ok::before {
    background: linear-gradient(180deg, #34d399, #2dd4bf);
}

.landing-page .landing-coach-card--ok {
    border-color: rgba(52, 211, 153, 0.4);
}

.landing-page .landing-coach-card--fix {
    border-color: rgba(251, 191, 36, 0.4);
}

.landing-page .landing-coach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.landing-page .landing-coach-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.landing-page .landing-coach-mark {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5eead4, #0ea5e9 70%);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.landing-page .landing-coach-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e2e8f0;
}

.landing-page .landing-coach-pill {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #99f6e4;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    padding: 3px 8px;
}

.landing-page .landing-coach-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.landing-page .landing-coach-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.landing-page .landing-coach-body .cantonese-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
}

.landing-page .landing-coach-body .pronunciation-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

.landing-page .landing-coach-body .meaning-text {
    font-size: 0.88rem;
    font-style: italic;
    color: #7dd3fc;
    line-height: 1.4;
}

.landing-page .mode-preview-pronounce:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-page .mode-preview-pronounce .landing-pronounce-panel {
    padding: 14px 12px;
    align-items: center;
}

.landing-page .mode-preview-pronounce .pronounce-strip-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.landing-page .mode-preview-pronounce .pronounce-syllable-strip {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.landing-page .mode-preview-pronounce .pronounce-tone-graph {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 6px 8px 4px;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    align-self: center;
}

.landing-page .mode-preview-pronounce .pronounce-syl {
    min-width: 3rem;
    flex: 1 1 0;
    max-width: 4.5rem;
}

.landing-page .mode-preview-pronounce .pronounce-syl-jyut {
    color: var(--pronounce-tone-accent, #cbd5e1);
}

.landing-page .mode-preview-pronounce .pronounce-syl-char {
    font-size: 1.5rem;
}

.landing-page .mode-preview-pronounce .landing-pronounce-panel .demo-audio-btn {
    margin: 0;
    align-self: center;
}

.landing-page .mode-preview-pronounce .landing-pronounce-meaning,
.landing-page .mode-preview-pronounce .pronounce-english-meaning {
    margin: 10px 2px 0;
    padding: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.45;
    text-align: left;
    align-self: flex-start;
    width: 100%;
}

.landing-page .landing-product-ui .pronounce-listen-panel .demo-audio-btn {
    align-self: center;
    margin: 0;
}

.mockup-animate {
    animation: mockupFadeUp 0.7s ease both;
}

.mockup-animate-delay {
    animation-delay: 0.2s;
}

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

.hero-demo-swap .mockup-animate {
    animation: mockupSwap 0.45s ease both;
}

.hero-demo-swap .mockup-animate-delay {
    animation-delay: 0.08s;
}

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

.demo-response-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 14px;
    padding: 14px;
    width: 100%;
}

.demo-field {
    margin-bottom: 10px;
}

.demo-field:last-of-type {
    margin-bottom: 14px;
}

.demo-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.demo-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    font-size: 0.82rem;
    font-weight: 600;
}

.demo-audio-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
    animation: audioPulse 1.6s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

.demo-audio-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 4px;
}

.demo-audio-wave i {
    display: block;
    width: 3px;
    background: #22d3ee;
    border-radius: 2px;
    animation: waveBar 0.9s ease-in-out infinite;
}

.landing-page .demo-audio-wave i {
    background: var(--landing-accent);
    transform-origin: bottom center;
}

.demo-audio-wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.demo-audio-wave i:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.demo-audio-wave i:nth-child(3) { height: 7px; animation-delay: 0.3s; }

@keyframes waveBar {
    0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.hero-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
}

.hero-cta-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--landing-text-body, #cbd5e1);
    line-height: 1.45;
}

.hero-trust-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.84rem;
    color: var(--landing-text-muted);
    line-height: 1.4;
}

.hero-trust-check {
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.landing-navbar .nav-button-ghost {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.landing-navbar .nav-button-ghost:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.08);
}

.landing-page .landing-faq .section-lead {
    margin-bottom: 28px;
}

.landing-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 15, 26, 0.92);
    border-top: 1px solid var(--landing-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.landing-sticky-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-sticky-cta-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.landing-sticky-cta-trust {
    margin: 0;
    font-size: 0.75rem;
    color: var(--landing-text-muted);
    line-height: 1.3;
}

.landing-sticky-cta-text {
    margin: 0;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.landing-sticky-cta .hero-button.primary-cyan {
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.faq-item-featured .faq-question[aria-expanded="true"] + .faq-answer.faq-answer-featured {
    max-height: 1600px;
}

@media (max-width: 768px) {
    .landing-sticky-cta-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .landing-sticky-cta .hero-button.primary-cyan {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
    }

    .landing-navbar .nav-button-ghost {
        display: none;
    }
}

/* Chat · Translate · Pronounce pillars */
.landing-mode-pillars {
    padding: 80px 20px;
}

.mode-pillars-intro {
    text-align: center;
    color: var(--landing-text-body);
    margin: -8px auto 32px;
    max-width: 640px;
    line-height: 1.65;
}

.mode-pillars-intro-line {
    display: block;
}

.mode-pillars-intro-line + .mode-pillars-intro-line {
    margin-top: 0.45em;
}

.mode-pillars-intro strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Interactive mode showcase */
.mode-showcase {
    max-width: 1040px;
    margin: 0 auto;
}

.mode-pillar-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.mode-pillar-tab {
    position: relative;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 18px 16px;
    border-radius: 14px;
    border: 1px solid var(--landing-border);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
        rgba(8, 14, 28, 0.72);
    color: var(--landing-text-body);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-pillar-tab-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.mode-pillar-tab--chat .mode-pillar-tab-accent { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.mode-pillar-tab--translate .mode-pillar-tab-accent { background: linear-gradient(90deg, #a78bfa, #6366f1); }
.mode-pillar-tab--coach .mode-pillar-tab-accent { background: linear-gradient(90deg, #2dd4bf, #38bdf8); }

.mode-pillar-tab--chat.is-active {
    background:
        linear-gradient(160deg, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        var(--landing-accent-soft);
}

.mode-pillar-tab--translate.is-active {
    background:
        linear-gradient(160deg, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
        var(--landing-accent-soft);
}

.mode-pillar-tab--coach.is-active {
    background:
        linear-gradient(160deg, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
        var(--landing-accent-soft);
}

.mode-pillar-tab:hover {
    border-color: var(--landing-accent-border);
    transform: translateY(-2px);
}

.mode-pillar-tab.is-active {
    background: var(--landing-accent-soft);
    border-color: var(--landing-accent-border);
    box-shadow: 0 0 0 1px rgba(126, 184, 255, 0.15), 0 12px 28px rgba(74, 130, 238, 0.14);
}

.mode-pillar-tab-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 4px;
}

.mode-pillar-tab-label {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.mode-pillar-tab.is-active .mode-pillar-tab-label {
    color: var(--landing-accent);
}

.mode-pillar-tab-desc {
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--landing-text-body);
}

.mode-pillar-tab-example {
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--landing-text-muted);
    font-style: italic;
}

.mode-pillar-tab.is-active .mode-pillar-tab-example {
    color: #94a3b8;
}

.mode-showcase-panels {
    position: relative;
}

.mode-preview {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.landing-mode-journal .message {
    margin-bottom: 12px;
}

.landing-mode-journal .cantonese-response-box,
.landing-mode-journal .translate-result-card,
.landing-mode-journal .pronounce-result-card {
    margin: 0;
}

.landing-mode-journal .translate-result-card {
    margin-top: 4px;
}

.mode-preview.is-active {
    animation: mockupFadeUp 0.45s ease both;
}

.mode-preview-animate .mode-exchange-user {
    animation: modeMsgIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mode-preview-animate .warm-message,
.mode-preview-animate .translate-result-card,
.mode-preview-animate .landing-pronounce-panel,
.mode-preview-animate .landing-coach-card {
    animation: modeMsgIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.mode-preview-animate .landing-pronounce-meaning {
    animation: modeMsgIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.mode-preview-animate .demo-audio-btn {
    animation: modeAudioIn 0.4s ease 0.28s both;
}

.mode-preview.is-active .demo-audio-wave i {
    animation: demoAudioBar 0.85s ease-in-out infinite;
}

.mode-preview-animate .pronounce-syl {
    animation: modeSylPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mode-preview-animate .pronounce-syl:nth-child(1) { animation-delay: 0.22s; }
.mode-preview-animate .pronounce-syl:nth-child(2) { animation-delay: 0.32s; }
.mode-preview-animate .pronounce-syl:nth-child(3) { animation-delay: 0.42s; }
.mode-preview-animate .pronounce-syl:nth-child(4) { animation-delay: 0.52s; }

.mode-preview-animate .pronounce-graph-seg {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: modeToneDraw 0.55s ease forwards;
}

.mode-preview-animate .pronounce-syl:nth-child(1) .pronounce-graph-seg { animation-delay: 0.25s; }
.mode-preview-animate .pronounce-syl:nth-child(2) .pronounce-graph-seg { animation-delay: 0.35s; }
.mode-preview-animate .pronounce-syl:nth-child(3) .pronounce-graph-seg { animation-delay: 0.45s; }
.mode-preview-animate .pronounce-syl:nth-child(4) .pronounce-graph-seg { animation-delay: 0.55s; }

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

@keyframes modeAudioIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes modeSylPop {
    from { opacity: 0; transform: translateY(8px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modeToneDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes demoAudioBar {
    0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mode-preview-animate .mode-exchange-user,
    .mode-preview-animate .warm-message,
    .mode-preview-animate .translate-result-card,
    .mode-preview-animate .landing-pronounce-panel,
    .mode-preview-animate .landing-pronounce-meaning,
    .mode-preview-animate .demo-audio-btn,
    .mode-preview-animate .pronounce-syl,
    .mode-preview-animate .pronounce-graph-seg,
    .mode-preview.is-active .demo-audio-wave i {
        animation: none;
    }
}

.mode-preview-ui {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.mode-preview-bubble {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 92%;
}

.mode-preview-bubble-user {
    align-self: flex-end;
    background: #334155;
    color: #f8fafc;
    border-bottom-right-radius: 4px;
}

.mode-preview-bubble-ai {
    align-self: flex-start;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-bottom-left-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mode-preview-line {
    display: block;
}

.mode-preview-cantonese {
    color: #22d3ee;
    font-weight: 600;
}

.mode-preview-jyutping {
    color: #94a3b8;
    font-size: 0.82rem;
    font-style: italic;
}

.mode-preview-listen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #22d3ee;
}

.mode-preview-ui-translate {
    gap: 10px;
}

.mode-preview-io {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.mode-preview-io-out {
    border-color: rgba(34, 211, 238, 0.25);
}

.mode-preview-io-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.mode-preview-io-text {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.mode-preview-arrow {
    text-align: center;
    color: #22d3ee;
    font-size: 1.1rem;
}

.mode-preview-ui-pronounce {
    align-items: center;
    text-align: center;
    padding: 8px 0;
}

.mode-preview-phrase {
    font-size: 1.5rem !important;
    margin-bottom: 12px !important;
}

.mode-preview-syllables {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mode-preview-syllables span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.tone-bar {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

.tone-bar-mid {
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    transform: scaleY(1.4);
}

.tone-bar-low {
    background: linear-gradient(90deg, #64748b, #475569);
    transform: scaleY(0.7);
}

/* Who it's for */
.landing-segments {
    padding: 80px 20px;
}

.segment-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 24px auto 0;
}

.segment-card {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow-wrap: break-word;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.segment-card:focus-visible {
    outline: 2px solid var(--landing-accent);
    outline-offset: 3px;
}

.segment-card-hint {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7b8a9a;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.segment-card:hover .segment-card-hint,
.segment-card:focus-visible .segment-card-hint,
.segment-card.is-scenario-active .segment-card-hint {
    color: var(--landing-accent);
}

.segment-card-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.segment-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.segment-card-title-row .segment-profile-type {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #f8fafc;
    min-width: 0;
    overflow-wrap: break-word;
}

.segment-card-hook {
    margin: 0;
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #b0bcc9;
    overflow-wrap: break-word;
    flex-grow: 1;
}

.segment-card .segment-portrait {
    width: 52px;
    height: 52px;
}

.segment-card .segment-mode-pill {
    margin-top: 2px;
}

.landing-hero .hero-visual {
    min-height: 320px;
}

@media (max-width: 768px) {
    .hero-gradient-orb {
        animation: none;
    }
}

.segment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.segment-card-featured {
    background: linear-gradient(160deg, #1e293b 0%, #172033 100%);
    border-color: var(--landing-accent-border);
    box-shadow: 0 12px 32px rgba(74, 130, 238, 0.1);
}

.segment-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.segment-card h3 {
    color: #f8fafc;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.segment-problem {
    color: var(--landing-empathy);
    font-size: 0.88rem;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.45;
    flex-grow: 1;
}

.segment-card p:last-child:not(.segment-card-hook) {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 14px;
}

.segment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.segment-tags li {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
}

.segment-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding: 0;
    border: none;
    background: none;
    color: var(--landing-accent);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease, gap 0.2s ease;
}

.segment-cta:hover {
    color: var(--landing-accent-hover);
    gap: 8px;
}

.segment-card {
    display: flex;
    flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-bg,
    .hero-gradient-orb,
    .demo-audio-icon,
    .demo-audio-wave i {
        animation: none !important;
    }
    .hero-product-mockup:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-link-quiet {
        display: none;
    }

    .landing-hero .hero-title {
        font-size: 2.35rem;
    }

    .mockup-lang {
        display: none;
    }

    .landing-page .landing-demo-journal .cantonese-response-box .meaning-text,
    .landing-page .landing-mode-journal .cantonese-response-box .meaning-text {
        margin-bottom: 10px;
    }

    .landing-page .landing-demo-journal .cantonese-response-box .demo-audio-btn,
    .landing-page .landing-mode-journal .cantonese-response-box .demo-audio-btn {
        margin-top: 0;
        align-self: flex-start;
    }

    .guide-cards {
        grid-template-columns: 1fr;
    }
}

.landing-page .mode-showcase-cta-wrap {
    text-align: center;
    margin-top: 24px;
}

/* Landing guide cards + SEO article pages */
.landing-guides {
    padding: 72px 20px;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 14px;
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
    border-color: var(--landing-accent-border);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.guide-card h3 {
    color: #f8fafc;
    font-size: 1.05rem;
    margin: 0;
}

.guide-card p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.guide-card-link {
    color: var(--landing-accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.seo-guide-page {
    --landing-accent: #7eb8ff;
    --landing-accent-hover: #a5ceff;
    --landing-accent-soft: rgba(126, 184, 255, 0.1);
    --landing-accent-border: rgba(126, 184, 255, 0.28);
    --landing-cta-from: #4a82ee;
    --landing-cta-to: #6ba3f9;
    --landing-cta-text: #f8fafc;
    --landing-border: rgba(126, 184, 255, 0.1);
    --landing-text-muted: #8b9cb8;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #0a0f1a;
    color: #c5d0e0;
    min-height: 100vh;
}

.seo-guide-nav .nav-container,
.seo-guide-nav-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.seo-guide-nav .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
}

.seo-guide-nav-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.seo-guide-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.seo-guide-breadcrumb {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.seo-guide-breadcrumb a {
    color: #7dd3fc;
    text-decoration: none;
}

.seo-guide-main h1 {
    color: #f8fafc;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 16px;
}

.seo-guide-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 28px;
}

.seo-guide-main h2 {
    color: #f1f5f9;
    font-size: 1.2rem;
    margin: 28px 0 10px;
}

.seo-guide-main h3 {
    color: #f8fafc;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
}

.seo-guide-main p,
.seo-guide-main li {
    line-height: 1.65;
    color: #cbd5e1;
}

.seo-guide-main ul {
    padding-left: 1.25rem;
    margin: 0 0 16px;
}

.seo-guide-main a {
    color: var(--landing-accent);
}

.seo-guide-cta-box {
    margin-top: 36px;
    padding: 24px;
    border-radius: 14px;
    background: var(--landing-accent-soft);
    text-align: center;
}

.seo-guide-page .nav-button.primary-cyan,
.seo-guide-page .hero-button.primary-cyan {
    background: linear-gradient(145deg, var(--landing-cta-from), var(--landing-cta-to));
    color: var(--landing-cta-text);
    border: 1px solid rgba(165, 206, 255, 0.35);
    box-shadow: 0 4px 16px rgba(74, 130, 238, 0.28);
}

.seo-guide-page .nav-button.primary-cyan:hover,
.seo-guide-page .hero-button.primary-cyan:hover {
    background: linear-gradient(145deg, #5a90f0, var(--landing-accent));
    box-shadow: 0 6px 22px rgba(74, 130, 238, 0.38);
}

.seo-guide-cta-box p {
    margin: 0 0 16px;
}

/* Legal pages (Privacy, Terms) — landing dark theme */

.legal-page {
    --landing-accent: #7eb8ff;
    --landing-accent-hover: #a5ceff;
    --landing-accent-soft: rgba(126, 184, 255, 0.1);
    --landing-accent-border: rgba(126, 184, 255, 0.28);
    --landing-cta-from: #4a82ee;
    --landing-cta-to: #6ba3f9;
    --landing-cta-text: #f8fafc;
    --landing-border: rgba(126, 184, 255, 0.1);
    --landing-text-muted: #8b9cb8;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #0a0f1a;
    color: #c5d0e0;
    min-height: 100vh;
}

.legal-page-nav .nav-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.legal-page-nav .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
}

.legal-page-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.legal-page-main h1 {
    color: #f8fafc;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--landing-border);
    padding-bottom: 12px;
}

.legal-page-main h2 {
    color: #f1f5f9;
    font-size: 1.2rem;
    margin: 30px 0 10px;
}

.legal-page-main h3 {
    color: #f8fafc;
    font-size: 1.05rem;
    margin: 0;
}

.legal-page-main p,
.legal-page-main li {
    line-height: 1.65;
    color: #cbd5e1;
}

.legal-page-main ul {
    padding-left: 1.25rem;
    margin: 0 0 16px;
}

.legal-page-main li {
    margin-bottom: 8px;
}

.legal-page-main a {
    color: var(--landing-accent);
}

.legal-page-main a:hover {
    color: var(--landing-accent-hover);
}

.legal-page-main .last-updated {
    margin-bottom: 20px;
    font-style: italic;
    color: #94a3b8;
}

.legal-page-main .contact-info {
    margin-top: 30px;
}

.legal-page-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.legal-page-main th,
.legal-page-main td {
    border: 1px solid var(--landing-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: #cbd5e1;
}

.legal-page-main th {
    background: rgba(126, 184, 255, 0.08);
    color: #f1f5f9;
}

.legal-page-main .legal-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 24px;
}

.legal-page-main .caps-block {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 16px 0;
}

.legal-page-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--landing-border);
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.seo-guide-related {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.seo-guide-related h2 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.seo-guide-related ul {
    list-style: none;
}

.landing-footer.footer,
.landing-footer {
    background: #0a0f1a;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 56px 20px 28px;
    text-align: left;
    color: #9ca3af;
}

.landing-footer .footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px 56px;
    align-items: start;
    color: inherit;
    font-size: 0.95rem;
}

.landing-footer .footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.landing-footer .footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-decoration: none;
}

.landing-footer .footer-brand .logo img {
    height: 28px;
    width: auto;
    margin: 0;
    vertical-align: middle;
}

.landing-footer .footer-tagline {
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    max-width: 28rem;
}

.landing-footer .footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 14px;
}

.landing-footer .footer-legal {
    opacity: 0.6;
}

.landing-footer .footer-legal .footer-link {
    font-size: 0.85rem;
    color: #6b7280;
}

.landing-footer .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.landing-footer .footer-links-list li {
    margin: 0;
}

.landing-footer .footer-link {
    color: #9ca3af;
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.landing-footer .footer-link:hover {
    color: #7eb8ff;
}

.landing-footer .footer-bottom {
    grid-column: 1 / -1;
    padding-top: 22px;
    margin-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.landing-footer .footer-copyright {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0;
}

@media (max-width: 768px) {
    .landing-footer.footer,
    .landing-footer {
        padding: 48px 20px 24px;
        text-align: left;
    }

    .landing-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .landing-footer .footer-bottom {
        margin-top: 4px;
        text-align: center;
    }
}




/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .features h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works-section {
        padding: 3rem 0;
    }
    
    .how-it-works-section h2 {
        font-size: 2rem;
    }
    
    .unified-demo-container {
        padding: 1.5rem;
    }
    
    .demo-chat {
        min-height: 250px;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .phone-mockup {
        width: 280px;
        height: 500px;
    }
    
    /* Auth section mobile improvements */
    .google-auth-button {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .chat-preview {
        padding: 15px;
        min-height: 250px;
    }
    
    .chat-message {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-visual .chat-message.ai {
        min-width: 140px;
        max-width: 180px;
    }
    
    .hero-visual .chat-message.user {
        min-width: 140px;
        max-width: 200px;
    }
}

/* ==========================================================================
   Landing pricing section
   ========================================================================== */
.landing-pricing {
    padding: 96px 20px 80px;
}

.landing-pricing .pricing-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.landing-pricing .pricing-head .section-title {
    margin-bottom: 0;
}

.landing-pricing .pricing-head .section-lead {
    margin-top: 14px;
    margin-bottom: 0;
    line-height: 1.55;
    max-width: 32rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
    align-items: stretch;
}

.landing-pricing .pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px 26px 24px;
    border-radius: 20px;
    /* Opaque slate — never rely on translucency over a light ancestor */
    background-color: #0f172a;
    background-image: none;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.landing-pricing .pricing-card--pro {
    border-color: rgba(45, 212, 191, 0.55);
    background-color: #0b1220;
    background-image: radial-gradient(
        130% 130% at 100% 0%,
        rgba(45, 212, 191, 0.18),
        rgba(15, 23, 42, 1) 55%
    );
    box-shadow: 0 18px 48px -24px rgba(45, 212, 191, 0.5);
    padding-top: 32px;
}

.pricing-card-flag {
    position: absolute;
    top: -12px;
    right: 22px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(120deg, #2dd4bf, #38bdf8);
    color: #04202b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-card-head {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.pricing-card-for {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.pricing-card--pro .pricing-card-for {
    color: #5eead4;
}

.pricing-card-name {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
}

.pricing-card-price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pricing-price-main {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
}

.pricing-card-price .pricing-value-chip {
    align-self: center;
}

.pricing-card-tagline {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.pricing-card--free .pricing-card-tagline {
    display: block;
    text-align: left;
    width: 100%;
}

.pricing-value-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #99f6e4;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.28);
}

.pricing-or-monthly {
    font-size: 0.86rem;
    color: #94a3b8;
}

.pricing-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.pricing-features li {
    display: grid;
    grid-template-columns: 1.375rem minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding-left: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.pricing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.12em;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #94a3b8;
}

.pricing-feature-icon svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-pricing .pricing-card--pro .pricing-feature-icon {
    color: #7dd3c7;
}

.pricing-features li::before {
    content: none;
}

.pricing-card > .pricing-cta,
.pricing-cta-group {
    margin-top: auto;
}

.pricing-cta-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.pricing-cta {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pricing-cta--primary {
    background: linear-gradient(120deg, #2dd4bf, #38bdf8);
    color: #04202b;
}

.pricing-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(56, 189, 248, 0.7);
}

.pricing-cta--ghost {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.pricing-cta--ghost:hover {
    background: rgba(148, 163, 184, 0.2);
}

.pricing-cta--link {
    background: transparent;
    color: #94a3b8;
    padding: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.pricing-cta--link:hover {
    color: #e2e8f0;
}

.pricing-footnote {
    margin: 28px auto 0;
    max-width: 520px;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.pricing-status {
    margin: 10px auto 0;
    max-width: 520px;
    min-height: 1.2em;
    text-align: center;
    font-size: 0.85rem;
    color: #93c5fd;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 420px;
    }

    .pricing-card--pro {
        order: -1;
    }

    .landing-pricing .pricing-head {
        margin-bottom: 32px;
    }

    .landing-pricing {
        padding: 72px 16px 64px;
    }
}
