/* ===================== TOKENS ===================== */
:root {
  --bg: #04070e;
  --bg-soft: #070b15;
  --surface: rgba(18, 26, 42, 0.55);
  --border: rgba(56, 189, 248, 0.18);
  --border-soft: rgba(120, 150, 190, 0.14);
  --text: #dfe8f5;
  --text-dim: #8a9bb;
  --cyan: #38e1ff;
  --cyan-deep: #1aa5cc;
  --blue: #6d8bff;
  --toast: #ffb454;
  --local: #35f0c0;
  --radius: 16px;
  --container: 1160px;
  --mono: "Chakra Petch", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ===================== BACKGROUND LAYERS ===================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.bg-scan {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* data-stream rain */
.rain { position: fixed; inset: 0; z-index: -3; opacity: 0.12; pointer-events: none; }

/* full-viewport scan beam */
.scanbeam {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 170px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(56, 225, 255, 0.06) 65%, rgba(56, 225, 255, 0.13));
  border-bottom: 1px solid rgba(56, 225, 255, 0.28);
  box-shadow: 0 0 34px rgba(56, 225, 255, 0.14);
  mix-blend-mode: screen;
  animation: beam 8s linear infinite;
}
@keyframes beam {
  0% { transform: translateY(-190px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* screen-edge HUD frame */
.hud-frame { position: fixed; inset: 14px; z-index: 30; pointer-events: none; }
.hud-frame__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(56, 225, 255, 0.5);
}
.hud-frame__corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-frame__corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-frame__corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-frame__corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }
.hud-frame__side {
  position: absolute;
  top: 50%;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(56, 225, 255, 0.55);
  writing-mode: vertical-rl;
}
.hud-frame__side--left { left: -2px; transform: translateY(-50%) rotate(180deg); }
.hud-frame__side--right { right: -2px; transform: translateY(-50%); }

/* bottom telemetry ticker */
.ticker {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(to top, rgba(4, 7, 14, 0.92), rgba(4, 7, 14, 0.72));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  pointer-events: none;
  overflow: hidden;
}
.ticker__rec {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #ff5b5b;
  display: inline-flex;
  align-items: center;
}
.ticker__rec::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5b5b;
  box-shadow: 0 0 8px #ff5b5b;
  margin-right: 7px;
  animation: blink 1.4s ease-in-out infinite;
}
.ticker__win { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker__track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  animation: ticker 34s linear infinite;
}
.ticker__track b { color: var(--cyan); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===================== ORB (shared) ===================== */
.orb {
  position: relative;
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
}
.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 225, 255, 0.35);
  inset: 0;
}
.orb__ring--1 { inset: 0; border-style: solid; animation: spin 18s linear infinite; border-color: rgba(56, 225, 255, 0.5) transparent rgba(56, 225, 255, 0.25) transparent; }
.orb__ring--2 { inset: 34px; border-style: dashed; border-color: rgba(109, 139, 255, 0.4); animation: spin 26s linear infinite reverse; }
.orb__ring--3 { inset: 68px; border-color: rgba(56, 225, 255, 0.22); animation: spin 40s linear infinite; }
.orb__hud {
  position: absolute;
  inset: 96px;
  border-radius: 50%;
  border: 1px solid rgba(56, 225, 255, 0.25);
  background:
    conic-gradient(from 0deg, transparent 0 78%, rgba(56, 225, 255, 0.18) 82% 90%, transparent 92%);
  animation: spin 12s linear infinite;
}
.orb__core {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #bff4ff, var(--cyan) 42%, var(--cyan-deep) 78%, #0a3a48);
  box-shadow:
    0 0 40px 6px rgba(56, 225, 255, 0.55),
    0 0 90px 18px rgba(56, 225, 255, 0.28),
    inset 0 0 26px rgba(255, 255, 255, 0.4);
  animation: pulse 3.4s ease-in-out infinite;
}
.orb__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.22), transparent 62%);
  pointer-events: none;
}

/* --- JARVIS HUD detail layers --- */
.orb--hero { width: 384px; height: 384px; }

/* fine radial tick marks around the rim */
.orb__ticks {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    rgba(56, 225, 255, 0.6) 0 0.5deg, transparent 0.5deg 5deg);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
  opacity: 0.55;
  animation: spin 90s linear infinite;
}

/* four bold segment arcs (like a progress reticle) */
.orb__seg {
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--cyan) 0 15deg, transparent 15deg 90deg,
    var(--cyan) 90deg 105deg, transparent 105deg 180deg,
    var(--cyan) 180deg 195deg, transparent 195deg 270deg,
    var(--cyan) 270deg 285deg, transparent 285deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 3px), #000 calc(100% - 2px));
  opacity: 0.85;
  animation: spin 22s linear infinite reverse;
}

/* rotating radar sweep behind the core */
.orb__sweep {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 225, 255, 0.22), transparent 55%);
  animation: spin 5.5s linear infinite;
  pointer-events: none;
}

/* targeting crosshair */
.orb__reticle {
  position: absolute;
  inset: 100px;
  border-radius: 50%;
  border: 1px solid rgba(56, 225, 255, 0.22);
  background:
    linear-gradient(rgba(56, 225, 255, 0.22), rgba(56, 225, 255, 0.22)) center / 1px 100% no-repeat,
    linear-gradient(rgba(56, 225, 255, 0.22), rgba(56, 225, 255, 0.22)) center / 100% 1px no-repeat;
  animation: spin 30s linear infinite;
}

/* four corner brackets — targeting-frame feel */
.orb__brackets {
  position: absolute;
  inset: 2px;
  --c: rgba(56, 225, 255, 0.5);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 2px 22px no-repeat;
}

/* small nodes orbiting the core */
.orb__node { position: absolute; border-radius: 50%; pointer-events: none; }
.orb__node::after {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  margin-left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #dcf8ff, var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}
.orb__node--a { inset: 42px; animation: spin 16s linear infinite; }
.orb__node--b { inset: 84px; animation: spin 24s linear infinite reverse; }

/* segmented ring inside the core (arc-reactor) */
.orb__core-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 255, 255, 0.7) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0.7;
  animation: spin 8s linear infinite;
}

/* live readout label under the orb */
.orb__readout {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(56, 225, 255, 0.5);
  opacity: 0.85;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px 6px rgba(56,225,255,.5), 0 0 90px 18px rgba(56,225,255,.25), inset 0 0 26px rgba(255,255,255,.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 56px 10px rgba(56,225,255,.7), 0 0 120px 26px rgba(56,225,255,.35), inset 0 0 30px rgba(255,255,255,.5); }
}

/* ===================== BOOT SEQUENCE ===================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse at center, #060b16 0%, #03050a 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* grid that "scans" into view line-by-line during boot */
.boot__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 225, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 225, 255, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 100%);
  animation: bootgrid 3.2s ease-out both;
}
@keyframes bootgrid {
  0% { clip-path: inset(0 0 100% 0); opacity: 0; }
  12% { opacity: 0.7; }
  100% { clip-path: inset(0 0 0 0); opacity: 0.5; }
}
.boot__core, .boot__terminal, .boot__bar { position: relative; z-index: 1; }
.boot__scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(56, 225, 255, 0.12), transparent);
  animation: scan 3.4s linear infinite;
}
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(100vh); } }
.orb--boot { width: 260px; height: 260px; }
.orb--boot .orb__core { width: 84px; height: 84px; }

.boot__terminal {
  width: min(560px, 88vw);
  min-height: 150px;
}
.boot__log {
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--cyan);
  white-space: pre-wrap;
  text-shadow: 0 0 10px rgba(56, 225, 255, 0.4);
}
.boot__log .dim { color: var(--text-dim); text-shadow: none; }
.boot__log .ok { color: var(--local); }
.boot__log .caret {
  display: inline-block;
  width: 9px;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  color: transparent;
}
@keyframes blink { 50% { opacity: 0; } }

.boot__bar {
  width: min(560px, 88vw);
  height: 3px;
  background: rgba(56, 225, 255, 0.14);
  border-radius: 3px;
  overflow: hidden;
}
.boot__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 225, 255, 0.7);
  transition: width 0.3s ease;
}
.boot__skip {
  position: absolute;
  bottom: 34px;
  right: 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.boot__skip:hover { color: var(--cyan); border-color: var(--cyan); }

/* ===================== SITE REVEAL ===================== */
.site { position: relative; z-index: 1; opacity: 0; transition: opacity 0.8s ease 0.1s; }
.site.is-live { opacity: 1; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== TOPBAR ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(4, 7, 14, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-family: var(--mono); }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  color: #04070e;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(56, 225, 255, 0.4);
}
.brand__pulse {
  position: absolute; inset: 0;
  border-radius: 9px;
  border: 1px solid var(--cyan);
  animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.brand__text { font-size: 15px; letter-spacing: 0.06em; }
.brand__accent { color: var(--text-dim); font-weight: 400; }

.status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.status__state { color: var(--local); }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--local);
  box-shadow: 0 0 10px var(--local);
  animation: blink 1.6s ease-in-out infinite;
}
.status__clock { color: var(--cyan); margin-left: 4px; }

.topbar__links { display: flex; gap: 26px; }
.topbar__links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.topbar__links a:hover { color: var(--cyan); }

/* ===================== SHARED TEXT ===================== */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.glow-text {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(56, 225, 255, 0.6);
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 14px;
}
.section__sub { color: var(--text-dim); font-size: 1.06rem; max-width: 600px; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 92px 0 70px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}
.type-swap { color: var(--cyan); border-right: 3px solid var(--cyan); padding-right: 4px; }
.hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; }

/* particle-network plexus behind the orb (the "neural web") */
.plexus {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 460px;
  z-index: 0;
  pointer-events: none;
}
.orb--hero { position: relative; z-index: 1; }

/* floating telemetry chips */
.telem {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  background: rgba(8, 13, 22, 0.62);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 6px 10px;
  backdrop-filter: blur(4px);
  animation: float 6s ease-in-out infinite;
}
.telem b { display: block; color: var(--cyan); font-size: 12.5px; margin-top: 2px; }
.telem--1 { top: 4%; left: 0%; animation-delay: 0s; }
.telem--2 { top: 26%; right: 0%; animation-delay: 1.4s; }
.telem--3 { top: 62%; left: 2%; animation-delay: 2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* voice waveform */
.waveform {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 34px;
  margin-top: 22px;
}
.waveform span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  transform-origin: center;
  transform: scaleY(0.18);
  background: linear-gradient(var(--cyan), var(--cyan-deep));
  box-shadow: 0 0 6px rgba(56, 225, 255, 0.5);
  animation: wave 1s ease-in-out infinite;
}
@keyframes wave { 0%, 100% { transform: scaleY(0.15); } 50% { transform: scaleY(1); } }

/* listening / voice line */
.voice {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.voice__mic { color: var(--local); letter-spacing: 0.1em; }
.voice__q { color: var(--cyan); }

/* subsystem console */
.console {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  width: min(360px, 92%);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.console__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.console__dot:nth-child(1) { background: #ff5f57; }
.console__dot:nth-child(2) { background: #febc2e; }
.console__dot:nth-child(3) { background: #28c840; }
.console__name { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; }
.console__log {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--cyan);
  padding: 12px 14px;
  min-height: 104px;
  white-space: pre-wrap;
}
.console__log .dim { color: var(--text-dim); }
.console__log .ok { color: var(--local); }

.btn {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  color: #04070e;
  box-shadow: 0 10px 30px -8px rgba(56, 225, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(56, 225, 255, 0.8); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===================== SECTIONS ===================== */
.section { position: relative; padding: 88px 0; }
.section--muted { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.section__head { max-width: 620px; margin-bottom: 50px; }

/* ===================== PRODUCT CARDS ===================== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px 32px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius);
}
.card__frame::before, .card__frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--cyan);
  opacity: 0.6;
}
.card__frame::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.card__frame::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: 0 24px 50px -24px rgba(56, 225, 255, 0.35); }

.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card__id { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--text-dim); }
.card__status { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--local); display: inline-flex; align-items: center; gap: 7px; }
.card__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--local); box-shadow: 0 0 8px var(--local); animation: blink 1.6s ease-in-out infinite; }

.card__title { font-family: var(--mono); font-size: 1.85rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.card--toast .card__title { color: var(--toast); text-shadow: 0 0 22px rgba(255, 180, 84, 0.4); }
.card--lokam .card__title { color: var(--local); text-shadow: 0 0 22px rgba(53, 240, 192, 0.4); }
.card__tagline { font-weight: 600; color: var(--text); margin-bottom: 14px; }
.card__body { color: var(--text-dim); margin-bottom: 20px; }
.card__list { list-style: none; margin-bottom: 26px; }
.card__list li { position: relative; padding-left: 24px; color: var(--text-dim); margin-bottom: 9px; }
.card__list li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  font-size: 12px;
}
.card--toast .card__list li::before { color: var(--toast); }
.card--lokam .card__list li::before { color: var(--local); }
.card__link { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.card--toast .card__link { color: var(--toast); }
.card--lokam .card__link { color: var(--local); }
.card__link:hover { text-shadow: 0 0 14px currentColor; }

/* ===================== TEAM / CREW ===================== */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.member {
  --accent: rgb(var(--accent-rgb, 56, 225, 255));
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 16px 24px;
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.member:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 26px 54px -26px rgba(var(--accent-rgb), 0.45);
}

/* HUD corner brackets */
.member__frame { position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius); }
.member__frame::before, .member__frame::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  border: 1px solid var(--accent); opacity: 0.55;
}
.member__frame::before { top: 9px; left: 9px; border-right: none; border-bottom: none; }
.member__frame::after { bottom: 9px; right: 9px; border-left: none; border-top: none; }

/* portrait / stipple canvas */
.member__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 55% at 50% 40%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.9), rgba(4, 7, 14, 0.95));
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.member__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.25));
  opacity: 0.92;
  transition: opacity 0.4s, filter 0.4s;
}
.member:hover .member__canvas {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.55));
}

/* fine grid + scanline overlays on the portrait */
.member__portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
  opacity: 0.4; mix-blend-mode: overlay;
}
.member__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.16), transparent);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  mix-blend-mode: screen;
  transform: translateY(-120%);
  animation: memberScan 4.2s ease-in-out infinite;
}
@keyframes memberScan {
  0% { transform: translateY(-120%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

.member__id, .member__live {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  padding: 4px 7px; border-radius: 6px;
  background: rgba(4, 7, 14, 0.62); backdrop-filter: blur(4px);
}
.member__id { top: 9px; left: 9px; color: var(--text-dim); }
.member__live {
  top: 9px; right: 9px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.member__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}

/* meta */
.member__meta { padding: 18px 6px 2px; }
.member__handle { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--text-dim); text-transform: uppercase; opacity: 0.85; }
.member__name {
  font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.03em;
  margin: 2px 0 5px; color: var(--accent);
  text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85);
  will-change: opacity, text-shadow;
  animation: stormFlicker 6.6s infinite;
}
/* stagger each name so they flash independently, like separate lightning */
.crew .member:nth-child(1) .member__name { animation-duration: 6.2s; animation-delay: -0.6s; }
.crew .member:nth-child(2) .member__name { animation-duration: 7.3s; animation-delay: -3.1s; }
.crew .member:nth-child(3) .member__name { animation-duration: 6.7s; animation-delay: -4.8s; }

/* storm / lightning flicker: steady glow, punctuated by irregular
   on-off stutters and bright flashes — like a light during a thunderstorm */
@keyframes stormFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85); }
  6%   { opacity: 1; }
  6.5% { opacity: 0.28; text-shadow: none; }
  7%   { opacity: 1; text-shadow: 0 0 36px rgba(var(--accent-rgb), 0.9), 0 0 11px rgba(var(--accent-rgb), 1); }
  7.6% { opacity: 0.32; text-shadow: none; }
  8.2% { opacity: 1; text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85); }
  32%   { opacity: 1; }
  32.5% { opacity: 0.2; text-shadow: none; }
  33%   { opacity: 1; text-shadow: 0 0 42px rgba(var(--accent-rgb), 1), 0 0 13px rgba(var(--accent-rgb), 1); }
  33.7% { opacity: 1; text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85); }
  60%   { opacity: 1; }
  60.4% { opacity: 0.25; text-shadow: none; }
  60.9% { opacity: 1; }
  61.3% { opacity: 0.3; text-shadow: none; }
  61.8% { opacity: 1; text-shadow: 0 0 38px rgba(var(--accent-rgb), 0.95), 0 0 11px rgba(var(--accent-rgb), 1); }
  62.5% { opacity: 1; text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85); }
  85%   { opacity: 1; }
  85.4% { opacity: 0.22; text-shadow: none; }
  86%   { opacity: 1; }
}
.member__role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 10px; }
.member__epithet { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.35); }
.member__bio { color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }
.member__bio strong { color: var(--text); font-weight: 600; }
.member__link {
  display: inline-block; margin-top: 15px;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.05em;
  color: var(--accent);
}
.member__link:hover { text-shadow: 0 0 12px currentColor; }

@media (prefers-reduced-motion: reduce) {
  .member__scan { animation: none; opacity: 0; }
  .member__name { animation: none; opacity: 1; text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 7px rgba(var(--accent-rgb), 0.85); }
}

/* ===================== ABOUT ===================== */
.about { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 54px; align-items: center; }
.about__text p { color: var(--text-dim); margin-top: 16px; }
.about__panel { display: grid; }
.readout {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 26px 30px;
  backdrop-filter: blur(6px);
}
.readout__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.readout__row span { color: var(--text-dim); font-size: 12px; letter-spacing: 0.14em; }
.readout__row b { color: var(--cyan); font-size: 1.15rem; letter-spacing: 0.04em; }
.readout__row b.ok { color: var(--local); font-size: 0.95rem; }
.readout__wave { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 20px; }
.readout__wave span {
  flex: 1;
  background: linear-gradient(to top, var(--cyan-deep), var(--cyan));
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
  opacity: 0.8;
}
.readout__wave span:nth-child(1){animation-delay:0s} .readout__wave span:nth-child(2){animation-delay:.1s}
.readout__wave span:nth-child(3){animation-delay:.2s} .readout__wave span:nth-child(4){animation-delay:.3s}
.readout__wave span:nth-child(5){animation-delay:.4s} .readout__wave span:nth-child(6){animation-delay:.5s}
.readout__wave span:nth-child(7){animation-delay:.6s} .readout__wave span:nth-child(8){animation-delay:.7s}
@keyframes eq { 0%,100%{height:20%} 50%{height:100%} }

/* ===================== CONTACT ===================== */
.contact { max-width: 660px; }
.contact__email {
  display: inline-block;
  margin: 22px 0 30px;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contact__email:hover { color: var(--cyan); border-color: var(--cyan); }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social__link {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: transform 0.15s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.social__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 20px -4px rgba(56, 225, 255, 0.6);
}
.social__note { margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }
.social__note code { background: rgba(56,225,255,.1); color: var(--cyan); padding: 1px 6px; border-radius: 5px; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--border-soft); padding: 38px 0; position: relative; z-index: 1; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__copy { color: var(--text-dim); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__visual { order: -1; margin-bottom: 10px; }
  .orb--hero { width: 250px; height: 250px; }
  .cards { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .status__clock { display: none; }
  .topbar__links { display: none; }
  .status { margin-left: auto; }
}
@media (max-width: 560px) {
  .status { display: none; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 64px 0; }
  .crew { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .type-swap { border-right: none; }
}
