/* knoxdefender.com v3 "midnight": dark glowing hero, live gateway simulation, scroll story, bento, motion.
   Loaded after site.css. Every animation is decorative: content is complete without it, and
   prefers-reduced-motion turns motion off. No inline styles (CSP): dynamic values come from CSSOM in site.js. */
:root {
  --night: #050a14; --night-2: #0a1222; --night-3: #101b31; --night-line: rgba(148, 163, 184, .14); --night-line-2: rgba(148, 163, 184, .24);
  --on-night: #e6edf7; --on-night-2: #a9b8cd; --on-night-3: #8596b0;
  --glow: #10b981; --glow-2: #22d3ee; --glow-3: #a78bfa;
  --grad: linear-gradient(100deg, #34d399 0%, #22d3ee 45%, #a78bfa 100%);
}

/* ---------- Header: dark glass everywhere ---------- */
.site-header { background: rgba(5, 10, 20, .96); border-bottom: 1px solid var(--night-line); backdrop-filter: saturate(1.6) blur(14px); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(5, 10, 20, .9); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
body.home .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header .brand { color: #fff; }
.site-header .nav-link, .site-header .nav-menu > summary { color: var(--on-night-2); }
.site-header .nav-link:hover, .site-header .nav-menu > summary:hover, .site-header .nav-menu[open] > summary, .site-header .nav-link[aria-current] { color: #fff; background: rgba(255, 255, 255, .07); }
.site-header .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); }
.site-header .btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.site-header .mobile-nav summary { border-color: rgba(255, 255, 255, .2); }
.site-header .mobile-nav summary span { background: #fff; }
.mobile-nav nav { background: var(--night); border-top-color: var(--night-line); }
.mobile-nav nav a { color: var(--on-night); border-bottom-color: var(--night-line); }
.mobile-group { color: var(--on-night-3); }
.mobile-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn-glow { position: relative; overflow: hidden; isolation: isolate; border: 0; color: #04130d; background: linear-gradient(100deg, #34d399, #22d3ee); box-shadow: 0 8px 30px -8px rgba(16, 185, 129, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-glow:hover { color: #04130d; background: linear-gradient(100deg, #6ee7b7, #67e8f9); box-shadow: 0 12px 38px -8px rgba(34, 211, 238, .65), inset 0 1px 0 rgba(255, 255, 255, .55); transform: translateY(-1px); }
.btn-glow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 8s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }

/* ---------- HERO ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; margin-top: -70px; padding: calc(70px + clamp(3rem, 7vw, 6rem)) 0 clamp(4.5rem, 8vw, 7rem); background: var(--night); color: var(--on-night); min-height: min(940px, max(720px, 100vh)); display: flex; align-items: center; }
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.aurora.a1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora.a2 { width: 560px; height: 560px; right: -140px; top: 10%; background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora.a3 { width: 520px; height: 520px; left: 35%; bottom: -260px; background: radial-gradient(circle, rgba(167, 139, 250, .38), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-160px, -80px) scale(1.2); } }
.hx-gridlines { position: absolute; inset: -1px; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%); }
.hx-noise { position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 3px 3px; mix-blend-mode: overlay; }
.hx-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hx-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem .4rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-night-2); font-size: 13.5px; text-decoration: none; backdrop-filter: blur(6px); transition: border-color .2s, color .2s; }
.hx-pill:hover { color: #fff; border-color: rgba(52, 211, 153, .6); }
.hx-pill b { color: #04130d; background: linear-gradient(100deg, #34d399, #22d3ee); border-radius: 999px; padding: .08rem .55rem; font-size: 12px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hx-title { color: #fff; font-size: clamp(42px, 5.3vw, 76px); line-height: 1; letter-spacing: -.045em; margin: 1.4rem 0 1.4rem; }
.hx-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-title .ln > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hx-title .ln:nth-child(2) > span { animation-delay: .12s; }
.hx-title .ln:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { from { transform: translateY(105%); opacity: 0; } }
.hx-lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--on-night-2); max-width: 560px; animation: fadeUp .9s .4s var(--ease) both; }
.hx .cta-row { animation: fadeUp .9s .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.hx-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: 0; margin: .4rem 0 0; color: var(--on-night-3); font-size: 14px; animation: fadeUp .9s .6s var(--ease) both; }
.hx-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.hx-facts .icon { color: #34d399; }
.hx-scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.hx-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* Gateway simulation */
.gw { position: relative; margin: 0; animation: fadeUp 1s .35s var(--ease) both; }
.gw-tag { position: absolute; top: -14px; left: 18px; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--on-night); background: rgba(10, 18, 34, .95); border: 1px solid var(--night-line-2); border-radius: 999px; padding: .2rem .65rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #f87171; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gw-shell { position: relative; padding: 1.4rem; border-radius: 22px; background: linear-gradient(180deg, rgba(16, 27, 49, .85), rgba(8, 14, 28, .9)); border: 1px solid var(--night-line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -30px rgba(34, 211, 238, .35); backdrop-filter: blur(10px); overflow: hidden; }
.gw-shell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(52, 211, 153, .55), transparent 35%, transparent 65%, rgba(167, 139, 250, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gw-label { margin: 0 0 .5rem; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); }
.gw-lane { min-height: 112px; }
.gw-msg { display: grid; grid-template-columns: 38px 1fr; gap: .2rem .75rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); transition: transform .7s var(--ease), opacity .5s; }
.gw-msg.enter { animation: msgIn .7s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-26px) scale(.96); } }
.gw-msg.leave-ok { transform: translate(-34%, 150px) scale(.55); opacity: 0; }
.gw-msg.leave-bad { transform: translate(34%, 150px) scale(.55); opacity: 0; }
.gw-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 13px; grid-row: span 2; }
.gw-av.ok { background: var(--mint); color: var(--accent-ink); }
.gw-meta { display: grid; line-height: 1.25; min-width: 0; }
.gw-meta b { font-size: 14px; }
.gw-meta span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-subj { grid-column: 2; margin: .1rem 0 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-core { position: relative; margin: 1rem 0; padding: 1rem 1rem .9rem; border-radius: 16px; background: rgba(5, 10, 20, .7); border: 1px solid var(--night-line-2); overflow: hidden; }
.gw-beam { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .16), rgba(34, 211, 238, .5) 50%, transparent 52%); opacity: 0; pointer-events: none; }
.gw.scanning .gw-beam { animation: beam 1.3s linear infinite; opacity: 1; }
@keyframes beam { to { transform: translateY(350%); } }
.gw-core-head { display: flex; align-items: center; gap: .55rem; color: #fff; font-size: 14px; margin-bottom: .65rem; }
.gw-logo .brand-mark, .gw-logo svg { width: 20px; height: 20px; display: block; }
.gw-score { margin-left: auto; font: 700 15px var(--head); color: var(--on-night-2); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.gw-score.bad { color: #fca5a5; } .gw-score.ok { color: #6ee7b7; }
.gw-checks { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .35rem; min-height: 112px; }
.gw-checks li { display: flex; align-items: center; gap: .55rem; font-size: 13px; color: var(--on-night-2); opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
.gw-checks li.pending { opacity: 0; transform: translateX(-8px); }
.gw-checks li i { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.gw-checks li.ok i { background: rgba(52, 211, 153, .18); color: #34d399; } .gw-checks li.ok i::before { content: "✓"; }
.gw-checks li.bad i { background: rgba(248, 113, 113, .18); color: #f87171; } .gw-checks li.bad i::before { content: "!"; }
.gw-checks li.bad { color: #fecaca; }
.gw-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gw-meter span { display: block; height: 100%; width: var(--score, 0%); border-radius: inherit; background: linear-gradient(90deg, #34d399, #fbbf24 55%, #f87171); transition: width .9s var(--ease); }
.gw-meter span.m86 { width: 86%; }
.gw-bins { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.gw-bin { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); color: var(--on-night); transition: border-color .3s, box-shadow .3s; }
.gw-bin div { display: grid; line-height: 1.2; } .gw-bin b { font-size: 13.5px; } .gw-bin small { color: var(--on-night-3); font-size: 11.5px; }
.gw-bin strong { margin-left: auto; font: 800 24px var(--head); font-variant-numeric: tabular-nums; }
.gw-bin-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.gw-bin.ok .gw-bin-ic { background: rgba(52, 211, 153, .15); color: #34d399; } .gw-bin.ok strong { color: #6ee7b7; }
.gw-bin.bad .gw-bin-ic { background: rgba(248, 113, 113, .15); color: #f87171; } .gw-bin.bad strong { color: #fca5a5; }
.gw-bin.bump { animation: bump .6s var(--ease); }
.gw-bin.ok.bump { border-color: rgba(52, 211, 153, .6); box-shadow: 0 0 30px -8px rgba(52, 211, 153, .6); }
.gw-bin.bad.bump { border-color: rgba(248, 113, 113, .6); box-shadow: 0 0 30px -8px rgba(248, 113, 113, .6); }
@keyframes bump { 40% { transform: scale(1.05); } }
.gw-stamp { position: absolute; right: 26px; top: 46px; pointer-events: none; opacity: 0; transform: rotate(-10deg) scale(1.6); transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.gw-stamp span { display: block; font: 800 22px var(--head); letter-spacing: .12em; padding: .25rem .8rem; border: 3px solid currentColor; border-radius: 10px; color: #f87171; background: rgba(5, 10, 20, .7); }
.gw-stamp.ok span { color: #34d399; }
.gw-stamp.show { opacity: 1; transform: rotate(-10deg) scale(1); }

/* ---------- Marquee ---------- */
.marquee { background: var(--night); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); padding: 1.1rem 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0 1.2rem; }
.marquee li { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-night-2); font-weight: 500; white-space: nowrap; font-size: 15px; }
.mq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(52, 211, 153, .8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll story ---------- */
.story { padding: clamp(5rem, 9vw, 8rem) 0; background: radial-gradient(1000px 500px at 85% 10%, rgba(16, 185, 129, .07), transparent 60%), #fff; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.center-head .eyebrow { justify-content: center; }
.soft { color: var(--ink-3); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-steps { position: relative; padding-left: 2.2rem; }
.story-rail { position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story-rail span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(#34d399, #22d3ee, #a78bfa); }
.story-step { min-height: min(62vh, 560px); display: flex; flex-direction: column; justify-content: center; position: relative; opacity: .35; transition: opacity .5s var(--ease); }
.story-step::before { content: ""; position: absolute; left: calc(-2.2rem + 1px); top: 50%; width: 14px; height: 14px; margin-top: -2.2rem; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); transition: border-color .3s, box-shadow .3s, background .3s; }
.story-step.on { opacity: 1; }
.story-step.on::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(16, 185, 129, .15); }
.story-n { font: 800 14px var(--head); letter-spacing: .1em; color: var(--accent-ink); margin-bottom: .4rem; }
.story-step h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.story-step p { color: var(--ink-2); font-size: 17px; max-width: 460px; }
.story-stage { position: sticky; top: max(100px, calc(50vh - 190px)); height: 380px; }
.stage-card { position: absolute; inset: 0; padding: 1.5rem; border-radius: 22px; background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--on-night); border: 1px solid var(--night-line-2); box-shadow: 0 40px 80px -40px rgba(5, 10, 20, .55); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); display: flex; flex-direction: column; gap: .9rem; }
.stage-card.on { opacity: 1; transform: none; }
.stage-card::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(closest-side, rgba(34, 211, 238, .18), transparent); pointer-events: none; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sc-head small { color: var(--on-night-3); }
.sc-title { font: 700 20px/1.25 var(--head); color: #fff; margin: 0; }
.sc-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sc-reasons li { display: flex; gap: .8rem; align-items: center; padding: .55rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); color: var(--on-night-2); font-size: 14.5px; }
.sc-reasons b { color: #fca5a5; font-variant-numeric: tabular-nums; min-width: 2.4em; }
.sc-note { margin: auto 0 0; font-size: 12.5px; color: var(--on-night-3); }
.vault { display: grid; gap: .6rem; }
.vault-row { display: grid; grid-template-columns: auto 140px 1fr; gap: .7rem; align-items: center; font-size: 14px; color: var(--on-night-2); }
.vault-row .icon { color: #34d399; }
.vault-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.vault-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #22d3ee); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.stage-card.on .vault-bar span { transform: scaleX(1); }
.stage-card.on .vault-bar .v1 { transition-delay: .15s; } .stage-card.on .vault-bar .v2 { transition-delay: .3s; } .stage-card.on .vault-bar .v3 { transition-delay: .45s; transform: scaleX(.62); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: .9rem; padding: 0 0 1.25rem; color: var(--on-night-2); }
.flow li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--night-line-2); }
.flow li:last-child::before { display: none; }
.flow li > span { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--night-line-2); background: var(--night); }
.flow li.done > span { background: #34d399; border-color: #34d399; box-shadow: 0 0 16px rgba(52, 211, 153, .6); }
.flow li.cur > span { border-color: #22d3ee; box-shadow: 0 0 0 5px rgba(34, 211, 238, .18); animation: blink 1.6s infinite; }
.flow b { color: #fff; } .flow small { color: var(--on-night-3); }
.ledger { display: grid; gap: .45rem; }
.ledger-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); font-size: 13px; color: var(--on-night-3); opacity: 0; transform: translateX(14px); transition: opacity .4s, transform .4s var(--ease); }
.ledger-row code { background: none; border: 0; color: #a7f3d0; padding: 0; }
.stage-card.on .ledger-row { opacity: 1; transform: none; }
.stage-card.on .ledger-row:nth-child(2) { transition-delay: .12s; } .stage-card.on .ledger-row:nth-child(3) { transition-delay: .24s; } .stage-card.on .ledger-row:nth-child(4) { transition-delay: .36s; }

/* ---------- Dark sections (demo, roles) ---------- */
.dark-section { position: relative; isolation: isolate; background: radial-gradient(900px 500px at 20% 0%, rgba(16, 185, 129, .14), transparent 60%), radial-gradient(800px 500px at 90% 100%, rgba(167, 139, 250, .12), transparent 60%), var(--night); color: var(--on-night); border: 0; }
.dark-section h2, .dark-section h3 { color: #fff; }
/* Light product mockups inside dark sections keep their own light-theme colours */
.dark-section .demo-frame { color: var(--ink); }
.dark-section .demo-frame h3, .dark-section .demo-frame b, .dark-section .demo-frame strong, .dark-section .demo-frame dd { color: var(--ink); }
.dark-section .demo-frame .muted, .dark-section .demo-frame small, .dark-section .demo-frame dt, .dark-section .demo-frame .reasons li > span:last-child { color: var(--ink-2); }
.dark-section .demo-frame .tiny, .dark-section .demo-frame .fine { color: var(--ink-3); }
.dark-section .demo-frame .q-title, .dark-section .demo-frame .dossier-sub { color: var(--ink-3); }
.dark-section .demo-frame code { color: var(--ink); }
.dark-section .muted, .dark-section .fine { color: var(--on-night-2); }
.dark-section .fine { border-left-color: var(--night-line-2); }
.dark-section .eyebrow { color: #6ee7b7; }
.dark-section .eyebrow::before { background: #34d399; }
.dark-section .demo-frame { box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 120px -40px rgba(34, 211, 238, .4); border-color: transparent; }
.dark-section .demo-tabs { background: rgba(255, 255, 255, .05); border-color: var(--night-line-2); }
.dark-section .demo-tabs button { color: var(--on-night-2); }
.dark-section .demo-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.dark-section .role-tabs button { color: var(--on-night-2); border-color: var(--night-line-2); background: transparent; }
.dark-section .role-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.dark-section .role-panels { background: rgba(255, 255, 255, .04); border-color: var(--night-line-2); box-shadow: none; }
.dark-section .role-panel { background: transparent; border-color: var(--night-line-2); }
.dark-section .role-panel .checks li { color: var(--on-night); }
.dark-section .checks .icon { color: #34d399; }

/* ---------- Bento pillars ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 1.1rem; }
.tile { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: .6rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--mint-line); }
.tile p { color: var(--ink-2); margin: 0; }
.tile h3 { margin: 0; }
.tile-n { font: 800 13px var(--head); letter-spacing: .1em; color: var(--accent-ink); }
.t-wide { grid-column: span 2; flex-direction: row; gap: 1.5rem; align-items: center; }
.t-wide .tile-copy { flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.t-wide .tile-vis { flex: 1; }
.t-tall { grid-row: span 2; background: linear-gradient(180deg, var(--night-2), var(--night)); border-color: var(--night-line-2); color: var(--on-night); }
.t-tall h3 { color: #fff; } .t-tall p { color: var(--on-night-2); } .t-tall .tile-n { color: #6ee7b7; }
.tile-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.verdicts { display: grid; gap: .55rem; }
.vd { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); opacity: 0; transform: translateX(16px); transition: opacity .5s, transform .5s var(--ease); }
.vd .badge { grid-row: span 2; } .vd b { font-size: 14px; } .vd small { color: var(--ink-3); font-size: 12.5px; }
.tile.in .vd, html:not(.js) .vd, .tile:not(.pending) .vd { opacity: 1; transform: none; }
.tile .vd:nth-child(2) { transition-delay: .12s; } .tile .vd:nth-child(3) { transition-delay: .24s; }
.rings { position: relative; margin: auto auto 0; width: 170px; height: 170px; }
.rings::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 211, 153, .28), transparent 70%); }
.rings svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rg-bg, .rg-fg { fill: none; stroke-width: 9; }
.rg-bg { stroke: rgba(255, 255, 255, .08); }
.rg-fg { stroke: #34d399; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.8s var(--ease); }
.tile.in .rg-fg, .tile:not(.pending) .rg-fg { stroke-dashoffset: 0; }
.rings-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings-label b { font: 800 30px var(--head); color: #fff; } .rings-label small { color: var(--on-night-3); }
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(16, 185, 129, .12), transparent 40%); }
.spot:hover::after { opacity: 1; }
.t-tall.spot::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 238, .16), transparent 40%); }
.lessons-ui .meter span { transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.tile.in .lessons-ui .meter span, .tile:not(.pending) .lessons-ui .meter span { transform: scaleX(1); }

/* ---------- Domain check band ---------- */
.dc-band { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.dc-band-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 26px; background: radial-gradient(600px 300px at 0% 0%, rgba(16, 185, 129, .25), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(167, 139, 250, .22), transparent 60%), var(--night); color: var(--on-night); overflow: hidden; }
.dc-band-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.dc-band-card h2 { color: #fff; margin-bottom: .4rem; }
.dc-band-card p { color: var(--on-night-2); margin: 0; }
.dc-band-card .eyebrow { color: #6ee7b7; } .dc-band-card .eyebrow::before { background: #34d399; }
.dc-band-form { display: flex; gap: .6rem; }
.dc-band-form input { flex: 1; min-width: 0; font-size: 16px; padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.dc-band-form input::placeholder { color: var(--on-night-3); }
.dc-band-form input:focus { outline: none; border-color: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }

/* ---------- Providers, how, cases, pricing, trust ---------- */
.provider { position: relative; overflow: hidden; border-radius: 20px; transition: transform .35s var(--ease), box-shadow .35s; }
.provider:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.how-trail { position: relative; }
.how-trail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.4s var(--ease); z-index: 0; }
.how-trail li { position: relative; z-index: 1; }
.how-n { background: #fff; box-shadow: 0 0 0 6px #fff; }
.case { position: relative; overflow: hidden; padding: 1.4rem 1.4rem 1.3rem; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.case:hover::before { transform: scaleX(1); }
.case-list { gap: 1.1rem; }
.case-tag { color: var(--accent-ink); }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--mint-line); }
.plan-col { position: relative; overflow: hidden; border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s; }
.plan-col:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.plan-col.featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 30px 70px -30px rgba(16, 185, 129, .45); }
.plan-flag { position: absolute; top: 14px; right: 14px; left: auto; width: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #04130d; background: linear-gradient(100deg, #34d399, #22d3ee); padding: .2rem .6rem; border-radius: 999px; }
.trust-list li { position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.trust-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- Final CTA ---------- */
.final-x { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.final-card { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem); border-radius: 30px; background: var(--night); color: var(--on-night); }
.final-card::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 60%, rgba(52, 211, 153, .9), rgba(34, 211, 238, .9), rgba(167, 139, 250, .9), transparent 90%); animation: spin 8s linear infinite; }
.final-card::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 29px; background: radial-gradient(800px 400px at 50% 0%, rgba(16, 185, 129, .16), transparent 60%), var(--night); }
@keyframes spin { to { transform: rotate(1turn); } }
.final-card h2 { color: #fff; font-size: clamp(30px, 4.2vw, 52px); }
.final-card p { color: var(--on-night-2); max-width: 600px; margin: 0 auto; }
.center-row { justify-content: center; margin-top: 1.8rem; }

/* ---------- Subpage heroes: same midnight language ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(700px 360px at 15% 0%, rgba(16, 185, 129, .22), transparent 60%), radial-gradient(700px 360px at 90% 100%, rgba(167, 139, 250, .18), transparent 60%), var(--night); color: var(--on-night); border-bottom: 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%); }
.page-hero h1 { color: #fff; }
.page-hero .lead, .page-hero .muted, .page-hero > .wrap > p, .page-hero > .wrap > div > p, .page-hero .hero-copy p { color: var(--on-night-2); }
.page-hero::after { height: 1px; background: var(--grad); opacity: .45; }
.page-hero .card, .page-hero .big-trail, .page-hero .mini-trail, .page-hero form, .page-hero .plan { color: var(--ink); }
.page-hero .big-trail span, .page-hero .mini-trail span { color: var(--ink-2); }
.page-hero .eyebrow { color: #6ee7b7; } .page-hero .eyebrow::before { background: #34d399; }
.page-hero a:not(.btn) { color: #6ee7b7; }
.page-hero .badge-ok { background: rgba(52, 211, 153, .15); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
.page-hero .badge-info { background: rgba(96, 165, 250, .15); color: #93c5fd; border-color: rgba(96, 165, 250, .35); }
.page-hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.page-hero .btn:not(.ghost):not(.btn-glass) { color: #04130d; border: 0; background: linear-gradient(100deg, #34d399, #22d3ee); }

/* ---------- Inner pages ---------- */
.page-hero .chip-nav a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #cfe0f3; backdrop-filter: blur(6px); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.page-hero .chip-nav a:hover { color: #fff; border-color: rgba(52, 211, 153, .6); background: rgba(52, 211, 153, .12); transform: translateY(-1px); }
.page-hero .chip-nav .icon { color: #34d399; }
main .card.spot { position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
main .card.spot:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--mint-line); }
main .page-hero .card.spot:hover { transform: none; }
.section.alt { background: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .05) 1px, transparent 0) 0 0 / 22px 22px, var(--bg); }
.hero-404 { min-height: min(78vh, 760px); display: flex; align-items: center; }
.hero-404::after { content: attr(data-code); position: absolute; left: auto; top: auto; right: -2vw; bottom: -8vw; z-index: -1; height: auto; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 clamp(200px, 34vw, 520px)/1 var(--head); letter-spacing: -.06em; opacity: .22; animation: gradShift 8s ease-in-out infinite alternate; background-size: 200% 100%; }
.related { background: var(--bg); padding-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Reveal stagger (works with site.js .reveal) ---------- */
.reveal.pending { transition-delay: var(--d, 0s); }

@media (max-width: 1000px) {
  .hx-inner, .story-grid, .dc-band-card { grid-template-columns: minmax(0, 1fr); }
  .hx { min-height: 0; }
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 1.25rem 0; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .t-wide { grid-column: span 2; }
  .t-tall { grid-row: auto; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .t-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .dc-band-form { flex-direction: column; }
  .gw-bins { grid-template-columns: 1fr 1fr; }
  .gw-shell { padding: 1rem; }
  .hx-title { font-size: clamp(40px, 12vw, 56px); }
  .how-trail::before { display: none; }
  .hx-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .aurora, .marquee-track, .final-card::before { animation: none !important; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
}
