/* ============================================
   GlucoGuard Website — Design System
   Colors matched to iOS app Theme.swift
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* App Colors (from Theme.swift) */
    --green: #10B981;
    --green-light: #34D399;
    --green-dark: #059669;
    --bg: #0A0E17;
    --bg-card: #111827;
    --bg-card-light: #1F2937;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --orange: #F97316;
    --pink: #EC4899;
    --yellow: #F59E0B;
    --red: #EF4444;
    
    /* Text */
    --text: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Animation */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--green-light), var(--green), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 18px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}
.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}
.logo-icon {
    font-size: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-link:hover {
    color: var(--text);
}

.nav-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    transition: all var(--transition);
}
.nav-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-card-light);
}

.hero-footnote {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 40px;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 620px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(16, 185, 129, 0.1);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 30px;
    overflow: hidden;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Mock screen contents */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
}
.mock-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.mock-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.mock-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}
.mock-gauge-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid var(--bg-card-light);
    border-top-color: var(--green);
    border-right-color: var(--green);
    border-bottom-color: var(--green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: gauge-glow 3s ease-in-out infinite;
}
.mock-gauge-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: -0.02em;
}
.mock-gauge-unit {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
}
.mock-gauge-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--bg-card);
    padding: 14px 10px;
    border-radius: 14px;
}
.mock-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mock-stat-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}
.mock-stat-lbl {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-insight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    border-left: 3px solid var(--green);
}
.mock-insight-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ============================================
   TRUSTED
   ============================================ */
.trusted {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trusted-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.trusted-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
}
.trusted-dot {
    color: var(--text-tertiary);
    opacity: 0.3;
}

/* ============================================
   SECTION STYLES (shared)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: var(--section-padding) 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, var(--green)), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before {
    opacity: 1;
}

.feature-card-lg {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}
.feature-card-lg .feature-desc {
    max-width: 600px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent, var(--green));
    flex-shrink: 0;
}
.feature-card-lg .feature-icon {
    margin-bottom: 0;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}
.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 24, 39, 0.5) 50%, var(--bg) 100%);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
}
.step-reverse {
    grid-template-columns: 120px 1fr 60px;
}
.step-reverse .step-number {
    order: 3;
}
.step-reverse .step-visual {
    order: 1;
}
.step-reverse .step-content {
    order: 2;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--green);
}

.step-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.step-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.step-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, var(--green));
}

.step-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--bg-card-light), transparent);
}

/* ============================================
   SCIENCE
   ============================================ */
.science {
    padding: var(--section-padding) 0;
}

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

.science-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}
.science-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.15);
}

.science-stat {
    font-size: 40px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.science-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.science-detail {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.science-cite {
    font-size: 11px;
    color: var(--text-tertiary);
    font-style: normal;
    font-weight: 500;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 24, 39, 0.5) 50%, var(--bg) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
}

.pricing-card-featured {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 80px rgba(16, 185, 129, 0.08);
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.pricing-amount {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
}
.pricing-period {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 500;
}
.pricing-save {
    font-size: 13px;
    color: var(--green);
    margin-top: 8px;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.feature-highlight {
    color: var(--text);
}

.pricing-trial-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
}

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

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
    gap: 16px;
}
.faq-question:hover {
    color: var(--green);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-tertiary);
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}
.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download {
    padding: var(--section-padding) 0;
}

.download-container {
    text-align: center;
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 32px;
    padding: 80px 40px;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.download-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    position: relative;
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.download-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 16px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color var(--transition);
}
.footer-link:hover {
    color: var(--green);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}
.footer-disclaimer {
    font-size: 11px;
    color: var(--text-tertiary);
    opacity: 0.6;
    max-width: 500px;
    text-align: right;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes gauge-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.25); }
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card-lg {
        grid-column: span 2;
        grid-template-columns: auto 1fr;
    }
    .feature-card-lg .feature-tags {
        grid-column: span 2;
    }
    
    .science-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Hero */
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card-lg {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .step, .step-reverse {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }
    .step-visual {
        display: none;
    }
    .step-reverse .step-number { order: unset; }
    .step-reverse .step-content { order: unset; }
    
    /* Science */
    .science-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }
    .download-container {
        padding: 48px 24px;
        border-radius: 24px;
    }
}

/* ============================================
   LEGAL PAGES (shared styles)
   ============================================ */
.legal-page {
    padding: 140px 0 80px;
}
.legal-page h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
}
.legal-page .legal-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}
.legal-content {
    max-width: 720px;
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--green);
}
.legal-content p,
.legal-content li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-content a {
    color: var(--green);
    text-decoration: underline;
}

/* Support page form */
.support-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}
.form-group select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
