:root {
  --void: #04060e;
  --void-2: #070b18;
  --panel: rgba(14, 21, 40, 0.55);
  --panel-solid: #0b1122;
  --line: rgba(120, 190, 255, 0.14);
  --line-strong: rgba(120, 190, 255, 0.32);
  --ink: #e7f0ff;
  --ink-soft: #93a6c8;
  --ink-dim: #61728f;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --violet: #7c5cff;
  --magenta: #f065d8;
  --amber: #ffb347;
  --glow-cyan: rgba(34, 211, 238, 0.55);
  --glow-violet: rgba(124, 92, 255, 0.5);
  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(80% 50% at 100% 30%, rgba(34, 211, 238, 0.14), transparent 65%),
    radial-gradient(90% 60% at 0% 70%, rgba(240, 101, 216, 0.10), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: repeating-linear-gradient(0deg, rgba(190, 230, 255, 0.9) 0 1px, transparent 1px 5px);
  animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
  from { transform: translateY(0); }
  to { transform: translateY(5px); }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.grid-floor {
  position: fixed;
  left: -25%;
  right: -25%;
  bottom: -10vh;
  height: 55vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 212, 191, 0.28) 1px, transparent 1px),
    linear-gradient(to top, rgba(124, 92, 255, 0.24) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(420px) rotateX(74deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  animation: floor-drift 14s linear infinite;
}

@keyframes floor-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 90px, 0 90px; }
}

.shell {
  position: relative;
  z-index: 3;
}

.wrap {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(4, 6, 14, 0.85), rgba(4, 6, 14, 0.35));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.site-head.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(4, 6, 14, 0.92);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand .mark circle,
.brand .mark path {
  transform-origin: 50% 50%;
}

.brand .ring-spin { animation: spin 9s linear infinite; }

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.3s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
  background: rgba(34, 211, 238, 0.08);
}

.nav-cta:hover { box-shadow: 0 0 22px var(--glow-cyan); }
.nav-cta::after { display: none; }

.lang {
  position: relative;
  flex: none;
}

.lang summary {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang summary svg { width: 15px; height: 15px; }

.lang-pop {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  z-index: 60;
  width: min(560px, 78vw);
  max-height: 62vh;
  overflow-y: auto;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 11, 24, 0.97);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.7);
  animation: pop 0.22s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-8px); }
}

.lang-item {
  unicode-bidi: isolate;
  text-align: left;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-item::after { display: none; }
.lang-item:hover { background: rgba(34, 211, 238, 0.12); color: var(--ink); }

.lang-item.is-current {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.hero {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 10vh, 7rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.6);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero h1 {
  margin: 1.6rem 0 0;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 700;
  filter: drop-shadow(0 0 42px rgba(34, 211, 238, 0.35));
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 .glitch {
  position: relative;
  display: inline-block;
  background: linear-gradient(105deg, #ffffff 4%, var(--cyan) 30%, var(--violet) 58%, var(--magenta) 84%);
  background-size: 135% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

.hero h1 .glitch::before,
.hero h1 .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}

.hero h1 .glitch::before {
  animation: glitch-a 5.5s steps(1) infinite;
}

.hero h1 .glitch::after {
  animation: glitch-b 5.5s steps(1) infinite;
}

@keyframes glitch-a {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93% { transform: translate(-4px, 2px); opacity: 0.75; filter: hue-rotate(70deg); }
  95% { transform: translate(3px, -2px); opacity: 0.6; }
  97% { transform: none; opacity: 0; }
}

@keyframes glitch-b {
  0%, 93%, 100% { transform: none; opacity: 0; }
  94% { transform: translate(5px, 1px); opacity: 0.55; filter: hue-rotate(-60deg); }
  96% { transform: translate(-3px, -3px); opacity: 0.45; }
  98% { transform: none; opacity: 0; }
}

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
  color: #04060e;
  background: linear-gradient(100deg, var(--teal), var(--cyan) 45%, var(--violet));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 46px rgba(34, 211, 238, 0.6);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(10, 16, 32, 0.5);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(124, 92, 255, 0.14);
}

.stats {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: rgba(7, 11, 24, 0.82);
  padding: 1.4rem 1rem;
}

.stat b {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

section { padding: clamp(4.5rem, 11vh, 7.5rem) 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sec-head p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.fleet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}

.node {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.node::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 55%, var(--node-accent, var(--cyan)), transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.node::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--node-accent, var(--cyan)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.node:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.node:hover::before { opacity: 1; animation: node-rotate 4s linear infinite; }
.node:hover::after { opacity: 0.12; }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes node-rotate {
  to { --angle: 360deg; }
}

.node > * { position: relative; z-index: 1; }

.node.is-inert { cursor: default; }
.node.is-inert:hover { transform: none; }

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.node-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(4, 6, 14, 0.7);
  color: var(--node-accent, var(--cyan));
  flex: none;
}

.node-icon svg { width: 22px; height: 22px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.status.is-build { color: var(--amber); }

.status.is-build i {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation-duration: 1.2s;
}

.node h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.node .kind {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--node-accent, var(--cyan));
}

.node p.desc {
  margin: 1rem 0 1.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.node .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.node .stack span {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.node .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.node .go svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.node:hover .go svg { transform: translate(3px, -3px); }

.node .host {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
}

.core {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    linear-gradient(160deg, rgba(124, 92, 255, 0.10), transparent 55%),
    rgba(7, 11, 24, 0.7);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.core::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translate(-30px, 40px) scale(1.1); }
}

.core-title {
  position: relative;
  margin: 0.6rem 0 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.core-lede {
  position: relative;
  max-width: 58ch;
  color: var(--ink-soft);
}

.core-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.core-item {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-strong);
}

.core-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.core-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stream {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: rgba(4, 6, 14, 0.6);
}

.stream-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.stream-track b { color: var(--cyan); font-weight: 500; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.cta {
  text-align: center;
}

.cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0 auto 2.2rem;
  max-width: 54ch;
  color: var(--ink-soft);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
  background: rgba(4, 6, 14, 0.8);
}

.site-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--cyan); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 780px) {
  .nav { gap: 1rem; }
  .nav a:not(.nav-cta) { display: none; }
  .site-head .wrap { height: 64px; }
  .wrap { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  .reveal { opacity: 1; transform: none; }
}
