:root {
  --void: #030713;
  --deep: #07101f;
  --panel: rgba(9, 17, 35, .72);
  --text: #f4f7ff;
  --muted: #8792aa;
  --dim: #59647d;
  --blue: #4c82ff;
  --violet: #9a63ff;
  --ice: #a8dfff;
  --line: rgba(112, 151, 255, .15);
  --line-strong: rgba(112, 151, 255, .3);
  --max: 1480px;
  --grid: rgba(90, 126, 220, .026);
  --topbar-bg: rgba(4, 9, 22, .66);
  --notice-a: rgba(11,25,54,.88);
  --notice-b: rgba(5,12,27,.85);
  --system-a: rgba(10,21,43,.63);
  --system-b: rgba(3,8,20,.38);
  --core-bg: rgba(10,18,37,.94);
}
[data-theme="light"] {
  color-scheme: light;
  --void: #f4f5f8;
  --deep: #e9edf6;
  --panel: rgba(255,255,255,.76);
  --text: #101633;
  --muted: #66708a;
  --dim: #8a92a6;
  --blue: #315cff;
  --violet: #7a4dff;
  --ice: #173b92;
  --line: rgba(16, 22, 51, .13);
  --line-strong: rgba(49, 92, 255, .3);
  --grid: rgba(16,22,51,.035);
  --topbar-bg: rgba(250,251,254,.76);
  --notice-a: rgba(246,248,255,.95);
  --notice-b: rgba(236,240,251,.88);
  --system-a: rgba(255,255,255,.68);
  --system-b: rgba(235,239,249,.5);
  --core-bg: rgba(247,249,255,.96);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--void);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 38%, rgba(48, 95, 255, .13), transparent 31rem),
    radial-gradient(circle at 88% 20%, rgba(145, 69, 255, .09), transparent 25rem),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000);
}
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; z-index: 5; 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.app { position: relative; z-index: 1; width: 100%; height: 100vh; height: 100svh; padding: 18px 0 0; display: grid; grid-template-rows: 68px 42px minmax(0, 1fr) 92px 58px; overflow: hidden; }

.topbar {
  min-height: 68px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--topbar-bg);
  box-shadow: 0 18px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(20px) saturate(130%);
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.brand-name > span { color: var(--blue); }
.brand-icon { position: relative; display: block; width: 36px; height: 40px; flex: 0 0 36px; }
.brand-icon img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; transition: opacity .2s ease; }
.brand-icon-dark { opacity: 0; }
[data-theme="dark"] .brand-icon-light { opacity: 0; }
[data-theme="dark"] .brand-icon-dark { opacity: 1; }
.topbar nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 54px); margin-left: auto; }
.topbar nav a, .locale { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; transition: color .2s; }
.topbar nav a:hover { color: var(--text); }
.topbar-side { display: flex; align-items: center; gap: 16px; }
.theme-toggle { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.theme-toggle:hover { color: var(--blue); background: rgba(76,130,255,.08); }
.theme-toggle svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: opacity .2s, transform .3s; }
.theme-toggle .moon { opacity: 0; transform: rotate(-25deg) scale(.7); }
[data-theme="light"] .theme-toggle .sun { opacity: 0; transform: rotate(25deg) scale(.7); }
[data-theme="light"] .theme-toggle .moon { opacity: 1; transform: rotate(0) scale(1); }
.contact-button { padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ice); background: rgba(40, 76, 165, .11); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; transition: background .2s, border-color .2s; }
.contact-button:hover { background: rgba(65, 105, 220, .2); border-color: var(--blue); }

.release { width: max-content; max-width: calc(100% - 96px); height: 34px; margin-top: 8px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 36px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: linear-gradient(90deg, var(--notice-a), var(--notice-b)); box-shadow: 0 14px 42px rgba(0,0,0,.12); backdrop-filter: blur(18px); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.release span { display: flex; align-items: center; gap: 10px; }
.release i, .live i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: blink 2.2s ease-in-out infinite; }

.stage { min-height: 0; height: 100%; display: grid; grid-template-columns: .86fr 1.14fr; column-gap: clamp(48px, 5vw, 88px); align-items: center; padding: clamp(20px, 4vh, 42px) 0 clamp(16px, 3vh, 28px); }
.hero-copy { padding-left: clamp(0px, 3vw, 42px); position: relative; z-index: 2; }
.kicker { margin-bottom: 24px; color: var(--blue); font: 500 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(62px, 7.1vw, 112px); line-height: .85; font-weight: 500; letter-spacing: -.075em; }
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1px rgba(208, 220, 255, .65); }
[data-theme="light"] .hero-copy h1 span { -webkit-text-stroke-color: rgba(16, 22, 51, .78); }
.hero-copy p { max-width: 500px; margin: 34px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-link { width: min(330px, 100%); margin-top: 34px; padding: 14px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--ice); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero-link span { transition: transform .2s; }
.hero-link:hover span { transform: translateX(6px); }

.live-system { width: 100%; height: 100%; min-height: 0; max-height: 610px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, var(--system-a), var(--system-b)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 40px 120px rgba(0,0,0,.12); backdrop-filter: blur(4px); overflow: hidden; }
.system-head { height: 48px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9px; letter-spacing: .12em; }
.system-head .live { display: flex; align-items: center; gap: 8px; color: var(--ice); }
.graph-stage { height: calc(100% - 48px); position: relative; }
.graph { width: 100%; height: 100%; }
.orbit circle { fill: none; stroke: rgba(101,139,255,.08); stroke-width: 1; stroke-dasharray: 2 8; }
.connections path { fill: none; stroke: url(#node-gradient); stroke-width: 1; opacity: .5; }
.connections .secondary { stroke: rgba(131,160,255,.3); stroke-dasharray: 2 7; }
.packets { pointer-events: none; }
.packets circle { fill: var(--ice); stroke: var(--blue); stroke-width: 2; filter: drop-shadow(0 0 4px var(--ice)) drop-shadow(0 0 10px var(--blue)); }
[data-theme="light"] .packets circle { fill: var(--blue); stroke: #fff; filter: drop-shadow(0 0 4px rgba(49,92,255,.85)); }
.satellites circle { fill: var(--blue); stroke: rgba(168,223,255,.55); stroke-width: 5; paint-order: stroke; }
.graph text { fill: #c7d4f2; font: 500 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
[data-theme="light"] .graph text { fill: #34405f; }
.graph text.detail { fill: var(--dim); font-size: 8px; }
.core > path { fill: var(--core-bg); stroke: url(#node-gradient); stroke-width: 2.3; }
.core .core-pulse { fill: none; stroke: var(--blue); stroke-width: 1; opacity: .3; animation: pulse 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.core text { fill: var(--text); font-size: 10px; }
.core text.detail { fill: var(--blue); font-size: 8px; }
.graph-caption { position: absolute; left: 20px; bottom: 16px; color: var(--dim); font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }

.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.telemetry article { min-height: 92px; padding: 16px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.telemetry article:first-child { padding-left: 0; }
.telemetry article:last-child { border: 0; }
.telemetry span { color: var(--blue); font: 8px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.telemetry strong { margin-top: auto; font-size: 12px; font-weight: 500; }
.telemetry small { margin-top: 4px; color: var(--dim); font: 9px ui-monospace, Consolas, monospace; }
.footer { min-height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; color: var(--dim); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.footer span:nth-child(2) { text-align: center; }
.footer span:nth-child(3) { text-align: center; }
.footer a { text-align: right; color: var(--muted); }

@keyframes blink { 50% { opacity: .35; } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .45; } 80%,100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; } }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .app { height: auto; min-height: 100svh; padding-top: 10px; display: block; overflow: visible; }
  .topbar { min-height: 60px; border-radius: 15px; }
  .topbar nav, .locale { display: none; }
  .release { max-width: calc(100% - 46px); padding-inline: 16px; }
  .release span:last-child { display: none; }
  .stage { grid-template-columns: 1fr; column-gap: 0; padding: 72px 0 48px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(58px, 16.5vw, 100px); }
  .hero-copy p { font-size: 14px; }
  .live-system { height: 500px; min-height: 0; margin-top: 68px; }
  .telemetry { grid-template-columns: 1fr 1fr; }
  .telemetry article { border-bottom: 1px solid var(--line); }
  .telemetry article:nth-child(2) { border-right: 0; }
  .telemetry article:nth-child(3), .telemetry article:nth-child(4) { border-bottom: 0; }
  .telemetry article:first-child { padding-left: 20px; }
  .footer { grid-template-columns: 1fr 1fr; padding: 18px 0; gap: 10px; }
  .footer span:nth-child(2) { display: none; }
  .footer span:nth-child(3) { text-align: right; }
  .footer a { text-align: left; }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero-copy h1 { font-size: clamp(54px, 6.3vw, 88px); }
  .hero-copy p { margin-top: 22px; font-size: 13px; }
  .hero-link { margin-top: 22px; }
  .kicker { margin-bottom: 16px; }
  .system-head { height: 42px; }
  .graph-stage { height: calc(100% - 42px); }
}

@media (max-width: 520px) {
  .brand { font-size: 18px; gap: 9px; }
  .contact-button { padding: 11px 13px; }
  .hero-copy h1 { font-size: 17vw; }
  .live-system { height: 410px; margin-inline: -6px; }
  .graph { transform: scale(1.2); }
  .graph text { font-size: 8px; }
  .telemetry { grid-template-columns: 1fr; }
  .telemetry article { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--line) !important; padding-left: 12px !important; }
  .telemetry article:last-child { border-bottom: 0 !important; }
}
