/* ===== CSS Variables - Light Theme (Default) ===== */
:root {
    --bg-dark: #f4fbff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-solid: #ffffff;
    --bg-card-hover: rgba(255, 255, 255, 0.96);
    --bg-elevated: rgba(255, 255, 255, 0.88);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;

    --border: rgba(15, 23, 42, 0.06);
    --border-light: rgba(15, 23, 42, 0.1);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.7);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 14px -6px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 30px -16px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 24px 45px -24px rgba(15, 23, 42, 0.2);
    --shadow-glow: 0 0 48px rgba(20, 184, 166, 0.14);

    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: rgba(20, 184, 166, 0.16);
    --primary-glow: rgba(20, 184, 166, 0.3);

    --accent: #2dd4bf;
    --accent-light: rgba(45, 212, 191, 0.14);

    --red: #f87171;
    --orange: #fb923c;
    --yellow: #fbbf24;
    --green: #4ade80;
    --blue: #60a5fa;
    --purple: #c084fc;
    --pink: #f472b6;
    --teal: #2dd4bf;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Card 3D Hover (Desktop) ===== */
@media (hover: hover) and (pointer: fine) {
    .glass-card,
    .stat-card,
    .feature-card,
    .feature-card-large,
    .doc-type-card,
    .pricing-card,
    .pf-card {
        transform-style: preserve-3d;
        transform-origin: center center;
        will-change: transform, box-shadow;
        transition:
            transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 320ms ease,
            background-color 320ms ease;
    }

    .glass-card:hover,
    .stat-card:hover,
    .feature-card:hover,
    .feature-card-large:hover,
    .doc-type-card:hover,
    .pf-card:hover {
        transform: perspective(1500px) translateY(-18px) scale(1.02) rotateX(4deg) rotateY(-4deg);
    }

    .pricing-card:hover {
        transform: translateY(-14px) scale(1.015);
    }

    .pricing-card.featured:hover {
        transform: translateY(-16px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-card,
    .stat-card,
    .feature-card,
    .feature-card-large,
    .doc-type-card,
    .pricing-card,
    .pf-card,
    .scroll-reveal {
        transition: none !important;
    }

    .glass-card:hover,
    .stat-card:hover,
    .feature-card:hover,
    .feature-card-large:hover,
    .doc-type-card:hover,
    .pricing-card:hover,
    .pf-card:hover {
        transform: none !important;
    }

    .scroll-reveal,
    .scroll-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --bg-dark: #050706;
    --bg-card: rgba(12, 18, 17, 0.92);
    --bg-card-solid: #0b1110;
    --bg-card-hover: rgba(18, 25, 23, 0.9);
    --bg-elevated: rgba(16, 23, 21, 0.92);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --glass-bg: rgba(12, 18, 17, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.18);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    text-shadow: none;
}

[data-theme="light"] .btn-primary {
    color: white;
    font-weight: 600;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Animated Background ===== */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatOrb 25s ease-in-out infinite;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    top: -20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #065f46 0%, #0d9488 100%);
    bottom: -15%;
    right: 5%;
    animation-delay: -12s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #14b8a6;
    top: 40%;
    left: 60%;
    animation: pulseOrb 10s ease-in-out infinite;
}

@keyframes floatOrb {

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

    33% {
        transform: translate(40px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

@keyframes pulseOrb {

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

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

/* Noise Texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

[data-theme="light"] .gradient-orb {
    opacity: 0.16;
    filter: blur(140px);
}

[data-theme="light"] .orb-1 {
    background: linear-gradient(135deg, rgba(167, 243, 208, 0.95) 0%, rgba(94, 234, 212, 0.9) 100%);
}

[data-theme="light"] .orb-2 {
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.9) 0%, rgba(153, 246, 228, 0.85) 100%);
}

[data-theme="light"] .orb-3 {
    background: rgba(125, 211, 252, 0.8);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* ===== Scroll Reveal (cards/content) ===== */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.988);
    filter: blur(10px);
    will-change: transform, opacity, filter;
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        filter 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.scroll-reveal[data-reveal-dir="left"] {
    transform: translate3d(-26px, 18px, 0) scale(0.988);
}

.scroll-reveal[data-reveal-dir="right"] {
    transform: translate3d(26px, 18px, 0) scale(0.988);
}

.scroll-reveal[data-reveal-dir="soft"] {
    transform: translate3d(0, 16px, 0) scale(0.992);
    filter: blur(8px);
}

.scroll-reveal.scroll-reveal-card {
    transform-origin: center bottom;
}

.scroll-reveal.scroll-reveal-content {
    filter: blur(8px);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 450;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 450;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-primary {
    color: var(--primary);
}

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

/* ===== Glass Card ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .doc-type-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .pf-card {
    box-shadow: 0 14px 34px -24px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(20, 184, 166, 0.1);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #0a0d0c;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
    text-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
    color: #0a0d0c;
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

body.early-access-mode .btn.launch-soon-trigger {
    cursor: pointer;
    opacity: 0.92;
}

body.early-access-mode .btn.launch-soon-trigger:hover {
    transform: none;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-green {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(20, 184, 166, 0.2);
}

.badge-red {
    background: rgba(248, 113, 113, 0.1);
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.2);
}

.badge-outline {
    background: transparent;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 7, 6, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.22);
}

.launch-soon-strip {
    display: none;
    position: relative;
    z-index: 5;
    padding: calc(72px + 0.9rem) 1rem 0;
}

body.early-access-mode .launch-soon-strip {
    display: block;
}

.launch-soon-strip .container {
    width: min(1040px, calc(100vw - 2rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: left;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(20, 184, 166, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 255, 253, 0.82)),
        radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.10), transparent 52%),
        radial-gradient(circle at 86% 80%, rgba(20, 184, 166, 0.08), transparent 55%);
    box-shadow:
        0 20px 36px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(8px);
}

.launch-soon-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.18);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

.waitlist-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    min-width: 0;
}

.waitlist-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.waitlist-text strong {
    font-size: 0.95rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.waitlist-copy {
    font-weight: 500;
    color: var(--text-secondary);
}

.waitlist-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.btn-waitlist-open {
    min-width: 160px;
}

.waitlist-form input[type='email'] {
    border: 1px solid rgba(20, 184, 166, 0.18);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    min-width: 250px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.waitlist-form input[type='email']::placeholder {
    color: rgba(71, 85, 105, 0.7);
}

.btn-waitlist {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-waitlist.is-success-flash {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.24);
    animation: waitlistButtonSuccess 320ms cubic-bezier(.22, 1, .36, 1);
}

.waitlist-status {
    display: none;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.waitlist-status.is-active {
    display: inline-flex;
    align-items: center;
}

.waitlist-modal-card .waitlist-status.is-active {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.waitlist-status.is-success {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.waitlist-status.is-error {
    background: rgba(239, 68, 68, 0.10);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.waitlist-status.is-animate {
    animation: waitlistStatusPop 260ms cubic-bezier(.22, 1, .36, 1);
}

.waitlist-status.is-success::before {
    content: '✓';
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
    font-weight: 800;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.waitlist-status.is-error::before {
    content: '!';
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    font-weight: 800;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

body.waitlist-modal-open {
    overflow: hidden;
}

.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.waitlist-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 0s linear 0s;
}

.waitlist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.waitlist-modal-card {
    position: relative;
    width: min(480px, calc(100vw - 2rem));
    border-radius: 22px;
    border: 1px solid rgba(20, 184, 166, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 255, 253, 0.84)),
        radial-gradient(circle at 12% 14%, rgba(45, 212, 191, 0.10), transparent 55%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}

.waitlist-modal.is-open .waitlist-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.waitlist-modal.is-closing .waitlist-modal-card {
    transform: translateY(8px) scale(0.99);
    opacity: 0;
}

.waitlist-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.waitlist-modal-close:hover {
    transform: scale(1.04);
    color: var(--text-primary);
    border-color: rgba(20, 184, 166, 0.2);
}

.waitlist-modal-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.2rem;
    padding-right: 2.1rem;
}

.waitlist-modal-form input[type='email'] {
    flex: 1;
    border: 1px solid rgba(20, 184, 166, 0.18);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.waitlist-modal-form input[type='email']::placeholder {
    color: rgba(71, 85, 105, 0.75);
}

.waitlist-modal-card .waitlist-status {
    margin-top: 0.6rem;
    white-space: normal;
}

@keyframes waitlistStatusPop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes waitlistButtonSuccess {
    from {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 10px rgba(20, 184, 166, 0.12);
    }
    50% {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 12px 26px rgba(20, 184, 166, 0.28);
    }
    to {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 24px rgba(20, 184, 166, 0.24);
    }
}

[data-theme="dark"] .launch-soon-strip .container {
    color: #d1fae5;
    background:
        linear-gradient(180deg, rgba(10, 18, 22, 0.88), rgba(10, 20, 22, 0.86)),
        radial-gradient(circle at 10% 16%, rgba(20, 184, 166, 0.12), transparent 55%),
        radial-gradient(circle at 85% 82%, rgba(45, 212, 191, 0.08), transparent 60%);
    border-color: rgba(45, 212, 191, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .launch-soon-pill {
    color: #99f6e4;
    background: rgba(20, 184, 166, 0.13);
    border-color: rgba(45, 212, 191, 0.16);
}

[data-theme="dark"] .waitlist-text strong {
    color: #f8fafc;
}

[data-theme="dark"] .waitlist-copy {
    color: rgba(226, 232, 240, 0.78);
}

[data-theme="dark"] .waitlist-form input[type='email'] {
    background: rgba(12, 14, 18, 0.75);
    color: #f8fafc;
    border-color: rgba(45, 212, 191, 0.16);
}

[data-theme="dark"] .waitlist-form input[type='email']::placeholder {
    color: rgba(226, 232, 240, 0.55);
}

[data-theme="dark"] .waitlist-modal-backdrop {
    background: rgba(2, 6, 23, 0.55);
}

[data-theme="dark"] .waitlist-modal-card {
    border-color: rgba(45, 212, 191, 0.14);
    background:
        linear-gradient(180deg, rgba(10, 17, 22, 0.9), rgba(8, 14, 19, 0.88)),
        radial-gradient(circle at 14% 14%, rgba(20, 184, 166, 0.12), transparent 55%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .waitlist-modal-close {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .waitlist-modal-form input[type='email'] {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(45, 212, 191, 0.14);
    color: #f8fafc;
}

[data-theme="dark"] .waitlist-modal-form input[type='email']::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

[data-theme="dark"] .waitlist-status.is-success {
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .waitlist-status.is-success::before {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

[data-theme="dark"] .waitlist-status.is-error {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .waitlist-status.is-error::before {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-links .btn {
    margin-left: 0.5rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
    border-color: var(--primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

body.early-access-mode .hero {
    padding: 10rem 0 6rem;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="light"] .hero-bg-gradient {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, 0.12) 0%, rgba(45, 212, 191, 0.05) 34%, transparent 62%),
        radial-gradient(ellipse at 18% 18%, rgba(125, 211, 252, 0.08) 0%, transparent 52%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 450;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-item svg {
    color: var(--primary);
}

/* App Availability */
.app-availability {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.app-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.app-badge.available {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    cursor: pointer;
}

.app-badge.available:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.2);
    transform: translateY(-4px);
}

.app-badge.available svg {
    color: var(--primary);
}

.app-badge.pwa-download .app-status {
    color: var(--primary);
}

.app-badge.coming-soon {
    opacity: 0.7;
}

.app-status {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-type {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    background: linear-gradient(180deg, #1a1a1d 0%, #0a0a0b 100%);
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    width: 280px;
    border: 1px solid var(--border);
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 1rem 1rem;
    margin: 0 auto 0.75rem;
}

.phone-screen {
    background: var(--bg-card-solid);
    border-radius: 1.75rem;
    padding: 1.25rem;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.screen-title {
    font-weight: 600;
    font-size: 1rem;
}

.screen-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
}

.screen-badge.free-badge {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.screen-badge.premium-badge {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Profile Screen Styles */
.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.profile-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blood-badge {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
}

.health-metrics {
    margin-bottom: 1rem;
}

.metrics-title {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.metric-item {
    background: var(--bg-elevated);
    padding: 0.625rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.5625rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value small {
    font-size: 0.5625rem;
    font-weight: 400;
    color: var(--text-muted);
}

.medical-tags {
    margin-top: 0.5rem;
}

.tag-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.tag.allergy {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.tag.medication {
    background: var(--primary-light);
    color: var(--primary);
}

/* Carousel */
.screen-carousel {
    position: relative;
    height: 450px;
}

.carousel-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.carousel-screen.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-indicators .indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* QR Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.qr-code {
    background: #fff;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
}

.qr-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.summary-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.summary-icon {
    font-size: 1.125rem;
}

.summary-text {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Records List */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.record-item:hover {
    transform: translateX(4px);
}

.record-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.record-icon.blood {
    background: rgba(248, 113, 113, 0.15);
}

.record-icon.xray {
    background: rgba(96, 165, 250, 0.15);
}

.record-icon.prescription {
    background: rgba(74, 222, 128, 0.15);
}

.record-icon.ecg {
    background: rgba(244, 114, 182, 0.15);
}

.record-details {
    display: flex;
    flex-direction: column;
}

.record-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.record-date {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 4rem 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1), box-shadow 280ms ease, border-color 220ms ease;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: -30% 42% 58% -18%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-12px) rotateX(4deg) rotateY(-3deg) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 28px 56px -28px rgba(15, 23, 42, 0.28), 0 8px 30px rgba(20, 184, 166, 0.14);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

/* ===== Problem/Solution Section ===== */
.problem-solution {
    padding: 6rem 0;
    position: relative;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.problem-side,
.solution-side {
    display: flex;
    flex-direction: column;
}

.ps-side-header {
    min-height: 246px;
}

.solution-side .ps-side-header {
    margin-top: 0.5rem;
}

.problem-side h2,
.solution-side h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.problem-side .badge,
.solution-side .badge {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.ps-side-header>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 118px;
    box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.22);
}

.problem-item:hover {
    transform: translateY(-6px) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(20, 184, 166, 0.24);
    box-shadow: 0 24px 48px -30px rgba(20, 184, 166, 0.24);
}

.problem-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-icon.orange {
    background: rgba(251, 146, 60, 0.15);
    color: var(--orange);
}

.problem-icon.red {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.problem-icon.yellow {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
}

.problem-icon.teal {
    background: rgba(20, 184, 166, 0.14);
    color: var(--primary);
}

.problem-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.problem-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 450;
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.solution-cards {
    gap: 1rem;
}

.solution-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.22);
    min-height: 118px;
}

.solution-card:hover {
    transform: translateY(-6px) rotateX(1deg) rotateY(1deg);
    border-color: rgba(20, 184, 166, 0.28);
    box-shadow: 0 24px 48px -30px rgba(20, 184, 166, 0.28);
}

.solution-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-icon.teal {
    background: rgba(20, 184, 166, 0.14);
    color: var(--primary);
}

.solution-icon.green {
    background: rgba(34, 197, 94, 0.14);
    color: var(--green);
}

.solution-icon.blue {
    background: rgba(59, 130, 246, 0.14);
    color: var(--blue);
}

.solution-icon.purple {
    background: rgba(139, 92, 246, 0.14);
    color: var(--purple);
}

.solution-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.solution-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 450;
}

.solution-mini-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 500;
}

.solution-mini-list li::marker {
    color: var(--primary);
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}

.solution-item:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.solution-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ===== Features Section ===== */
.why-section {
    padding: 6rem 0;
    position: relative;
}

.features-grid-new {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.feature-card-large {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, var(--glass-bg) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card-large:hover {
    border-color: var(--primary);
    box-shadow: 0 26px 56px -28px rgba(15, 23, 42, 0.28), 0 0 40px rgba(20, 184, 166, 0.14);
}

.feature-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.feature-icon-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.feature-card-large h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature-card-large p {
    color: var(--text-secondary);
    font-weight: 450;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

.feature-highlights span {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 28px 58px -30px rgba(15, 23, 42, 0.3), 0 0 30px rgba(20, 184, 166, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 450;
    line-height: 1.7;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 6rem 0;
    position: relative;
}

.steps-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.step-content {
    padding: 0 1rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.step-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--border));
    margin-top: 24px;
    flex-shrink: 0;
}

/* ===== Documents Section ===== */
.documents-section {
    padding: 6rem 0;
    position: relative;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doc-type-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: var(--transition);
}

.doc-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(20, 184, 166, 0.1);
}

.doc-type-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.doc-type-card:hover .doc-type-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.doc-type-icon.red {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.doc-type-icon.purple {
    background: rgba(192, 132, 252, 0.15);
    color: var(--purple);
}

.doc-type-icon.green {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.doc-type-icon.blue {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

.doc-type-icon.teal {
    background: rgba(45, 212, 191, 0.15);
    color: var(--teal);
}

.doc-type-icon.orange {
    background: rgba(251, 146, 60, 0.15);
    color: var(--orange);
}

.doc-type-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.doc-type-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.supported-formats {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.supported-formats strong {
    color: var(--text-secondary);
}

/* ===== Privacy Section ===== */
.privacy-section {
    padding: 6rem 0;
    position: relative;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.privacy-text h2 {
    text-align: left;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.privacy-text>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}

.pf-item:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.pf-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

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

.shield-graphic {
    width: 280px;
    height: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.shield-graphic:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.shield-inner {
    color: var(--primary);
    z-index: 1;
}

.shield-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.shield-ring.ring-2 {
    inset: -40px;
    opacity: 0.1;
    animation-delay: 1s;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 6rem 0;
    position: relative;
}

.pricing-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: 0 30px 65px -34px rgba(15, 23, 42, 0.32), 0 8px 28px rgba(20, 184, 166, 0.1);
    border-color: var(--border-light);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.price-masked .price {
    position: relative;
    min-height: 56px;
}

.pricing-card.price-masked .price-amount,
.pricing-card.price-masked .price-period {
    color: transparent !important;
    filter: blur(8px);
    text-shadow: 0 0 14px rgba(15, 23, 42, 0.25);
    user-select: none;
}

.pricing-card.price-masked .price::after {
    content: 'Join Waitlist';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.45);
    white-space: nowrap;
}

[data-theme="dark"] .pricing-card.price-masked .price-amount,
[data-theme="dark"] .pricing-card.price-masked .price-period {
    text-shadow: 0 0 18px rgba(226, 232, 240, 0.35);
}

[data-theme="dark"] .pricing-card.price-masked .price::after {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.32);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 450;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.highlight {
    color: var(--primary);
}

.pricing-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.pricing-footer {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-beta-note {
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

.pricing.beta-free-only .pricing-grid-new {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1000px;
}

.pricing.beta-free-only .pricing-card {
    width: 100%;
    max-width: 420px;
}

.pricing.beta-free-only .pricing-footer {
    display: none;
}

.pf-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
}

.pf-card svg {
    flex-shrink: 0;
    color: var(--primary);
}

.pf-card strong {
    display: block;
    margin-bottom: 0.125rem;
}

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

/* ===== FAQ Section ===== */
.faq {
    padding: 6rem 0;
    position: relative;
}

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

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-question svg {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    font-weight: 450;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}

.faq-answer li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.faq-answer strong {
    color: var(--text-primary);
}

/* ===== Final CTA ===== */
.final-cta {
    padding: 6rem 0;
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 148, 136, 0.1) 50%, var(--glass-bg) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-3xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.2) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
}

.cta-buttons {
    margin-bottom: 1.5rem;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-trust span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-card-solid);
    border-top: 1px solid var(--border);
    position: relative;
}

[data-theme="light"] .footer {
    background: #f1f5f9;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-apps {
    margin-top: 1.5rem;
}

.app-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.app-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-badge-small {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-badge-small.coming {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    font-size: 0.9375rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.compliance-badge {
    background: var(--primary-light);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .app-availability {
        justify-content: center;
    }

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

    .features-grid-new {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-row: span 1;
    }

    .ps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ps-side-header {
        min-height: 0;
    }

    .solution-side .ps-side-header {
        margin-top: 0;
    }

    .steps-timeline {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        flex: 0 0 calc(50% - 1rem);
    }

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

    .privacy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .privacy-text h2 {
        text-align: center;
    }

    .privacy-features {
        justify-content: center;
    }

    .pricing-grid-new {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card-solid);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

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

    .hero {
        padding: 8rem 0 3rem;
    }

    .launch-soon-strip {
        padding: calc(72px + 0.75rem) 1rem 0;
    }

    .launch-soon-strip .container {
        width: 100%;
        max-width: calc(100vw - 2rem);
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem 0.875rem;
        border-radius: 14px;
    }

    .waitlist-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.35rem;
    }

    .waitlist-form {
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .waitlist-form input[type='email'] {
        width: 100%;
        min-width: 0;
    }

    .waitlist-status {
        white-space: normal;
        text-align: center;
    }

    .waitlist-modal-card {
        width: min(460px, calc(100vw - 1.2rem));
        padding: 1rem;
        border-radius: 18px;
    }

    .waitlist-modal-form {
        flex-direction: column;
        align-items: stretch;
        padding-right: 0;
        margin-top: 0.35rem;
    }

    .waitlist-modal-form .btn-waitlist {
        width: 100%;
    }

    body.early-access-mode .hero {
        padding: 8rem 0 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-availability {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .step-card {
        flex: 0 0 100%;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-apps {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .footer-badges {
        justify-content: center;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}
