/* 50 TOOLS CHALLENGE — mission control */
:root {
  --bg: #050608;
  --bg-2: #0a0c11;
  --panel: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .22);
  --text: #e8ecf1;
  --muted: #8a93a3;
  --dim: #4a5160;
  --volt: #c8ff2e;
  --volt-glow: rgba(200, 255, 46, .35);
  --cyan: #38e1ff;
  --hot: #ff4b2b;
  --f-display: 'Unbounded', 'Noto Sans JP', sans-serif;
  --f-jp: 'Noto Sans JP', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-jp); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--volt); color: #000; }
.mono { font-family: var(--f-mono); letter-spacing: .08em; }
.c-volt { color: var(--volt); }
.section { padding: clamp(110px, 16vw, 220px) var(--pad); position: relative; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }

/* ---------- FX overlays ---------- */
.fx-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } }
.fx-scan {
  position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.loader__inner { width: min(560px, 84vw); }
.loader__sys { font-size: 11px; color: var(--muted); }
.loader__count { font-family: var(--f-display); font-weight: 900; line-height: .9; margin: 18px 0 22px; display: flex; align-items: baseline; }
.loader__num { font-size: clamp(96px, 22vw, 200px); color: var(--volt); text-shadow: 0 0 40px var(--volt-glow); font-variant-numeric: tabular-nums; }
.loader__of { font-size: clamp(28px, 6vw, 56px); color: var(--dim); margin-left: .2em; }
.loader__bar { height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; background: var(--volt); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 14px var(--volt); }
.loader__log { margin-top: 18px; font-size: 11px; color: var(--muted); }
.loader__log li { opacity: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); transition: width .4s var(--ease), height .4s var(--ease), background .3s; }
.cursor__ring::before, .cursor__ring::after { content: ''; position: absolute; background: rgba(255,255,255,.7); }
.cursor__ring::before { left: 50%; top: -8px; bottom: -8px; width: 1px; transform: translateX(-50%); clip-path: polygon(0 0,100% 0,100% 8px,0 8px,0 calc(100% - 8px),100% calc(100% - 8px),100% 100%,0 100%); }
.cursor__ring::after { top: 50%; left: -8px; right: -8px; height: 1px; transform: translateY(-50%); clip-path: polygon(0 0,8px 0,8px 100%,0 100%,calc(100% - 8px) 0,100% 0,100% 100%,calc(100% - 8px) 100%); }
.cursor__dot { width: 4px; height: 4px; background: #fff; }
.cursor__xy { position: absolute; left: 26px; top: 16px; font-size: 9px; color: rgba(255,255,255,.7); white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 70px; height: 70px; background: rgba(255,255,255,.12); }
.cursor.is-go .cursor__ring { width: 96px; height: 96px; background: #fff; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px; padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(5,6,8,.85), rgba(5,6,8,0));
  transition: background .4s, padding .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,6,8,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 12px; border-bottom-color: var(--line); }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 14px; color: #000; background: var(--volt);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.nav__name { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--f-display); }
.nav__name b { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.nav__name i { font-style: normal; font-size: 9px; letter-spacing: .32em; color: var(--muted); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--volt); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__hud { display: flex; gap: 18px; font-size: 11px; color: var(--muted); }
.nav__hud b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav__live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--hot); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2 } }
.nav__burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-hi); background: transparent; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--text); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HUD corners ---------- */
.hud-corners { position: absolute; inset: 0; pointer-events: none; }
.hud-corners i { position: absolute; width: 18px; height: 18px; border-color: var(--volt); border-style: solid; border-width: 0; }
.hud-corners i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-corners i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.7) 34%, rgba(5,6,8,0) 62%), linear-gradient(0deg, rgba(5,6,8,.85) 0%, rgba(5,6,8,0) 40%); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center center;
  mask-image: radial-gradient(ellipse at 65% 45%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 45%, #000 0%, transparent 70%);
}
.hero > .hud-corners { inset: 88px var(--pad) 28px; }
.hero__meta { z-index: 2; position: absolute; top: 110px; left: calc(var(--pad) + 28px); display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.hero__copy { position: absolute; left: calc(var(--pad) + 28px); bottom: clamp(64px, 11vh, 120px); max-width: min(920px, 64vw); z-index: 2; }
.hero__title .line { white-space: nowrap; }
.sp-br { display: none; }
.pc-br { display: inline; }
.hero__eyebrow { display: flex; gap: 10px; font-size: 12px; color: var(--volt); margin-bottom: 22px; overflow: hidden; }
.hero__eyebrow span { display: inline-block; }
.hero__eyebrow span + span { color: var(--muted); }
.hero__title { font-weight: 900; font-size: clamp(38px, 5.3vw, 86px); line-height: 1.08; letter-spacing: -.01em; }
.hero__title-accent em { font-family: var(--f-display); font-style: normal; color: var(--volt); text-shadow: 0 0 30px var(--volt-glow); padding: 0 .04em; }
.hero__lead { margin-top: 26px; max-width: 43em; color: #b9c0cc; font-size: clamp(14px, 1.15vw, 17px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__status { position: absolute; right: calc(var(--pad) + 28px); bottom: clamp(64px, 11vh, 120px); display: flex; gap: 30px; z-index: 2; }
.hero__status div { text-align: right; }
.hero__status dt { font-size: 10px; color: var(--muted); }
.hero__status dd { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0; }
.hero__scroll { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--volt), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0) } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 15px 24px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em; overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn i { font-style: normal; font-family: var(--f-mono); transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--volt { background: var(--volt); color: #000; }
.btn--volt::before { background: #fff; }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: #000; }
.btn--lg { padding: 20px 30px; font-size: 16px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-weight: 900; font-size: clamp(30px, 4.4vw, 62px); white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232,236,241,.42); }
.marquee__track span:nth-of-type(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__track b { font-family: var(--f-mono); color: var(--volt); font-size: clamp(22px, 2.6vw, 36px); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kicker ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: clamp(30px, 4vw, 54px); }
.kicker__no { color: #000; background: var(--volt); padding: 2px 7px; font-weight: 500; }
.kicker::after { content: ''; flex: 0 0 64px; height: 1px; background: var(--line-hi); }

/* ---------- Mission ---------- */
.mission__text { font-weight: 700; font-size: clamp(24px, 3.3vw, 50px); line-height: 1.6; max-width: 1180px; letter-spacing: .01em; }
.mission__text .c { opacity: .12; }
.mission__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line); }
.stat { padding: 30px 26px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 26px; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 9vw, 150px); line-height: 1; color: var(--text); letter-spacing: -.02em; }
.stat__num small { font-size: .26em; color: var(--volt); margin-left: .25em; font-weight: 500; letter-spacing: 0; }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Board ---------- */
.board { background: radial-gradient(ellipse at 50% 0%, rgba(200,255,46,.06), transparent 60%), var(--bg); }
.board__head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 60px; align-items: end; margin-bottom: 50px; }
.board__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.board__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 10vw, 168px); line-height: .95; letter-spacing: -.03em; }
.board__lead { color: #b9c0cc; max-width: 30em; }
.board__legend { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; color: var(--muted); }
.board__legend i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: -1px; }
.board__legend .is-live i { background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.board__legend .is-queued i { border: 1px solid var(--cyan); }
.board__legend .is-locked i { border: 1px dashed var(--dim); }
.board__frame { position: relative; padding: 46px 20px 20px; border: 1px solid var(--line); background: var(--panel); }
.board__bar { position: absolute; left: 20px; right: 20px; top: 14px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.board__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; counter-reset: none; }
.slot {
  position: relative; aspect-ratio: 1 / 1.08; padding: 10px 11px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px dashed rgba(255,255,255,.1); color: var(--dim); font-family: var(--f-mono); font-size: 10px; overflow: hidden;
  transition: border-color .4s, background .4s, translate .5s var(--ease);
}
.slot__no { font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.5vw, 22px); letter-spacing: 0; color: inherit; }
.slot__tag { letter-spacing: .1em; }
.slot__name { font-family: var(--f-jp); font-weight: 700; font-size: clamp(11px, .95vw, 14px); line-height: 1.35; letter-spacing: 0; }
.slot.is-locked .slot__tag::before { content: '⌧ '; }
.slot.is-queued { border: 1px solid rgba(56,225,255,.35); color: var(--cyan); background: rgba(56,225,255,.03); }
.slot.is-queued .slot__name { color: rgba(56,225,255,.75); font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; word-break: break-all; }
.slot.is-live { border: 1px solid var(--volt); background: var(--volt); color: #000; box-shadow: 0 0 34px rgba(200,255,46,.35); }
.slot.is-live::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--volt); animation: ping 2.2s var(--ease) infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .9 } 100% { transform: scale(1.35); opacity: 0 } }
.slot.is-live .slot__tag::before { content: '● '; }
a.slot:hover { translate: 0 -4px; }
.slot:not(.is-live):hover { border-color: var(--line-hi); background: rgba(255,255,255,.04); }

/* ---------- Filter ---------- */
.filter { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.filter__intro { padding-bottom: clamp(60px, 7vw, 100px); }
.filter__title { font-weight: 900; font-size: clamp(36px, 5.4vw, 84px); line-height: 1.15; }
.funnel { display: flex; align-items: stretch; margin-top: clamp(50px, 6vw, 90px); border: 1px solid var(--line); }
.funnel__step { flex: 1; padding: 26px 24px; position: relative; }
.funnel__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; }
.funnel__label { margin-top: 10px; color: var(--muted); font-size: 14px; }
.funnel__step.is-live { background: var(--volt); color: #000; }
.funnel__step.is-live .funnel__label { color: rgba(0,0,0,.7); }
.funnel__arrow { width: 1px; background: var(--line); position: relative; }
.funnel__arrow::after { content: ''; position: absolute; top: 50%; left: -6px; width: 11px; height: 11px; border-top: 1px solid var(--line-hi); border-right: 1px solid var(--line-hi); transform: translateY(-50%) rotate(45deg); background: var(--bg-2); }
.filter__note { margin-top: 40px; max-width: 44em; color: #b9c0cc; }
.filter__pin { position: relative; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.filter__label { position: absolute; top: 13vh; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.filter__label b { color: var(--volt); font-weight: 500; }
.filter__track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.gate {
  position: relative; width: clamp(340px, 30vw, 460px); min-height: 480px; padding: 30px 30px 34px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,0) 60%);
  display: flex; flex-direction: column;
}
.gate__idx { display: flex; justify-content: space-between; font-size: 11px; color: var(--volt); }
.gate__idx span { color: var(--muted); }
.gate__en { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 3.6vw, 60px); line-height: 1; margin-top: auto; letter-spacing: -.02em; }
.gate__jp { font-weight: 700; font-size: 20px; margin-top: 18px; }
.gate__text { color: #aeb6c2; font-size: 14.5px; margin-top: 14px; min-height: 5.6em; }
.gate__meter { height: 3px; background: var(--line); margin-top: 24px; }
.gate__meter span { display: block; height: 100%; width: calc(var(--v) * 100% / .3); background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.gate--score { border-color: var(--volt); background: linear-gradient(160deg, rgba(200,255,46,.1), rgba(200,255,46,0) 70%); }
.gate__formula { font-size: 12px; color: var(--muted); margin-top: 28px; line-height: 1.7; }
.gate__result { margin-top: auto; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gate__result span { font-size: 12px; color: var(--volt); width: 100%; }
.gate__result b { font-family: var(--f-display); font-weight: 900; font-size: clamp(76px, 7vw, 116px); line-height: 1; color: var(--volt); text-shadow: 0 0 40px var(--volt-glow); letter-spacing: -.03em; }
.gate__result small { font-family: var(--f-mono); color: var(--muted); }
.filter__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 8vh; height: 1px; background: var(--line); }
.filter__progress span { display: block; height: 100%; background: var(--volt); transform: scaleX(0); transform-origin: left; }

/* ---------- Tool #01 ---------- */
.tool__head { display: flex; justify-content: space-between; align-items: flex-start; }
.tool__no { font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 20vw, 340px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(200,255,46,.5); letter-spacing: -.04em; margin-top: -.1em; }
.tool__body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 90px); align-items: center; margin-top: clamp(-120px, -6vw, -40px); }
.tool__status { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--volt); border: 1px solid rgba(200,255,46,.4); padding: 6px 12px; }
.tool__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px var(--volt); animation: blink 1.4s infinite; }
.tool__title { font-weight: 900; font-size: clamp(34px, 3.7vw, 60px); line-height: 1.15; margin-top: 22px; white-space: nowrap; }
.tool__lead { margin-top: 22px; color: #b9c0cc; }
.spec { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 38px; border-top: 1px solid var(--line); }
.spec div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.spec div:nth-child(even) { padding-left: 16px; }
.spec dt { font-size: 10px; color: var(--muted); }
.spec dd { font-family: var(--f-jp); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.spec dd small { font-size: 12px; color: var(--muted); font-weight: 500; }
.tool__shot { position: relative; display: block; }
.tool__window { border: 1px solid var(--line-hi); background: #0f0f10; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(200,255,46,.08); transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform 1s var(--ease); }
.tool__shot:hover .tool__window { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.tool__chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.tool__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #2a2d33; }
.tool__chrome span { margin-left: 10px; padding: 3px 12px; background: rgba(255,255,255,.05); }
.clip-reveal { overflow: hidden; clip-path: inset(10% 10% 10% 10%); }
.clip-reveal img { transform: scale(1.25); }
.tool__scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tool__scan::after { content: ''; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(to bottom, transparent, rgba(200,255,46,.12), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 110%; } }

/* ---------- Rules ---------- */
.rules { background: var(--bg-2); border-top: 1px solid var(--line); }
.rules__title { font-weight: 900; font-size: clamp(36px, 5.4vw, 84px); line-height: 1.15; }
.rules__list { margin-top: clamp(50px, 6vw, 90px); border-top: 1px solid var(--line); }
.rule { display: grid; grid-template-columns: minmax(120px, 2fr) 5fr; gap: 30px; padding: 36px 0; border-bottom: 1px solid var(--line); transition: background .4s; position: relative; }
.rule::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.rule:hover::before { transform: scaleX(1); }
.rule__no { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 7vw, 110px); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--line-hi); transition: color .4s, -webkit-text-stroke-color .4s; }
.rule:hover .rule__no { color: var(--volt); -webkit-text-stroke-color: var(--volt); }
.rule h3 { font-size: clamp(22px, 2.3vw, 34px); font-weight: 900; }
.rule p { color: #aeb6c2; margin-top: 10px; max-width: 38em; }

/* ---------- Plan ---------- */
.plan__title { font-weight: 900; font-size: clamp(36px, 5.4vw, 84px); line-height: 1.15; }
.plan__lead { margin-top: 22px; color: #b9c0cc; max-width: 36em; }
.plan__list { --rp: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(60px, 7vw, 110px); padding-top: 36px; }
.plan__list::before, .plan__list::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.plan__list::before { background: var(--line-hi); }
.plan__list::after { background: var(--volt); box-shadow: 0 0 12px var(--volt); transform: scaleX(var(--rp)); transform-origin: left; }
.plan__list li { position: relative; padding-right: 20px; color: var(--muted); transition: color .5s; }
.plan__list li::before { content: ''; position: absolute; top: -41px; left: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--line-hi); transition: background .5s, border-color .5s, box-shadow .5s; }
.plan__list li.on { color: var(--text); }
.plan__list li.on::before { background: var(--volt); border-color: var(--volt); box-shadow: 0 0 12px var(--volt); }
.plan__list li > p:first-child { font-size: 11px; }
.plan__list h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 30px); margin-top: 8px; letter-spacing: -.01em; }
.plan__state { font-size: 10.5px; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.plan__state i { width: 6px; height: 6px; border: 1px solid currentColor; }
.plan__list li.is-active .plan__state { color: var(--volt); }
.plan__list li.is-active .plan__state i { background: var(--volt); border-color: var(--volt); animation: blink 1.4s infinite; }

/* ---------- Company ---------- */
.company { border-top: 1px solid var(--line); }
.company__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; }
.company__title { font-weight: 900; font-size: clamp(32px, 3.8vw, 58px); line-height: 1.25; }
.company__table { border-top: 1px solid var(--line); }
.company__table div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company__table dt { font-size: 11px; color: var(--muted); padding-top: 4px; }
.company__table dd a { border-bottom: 1px solid var(--volt); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(130px, 18vw, 260px) var(--pad); text-align: center; border-top: 1px solid var(--line); }
.cta .kicker { justify-content: center; }
.cta .kicker::after { display: none; }
.cta__glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(200,255,46,.16), transparent 62%); pointer-events: none; }
.cta__title { position: relative; font-weight: 900; font-size: clamp(40px, 7vw, 120px); line-height: 1.12; }
.cta__text { position: relative; color: #b9c0cc; max-width: 32em; margin: 30px auto 44px; }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--pad) 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__mark { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 16.5vw, 300px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; margin: .1em 0 .12em -.04em; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a:hover { color: var(--volt); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__hud { display: none; }
}
@media (min-width: 901px) and (max-height: 780px) {
  .hero__meta { display: none; }
}
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(0deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.75) 48%, rgba(5,6,8,0) 72%); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
    padding: 0 var(--pad); background: rgba(5,6,8,.97); font-size: 22px; opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .menu-open .nav__links { opacity: 1; pointer-events: auto; }
  .menu-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; }
  .nav__burger { display: block; }
  .hero { height: 100svh; min-height: 640px; }
  .hero > .hud-corners { inset: 76px 14px 18px; }
  .hero__meta { display: none; }
  .hero__copy { left: 26px; right: 22px; bottom: 112px; }
  .hero__title { font-size: clamp(30px, 9.2vw, 60px); }
  .sp-br { display: inline; }
  .pc-br { display: none; }
  .hero__title .line { white-space: normal; }
  .hero__copy { max-width: none; }
  .hero__lead { margin-top: 18px; font-size: 14px; }
  .hero__cta { margin-top: 24px; gap: 10px; }
  .hero__cta .btn { padding: 13px 18px; font-size: 14px; }
  .hero__status { left: 30px; right: auto; bottom: 36px; gap: 24px; }
  .hero__status div { text-align: left; }
  .hero__status dd { font-size: 24px; }
  .hero__scroll { display: none; }
  .mission__stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .board__head { grid-template-columns: 1fr; }
  .board__legend { grid-column: 1; }
  .board__frame { padding: 40px 10px 10px; }
  .board__bar { left: 10px; right: 10px; }
  .board__grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .slot { padding: 7px 8px; aspect-ratio: 1 / 1; }
  .slot__name, .slot__tag { display: none; }
  .board__grid li:first-child { grid-column: span 5; }
  .slot.is-live { aspect-ratio: auto; min-height: 92px; }
  .slot.is-live .slot__name, .slot.is-live .slot__tag { display: block; }
  .slot.is-live .slot__name { font-size: 18px; }
  .funnel { flex-wrap: wrap; }
  .funnel__step { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .funnel__arrow { display: none; }
  .filter__pin { height: auto; overflow: visible; padding: 0 0 100px; }
  .filter__track { flex-direction: column; width: auto; }
  .gate { width: 100%; min-height: 0; }
  .gate__en { margin-top: 40px; }
  .gate__text { min-height: 0; }
  .filter__progress { display: none; }
  .filter__label { position: static; margin: 0 var(--pad) 22px; }
  .filter__label span:last-child { display: none; }
  .tool__body { grid-template-columns: 1fr; margin-top: 10px; }
  .tool__head .kicker { white-space: nowrap; }
  .tool__no { font-size: 30vw; }
  .tool__shot { order: -1; }
  .tool__window { transform: none; }
  .rule { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .plan__list { grid-template-columns: 1fr; padding-top: 0; padding-left: 30px; }
  .plan__list::before, .plan__list::after { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .plan__list::after { transform: scaleY(var(--rp)); transform-origin: top; }
  .plan__list li { padding: 0 0 30px; }
  .plan__list li::before { top: 6px; left: -30px; }
  .company__grid { grid-template-columns: 1fr; gap: 30px; }
  .company__table div { grid-template-columns: 1fr; gap: 2px; }
  .cta__glow { width: 520px; height: 520px; }
  .btn--lg { padding: 17px 22px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-grain, .marquee__track, .slot.is-live::after, .tool__scan::after, .hero__scroll i { animation: none !important; }
}
