/* ==========================================================================
   Wolpha.eu – Stylesheet
   1. Tokens  2. Reset  3. Base  4. Utilities  5. Buttons  6. Header
   7. Hero  8. Sections  9. Bento  10. Highlights  11. Agent panel
   12. Steps  13. CTA  14. Footer  15. Legal dialogs  16. Reveal  17. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg: #0b0b0d;
    --bg-alt: #0f1014;
    --surface: #14151a;
    --surface-2: #1b1d24;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);

    --text: #f4f5f7;
    --text-muted: #a1a6b3;
    --text-dim: #6b7080;

    --accent: #3b82f6;
    --accent-2: #22d3ee;
    --accent-soft: rgba(59, 130, 246, .14);
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --glow: 0 0 0 1px rgba(59, 130, 246, .35), 0 10px 40px -10px rgba(59, 130, 246, .45);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section-y: clamp(5rem, 10vw, 8rem);
    --header-h: 72px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* 3. Base ------------------------------------------------------------------ */
body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* static grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { color: var(--text-muted); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

/* 4. Utilities ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: .75rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 5. Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(59, 130, 246, .8); }

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }

.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.1rem; }

/* 6. Header ---------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(11, 11, 13, .72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img { width: 120px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
    position: relative;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s;
}
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 3rem) 0 6rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/img/bg.jpg");
    background-image: image-set(url("/assets/img/bg.webp") type("image/webp"), url("/assets/img/bg.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    opacity: .55;
    transform: scale(1.05);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(11, 11, 13, .2) 0%, rgba(11, 11, 13, .85) 70%),
        linear-gradient(180deg, rgba(11, 11, 13, .4) 0%, rgba(11, 11, 13, 0) 30%, var(--bg) 100%);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: min(900px, 120vw);
    aspect-ratio: 1;
    left: 50%;
    top: 45%;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .28) 0%, rgba(34, 211, 238, .08) 40%, transparent 70%);
    filter: blur(20px);
    animation: glow-pulse 8s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: .8; scale: 1; }
    50% { opacity: 1; scale: 1.08; }
}

.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero-title img {
    width: min(560px, 82vw);
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(59, 130, 246, .25));
}

.hero-tagline {
    margin-top: 1.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.hero-lead {
    max-width: 38rem;
    margin-top: 1.25rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    translate: -50% 0;
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-strong);
    border-radius: 999px;
}
.scroll-indicator span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    translate: -50% 0;
    border-radius: 4px;
    background: var(--accent-2);
    animation: scroll-dot 2s var(--ease) infinite;
}
@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* 8. Sections -------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* 9. Bento ----------------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .12), transparent 60%);
    opacity: 0;
    transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-wide { grid-column: span 2; }

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, .25);
    color: var(--accent-2);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: .6rem; }
.card p { font-size: 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tags li {
    padding: .35rem .8rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
}

/* 10. Highlights ----------------------------------------------------------- */
.highlights { display: grid; gap: clamp(5rem, 10vw, 8rem); }

.feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}
.feature-reverse .feature-media { order: 2; }

.feature-text h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1.25rem; }

.checklist { display: grid; gap: .75rem; margin-top: 1.75rem; }
.checklist li {
    position: relative;
    padding-left: 2rem;
    color: var(--text);
    font-size: 1rem;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.feature-media { position: relative; }
.feature-media::before {
    content: "";
    position: absolute;
    inset: 10% 5%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(59, 130, 246, .35), transparent);
    filter: blur(40px);
}

.media-light,
.media-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}
.media-light { background: #fff; padding: clamp(1rem, 3vw, 2rem); }
.media-photo img { width: 100%; transition: transform .8s var(--ease); }
.media-photo:hover img { transform: scale(1.04); }

/* 11. Agent panel ---------------------------------------------------------- */
.agent-panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}

.agent-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
}
.agent-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); } }
.agent-status {
    margin-left: auto;
    padding: .2rem .65rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent-2);
    background: rgba(34, 211, 238, .1);
    border-radius: 999px;
}

.agent-steps { display: grid; gap: .75rem; position: relative; }
.agent-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
}
.agent-steps div { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.agent-steps strong { font-size: .95rem; font-weight: 600; }
.agent-steps small { font-size: .8rem; color: var(--text-dim); }

.agent-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 1rem;
}
.agent-check {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient);
}

/* sequential "run" animation once visible */
.js .agent-steps li { opacity: .35; transition: opacity .5s var(--ease), border-color .5s; }
.js .agent-steps .agent-check { transform: scale(0); transition: transform .4s var(--ease); }
.js .feature.is-visible .agent-steps li { opacity: 1; }
.js .feature.is-visible .agent-steps .agent-check { transform: scale(1); }
.js .feature.is-visible .agent-steps li:nth-child(1), .js .feature.is-visible .agent-steps li:nth-child(1) .agent-check { transition-delay: .4s; }
.js .feature.is-visible .agent-steps li:nth-child(2), .js .feature.is-visible .agent-steps li:nth-child(2) .agent-check { transition-delay: 1s; }
.js .feature.is-visible .agent-steps li:nth-child(3), .js .feature.is-visible .agent-steps li:nth-child(3) .agent-check { transition-delay: 1.6s; }
.js .feature.is-visible .agent-steps li:nth-child(4), .js .feature.is-visible .agent-steps li:nth-child(4) .agent-check { transition-delay: 2.2s; }

/* 12. Steps ---------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: none;
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 2.45rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .5), rgba(34, 211, 238, .5), transparent);
}

.step {
    position: relative;
    padding: 1.5rem 1.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: rgba(59, 130, 246, .35); transform: translateY(-4px); }

.step-num {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.5rem;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(59, 130, 246, .5);
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .975rem; }

/* 13. CTA ------------------------------------------------------------------ */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: calc(var(--radius-lg) + 8px);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(59, 130, 246, .3);
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .section-lead { max-width: 34rem; margin-inline: auto; margin-bottom: 2.5rem; }
.cta-glow {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 0;
    width: 80%;
    height: 70%;
    translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, .45), transparent);
    filter: blur(30px);
}
.noscript-email { margin-top: 1.5rem; color: var(--text); font-weight: 600; }

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
    padding-top: clamp(3.5rem, 7vw, 5rem);
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand img { width: 140px; height: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; }

.social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: color .2s, border-color .2s, background-color .2s;
}
.social a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h2 {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: .95rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-block: 1.75rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: .85rem; color: var(--text-dim); }

/* 15. Legal dialogs -------------------------------------------------------- */
.legal {
    width: min(760px, calc(100% - 2rem));
    max-height: min(85vh, 900px);
    margin: auto;
    padding: 0;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
}
.legal::backdrop { background: rgba(5, 5, 8, .7); backdrop-filter: blur(6px); }
.legal:focus, .legal:focus-visible { outline: none; }
.legal[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.legal-inner { display: flex; flex-direction: column; max-height: inherit; }
.legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}
.legal-head h2 { font-size: 1.5rem; }
.legal-close {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    transition: color .2s, border-color .2s;
}
.legal-close:hover { color: var(--text); border-color: var(--accent); }

.legal-body { padding: 1.5rem 2rem 2rem; overflow-y: auto; }
.legal-body h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: .975rem; }
.legal-body a { color: var(--accent-2); }
.legal-note {
    margin-top: 2rem;
    padding: .9rem 1.1rem;
    font-size: .9rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, .25);
}

/* No-JS fallback: show legal section inline when targeted */
html:not(.js) .legal:target {
    display: block;
    position: static;
    margin: 2rem auto;
}

/* 16. Reveal --------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .bento .reveal:nth-child(3n), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero .reveal:nth-child(2) { transition-delay: .1s; }
.js .hero .reveal:nth-child(3) { transition-delay: .2s; }
.js .hero .reveal:nth-child(4) { transition-delay: .3s; }
.js .hero .reveal:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* 17. Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .card-wide { grid-column: span 2; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        padding: 1.5rem var(--gutter) 2rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }
    .site-header.is-open .site-nav { opacity: 1; transform: none; visibility: visible; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .site-nav a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.1rem; }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin-top: 1rem; width: 100%; padding-block: 1rem; }

    .bento { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; }

    .feature { grid-template-columns: 1fr; }
    .feature-reverse .feature-media { order: 0; }

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

    .legal-head, .legal-body { padding-inline: 1.25rem; }
}

@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .card { padding: 1.5rem; }
    .agent-panel { padding: 1rem; }
}
