:root {
  color-scheme: dark;
  --ink: #050a12;
  --panel: rgb(8 19 34 / .7);
  --line: rgb(174 232 255 / .22);
  --text: #f4fbff;
  --muted: #9ab0c2;
  --cyan: #18e0e8;
  --blue: #1488ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
a { color: inherit; }
.shader-canvas, .shader-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.shader-canvas { image-rendering: pixelated; }
.shader-fallback {
  background:
    radial-gradient(circle at 78% 30%, rgb(16 222 232 / .3), transparent 23%),
    radial-gradient(circle at 64% 62%, rgb(20 136 255 / .3), transparent 31%),
    #050a12;
}
.shader-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgb(117 216 255 / .14) 1px, transparent 1px), linear-gradient(90deg, rgb(117 216 255 / .14) 1px, transparent 1px);
  background-size: 8px 8px;
}
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px clamp(18px, 4vw, 58px) 32px;
}
.nav {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links > a { color: #9eb5c5; text-decoration: none; font: 700 10px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; }
.nav-links > a:hover { color: var(--cyan); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand img { width: 31px; height: 31px; border-radius: 7px; image-rendering: pixelated; }
.system-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bcebd9;
  font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.system-state i { width: 7px; height: 7px; background: #43e59c; box-shadow: 0 0 13px #43e59c; }
.hero {
  flex: 1;
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: 44px 0;
}
.copy { max-width: 610px; }
.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 800;
}
.copy > p {
  max-width: 510px;
  margin: 25px 0 0;
  color: #c3d3df;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.55;
}
.actions { display: flex; gap: 9px; margin-top: 30px; }
.button {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: rgb(7 18 32 / .62);
  backdrop-filter: blur(18px) saturate(140%);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  box-shadow: inset 0 1px rgb(255 255 255 / .08);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.button.primary { color: #041219; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 12px 36px rgb(24 224 232 / .18); }
.button:hover { border-color: rgb(24 224 232 / .55); background: rgb(12 30 51 / .78); }
.button.primary:hover { background: #5ef4f3; }
.button:active { transform: translateY(1px) scale(.985); }
.button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.portal {
  justify-self: end;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}
.portal::before, .portal::after {
  content: "";
  position: absolute;
  border: 1px solid rgb(149 224 255 / .22);
  pointer-events: none;
}
.portal::before { inset: 9%; border-radius: 50%; animation: orbit 13s steps(52, end) infinite; }
.portal::after { inset: 20%; border-radius: 18px; transform: rotate(18deg); animation: counter-orbit 9s steps(36, end) infinite; }
.portal-logo {
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  image-rendering: pixelated;
  box-shadow: 0 35px 100px rgb(0 0 0 / .48), 0 0 55px rgb(24 224 232 / .2);
  transform: rotate(-4deg);
}
.pixel-corners { position: absolute; inset: 3%; pointer-events: none; }
.pixel-corners i { position: absolute; width: 15px; height: 15px; border-color: var(--cyan); opacity: .65; }
.pixel-corners i:nth-child(1) { left: 0; top: 0; border-left: 3px solid; border-top: 3px solid; }
.pixel-corners i:nth-child(2) { right: 0; top: 0; border-right: 3px solid; border-top: 3px solid; }
.pixel-corners i:nth-child(3) { right: 0; bottom: 0; border-right: 3px solid; border-bottom: 3px solid; }
.pixel-corners i:nth-child(4) { left: 0; bottom: 0; border-left: 3px solid; border-bottom: 3px solid; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #71889b;
  font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.intelligence { width: min(1180px,100%); margin: 60px auto 20px; padding: 100px 0 80px; scroll-margin-top: 20px; }
.intelligence-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 70px; align-items: end; margin-bottom: 38px; }
.intelligence-heading .eyebrow { grid-column: 1/-1; margin: 0; }
.intelligence h2 { margin: 0; font-size: clamp(46px,7vw,86px); line-height: .9; letter-spacing: -.065em; text-wrap: balance; }
.intelligence-heading p { max-width: 500px; margin: 0 0 5px; color: #b4c8d5; font-size: 15px; line-height: 1.65; }
.smart-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.smart-card { min-height: 250px; padding: clamp(22px,3vw,34px); border: 1px solid var(--line); background: rgb(6 16 29/.72); box-shadow: inset 0 1px rgb(255 255 255/.05); transition: transform 180ms ease,border-color 180ms ease,background 180ms ease; }
.smart-card:hover { transform: translateY(-3px); border-color: rgb(24 224 232/.42); background: rgb(8 25 41/.82); }
.smart-card.smart-wide { min-height: 290px; }
.smart-card:nth-child(3) { grid-column: 1; }
.smart-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.smart-number { color: var(--cyan); font: 700 9px ui-monospace,monospace; letter-spacing: .11em; }
.smart-card h3 { max-width: 12ch; margin: 52px 0 12px; font-size: clamp(26px,3.3vw,44px); line-height: .98; letter-spacing: -.055em; }
.smart-card p { max-width: 58ch; margin: 0; color: #9fb7c6; font-size: 13px; line-height: 1.6; }
.downloads { width: min(1180px,100%); margin: 0 auto 110px; padding-top: 80px; scroll-margin-top: 24px; }
.downloads-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
.downloads-heading .eyebrow { margin-bottom: 0; }
.downloads h2 { margin: 0; font-size: clamp(42px,6vw,78px); line-height: .92; letter-spacing: -.065em; }
.downloads-heading p { color: #b4c8d5; line-height: 1.6; max-width: 560px; margin: 0; }
.build-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.build-card { min-height: 330px; padding: clamp(22px,3vw,34px); display: flex; flex-direction: column; border: 1px solid var(--line); background: rgb(6 16 29 / .78); backdrop-filter: blur(22px); box-shadow: inset 0 1px rgb(255 255 255 / .06), 8px 8px 0 rgb(3 12 22 / .7); }
.build-card.featured { background: linear-gradient(145deg,rgb(8 36 55 / .88),rgb(6 16 29 / .82)); border-color: rgb(24 224 232 / .4); }
.build-top,.build-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.build-icon { display: grid; place-items: center; width: 43px; height: 43px; background: var(--cyan); color: #031218; font: 900 10px ui-monospace,monospace; letter-spacing: -.04em; box-shadow: 5px 5px 0 #07405b; }
.build-icon.watch { background: #1488ff; color: white; }
.build-status,.build-meta { color: #79a4b9; font: 700 9px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; }
.build-card h3 { font-size: clamp(25px,3vw,38px); letter-spacing: -.045em; margin: 26px 0 8px; }
.build-card > p { color: #aac0cf; line-height: 1.55; max-width: 550px; margin: 0 0 24px; }
.build-meta { padding-top: 18px; margin-top: auto; border-top: 1px solid var(--line); }
.build-card .button { align-self: flex-start; margin-top: 18px; }
.release-live { min-height: 43px; display: flex; align-items: center; gap: 10px; margin: -12px 0 18px; padding: 11px 13px; border: 1px solid var(--line); background: rgb(4 13 24/.72); color: #8ea9ba; font: 600 10px ui-monospace,monospace; }
.release-live strong { color: #dbeef7; text-transform: uppercase; letter-spacing: .06em; }
.release-live span:last-child { margin-left: auto; }
.release-pulse { width: 7px; height: 7px; flex: 0 0 auto; background: #e9bc4f; box-shadow: 0 0 12px rgb(233 188 79/.55); animation: signal 1.3s steps(3,end) infinite; }
.release-live.ready .release-pulse { background: #43e59c; box-shadow: 0 0 12px #43e59c; animation: none; }
.release-live.error .release-pulse { background: #ff718c; box-shadow: 0 0 12px rgb(255 113 140/.55); animation: none; }
.checksum { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: transparent; color: #658194; font: 600 9px ui-monospace,monospace; letter-spacing: .04em; cursor: pointer; transition: color 150ms ease; }
.checksum:not(:disabled):hover { color: var(--cyan); }
.checksum:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.checksum:disabled { cursor: default; }
.build-unavailable { opacity: .62; }
.build-unavailable [data-build-download] { pointer-events: none; }
.preview-note { color: #6f8a9c; font: 600 10px ui-monospace,monospace; margin-top: 18px; }
.error-layout { flex: 1; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 8vw; width: min(1120px,100%); margin: auto; }
.error-code { font: 800 clamp(110px, 24vw, 330px)/.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.14em; color: transparent; -webkit-text-stroke: 2px rgb(196 235 255 / .55); filter: drop-shadow(8px 8px 0 rgb(20 136 255 / .22)); user-select: none; }
.error-copy h1 { font-size: clamp(44px, 6vw, 82px); }
.error-copy p { max-width: 430px; color: #bdceda; line-height: 1.55; margin: 20px 0 0; }
.signal-bars { display: flex; align-items: end; gap: 5px; height: 46px; margin-bottom: 23px; }
.signal-bars i { width: 7px; background: var(--cyan); animation: signal 1.25s steps(4,end) infinite; }
.signal-bars i:nth-child(1) { height: 12px; }.signal-bars i:nth-child(2) { height: 22px; animation-delay: .15s; }.signal-bars i:nth-child(3) { height: 34px; animation-delay: .3s; }.signal-bars i:nth-child(4) { height: 45px; animation-delay: .45s; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter-orbit { to { transform: rotate(-342deg); } }
@keyframes signal { 50% { opacity: .18; transform: scaleY(.55); transform-origin: bottom; } }
@media (max-width: 760px) {
  .shell { padding-inline: 18px; }
  .hero { grid-template-columns: 1fr; padding: 38px 0 24px; }
  h1 { font-size: clamp(52px, 17vw, 78px); }
  .portal { width: min(85vw, 430px); justify-self: center; grid-row: 1; }
  .copy { grid-row: 2; }
  .error-layout { grid-template-columns: 1fr; align-content: center; gap: 54px; }
  .error-code { font-size: 40vw; }
  .footer { flex-direction: column; }
  .nav-links > a { display: none; }
  .downloads { padding-top: 40px; margin-bottom: 70px; }
  .downloads-heading,.build-grid { grid-template-columns: 1fr; }
  .downloads-heading .eyebrow { margin-bottom: 0; }
  .intelligence { padding: 70px 0 45px; }
  .intelligence-heading,.smart-grid { grid-template-columns: 1fr; }
  .intelligence-heading .eyebrow { grid-column: auto; }
  .smart-card:nth-child(3),.smart-card:nth-child(4) { grid-column: auto; grid-row: auto; }
  .release-live { align-items: flex-start; flex-wrap: wrap; }
  .release-live span:last-child { width: 100%; margin: 0 0 0 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-transparency: reduce) { .button { backdrop-filter: none; background: #0c1d31; } }
