/* ================================================================
   ExtremeTrades — public site (landing, legal)
   ----------------------------------------------------------------
   Requires theme.css to be linked first (design tokens live there).
   Shares the palette with the member dashboard so signing in doesn't
   feel like landing on a different product.
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;   /* fixed nav must not cover #anchors */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Marketing links carry their own styling per component. */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }

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

.gradient {
    background: linear-gradient(120deg, #6b91ff 0%, #8aa9ff 45%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hide-sm { display: inline-flex; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: var(--s-4) 0;
    border-bottom: 1px solid transparent;
    transition: background var(--t-base), border-color var(--t-base), padding var(--t-base);
}

.nav.scrolled {
    padding: 10px 0;
    background: rgba(10, 12, 18, 0.8);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--accent), #7ea0ff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 125, 249, 0.35);
    flex-shrink: 0;
}
.brand-logo svg { width: 19px; height: 19px; }

.brand-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.nav-links .nav-link {
    padding: 8px var(--s-3);
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    font-size: var(--fs-md);
    font-weight: 550;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-links .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 11px var(--s-5);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: var(--fs-md);
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 125, 249, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 26px rgba(79, 125, 249, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--text-tertiary);
}

.btn-lg {
    padding: 14px var(--s-8);
    font-size: var(--fs-lg);
}

.btn-arrow { transition: transform var(--t-base); flex-shrink: 0; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    padding: 176px 0 var(--s-12);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(840px 470px at 50% -6%, rgba(79, 125, 249, 0.22), transparent 68%),
        radial-gradient(620px 400px at 82% 22%, rgba(34, 197, 94, 0.10), transparent 66%),
        radial-gradient(520px 340px at 14% 34%, rgba(138, 169, 255, 0.08), transparent 66%);
}

/* Faint grid, masked so it dissolves before reaching the copy */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(760px 420px at 50% 10%, #000 18%, transparent 76%);
    -webkit-mask-image: radial-gradient(760px 420px at 50% 10%, #000 18%, transparent 76%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 6px var(--s-4);
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-strong);
    font-size: var(--fs-sm);
    font-weight: 550;
    color: var(--text-secondary);
    margin-bottom: var(--s-6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    animation: blink 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.42; }
}

h1.hero-title,
.hero-title {
    font-size: clamp(2.5rem, 6.2vw, 4.3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    max-width: 900px;
    margin: 0 auto var(--s-5);
}

.hero-subtitle {
    max-width: 660px;
    margin: 0 auto var(--s-8);
    font-size: clamp(1rem, 1.6vw, 1.175rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--s-4);
}

.hero-note {
    font-size: var(--fs-md);
    color: var(--text-tertiary);
    margin-bottom: var(--s-12);
}

/* ---- Product preview window ---- */
.hero-preview {
    max-width: 960px;
    margin: 0 auto;
    perspective: 1600px;
}

.preview-window {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: rotateX(5deg);
    transform-origin: top center;
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: 10px var(--s-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.preview-titlebar .dots { display: flex; gap: 6px; }
.preview-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.preview-titlebar .dot.r { background: #ff5f57; }
.preview-titlebar .dot.y { background: #febc2e; }
.preview-titlebar .dot.g { background: #28c840; }

.preview-url {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.preview-body { padding: var(--s-5); background: var(--bg-primary); }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.preview-card {
    padding: var(--s-3) var(--s-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: left;
}
.preview-card .label {
    font-size: var(--fs-2xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 650;
    margin-bottom: 3px;
}
.preview-card .value {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.preview-card .value.pos { color: var(--success); }
.preview-card .value.neg { color: var(--danger); }

.preview-chart {
    height: 168px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-4);
    overflow: hidden;
}
.preview-chart svg { width: 100%; height: 100%; display: block; }

.chart-line {
    fill: none;
    stroke: var(--success);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.45));
}
.chart-area { fill: url(#chartGrad); }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-section {
    padding: var(--s-12) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.012);
}

.stats-label {
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: var(--s-8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
    text-align: center;
}

.stat-item .stat-value {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-1);
    background: linear-gradient(140deg, #fff, #9db4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
    font-size: var(--fs-md);
    color: var(--text-secondary);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: var(--s-12) 0; position: relative; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.steps-section {
    background: linear-gradient(180deg, transparent, rgba(79, 125, 249, 0.028) 50%, transparent);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--s-12);
}

.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: var(--s-3);
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-4);
}

.section-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.65;
}

.section-tinted { background: rgba(0, 0, 0, 0.2); }

/* ================================================================
   SHARED CARD SURFACE
   ================================================================ */
.step-card,
.feature-card,
.usecase-card,
.security-card,
.pricing-card,
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.step-card:hover,
.feature-card:hover,
.usecase-card:hover,
.security-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ---- Steps ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: var(--s-5);
}

.step-card { padding: var(--s-8) var(--s-6) var(--s-6); position: relative; }

.step-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid rgba(79, 125, 249, 0.32);
    color: var(--accent);
    font-size: var(--fs-lg);
    font-weight: 800;
    margin-bottom: var(--s-4);
}

.step-title { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--s-2); letter-spacing: -0.015em; }
.step-desc  { font-size: var(--fs-md); color: var(--text-secondary); line-height: 1.65; }

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
    gap: var(--s-5);
}

.feature-card { padding: var(--s-6); }

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid rgba(79, 125, 249, 0.28);
    color: var(--accent);
    margin-bottom: var(--s-4);
}
.feature-icon svg { width: 21px; height: 21px; }

/* Semantic accents — risk controls read amber, kill switch reads red */
.feature-card.variant-success .feature-icon {
    background: var(--success-soft);
    border-color: rgba(34, 197, 94, 0.28);
    color: var(--success);
}
.feature-card.variant-warning .feature-icon {
    background: var(--warning-soft);
    border-color: rgba(245, 158, 11, 0.28);
    color: var(--warning);
}
.feature-card.variant-danger .feature-icon {
    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, 0.28);
    color: var(--danger);
}
.feature-card.variant-success:hover { border-color: rgba(34, 197, 94, 0.4); }
.feature-card.variant-warning:hover { border-color: rgba(245, 158, 11, 0.4); }
.feature-card.variant-danger:hover  { border-color: rgba(239, 68, 68, 0.4); }

.feature-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--s-2); letter-spacing: -0.012em; }
.feature-desc  { font-size: var(--fs-md); color: var(--text-secondary); line-height: 1.68; }

/* ---- Use cases ---- */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(318px, 1fr));
    gap: var(--s-5);
}

.usecase-card {
    padding: var(--s-6);
    display: flex;
    gap: var(--s-4);
    align-items: flex-start;
}

.usecase-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid rgba(79, 125, 249, 0.28);
    color: var(--accent);
    flex-shrink: 0;
}
.usecase-icon svg { width: 21px; height: 21px; }

.usecase-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; letter-spacing: -0.012em; }
.usecase-desc  { font-size: var(--fs-md); color: var(--text-secondary); line-height: 1.65; }

/* ---- Security ---- */
.security-section {
    background: rgba(255, 255, 255, 0.012);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: var(--s-5);
}

.security-card { padding: var(--s-6); text-align: center; }

.security-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--s-4);
    border-radius: var(--r-md);
    background: var(--success-soft);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: var(--success);
}
.security-icon svg { width: 22px; height: 22px; }

.security-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--s-2); }
.security-desc  { font-size: var(--fs-md); color: var(--text-secondary); line-height: 1.65; }

/* ================================================================
   PRICING
   ================================================================ */
.pricing-card {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--s-10);
    text-align: center;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.pricing-flag {
    display: inline-block;
    background: var(--success-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    padding: 6px var(--s-4);
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--s-5);
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--s-2);
    margin-bottom: var(--s-2);
    flex-wrap: wrap;
}

.price-amount {
    font-size: clamp(2.6rem, 7vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #6b91ff, #a8bfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-amount.is-fee { background: linear-gradient(135deg, #22c55e, #6ee7a0); -webkit-background-clip: text; background-clip: text; }

.price-unit { color: var(--text-secondary); font-size: var(--fs-lg); }
.price-note { color: var(--text-secondary); font-size: var(--fs-md); }
.price-note strong { color: var(--text-primary); }

.price-divider {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: var(--s-6) 0;
    color: var(--text-tertiary);
    font-weight: 650;
}
.price-divider::before,
.price-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.price-divider span { font-size: var(--fs-xs); letter-spacing: 0.12em; }

.price-list {
    list-style: none;
    padding: 0;
    margin: var(--s-8) 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
.price-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--fs-md);
    color: var(--text-secondary);
}
.price-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 800;
    line-height: 1.5;
    flex-shrink: 0;
}

.pricing-card .btn-lg { display: inline-flex; margin-top: var(--s-8); }

/* ---- Explainer panel (high-water mark) ---- */
.explainer { max-width: 880px; margin: 56px auto 0; }

.explainer-title {
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-3);
    text-align: center;
}

.explainer-lede {
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.65;
    margin: 0 auto var(--s-8);
    text-align: center;
    max-width: 620px;
}
.explainer-lede strong { color: var(--text-primary); }

.panel { padding: var(--s-8); }
.panel h4 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 6px; }
.panel-note { color: var(--text-secondary); font-size: var(--fs-md); margin-bottom: var(--s-5); }

.table-scroll { overflow-x: auto; margin-bottom: var(--s-6); }

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.data-table th,
.data-table td { padding: 10px var(--s-2); }
.data-table thead tr { border-bottom: 1px solid var(--border-strong); }
.data-table th {
    text-align: right;
    font-weight: 700;
    color: var(--text-tertiary);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.data-table th:first-child,
.data-table td:first-child { text-align: left; }
.data-table td { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr { border-bottom: 1px solid var(--border-subtle); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table .fee { color: var(--success); font-weight: 700; }
.data-table .delta { color: var(--text-tertiary); font-size: var(--fs-xs); }

.walkthrough {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.65;
}
.walkthrough strong { color: var(--text-primary); }
.walkthrough .fee { color: var(--success); }

.panel-footnotes {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-5);
    font-size: var(--fs-sm);
}
.panel-footnotes dt { font-weight: 700; color: var(--text-primary); margin-bottom: var(--s-1); }
.panel-footnotes dd { color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- Long-form legal disclosure ---- */
.disclosure {
    max-width: 920px;
    margin: 0 auto;
    padding: var(--s-8) var(--s-10);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    font-size: var(--fs-md);
    line-height: 1.72;
    color: var(--text-secondary);
}
.disclosure h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text-primary);
    margin: var(--s-6) 0 var(--s-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.disclosure h3:first-child { margin-top: 0; }
.disclosure p { margin: 0 0 var(--s-1); }
.disclosure strong { color: var(--text-primary); }
.disclosure ul { padding-left: var(--s-6); margin: 0; }
.disclosure li { margin-bottom: 2px; }
.disclosure .uppercase {
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.03em;
}
.disclosure .footnote {
    margin-top: var(--s-8);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
    color: var(--text-tertiary);
    font-style: italic;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta { padding: var(--s-12) 0 104px; text-align: center; }

.final-cta-inner {
    position: relative;
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
    padding: var(--s-12) var(--s-8);
    border-radius: var(--r-xl);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(79, 125, 249, 0.2), transparent 70%),
        var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
}

/* Hairline highlight along the top edge */
.final-cta-inner::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.final-cta h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--s-4);
}

.final-cta p {
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto var(--s-8);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--s-8) 0;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
    color: var(--text-tertiary);
    font-size: var(--fs-sm);
}

.footer-links {
    display: flex;
    gap: var(--s-5);
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text-primary); }

/* ================================================================
   LEGAL PAGE
   ================================================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: var(--fs-md);
    transition: color var(--t-fast);
}
.back-link:hover { color: var(--accent); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Staggered entrance within a grid */
.steps-grid    .reveal:nth-child(2),
.features-grid .reveal:nth-child(2),
.usecases-grid .reveal:nth-child(2),
.security-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.steps-grid    .reveal:nth-child(3),
.features-grid .reveal:nth-child(3),
.usecases-grid .reveal:nth-child(3),
.security-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.steps-grid    .reveal:nth-child(4),
.features-grid .reveal:nth-child(4),
.usecases-grid .reveal:nth-child(4),
.security-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* .visible is added by JS. If motion is reduced — or JS never runs —
   content must still be readable, so never hold it at opacity 0. */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ================================================================
   SCROLLBARS
   ================================================================ */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-full);
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); background-clip: content-box; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .hide-sm,
    .nav-link.hide-sm { display: none; }

    .container { padding: 0 var(--s-5); }

    .hero { padding: 132px 0 var(--s-10); }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }

    .preview-window { transform: none; }
    .preview-body { padding: var(--s-4); }

    .pricing-card { padding: var(--s-6); }
    .panel { padding: var(--s-5); }
    .disclosure { padding: var(--s-6); }
    .explainer { margin-top: var(--s-8); }

    .final-cta { padding: var(--s-10) 0 var(--s-12); }
    .final-cta-inner { padding: var(--s-8) var(--s-5); }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .preview-grid { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
    .preview-card { padding: var(--s-2) var(--s-3); }
    .preview-card .value { font-size: var(--fs-lg); }
    .usecase-card { flex-direction: column; gap: var(--s-3); }
}
