:root {
  color-scheme: dark;
  --gate-bg: #0b1214;
  --gate-surface: #101c20;
  --gate-raised: #152429;
  --gate-line: #293c41;
  --gate-ink: #edf3f2;
  --gate-muted: #96aab0;
  --gate-green: #8adc7b;
  --gate-orange: #efb65f;
  --gate-blue: #73bce9;
  --accent: var(--gate-green);
  --accent-rgb: 138, 220, 123;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-cerber-theme="orange"] { --accent: var(--gate-orange); --accent-rgb: 239, 182, 95; }
:root[data-cerber-theme="blue"] { --accent: var(--gate-blue); --accent-rgb: 115, 188, 233; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; background: var(--gate-bg); color: var(--gate-ink); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #08100a; background: var(--accent); }

.gate-skip { position: fixed; z-index: 100; top: -80px; left: 18px; padding: 11px 14px; border-radius: 4px; background: var(--accent); color: #08100a; font-size: 12px; font-weight: 700; }
.gate-skip:focus { top: 16px; }
.gate-grid { position: fixed; inset: 0; pointer-events: none; opacity: .36; background-image: linear-gradient(rgba(68, 103, 109, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(68, 103, 109, .12) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.gate-grid::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: 18%; border: 1px solid rgba(var(--accent-rgb), .1); border-radius: 50%; box-shadow: 0 0 0 90px rgba(var(--accent-rgb), .025), 0 0 0 180px rgba(var(--accent-rgb), .018); }
.gate-page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.gate-header { min-height: 92px; padding: 0 clamp(22px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--gate-line); background: rgba(8, 16, 18, .84); backdrop-filter: blur(18px); }
.gate-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 21px; line-height: 1.05; font-weight: 750; letter-spacing: .055em; }
.gate-brand small { display: block; margin-top: 7px; color: var(--gate-muted); font-size: 7px; font-weight: 500; letter-spacing: .17em; }
.gate-brand-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.2; }
.gate-brand-dot { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 5px var(--accent)); }
.gate-header-status { display: flex; align-items: center; gap: 11px; min-width: 182px; padding: 10px 13px; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 6px; background: rgba(var(--accent-rgb), .045); }
.gate-header-status > i { width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); animation: gate-diamond 1.6s ease-in-out infinite; }
.gate-header-status > span { color: var(--gate-ink); font-size: 9px; letter-spacing: .1em; }
.gate-header-status small { display: block; margin-top: 3px; color: var(--accent); font-size: 8px; }

.gate-main { width: min(1240px, calc(100% - 48px)); margin: auto; padding: clamp(44px, 7vh, 84px) 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); gap: clamp(46px, 7vw, 98px); align-items: center; }
.gate-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.gate-eyebrow > span { width: 19px; height: 1px; background: var(--accent); }
.gate-triad { display: flex; gap: 7px; margin: 0 0 24px; }
.gate-triad i { display: block; height: 3px; border-radius: 999px; animation: gate-triad-pulse 3.6s ease-in-out infinite; }
.gate-triad i:nth-child(1) { width: 52px; background: var(--gate-green); }
.gate-triad i:nth-child(2) { width: 30px; background: var(--gate-orange); animation-delay: .25s; }
.gate-triad i:nth-child(3) { width: 18px; background: var(--gate-blue); animation-delay: .5s; }
.gate-intro h1 { margin: 0 0 24px; font-size: clamp(39px, 4.5vw, 64px); font-weight: 620; line-height: 1.08; letter-spacing: -.052em; }
.gate-intro h1 em { color: var(--accent); font-style: normal; }
.gate-lead { max-width: 530px; margin: 0; color: var(--gate-muted); font-size: 14px; line-height: 1.85; }
.gate-stages { max-width: 540px; margin: 39px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--gate-line); }
.gate-stages li { display: grid; grid-template-columns: 34px 1fr 12px; gap: 13px; align-items: center; min-height: 66px; border-bottom: 1px solid var(--gate-line); color: #647d84; transition: color .2s, padding .2s; }
.gate-stages li > span { font-size: 9px; font-variant-numeric: tabular-nums; }
.gate-stages b { display: block; color: currentColor; font-size: 12px; font-weight: 650; }
.gate-stages small { display: block; margin-top: 2px; color: #647d84; font-size: 9px; }
.gate-stages li > i { width: 7px; height: 7px; justify-self: center; border: 1px solid currentColor; transform: rotate(45deg); }
.gate-stages li.is-active { padding-left: 8px; color: var(--accent); }
.gate-stages li.is-active > i { background: var(--accent); box-shadow: 0 0 11px rgba(var(--accent-rgb), .75); animation: gate-diamond 1.25s ease-in-out infinite; }
.gate-stages li.is-complete { color: #b7c8ca; }
.gate-stages li.is-complete > i { border-color: var(--accent); background: var(--accent); }

.gate-console { position: relative; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .38); border-radius: 10px; background: linear-gradient(145deg, rgba(22, 36, 41, .98), rgba(10, 21, 25, .985)); box-shadow: 0 28px 80px rgba(0, 0, 0, .34), 0 0 42px rgba(var(--accent-rgb), .045); }
.gate-console::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 42%; height: 2px; background: var(--gate-green); box-shadow: 160px 0 0 var(--gate-orange), 300px 0 0 var(--gate-blue); opacity: .8; }
.gate-console-head { min-height: 76px; padding: 20px 25px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--gate-line); }
.gate-console-head small { display: block; margin-bottom: 5px; color: var(--accent); font-size: 8px; letter-spacing: .14em; }
.gate-console-head strong { font-size: 13px; letter-spacing: .055em; }
.gate-console-head > span { min-width: 60px; padding: 7px 9px; border: 1px solid var(--gate-line); border-radius: 4px; color: var(--gate-muted); font-size: 9px; text-align: center; font-variant-numeric: tabular-nums; }
.gate-scan { margin: 25px 25px 0; padding: 23px; display: grid; grid-template-columns: 116px 1fr; gap: 24px; align-items: center; border: 1px solid var(--gate-line); border-radius: 7px; background: rgba(4, 13, 16, .35); }
.gate-radar { width: 108px; height: 108px; position: relative; border: 1px solid rgba(var(--accent-rgb), .72); border-radius: 50%; box-shadow: 0 0 26px rgba(var(--accent-rgb), .1), inset 0 0 20px rgba(var(--accent-rgb), .05); }
.gate-ring { position: absolute; inset: 18%; border: 1px solid rgba(var(--accent-rgb), .43); border-radius: 50%; }
.gate-ring-two { inset: 36%; }
.gate-radar > i, .gate-radar > b { position: absolute; background: rgba(var(--accent-rgb), .38); }
.gate-radar > i { top: 4%; bottom: 4%; left: 50%; width: 1px; }
.gate-radar > b { top: 50%; right: 4%; left: 4%; height: 1px; }
.gate-radar > em { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 76%, rgba(var(--accent-rgb), .05) 82%, rgba(var(--accent-rgb), .76) 99%, transparent); animation: gate-sweep 2.25s linear infinite; }
.gate-radar > em::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.gate-scan-copy small { color: #718a91; font-size: 8px; letter-spacing: .13em; }
.gate-scan-copy h2 { margin: 7px 0 7px; font-size: clamp(22px, 3vw, 30px); font-weight: 580; letter-spacing: -.03em; }
.gate-scan-copy p { margin: 0; color: var(--gate-muted); font-size: 11px; line-height: 1.6; }
.gate-progress-copy { margin: 25px 25px 9px; display: flex; justify-content: space-between; gap: 16px; color: #769097; font-size: 8px; letter-spacing: .12em; }
.gate-progress-copy b { color: var(--accent); font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gate-progress { height: 8px; margin: 0 25px; overflow: hidden; border: 1px solid var(--gate-line); border-radius: 3px; background: #061014; }
.gate-progress span { display: block; width: 7%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .46), var(--accent)); box-shadow: 0 0 15px rgba(var(--accent-rgb), .42); transition: width .28s ease; }
.gate-status { min-height: 49px; padding: 13px 25px 5px; display: flex; align-items: center; gap: 10px; color: var(--gate-muted); font-size: 11px; line-height: 1.45; }
.gate-status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: gate-pulse 1.15s ease-in-out infinite; }
.gate-confirm { width: calc(100% - 50px); min-height: 54px; margin: 15px 25px 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--accent); border-radius: 6px; background: rgba(var(--accent-rgb), .08); color: var(--gate-ink); font-size: 11px; font-weight: 750; letter-spacing: .075em; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.gate-confirm svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.gate-confirm:not(:disabled):hover { background: rgba(var(--accent-rgb), .17); box-shadow: 0 0 22px rgba(var(--accent-rgb), .12); transform: translateY(-1px); }
.gate-confirm:disabled { cursor: wait; opacity: .48; }
.gate-facts { margin: 24px 25px 25px; padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; border-top: 1px solid var(--gate-line); }
.gate-facts div { min-width: 0; }
.gate-facts dt { margin-bottom: 4px; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.gate-facts dd { margin: 0; color: #718a91; font-size: 8px; line-height: 1.45; }

.gate-footer { min-height: 66px; padding: 0 170px 0 clamp(22px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--gate-line); color: #637b82; font-size: 8px; letter-spacing: .075em; }
.gate-footer > span { display: flex; align-items: center; gap: 8px; color: #85a08f; }
.gate-footer > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(var(--accent-rgb), .65); }
.gate-footer small { font: inherit; text-align: right; }
.cerber-theme-picker { position: fixed; z-index: 60; right: 18px; bottom: 16px; min-height: 38px; padding: 6px 8px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 5px; background: rgba(7, 17, 20, .94); box-shadow: 0 10px 34px rgba(0, 0, 0, .38); backdrop-filter: blur(12px); }
.cerber-theme-picker > span { margin-right: 2px; color: #718991; font-size: 8px; letter-spacing: .12em; }
.cerber-theme-picker button { width: 22px; height: 22px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; cursor: pointer; opacity: .62; transition: transform .18s, opacity .18s, box-shadow .18s; }
.cerber-theme-picker .theme-choice-green { --choice: var(--gate-green); background: var(--gate-green); }
.cerber-theme-picker .theme-choice-orange { --choice: var(--gate-orange); background: var(--gate-orange); }
.cerber-theme-picker .theme-choice-blue { --choice: var(--gate-blue); background: var(--gate-blue); }
.cerber-theme-picker button:hover { opacity: 1; transform: translateY(-1px); }
.cerber-theme-picker button.active { opacity: 1; box-shadow: 0 0 0 2px #071114, 0 0 0 3px var(--choice), 0 0 11px var(--choice); }
html.cerber-animated-cursor, html.cerber-animated-cursor * { cursor: none !important; }
.cerber-cursor-overlay { --cursor-x: -100px; --cursor-y: -100px; position: fixed; z-index: 2147483647; top: 0; left: 0; width: 34px; height: 42px; pointer-events: none; opacity: 0; background: var(--accent); mask: var(--cursor-default-mask) 0 0 / contain no-repeat; transform: translate3d(calc(var(--cursor-x) - 1px), calc(var(--cursor-y) - 3px), 0); transform-origin: 2px 4px; will-change: transform; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .65)); }
.cerber-cursor-overlay.visible { opacity: 1; }
.cerber-cursor-overlay[data-kind="pointer"] { mask-image: var(--cursor-pointer-mask); transform: translate3d(calc(var(--cursor-x) - 15px), var(--cursor-y), 0); transform-origin: 16px 1px; }
.cerber-cursor-overlay.pressed { scale: .91; }
body.gate-error .gate-status i { background: #ef6a70; box-shadow: 0 0 10px #ef6a70; animation: none; }
body.gate-error .gate-console { border-color: rgba(239, 106, 112, .48); }

@keyframes gate-sweep { to { transform: rotate(360deg); } }
@keyframes gate-pulse { 50% { opacity: .3; transform: scale(.65); } }
@keyframes gate-diamond { 50% { opacity: .42; box-shadow: 0 0 3px rgba(var(--accent-rgb), .25); } }
@keyframes gate-triad-pulse { 0%, 100% { opacity: .55; transform: scaleX(.9); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); } }

@media (max-width: 920px) {
  .gate-main { grid-template-columns: 1fr; width: min(690px, calc(100% - 40px)); gap: 42px; }
  .gate-intro h1 { max-width: 670px; }
  .gate-lead, .gate-stages { max-width: none; }
}
@media (min-width: 921px) and (max-height: 780px) {
  .gate-header { min-height: 76px; }
  .gate-main { padding-block: 24px; }
  .gate-intro h1 { font-size: clamp(38px, 4vw, 54px); margin-bottom: 18px; }
  .gate-lead { line-height: 1.65; }
  .gate-stages { margin-top: 25px; }
  .gate-stages li { min-height: 52px; }
  .gate-console-head { min-height: 62px; padding-block: 15px; }
  .gate-scan { margin-top: 18px; padding-block: 16px; grid-template-columns: 96px 1fr; }
  .gate-radar { width: 88px; height: 88px; }
  .gate-progress-copy { margin-top: 18px; }
  .gate-status { min-height: 42px; padding-top: 10px; }
  .gate-confirm { min-height: 50px; margin-top: 10px; }
  .gate-facts { margin-top: 18px; margin-bottom: 18px; padding-top: 15px; }
  .gate-footer { min-height: 54px; }
}
@media (max-width: 560px) {
  .gate-header { min-height: 78px; padding-inline: 18px; }
  .gate-brand { gap: 9px; font-size: 18px; }
  .gate-brand small { font-size: 6px; letter-spacing: .1em; }
  .gate-brand-icon { width: 34px; height: 34px; }
  .gate-header-status { min-width: 0; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .gate-header-status > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gate-main { width: calc(100% - 28px); padding-block: 34px 44px; gap: 34px; }
  .gate-eyebrow { font-size: 8px; }
  .gate-intro h1 { font-size: clamp(35px, 11vw, 48px); }
  .gate-lead { font-size: 13px; }
  .gate-stages { margin-top: 28px; }
  .gate-stages li { min-height: 60px; }
  .gate-console-head { min-height: 68px; padding-inline: 18px; }
  .gate-scan { margin: 18px 18px 0; padding: 20px 16px; grid-template-columns: 84px 1fr; gap: 16px; }
  .gate-radar { width: 82px; height: 82px; }
  .gate-progress-copy { margin: 22px 18px 8px; }
  .gate-progress { margin-inline: 18px; }
  .gate-status { padding-inline: 18px; font-size: 10px; }
  .gate-confirm { width: calc(100% - 36px); margin-inline: 18px; font-size: 9px; }
  .gate-facts { margin: 21px 18px 20px; grid-template-columns: 1fr; gap: 10px; }
  .gate-facts div { display: grid; grid-template-columns: 42px 1fr; gap: 8px; }
  .gate-facts dt { margin: 0; }
  .gate-footer { min-height: 84px; padding: 16px 112px 16px 18px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .gate-footer small { text-align: left; line-height: 1.5; }
  .cerber-theme-picker { right: 12px; bottom: 18px; }
  .cerber-theme-picker > span { display: none; }
  .cerber-theme-picker button { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
