:root {
  --bg: #05070b;
  --bg2: #080d14;
  --panel: rgba(255,255,255,.045);
  --line: rgba(180, 224, 255, .16);
  --line-strong: rgba(196, 233, 255, .34);
  --text: #f4f8fb;
  --muted: #7f91a2;
  --cyan: #7ee7ff;
  --cyan-2: #21c7f4;
  --ice: #d8f7ff;
  --violet: #9f8cff;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
html { color-scheme: dark; }
body {
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 76% 38%, rgba(33,199,244,.10), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(159,140,255,.08), transparent 28%),
    var(--bg);
}

button, a { font: inherit; color: inherit; }
button { border: 0; }
a { text-decoration: none; }
::selection { background: var(--cyan); color: #001017; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient {
  position: fixed;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .16;
  z-index: 0;
}
.ambient--one { background: var(--cyan-2); right: 7vw; top: 9vh; }
.ambient--two { background: var(--violet); left: 18vw; bottom: -22vh; opacity: .09; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 70;
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,7,11,.72);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(126,231,255,.5);
  background: linear-gradient(135deg, rgba(126,231,255,.15), rgba(159,140,255,.08));
  color: var(--ice);
  font-weight: 900;
  font-size: .86rem;
  box-shadow: inset 0 0 18px rgba(126,231,255,.08), 0 0 22px rgba(126,231,255,.07);
}
.brand__name { font-size: .95rem; font-weight: 850; letter-spacing: .22em; }

.topbar__center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font: 700 .62rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}
.signal { display: inline-flex; align-items: center; gap: 7px; color: var(--ice); }
.signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

.topbar__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
}
.topbar__next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  letter-spacing: .11em;
  font-size: .64rem;
}
.topbar__next span { color: var(--cyan); font-size: 1rem; }

.rail {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}
.rail::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: calc(var(--header-h) + 34px) clamp(28px, 5vw, 76px) 72px;
  border-right: 1px solid var(--line);
}
.panel::before {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126,231,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,231,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.64), transparent 78%);
}
.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .28;
}
.panel > * { position: relative; z-index: 2; }
.panel__number {
  position: absolute;
  right: 4vw;
  top: calc(var(--header-h) + 2vh);
  color: rgba(216,247,255,.035);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.08em;
  user-select: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  font: 750 .67rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
}
.kicker span { color: var(--cyan); }

.hero {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .72fr);
  gap: clamp(46px, 7vw, 120px);
  align-items: center;
}
.hero__copy { max-width: 920px; }
.hero h1 {
  margin: 0;
  font-size: clamp(4.35rem, 8.6vw, 9.4rem);
  line-height: .78;
  letter-spacing: -.074em;
  font-weight: 890;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(216,247,255,.64);
  text-shadow: 0 0 40px rgba(126,231,255,.07);
}
.hero__lead {
  max-width: 690px;
  margin: 32px 0 0;
  color: #b8c6d1;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.62;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 248px;
  gap: 24px;
  padding: 17px 18px;
  border: 1px solid rgba(126,231,255,.38);
  background: linear-gradient(90deg, rgba(126,231,255,.13), rgba(126,231,255,.035));
  color: var(--ice);
  cursor: pointer;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  box-shadow: inset 0 0 28px rgba(126,231,255,.035);
}
.primary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent, rgba(126,231,255,.14), transparent);
  transition: transform .5s ease;
}
.primary-action:hover::before { transform: translateX(105%); }
.primary-action b { color: var(--cyan); font-size: 1rem; }
.microcopy { color: var(--muted); font: 700 .62rem/1.3 ui-monospace, monospace; letter-spacing: .08em; }

.hero__visual {
  position: relative;
  min-height: min(62vh, 620px);
  display: grid;
  place-items: center;
}
.orbital {
  position: relative;
  width: min(35vw, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,231,255,.08), transparent 59%);
  filter: drop-shadow(0 0 34px rgba(33,199,244,.08));
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(126,231,255,.20);
  box-shadow: inset 0 0 36px rgba(126,231,255,.02);
}
.orbit--1 { inset: 6%; animation: spin 22s linear infinite; border-style: dashed; }
.orbit--2 { inset: 18%; animation: spinReverse 17s linear infinite; }
.orbit--3 { inset: 31%; animation: spin 12s linear infinite; border-color: rgba(159,140,255,.25); }
.orbit--4 { inset: 43%; border-color: rgba(216,247,255,.44); box-shadow: 0 0 34px rgba(126,231,255,.09); }
.core {
  display: grid;
  place-items: center;
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid rgba(216,247,255,.36);
  background: linear-gradient(145deg, rgba(126,231,255,.10), rgba(159,140,255,.06));
  color: var(--ice);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 900;
  box-shadow: 0 0 50px rgba(126,231,255,.10), inset 0 0 24px rgba(126,231,255,.07);
}
.node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.node--1 { top: 11%; left: 48%; }
.node--2 { right: 10%; top: 52%; }
.node--3 { bottom: 13%; left: 31%; background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.node--4 { left: 19%; top: 26%; }
.visual-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(5,7,11,.56);
  color: var(--muted);
  font: 700 .58rem/1 ui-monospace, monospace;
  letter-spacing: .11em;
  backdrop-filter: blur(10px);
}
.visual-label--a { left: 2%; top: 21%; }
.visual-label--b { right: 1%; bottom: 23%; }

.panel__footer {
  position: absolute;
  left: clamp(28px, 5vw, 76px);
  right: clamp(28px, 5vw, 76px);
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 .60rem/1.2 ui-monospace, monospace;
  letter-spacing: .1em;
}
.panel__footer > :last-child { text-align: right; }
.panel__footer .muted { color: #51606d; margin-right: 8px; }
.footer-center { color: #8ca0b1; }
.footer-center span { color: var(--cyan); }

.panel--noifex {
  background:
    radial-gradient(circle at 17% 47%, rgba(126,231,255,.075), transparent 31%),
    linear-gradient(115deg, #05070b 0%, #081018 56%, #05070b 100%);
}
.panel--noifex::before { mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 32%, rgba(0,0,0,.78) 100%); }
.noifex-layout {
  height: calc(100% - 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .62fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(126,231,255,.26);
  background: rgba(126,231,255,.055);
  color: var(--ice);
  font: 800 .62rem/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.noifex-copy h2 {
  margin: 0;
  font-size: clamp(6rem, 13vw, 13.4rem);
  line-height: .7;
  letter-spacing: -.09em;
  font-weight: 900;
}
.noifex-copy h2 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(126,231,255,.7); }
.noifex-lead {
  max-width: 720px;
  margin: 32px 0 0;
  color: #aebdca;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
}
.launch-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(126,231,255,.42);
  color: var(--ice);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}
.launch-link b { color: var(--cyan); font-size: 1.1rem; transition: transform .2s ease; }
.launch-link:hover b { transform: translate(3px,-3px); }

.noifex-terminal {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(10,17,25,.80), rgba(5,8,12,.72));
  box-shadow: 0 24px 90px rgba(0,0,0,.25), inset 0 0 48px rgba(126,231,255,.025);
  backdrop-filter: blur(16px);
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 800 .62rem/1 ui-monospace, monospace;
  letter-spacing: .11em;
}
.terminal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.terminal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.terminal-grid > div { min-height: 116px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.terminal-grid > div:nth-child(2n) { border-right: 0; }
.terminal-grid small { display: block; margin-bottom: 18px; color: #607180; font: 750 .58rem ui-monospace, monospace; letter-spacing: .1em; }
.terminal-grid strong { display: block; color: #d7e9f4; font-size: .78rem; line-height: 1.45; letter-spacing: .025em; overflow-wrap: anywhere; }
.terminal-lines { display: grid; gap: 9px; padding: 18px; }
.terminal-lines span { display: block; width: var(--w); height: 2px; background: linear-gradient(90deg, rgba(126,231,255,.52), rgba(126,231,255,.04)); }
.back-link { background: transparent; color: var(--muted); padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; }
.back-link:hover { color: var(--cyan); }

.side-progress {
  position: fixed;
  z-index: 80;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.04);
}
.side-progress span { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .3s ease; box-shadow: 0 0 12px rgba(126,231,255,.25); }
.edge-nav {
  position: fixed;
  z-index: 75;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 72px;
  border: 1px solid var(--line);
  background: rgba(5,7,11,.55);
  color: var(--cyan);
  cursor: pointer;
  backdrop-filter: blur(12px);
  opacity: .76;
  transition: opacity .2s ease, background .2s ease;
}
.edge-nav:hover { opacity: 1; background: rgba(126,231,255,.07); }
.edge-nav:disabled { opacity: 0; pointer-events: none; }
.edge-nav--prev { left: 0; border-left: 0; }
.edge-nav--next { right: 0; border-right: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 18px; }
  .descriptor { display: none; }
  .topbar__center { justify-self: start; }
  .topbar__right { gap: 8px; }
  .topbar__next { padding-left: 6px; }
  .hero { grid-template-columns: 1fr .58fr; gap: 28px; }
  .hero h1 { font-size: clamp(3.6rem, 9.4vw, 7rem); }
  .orbital { width: min(42vw, 420px); }
  .noifex-layout { grid-template-columns: 1fr .72fr; gap: 38px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .topbar { grid-template-columns: 1fr auto; gap: 12px; }
  .topbar__center { display: none; }
  .brand__name { letter-spacing: .15em; }
  .topbar__right > span { display: none; }
  .panel { padding: calc(var(--header-h) + 26px) 22px 70px; min-height: 540px; }
  .panel__number { right: 18px; top: calc(var(--header-h) + 18px); font-size: 10rem; }
  .hero { display: block; height: auto; padding-top: 5vh; }
  .hero__visual { position: absolute; right: -22vw; bottom: -10vh; min-height: 0; width: 72vw; height: 72vw; opacity: .54; }
  .orbital { width: 100%; }
  .hero__copy { position: relative; z-index: 3; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.6rem); line-height: .82; }
  .hero__lead { max-width: 88%; font-size: .96rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 28px; }
  .primary-action { min-width: 230px; }
  .visual-label { display: none; }
  .noifex-layout { display: block; height: auto; padding-top: 2vh; }
  .noifex-copy h2 { font-size: clamp(5rem, 24vw, 8rem); }
  .noifex-lead { max-width: 94%; font-size: .94rem; }
  .noifex-terminal { margin-top: 28px; max-width: 560px; }
  .terminal-grid > div { min-height: 86px; padding: 13px; }
  .terminal-grid small { margin-bottom: 10px; }
  .terminal-lines { display: none; }
  .panel__footer { left: 22px; right: 22px; grid-template-columns: 1fr auto; font-size: .54rem; }
  .panel__footer .footer-center { display: none; }
  .edge-nav { display: none; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .panel { padding-top: calc(var(--header-h) + 22px); }
  .hero h1 { font-size: clamp(4rem, 7.2vw, 7rem); }
  .hero__lead, .noifex-lead { margin-top: 20px; }
  .hero__actions, .launch-link { margin-top: 22px; }
  .orbital { width: min(30vw, 380px); }
  .noifex-copy h2 { font-size: clamp(5.5rem, 10vw, 9.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
