/* =========================================
   1. DESIGN TOKENS
   ========================================= */
:root {
    /* Surface */
    --bg-base: #0E0F1A;
    --bg-elev: #161827;
    --bg-card: #1B1E2F;
    --bg-card-hover: #232639;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    /* Brand accent — warm coral (audio warmth) */
    --accent: #FF6B4A;
    --accent-light: #FFB347;
    --accent-dark: #E5552F;
    --accent-glow: rgba(255, 107, 74, 0.25);

    /* Secondary accent — cool purple (audio spatial) */
    --accent-2: #A78BFA;
    --accent-2-light: #C4B5FD;

    /* Text */
    --text-primary: #F8F9FB;
    --text-secondary: #C9CEDC;
    --text-muted: #8B92A8;
    --text-faint: #5A6177;

    /* Functional */
    --success: #34D399;
    --warning: #FFB347;
    --danger: #FB7185;

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1180px;

    /* Easing */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: 0.2px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 {
    color: var(--text-primary);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    text-align: center;
}

h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-primary); font-weight: 700; }

p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

a { color: inherit; text-decoration: none; transition: all 0.2s var(--ease); }

.subtitle {
    display: block;
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: 1.08rem;
}

/* =========================================
   3. BUTTONS & BADGES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn i { font-size: 1.1rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #0E0F1A;
    box-shadow: 0 8px 24px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-download {
    background: var(--accent);
    color: #0E0F1A;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-download:hover { background: var(--accent-light); }

.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 74, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 74, 0.25);
    margin-bottom: 24px;
}

.badge-accent.badge-warning {
    background: rgba(255, 179, 71, 0.1);
    color: var(--warning);
    border-color: rgba(255, 179, 71, 0.25);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 15, 26, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.nav-logo-tag {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 16px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    border-color: var(--border-strong);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 12px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-base);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px 0;
}

/* =========================================
   5. HERO
   ========================================= */
.hero-section {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-note i {
    color: var(--accent);
    margin-right: 4px;
}

/* ===== DEVICE MOCKUP ===== */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 660px;
    background: linear-gradient(145deg, #1f2235, #0f1119);
    border-radius: 48px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.06),
        0 0 100px var(--accent-glow);
    transform: rotateY(-8deg) rotateX(2deg);
    transform-style: preserve-3d;
}

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #161827, #0E0F1A);
    border-radius: 38px;
    overflow: hidden;
    padding: 56px 20px 20px;
    display: flex;
    flex-direction: column;
}

.phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-primary);
    padding: 0 8px 12px;
}

.phone-icons { display: flex; gap: 6px; font-size: 0.7rem; }

.phone-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.phone-app-header h3 {
    font-size: 1.7rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.phone-add-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 74, 0.15);
    color: var(--accent);
    border: none;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-profile-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.2s var(--ease);
}

.profile-card.active {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.12), rgba(255, 179, 71, 0.06));
    border-color: rgba(255, 107, 74, 0.4);
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.profile-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-active-icon {
    color: var(--accent);
    font-size: 1rem;
}

/* =========================================
   6. TRUST BAR
   ========================================= */
.trust-bar {
    background: var(--bg-elev);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-item i {
    font-size: 1.6rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* =========================================
   7. FEATURES GRID
   ========================================= */
.features-section { padding: 100px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s var(--ease);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 74, 0.3);
    transform: translateY(-4px);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.18), rgba(255, 179, 71, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 107, 74, 0.25);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   8. HOW IT WORKS
   ========================================= */
.howto-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-base), var(--bg-elev), var(--bg-base));
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.howto-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    text-align: left;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #0E0F1A;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px var(--accent-glow);
}

.howto-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   9. PROFILE PACKS
   ========================================= */
.profiles-section { padding: 100px 0; }

.profile-pack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-pack {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.profile-pack::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pack-gradient);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.profile-pack:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
}

.profile-pack:hover::before { opacity: 0.06; }

.profile-pack > * { position: relative; z-index: 1; }

.profile-pack > i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--pack-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.profile-pack h4 { font-size: 1.2rem; }

.profile-pack p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.profile-pack-custom {
    border-style: dashed;
    border-color: var(--border-strong);
    background: transparent;
}

.profile-pack-custom > i {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px dashed var(--border-strong);
    box-shadow: none;
}

/* =========================================
   10. HEARING HEALTH
   ========================================= */
.hearing-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-base), #1a0f1f);
}

.hearing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hearing-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.hearing-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.6;
}

.check-list li i {
    color: var(--accent);
    background: rgba(255, 107, 74, 0.12);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== dB METER ===== */
.db-meter {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.db-meter-bg {
    position: relative;
    width: 280px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
}

.db-zones {
    position: absolute;
    inset: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: conic-gradient(
        from 270deg,
        var(--success) 0deg 36deg,
        var(--warning) 36deg 72deg,
        var(--danger) 72deg 108deg,
        transparent 108deg 360deg
    );
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 88px, #000 90px, #000 134px, transparent 136px);
            mask: radial-gradient(circle at 50% 100%, transparent 88px, #000 90px, #000 134px, transparent 136px);
}

.db-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 130px;
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--needle-angle));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.db-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.db-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.db-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.db-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
}

.db-labels {
    display: flex;
    justify-content: space-between;
    margin: 20px 8px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.db-caption {
    margin: 20px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =========================================
   11. PRIVACY
   ========================================= */
.privacy-section { padding: 100px 0; }

.privacy-content h2,
.privacy-content .section-lead { text-align: center; }

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s var(--ease);
}

.privacy-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
    background: var(--bg-card-hover);
}

.privacy-card > i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(196, 181, 253, 0.08));
    color: var(--accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.privacy-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* =========================================
   12. FAQ
   ========================================= */
.faq-section { padding: 100px 0; }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-item[open] { border-color: rgba(255, 107, 74, 0.3); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-primary);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary > span { flex: 1; }

.faq-item summary i {
    color: var(--accent);
    font-size: 0.9rem;
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}

.faq-item[open] summary i { transform: rotate(45deg); }

.faq-item p {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   13. NOTIFY / FINAL CTA
   ========================================= */
.notify-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(255, 107, 74, 0.08), transparent 60%);
}

.notify-content {
    max-width: 720px;
    margin: 0 auto;
}

.notify-content p {
    color: var(--text-secondary);
    font-size: 1.08rem;
    margin-bottom: 32px;
}

.notify-content .cta-buttons { justify-content: center; }

/* =========================================
   14. FOOTER
   ========================================= */
.footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.footer-brand span {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h5 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-badge i { color: var(--accent); }

/* =========================================
   15. LEGAL PAGES (privacy / terms / support)
   ========================================= */
.legal-section {
    padding: 140px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.legal-section .updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section h2 {
    text-align: left;
    font-size: 1.4rem;
    margin: 40px 0 12px;
    color: var(--accent);
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 24px 0 8px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 22px;
}

.legal-section li { margin-bottom: 6px; }

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(255, 107, 74, 0.4);
}

.legal-section a:hover { text-decoration-color: var(--accent); }

.legal-section code {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.86em;
    color: var(--accent-light);
    font-family: 'SF Mono', Menlo, monospace;
}

/* =========================================
   16. RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; }
    .hero-mockup { order: 1; transform: scale(0.85); margin: -30px 0; }
    .cta-buttons { justify-content: center; }
    .hero-text .badge-accent { display: inline-flex; }

    .feature-grid,
    .howto-grid,
    .profile-pack-grid { grid-template-columns: repeat(2, 1fr); }

    .hearing-grid { grid-template-columns: 1fr; gap: 48px; }
    .hearing-text h2 { text-align: center; }

    .privacy-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .nav-links { display: none; }
    .mobile-menu-toggle { display: inline-flex; }

    .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-section { padding: 100px 0 60px; }
    .phone-frame { transform: scale(0.85) rotateY(-6deg); }

    .feature-grid,
    .howto-grid,
    .profile-pack-grid { grid-template-columns: 1fr; }

    .nav-logo-text { display: none; }
    .nav-logo-img { width: 32px; height: 32px; }
    .nav-actions { gap: 8px; }
    .btn-download span { display: none; }
    .btn-download { padding: 10px 12px; }
    .lang-toggle { padding: 8px 10px; }

    .footer-cols { grid-template-columns: repeat(2, 1fr); }

    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================
   17. ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text > * { animation: fadeUp 0.7s var(--ease) backwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text > *:nth-child(4) { animation-delay: 0.35s; }
.hero-text > *:nth-child(5) { animation-delay: 0.45s; }

.hero-mockup { animation: fadeUp 0.9s var(--ease) 0.3s backwards; }

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
