/* Webcheck — light default (soft grays), dark toggle (dark gray) */
:root {
    --bg: #f0f2f5;
    --bg-card: #f8f9fb;
    --bg-elevated: #e8eaef;
    --border: #dde1e6;
    --text: #1a1d24;
    --text-muted: #5c6370;
    --teal: #0d9488;
    --teal-bright: #14b8a6;
    --emerald: #059669;
    --emerald-bright: #10b981;
    --shield: #2563eb;
    --shield-bright: #3b82f6;
    --amber: #d97706;
    --amber-bright: #f59e0b;
    --violet: #7c3aed;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1140px;
    --section-pad: 32px;
    --section-gap: 88px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-bg: rgba(248, 249, 251, 0.92);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.09);
    --hero-glow-1: rgba(13, 148, 136, 0.07);
    --hero-glow-2: rgba(124, 58, 237, 0.05);
    --hero-glow-3: rgba(217, 119, 6, 0.04);
    --btn-primary-bg: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
    --btn-primary-color: #ffffff;
    --btn-primary-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
    --btn-primary-shadow-hover: 0 10px 28px rgba(13, 148, 136, 0.28);
}

[data-theme="dark"] {
    --bg: #252530;
    --bg-card: #2e2e3a;
    --bg-elevated: #363642;
    --border: #40404d;
    --text: #e8e8ed;
    --text-muted: #9a9aa5;
    --teal: #2dd4bf;
    --teal-bright: #5eead4;
    --emerald: #34d399;
    --emerald-bright: #6ee7b7;
    --shield: #60a5fa;
    --shield-bright: #93c5fd;
    --amber: #fbbf24;
    --amber-bright: #fcd34d;
    --violet: #a78bfa;
    --nav-bg: rgba(37, 37, 48, 0.9);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --hero-glow-1: rgba(45, 212, 191, 0.1);
    --hero-glow-2: rgba(167, 139, 250, 0.07);
    --hero-glow-3: rgba(251, 191, 36, 0.05);
    --btn-primary-bg: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
    --btn-primary-color: #1a1d24;
    --btn-primary-shadow: 0 4px 14px rgba(45, 212, 191, 0.15);
    --btn-primary-shadow-hover: 0 10px 28px rgba(45, 212, 191, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Nav — glass, contained layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 var(--section-pad);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease-out), border-color 0.3s;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container);
    height: 72px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-logo a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.navbar-logo a:hover { color: var(--teal); }

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.navbar-separator {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    margin: 0 16px;
}

.navbar ul li { position: relative; }

.navbar ul a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.navbar-toggle:hover { background: var(--bg-elevated); }
.navbar-toggle-icon,
.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s var(--ease-out);
}
.navbar-toggle-icon {
    position: relative;
}
.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}
.navbar-toggle-icon::before { top: -6px; }
.navbar-toggle-icon::after { top: 6px; }
.navbar.is-open .navbar-toggle-icon { background: transparent; }
.navbar.is-open .navbar-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.navbar.is-open .navbar-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.navbar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.navbar.is-open ~ .navbar-backdrop {
    display: block;
}

.navbar ul a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--teal);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.25s var(--ease-out);
    transform-origin: center;
}
.navbar ul a:hover { color: var(--text); }
.navbar ul a:hover::after { transform: scaleX(1); }
.navbar a.nav-link.current { color: var(--text); }
.navbar a.nav-link.current::after { transform: scaleX(1); }
#nav-auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
#nav-auth-user li { margin: 0; }
.nav-logout-btn {
    background: transparent;
    border: 2px solid var(--teal);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 8px;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-logout-btn:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
[data-theme="dark"] .nav-logout-btn:hover {
    background: var(--teal);
    color: #252530;
    box-shadow: 0 2px 12px rgba(45, 212, 191, 0.2);
}
.nav-user-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

/* Theme toggle — compact, in nav */
.navbar-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.navbar-theme-toggle:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.navbar-theme-toggle .theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-theme-toggle .theme-icon svg {
    display: block;
}
/* Light mode: show moon (switch to dark); Dark mode: show sun (switch to light) */
.navbar-theme-toggle .theme-icon-sun { display: none; }
.navbar-theme-toggle .theme-icon-moon { display: flex; }
[data-theme="dark"] .navbar-theme-toggle .theme-icon-sun { display: flex; }
[data-theme="dark"] .navbar-theme-toggle .theme-icon-moon { display: none; }

/* Buttons — pop up on hover: scale + lift + bigger shadow */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.2s;
}
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: none;
    box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--btn-primary-shadow-hover);
}
.btn-primary:active { transform: translateY(-2px) scale(1.02); }

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Get started free button (hero + CTA) — same pop animation in both places */
.btn-get-started:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--btn-primary-shadow-hover);
}
.btn-get-started:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-glow {
    animation: btnGlow 4s ease-in-out infinite;
}
@keyframes btnGlow {
    0%, 100% { box-shadow: var(--btn-primary-shadow); }
    50% { box-shadow: var(--btn-primary-shadow-hover); }
}

/* Hero — gradient bg animation */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px var(--section-pad) 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--hero-glow-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, var(--hero-glow-2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 60%, var(--hero-glow-3), transparent);
    animation: gradientShift 14s ease-in-out infinite alternate;
    transition: transform 0.1s ease-out;
    pointer-events: none;
}
@keyframes gradientShift {
    0% { opacity: 1; }
    100% { opacity: 0.85; }
}

/* Hero grid — soft pulse */
.hero-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(36, 1fr);
    grid-template-rows: repeat(16, 1fr);
    gap: 0;
    padding: 0;
    font-family: ui-monospace, 'SF Mono', 'Monaco', monospace;
    font-size: 10px;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.55;
    pointer-events: none;
    overflow: hidden;
}
[data-theme="dark"] .hero-grid { opacity: 0.45; }

.hero-grid--compact {
    grid-template-columns: repeat(26, 1fr);
    grid-template-rows: repeat(12, 1fr);
}
.hero-grid--sparse {
    grid-template-columns: repeat(23, 1fr);
    grid-template-rows: repeat(10, 1fr);
}

.section-with-dots {
    position: relative;
}
.section-with-dots__content {
    position: relative;
    z-index: 1;
}

.grid-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    animation: gridPulse 0.65s ease-out infinite backwards;
}
@keyframes gridPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1.5);
    }
    35% {
        opacity: 0.3;
        transform: scale(0.75);
    }
    50% {
        opacity: 0.12;
        transform: scale(0.7);
    }
    55% {
        opacity: 0.2;
        transform: scale(0.78);
    }
    75% {
        opacity: 0.35;
        transform: scale(1.1);
    }
}
@keyframes gridPulseAlt {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1.1);
    }
    20% {
        opacity: 0.5;
        transform: scale(1.5);
    }
    60% {
        opacity: 0.08;
        transform: scale(0.65);
    }
    85% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}
.grid-dot--alt {
    animation-name: gridPulseAlt;
}

/* Reduced motion: static grid, no animations */
.reduce-motion .grid-dot {
    animation: none;
    opacity: 0.35;
}
.reduce-motion .grid-dot--alt { opacity: 0.25; }

/* Looping code tape — scrolls up and repeats */
.hero-tape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to top, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to top, transparent, black 40%);
}
.hero-tape-track {
    animation: tapeScroll 14s linear infinite;
}
.reduce-motion .hero-tape-track { animation: none; }
.hero-tape-line {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    opacity: 0.55;
    white-space: nowrap;
}
@keyframes tapeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--section-pad);
    text-align: center;
    animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-tagline {
    font-size: 20px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    min-height: 32px;
    animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 28px auto;
    line-height: 1.5;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-content .btn {
    animation: heroBtnFadeIn 0.8s var(--ease-out) 0.3s both;
}
@keyframes heroBtnFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s infinite;
    color: var(--teal);
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Accuracy — large, side-aligned */
.accuracy-section {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 24px 40px;
    text-align: left;
}
.accuracy-statement {
    margin: 0 0 8px 0;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}
.accuracy-asterisk {
    font-size: 0.5em;
    font-weight: 500;
    vertical-align: super;
    line-height: 0;
    color: var(--text-muted);
}
.accuracy-footnote {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Products strip — clean static row (replaces carousel) */
.products-strip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}
.products-strip-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s, transform 0.25s var(--ease-out);
}
.products-strip-item:hover { color: var(--teal); transform: translateY(-2px); }
.products-strip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

/* Reveal sections — GPU-friendly (translate3d) + shorter duration for smoother feel */
.reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.97);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    contain: layout style;
}
.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}
/* Reduced motion: instant reveal */
.reduce-motion .reveal,
.reduce-motion .reveal.in-view { opacity: 1; transform: none; transition: none; }
.reduce-motion .reveal * { opacity: 1 !important; transform: none !important; transition: none !important; }

.reveal .section-head {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal .section-sub {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in-view .section-head {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.reveal.in-view .section-sub {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
}

.reveal .product-card,
.reveal .feature-card,
.reveal .feature-slide,
.reveal .pricing-card,
.reveal .extra-card,
.reveal .steps-list li,
.reveal .stat,
.reveal .use-case,
.reveal .integration-item,
.reveal .workflow,
.reveal .faq-item,
.reveal .resource-card,
.reveal .step-block,
.reveal .use-band,
.reveal .vertical-slit-item,
.reveal .why-title,
.reveal .why-lead,
.reveal .why-list li,
.reveal .vertical-slit-label,
.reveal .vertical-slit-title,
.reveal .vertical-slit-lead {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.98);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.reveal .vertical-slit-label,
.reveal .vertical-slit-title,
.reveal .vertical-slit-lead {
    transform: translateX(-24px);
}
.reveal.in-view .vertical-slit-label,
.reveal.in-view .vertical-slit-title,
.reveal.in-view .vertical-slit-lead {
    transform: translateX(0);
}
.reveal.in-view .product-card { transition-delay: 0.1s; }
.reveal.in-view .product-card:nth-child(1) { transition-delay: 0.25s; }
.reveal.in-view .product-card:nth-child(2) { transition-delay: 0.35s; }
.reveal.in-view .product-card:nth-child(3) { transition-delay: 0.45s; }
.reveal.in-view .pricing-card:nth-child(1) { transition-delay: 0.2s; }
.reveal.in-view .pricing-card:nth-child(2) { transition-delay: 0.3s; }
.reveal.in-view .pricing-card:nth-child(3) { transition-delay: 0.4s; }
.reveal.in-view .pricing-card:nth-child(4) { transition-delay: 0.5s; }
.reveal.in-view .extra-card:nth-child(1) { transition-delay: 0.2s; }
.reveal.in-view .extra-card:nth-child(2) { transition-delay: 0.3s; }
.reveal.in-view .extra-card:nth-child(3) { transition-delay: 0.4s; }
.reveal.in-view .product-card,
.reveal.in-view .feature-card,
.reveal.in-view .feature-slide,
.reveal.in-view .pricing-card,
.reveal.in-view .extra-card,
.reveal.in-view .steps-list li,
.reveal.in-view .stat,
.reveal.in-view .use-case,
.reveal.in-view .integration-item,
.reveal.in-view .workflow,
.reveal.in-view .faq-item,
.reveal.in-view .resource-card,
.reveal.in-view .step-block,
.reveal.in-view .use-band,
.reveal.in-view .vertical-slit-item,
.reveal.in-view .why-title,
.reveal.in-view .why-lead,
.reveal.in-view .why-list li,
.reveal.in-view .vertical-slit-label,
.reveal.in-view .vertical-slit-title,
.reveal.in-view .vertical-slit-lead {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}
.reveal.in-view .vertical-slit-label { transition-delay: 0.12s; }
.reveal.in-view .vertical-slit-title { transition-delay: 0.18s; }
.reveal.in-view .vertical-slit-lead { transition-delay: 0.24s; }
.reveal.in-view .why-title { transition-delay: 0.15s; }
.reveal.in-view .why-lead { transition-delay: 0.22s; }
.reveal.in-view .why-list li:nth-child(1) { transition-delay: 0.28s; }
.reveal.in-view .why-list li:nth-child(2) { transition-delay: 0.34s; }
.reveal.in-view .why-list li:nth-child(3) { transition-delay: 0.4s; }
.reveal.in-view .why-list li:nth-child(4) { transition-delay: 0.46s; }
.reveal.in-view .why-list li:nth-child(5) { transition-delay: 0.52s; }
.reveal.in-view .vertical-slit-item:nth-child(1) { transition-delay: 0.2s; }
.reveal.in-view .vertical-slit-item:nth-child(2) { transition-delay: 0.3s; }
.reveal.in-view .vertical-slit-item:nth-child(3) { transition-delay: 0.4s; }
.reveal.in-view .step-block:nth-child(1) { transition-delay: 0.25s; }
.reveal.in-view .step-block:nth-child(2) { transition-delay: 0.35s; }
.reveal.in-view .step-block:nth-child(3) { transition-delay: 0.45s; }
.reveal.in-view .use-band:nth-child(1) { transition-delay: 0.25s; }
.reveal.in-view .use-band:nth-child(2) { transition-delay: 0.35s; }
.reveal.in-view .use-band:nth-child(3) { transition-delay: 0.45s; }
.reveal.in-view .faq-item:nth-child(1) { transition-delay: 0.05s; }
.reveal.in-view .faq-item:nth-child(2) { transition-delay: 0.1s; }
.reveal.in-view .faq-item:nth-child(3) { transition-delay: 0.15s; }
.reveal.in-view .faq-item:nth-child(4) { transition-delay: 0.2s; }
.reveal.in-view .faq-item:nth-child(5) { transition-delay: 0.25s; }
.reveal.in-view .resource-card:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view .resource-card:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view .resource-card:nth-child(3) { transition-delay: 0.3s; }
.reveal.in-view .feature-slide:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view .feature-slide:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view .feature-slide:nth-child(3) { transition-delay: 0.3s; }
.reveal.in-view .stat:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view .stat:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view .stat:nth-child(3) { transition-delay: 0.3s; }

/* Section heads */
.section-head {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    text-align: center;
}
.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* Products — colored cards */
.products {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--section-pad);
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .product-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .product-cards { grid-template-columns: 1fr; }
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), border-color 0.3s;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s var(--ease-out), opacity 0.3s;
    opacity: 0.7;
}
/* Same animation as CTA button: translateY(-6px) scale(1.04) + bigger shadow */
.product-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.product-card:hover::before { height: 5px; opacity: 1; }

.product-lint::before { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.product-shield::before { background: linear-gradient(90deg, var(--shield), var(--shield-bright)); }
.product-crawl::before { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }

.product-card:hover.product-lint {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(13, 148, 136, 0.12);
}
.product-card:hover.product-shield {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(37, 99, 235, 0.12);
}
.product-card:hover.product-crawl {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(217, 119, 6, 0.12);
}
[data-theme="dark"] .product-card:hover.product-lint {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(45, 212, 191, 0.14);
}
[data-theme="dark"] .product-card:hover.product-shield {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(96, 165, 250, 0.14);
}
[data-theme="dark"] .product-card:hover.product-crawl {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(251, 191, 36, 0.14);
}

.product-card-inner {
    padding: 28px 24px;
}
.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text);
    transition: color 0.2s;
}
.product-lint:hover h3 { color: var(--teal); }
.product-shield:hover h3 { color: var(--shield); }
.product-crawl:hover h3 { color: var(--amber); }
.product-card p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
}
.product-card-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.product-card-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}
.product-card-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Feature carousel — one feature per slide, auto-advance */
/* Feature strip — full-width horizontal scroll (review-carousel style) */
/* Features — static grid (no carousel) */
.features-static {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--section-pad);
    background: var(--bg-elevated);
}
.features-static .section-head { margin-bottom: 12px; }
.features-static .section-sub { margin-bottom: 32px; }
.features-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.features-static .feature-slide {
    flex: none;
    width: auto;
    min-height: 160px;
}
@media (max-width: 900px) {
    .features-static-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .features-static-grid { grid-template-columns: 1fr; }
}

.feature-carousel-section {
    width: 100%;
    background: var(--bg-elevated);
    padding: var(--section-gap) 0;
    overflow: hidden;
}
.feature-carousel-head {
    max-width: var(--container);
    margin: 0 auto 48px;
    padding: 0 var(--section-pad);
    text-align: center;
}
.feature-carousel-section .section-head { margin-bottom: 12px; }
.feature-carousel-section .section-sub { margin-bottom: 0; }

.feature-carousel-wrap {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.feature-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: max-content;
    padding: 0 24px;
    animation: featureStripScroll 50s linear infinite;
}
.feature-carousel-wrap:hover .feature-carousel-track {
    animation-play-state: paused;
}
.feature-slide {
    flex: 0 0 320px;
    width: 320px;
    min-height: 180px;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-slide-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.feature-slide-teal .feature-slide-label { color: var(--teal); }
.feature-slide-blue .feature-slide-label { color: var(--shield); }
.feature-slide-amber .feature-slide-label { color: var(--amber); }
.feature-slide h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.feature-slide p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
@keyframes featureStripScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .feature-slide { flex: 0 0 280px; width: 280px; padding: 22px 20px; min-height: 160px; }
    .feature-slide h3 { font-size: 16px; }
    .feature-carousel-track { gap: 16px; animation-duration: 45s; }
}

/* Integrations — how you can run it */
.integrations {
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 24px;
}
.integrations .section-sub { margin-bottom: 48px; }
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.integration-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.integration-item:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.integration-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.integration-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Why Areion — two-column split */
.why {
    width: 100%;
    background: var(--bg);
    padding: var(--section-gap) var(--section-pad);
}
.why-split {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.why-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.why-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.why-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}
.why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}
@media (max-width: 768px) {
    .why-split { grid-template-columns: 1fr; gap: 32px; }
}

/* How you use it — simple 3-step row */
.how-in-app {
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 24px;
}
.how-in-app-inner { margin: 0 auto; }
.how-in-app .section-head { margin-bottom: 12px; }
.how-in-app-lead {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 48px 0;
}
.how-in-app-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.how-step {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 700;
    color: var(--teal);
    background: var(--bg-elevated);
    border-radius: 50%;
    margin-bottom: 16px;
}
.how-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .how-in-app-steps { grid-template-columns: 1fr; }
}

/* Features — colored left border by group */
.features {
    background: var(--bg-elevated);
    padding: 100px 24px;
}

.features .section-head { margin-bottom: 48px; }

.features-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px 22px 28px;
    border-left: 4px solid var(--border);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), border-left-color 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--shadow);
}
.feature-card:nth-child(3n+1) { border-left-color: var(--teal); }
.feature-card:nth-child(3n+2) { border-left-color: var(--shield); }
.feature-card:nth-child(3n+3) { border-left-color: var(--amber); }
.feature-card:hover:nth-child(3n+1) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(13, 148, 136, 0.12); }
.feature-card:hover:nth-child(3n+2) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(37, 99, 235, 0.12); }
.feature-card:hover:nth-child(3n+3) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(217, 119, 6, 0.12); }
[data-theme="dark"] .feature-card:hover:nth-child(3n+1) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(45, 212, 191, 0.14); }
[data-theme="dark"] .feature-card:hover:nth-child(3n+2) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(96, 165, 250, 0.14); }
[data-theme="dark"] .feature-card:hover:nth-child(3n+3) { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(251, 191, 36, 0.14); }

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--text);
}
.feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Vertical slit — Nueva.tech-style split with numbered list */
.vertical-slit {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left gap right";
    align-items: stretch;
    min-height: 70vh;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--section-gap) clamp(var(--section-pad), 5vw, 80px);
    gap: 0;
}
.vertical-slit-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 56px;
}
.vertical-slit-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}
.vertical-slit-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.vertical-slit-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}
.vertical-slit-gap {
    grid-area: gap;
    width: 4px;
    min-height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 15%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.12) 85%,
        transparent 100%
    );
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .vertical-slit-gap {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 15%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 85%,
        transparent 100%
    );
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);
}
.vertical-slit-right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 56px;
}
.vertical-slit-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.vertical-slit-item:last-child { border-bottom: none; }
.vertical-slit-num {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.vertical-slit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}
.vertical-slit-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 400px;
}

@media (max-width: 768px) {
    .vertical-slit {
        grid-template-columns: 1fr;
        grid-template-areas: "left" "gap" "right";
        grid-template-rows: auto auto auto;
    }
    .vertical-slit-gap {
        width: 100%;
        height: 4px;
        min-height: 4px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 50%,
            transparent 100%
        );
    }
    [data-theme="dark"] .vertical-slit-gap {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 100%
        );
    }
    .vertical-slit-left { padding-right: 0; padding-bottom: 24px; }
    .vertical-slit-right { padding-left: 0; padding-top: 24px; }
}

/* Steps — horizontal row of blocks */
.steps {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--section-pad);
}
.steps .section-head { margin-bottom: 40px; }
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.step-block {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
    background: var(--bg-elevated);
    border-radius: 50%;
    margin-bottom: 16px;
}
.step-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.step-block p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.steps-docs {
    margin: 0;
    text-align: center;
    font-size: 15px;
}
.steps-docs a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}
.steps-docs a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .steps-row { grid-template-columns: 1fr; }
}

/* Use cases — full-width bands */
.use-cases {
    width: 100%;
    padding: 0;
}
.use-cases .section-head {
    max-width: var(--container);
    margin: 0 auto 40px auto;
    padding: 0 var(--section-pad);
}
.use-cases-bands {
    display: flex;
    flex-direction: column;
}
.use-band {
    padding: 48px var(--section-pad);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.use-band h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}
.use-band p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}
.use-band-lint {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.use-band-shield {
    background: var(--bg);
}
.use-band-crawl {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

/* Workflows — example workflows */
.workflows {
    width: 100%;
    padding: 100px 24px;
    background: var(--bg-elevated);
}
.workflows .section-sub { margin-bottom: 48px; }
.workflows-list {
    max-width: 640px;
    margin: 0 auto;
}
.workflow {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.workflow:last-child { border-bottom: none; }
.workflow-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
}
.workflow-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.workflow-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.faq {
    width: 100%;
    padding: var(--section-gap) var(--section-pad);
    background: var(--bg-elevated);
}
.faq .section-head { max-width: 720px; margin: 0 auto 48px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Quote block */
.quote-block {
    width: 100%;
    padding: 80px 24px;
    background: var(--bg-elevated);
}
.quote {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    border: none;
    text-align: center;
}
.quote p {
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}
.quote p::before { content: '"'; }
.quote p::after { content: '"'; }

/* Resources / Next steps */
.resources {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--section-pad);
}
.resources .section-sub { margin-bottom: 48px; }
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.resource-card {
    display: block;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.resource-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.resource-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.resource-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Stats — colored numbers */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 80px;
    padding: var(--section-gap) var(--section-pad);
    background: var(--bg-card);
}

.stat {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 32px;
    border-radius: var(--radius);
    min-width: 160px;
    transition: transform 0.3s var(--ease-spring), background 0.3s;
}
.stat:hover {
    transform: scale(1.05);
    background: var(--bg-elevated);
}
.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.stat-teal .stat-num { color: var(--teal); }
.stat-emerald .stat-num { color: var(--shield); }
.stat-amber .stat-num { color: var(--amber); }

/* CTA */
.cta {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--section-gap) var(--section-pad) 120px;
    text-align: center;
}
.cta .section-head { margin-bottom: 12px; }
.cta p {
    margin: 0 0 28px 0;
    color: var(--text-muted);
    font-size: 17px;
}
.cta.reveal .btn {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}
.cta.reveal.in-view .btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.55s;
}
.cta .btn:hover {
    animation: ctaPulse 0.5s var(--ease-out);
}


/* Footer — horizontal split: brand left, links right */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 48px var(--section-pad) 0;
    margin-top: 64px;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand-block {
    flex: 0 1 280px;
}

.footer-brand {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-brand:hover {
    color: var(--teal);
}

.footer-tagline {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--teal);
}

.footer-bottom {
    padding: 24px 0 32px;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.9;
}

@media (max-width: 640px) {
    .footer-main {
        flex-direction: column;
        gap: 36px;
    }
    .footer-brand-block {
        flex: none;
    }
    .footer-nav {
        gap: 32px;
    }
}

/* Subpages — same theme as homepage (gradient band at top, no dots) */
.page--themed {
    position: relative;
    min-height: 100%;
}
.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    min-height: 420px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--hero-glow-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, var(--hero-glow-2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 60%, var(--hero-glow-3), transparent);
    animation: gradientShift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
.page--themed .page-content {
    position: relative;
    z-index: 1;
}
.page--themed .page-hero {
    padding-top: 24px;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px var(--section-pad) 100px;
}

.page-hero {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}
.page-hero p {
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
}

.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 36px 0 14px 0;
}
.page-body h2:first-child { margin-top: 0; }
.page-body .section-head { margin-top: 40px; }
.page-body .section-head:first-child { margin-top: 0; }
.page-body .section-sub { margin-bottom: 24px; }
.page-body p {
    margin: 0 0 18px 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}
.page-body-lead {
    margin-bottom: 28px;
    font-size: 17px;
}
.page-body a {
    color: var(--teal);
    text-decoration: none;
}
.page-body a:hover {
    text-decoration: underline;
}
.page-body ul {
    margin: 0 0 18px 0;
    padding-left: 24px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}
.page-body li {
    margin-bottom: 8px;
}
.page-body li:last-child {
    margin-bottom: 0;
}

/* Dashboard — Supabase-style: sidebar + main */
.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.dashboard-page .page-bg { display: none; }
body:has(#dashboard.active) .navbar,
body:has(#dashboard.active) .navbar-backdrop,
body:has(#dashboard.active) .footer { display: none !important; }

.dashboard-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.2s, width 0.2s;
}
.dashboard-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}
.dashboard-sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.dashboard-sidebar-logo:hover { color: var(--teal); }
.dashboard-sidebar-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.dashboard-sidebar-account-avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.dashboard-sidebar-account-info {
    min-width: 0;
    flex: 1;
}
.dashboard-sidebar-account-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-sidebar-account-org {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.dashboard-sidebar-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px 12px 6px;
}
.dashboard-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
}
.dashboard-sidebar-link:hover {
    background: var(--bg);
    color: var(--text);
}
.dashboard-sidebar-link--active {
    background: var(--bg);
    color: var(--text);
    font-weight: 500;
}
.dashboard-sidebar-link--teal .dashboard-sidebar-icon { color: var(--teal); }
.dashboard-sidebar-link--teal:hover { color: var(--teal); }
.dashboard-sidebar-link--shield .dashboard-sidebar-icon { color: var(--shield); }
.dashboard-sidebar-link--shield:hover { color: var(--shield); }
.dashboard-sidebar-link--amber .dashboard-sidebar-icon { color: var(--amber); }
.dashboard-sidebar-link--amber:hover { color: var(--amber); }
.dashboard-sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
.dashboard-sidebar-link--btn {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.dashboard-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
}
.dashboard-sidebar-user {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 12px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dashboard-main {
    flex: 1;
    margin-left: 248px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}
.dashboard-main-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}
.dashboard-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 16px 0 0 16px;
    padding: 36px 40px 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.dashboard-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}
.dashboard-subtitle {
    font-size: 32px;
    color: #fff;
    margin: 0;
}
.dashboard-body { max-width: none; width: 100%; }
/* Projects page */
.projects-body { padding-top: 0; }
.projects-toolbar {
    margin-bottom: 20px;
}
.projects-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}
.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.projects-table th {
    text-align: left;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.projects-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.projects-table tbody tr:last-child td { border-bottom: none; }
.projects-table-name { font-weight: 600; color: var(--text); }
.projects-empty-row td {
    color: var(--text-muted);
    font-size: 14px;
}
.projects-empty-create {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    text-decoration: underline;
}
.projects-empty-create:hover { color: var(--teal-bright); }
.dashboard-create-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--teal);
    background: transparent;
    border: 2px solid var(--teal);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dashboard-create-project-btn:hover {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
[data-theme="dark"] .dashboard-create-project-btn:hover {
    color: var(--bg);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.2);
}
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.dashboard-metric {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-metric:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}
.dashboard-metric-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.dashboard-metric-value.dashboard-metric-value--teal { color: var(--teal); }
.dashboard-metric-value.dashboard-metric-value--muted { color: var(--text-muted); }
.dashboard-metric-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.dashboard-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.dashboard-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}
.dashboard-section { margin-bottom: 28px; }
.dashboard-section:last-child { margin-bottom: 0; }
.dashboard-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 14px 0;
}
.dashboard-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dashboard-table th {
    text-align: left;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.dashboard-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.dashboard-table tbody tr:last-child td { border-bottom: none; }
.dashboard-table tbody tr:hover td { background: var(--bg); }
.dashboard-table-empty td {
    color: var(--text-muted);
    font-style: normal;
    padding: 28px 20px;
    text-align: center;
}
.dashboard-results {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 16px 16px 0;
    padding: 24px;
    box-shadow: -1px 0 0 var(--border);
}
.dashboard-results-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text);
}
.dashboard-results-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.dashboard-results-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
.dashboard-view {
    min-height: 0;
}
.dashboard-view[hidden] {
    display: none !important;
}
.dashboard-placeholder {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
.dashboard-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}
.dashboard-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.dashboard-stat-card {
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 180px;
    transition: box-shadow 0.2s;
}
.dashboard-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.dashboard-stat-card--teal .dashboard-stat-value { color: var(--teal); }
.dashboard-stat-card--shield .dashboard-stat-value { color: var(--shield); }
.dashboard-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
}
.dashboard-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}
.dashboard-activity {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.dashboard-activity-empty {
    padding: 24px 28px;
    font-size: 14px;
    color: var(--text-muted);
}
.dashboard-activity-empty a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}
.dashboard-activity-empty a:hover {
    text-decoration: underline;
}
.dashboard-section-actions {
    margin-bottom: 0;
}
.dashboard-section-actions .btn {
    display: inline-block;
}
.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.dashboard-module-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dashboard-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.dashboard-module-card--teal .dashboard-module-card-icon {
    background: rgba(13, 148, 136, 0.15);
    color: var(--teal);
}
.dashboard-module-card--shield .dashboard-module-card-icon {
    background: rgba(37, 99, 235, 0.15);
    color: var(--shield);
}
.dashboard-module-card--amber .dashboard-module-card-icon {
    background: rgba(217, 119, 6, 0.15);
    color: var(--amber);
}
.dashboard-module-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}
.dashboard-module-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}
.dashboard-module-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}
.dashboard-section--violet .dashboard-section-title {
    color: var(--violet);
}
.dashboard-section--violet {
    padding: 20px 24px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
}
[data-theme="dark"] .dashboard-section--violet {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.2);
}
.dashboard-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.dashboard-quicklink {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dashboard-quicklink:hover {
    transform: translateY(-1px);
}
.dashboard-quicklink--teal {
    background: rgba(13, 148, 136, 0.15);
    color: var(--teal);
}
.dashboard-quicklink--teal:hover {
    background: rgba(13, 148, 136, 0.25);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}
.dashboard-quicklink--shield {
    background: rgba(37, 99, 235, 0.15);
    color: var(--shield);
}
.dashboard-quicklink--shield:hover {
    background: rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.dashboard-quicklink--amber {
    background: rgba(217, 119, 6, 0.15);
    color: var(--amber);
}
.dashboard-quicklink--amber:hover {
    background: rgba(217, 119, 6, 0.25);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.dashboard-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.dashboard-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
}
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .dashboard-sidebar.is-open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; padding: 56px 20px 32px; }
    .dashboard-main-inner { flex-direction: column; }
    .dashboard-panel { border-right: 1px solid var(--border); border-radius: 16px; }
    .dashboard-results { width: 100%; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
    .dashboard-sidebar-toggle { display: flex; }
}


/* Auth (login / signup) */
.auth-wrap {
    max-width: 420px;
    margin: 0 auto;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px 28px;
    box-shadow: var(--shadow);
    transition: border-color 0.3s, box-shadow 0.3s var(--ease-out);
}
.auth-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
}
.auth-card--centered {
    text-align: center;
}
.auth-verify-note {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}
.auth-verify-note a {
    color: var(--teal);
    font-weight: 600;
}
[data-theme="dark"] .auth-card:hover {
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.12);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-message {
    display: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}
.auth-message--error {
    display: block;
    background: rgba(220, 53, 69, 0.12);
    color: #c82333;
}
[data-theme="dark"] .auth-message--error {
    background: rgba(220, 53, 69, 0.2);
    color: #f5a0a8;
}
.auth-message--success {
    display: block;
    background: rgba(19, 115, 51, 0.12);
    color: #0f6b2e;
}
[data-theme="dark"] .auth-message--success {
    background: rgba(19, 115, 51, 0.2);
    color: #6ee7a0;
}
.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.auth-form input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input::placeholder {
    color: var(--text-muted);
}
.auth-form input:hover {
    border-color: var(--text-muted);
}
.auth-form input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--hero-glow-1);
}

/* Agreement checkbox (signup) */
.form-group--checkbox {
    gap: 0;
}
.auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.auth-form .checkbox-label input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.auth-form .checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-form .checkbox-label:hover .checkbox-box {
    border-color: var(--text-muted);
}
.auth-form .checkbox-label input[type="checkbox"]:focus + .checkbox-box {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--hero-glow-1);
}
.auth-form .checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    background: var(--teal);
    border-color: var(--teal);
}
.auth-form .checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    margin: 3px 0 0 6px;
    border: solid var(--btn-primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
[data-theme="dark"] .auth-form .checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
    border-color: var(--btn-primary-color);
}
.auth-form .checkbox-text {
    flex: 1;
}
.auth-form .checkbox-text a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}
.auth-form .checkbox-text a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}
.auth-footer {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
}
.auth-footer a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* Section head in page body (Docs) */
.page-body .section-head { margin-top: 36px; }
.page-body .section-sub { margin-bottom: 24px; }

/* Docs: module blocks with homepage colors (teal, shield, amber) */
.doc-modules {
    display: grid;
    gap: 24px;
    margin: 32px 0 40px;
}
.doc-module {
    position: relative;
    padding: 24px 24px 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left-width: 4px;
    transition: border-color 0.3s, box-shadow 0.3s var(--ease-out);
}
.doc-module--teal { border-left-color: var(--teal); }
.doc-module--shield { border-left-color: var(--shield); }
.doc-module--amber { border-left-color: var(--amber); }
.doc-module:hover {
    box-shadow: var(--shadow);
}
.doc-module h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
    transition: color 0.2s;
}
.doc-module--teal h3 { color: var(--teal); }
.doc-module--shield h3 { color: var(--shield); }
.doc-module--amber h3 { color: var(--amber); }
.doc-module p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Section head left-aligned (e.g. About) */
.section-head--left {
    text-align: left;
    margin-bottom: 12px;
}

.about-intro {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.65;
}
.about-block {
    margin-bottom: 48px;
    padding-top: 32px;
    padding-left: 24px;
    border-top: 1px solid var(--border);
    border-left: 4px solid var(--border);
    transition: border-left-color 0.2s;
}
.about-block:first-of-type {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}
.about-block--teal { border-left-color: var(--teal); }
.about-block--shield { border-left-color: var(--shield); }
.about-block--amber { border-left-color: var(--amber); }
.about-block--violet { border-left-color: var(--violet); }
.about-block .section-head--left {
    margin-top: 0;
    font-size: 20px;
    text-align: left;
    color: var(--text);
}
.about-block--teal .section-head--left { color: var(--teal); }
.about-block--shield .section-head--left { color: var(--shield); }
.about-block--amber .section-head--left { color: var(--amber); }
.about-block--violet .section-head--left { color: var(--violet); }
.about-block h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.about-block p {
    margin: 0;
}
.about-block p + p {
    margin-top: 14px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: 24px;
    padding-top: 24px;
    width: 100%;
    max-width: 1422px;
    margin: 0 auto;
    justify-content: center;
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0 32px;
    width: 67vw;
    max-width: 67vw;
    position: relative;
    left: 50%;
    margin-left: -33.5vw; /* half of 67vw to center on viewport */
}
.pricing-divider--full {
    width: 100%;
    max-width: none;
    left: 0;
    margin-left: 0;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    padding-top: 40px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
    transition: height 0.3s var(--ease-out), opacity 0.3s;
}
.pricing-card--teal::before { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.pricing-card--shield::before { background: linear-gradient(90deg, var(--shield), var(--shield-bright)); }
.pricing-card--amber::before { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }
.pricing-card--violet::before { background: var(--violet); }
.pricing-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: transparent;
}
.pricing-card:hover::before { height: 6px; opacity: 1; }
.pricing-card:hover.pricing-card--teal {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(13, 148, 136, 0.12);
}
.pricing-card:hover.pricing-card--shield {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(37, 99, 235, 0.12);
}
.pricing-card:hover.pricing-card--amber {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(217, 119, 6, 0.12);
}
.pricing-card:hover.pricing-card--violet {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(124, 58, 237, 0.12);
}
[data-theme="dark"] .pricing-card:hover.pricing-card--teal {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(45, 212, 191, 0.14);
}
[data-theme="dark"] .pricing-card:hover.pricing-card--shield {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(96, 165, 250, 0.14);
}
[data-theme="dark"] .pricing-card:hover.pricing-card--amber {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(251, 191, 36, 0.14);
}
[data-theme="dark"] .pricing-card:hover.pricing-card--violet {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(167, 139, 250, 0.14);
}

.pricing-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text);
    transition: color 0.2s;
}
.pricing-card--teal:hover h2 { color: var(--teal); }
.pricing-card--shield:hover h2 { color: var(--shield); }
.pricing-card--amber:hover h2 { color: var(--amber); }
.pricing-card--violet:hover h2 { color: var(--violet); }
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}
.pricing-features li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

/* Add-ons: same card style as main pricing */
.extras-pricing {
    padding-top: 24px;
    padding-bottom: 48px;
}
.extras-pricing .section-head { margin-bottom: 12px; }
.extras-pricing .section-sub { margin-bottom: 32px; }
.extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: 24px;
    width: 100%;
    max-width: 1422px;
    margin: 0 auto;
    justify-content: center;
}
@media (max-width: 900px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }
}
.extra-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    padding-top: 40px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.extra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.8;
    transition: height 0.3s var(--ease-out), opacity 0.3s;
}
.extra-card--teal::before { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.extra-card--violet::before { background: var(--violet); }
.extra-card--amber::before { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }
.extra-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: transparent;
}
.extra-card:hover::before { height: 6px; opacity: 1; }
.extra-card:hover.extra-card--teal {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(13, 148, 136, 0.12);
}
.extra-card:hover.extra-card--violet {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(124, 58, 237, 0.12);
}
.extra-card:hover.extra-card--amber {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(217, 119, 6, 0.12);
}
[data-theme="dark"] .extra-card:hover.extra-card--teal {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(45, 212, 191, 0.14);
}
[data-theme="dark"] .extra-card:hover.extra-card--violet {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(167, 139, 250, 0.14);
}
[data-theme="dark"] .extra-card:hover.extra-card--amber {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(251, 191, 36, 0.14);
}
.extra-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text);
    transition: color 0.2s;
}
.extra-card--teal:hover h3 { color: var(--teal); }
.extra-card--violet:hover h3 { color: var(--violet); }
.extra-card--amber:hover h3 { color: var(--amber); }
.extra-card .pricing-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
    margin: 0 0 16px 0;
}
.extra-card p:not(.pricing-price) {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
    text-align: left;
}

/* ========== Mobile & small devices ========== */
@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    .navbar {
        height: 64px;
        padding: 0 16px;
    }
    .navbar-toggle {
        display: flex;
    }
    .navbar-right {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 12px;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        display: none;
    }
    .navbar.is-open .navbar-right {
        display: flex;
    }
    .navbar-separator {
        display: none;
    }
    .navbar ul {
        flex-direction: column;
        gap: 0;
    }
    .navbar ul a {
        display: inline-block;
        padding: 10px 12px;
        min-height: 40px;
        box-sizing: border-box;
    }
    .hero {
        min-height: 60vh;
        padding: 48px 20px 64px;
    }
    .hero-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 16px;
    }
    .hero-tagline {
        font-size: 17px;
    }
    .hero-content .btn {
        min-height: 48px;
        padding: 14px 24px;
    }
    .accuracy-section {
        padding: 32px 20px 28px;
    }
    .accuracy-statement {
        font-size: clamp(26px, 6vw, 36px);
    }
    .section-head {
        font-size: 24px;
    }
    .section-sub {
        font-size: 15px;
        padding: 0 16px;
    }
    .page-content {
        padding: 32px 20px 56px;
    }
    .page-hero h1 {
        font-size: 28px;
    }
    .page-hero p {
        font-size: 16px;
    }
    .page-body h2 {
        font-size: 20px;
    }
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    .product-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat {
        min-width: auto;
        width: 100%;
    }
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .cta {
        padding: 64px 20px 80px;
    }
    .pricing-divider--full {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 16px 56px;
    }
    .accuracy-section {
        padding: 28px 16px 24px;
    }
    .accuracy-statement {
        font-size: clamp(22px, 5.5vw, 28px);
    }
    .page-content {
        padding: 28px 16px 48px;
    }
}
