:root {
  --bg: #04101c;
  --panel: rgba(4, 30, 52, 0.72);
  --line: rgba(0, 200, 255, 0.22);
  --cyan: #00d4ff;
  --cyan-soft: #6fdcff;
  --text: #dff4ff;
  --muted: #8fb8cc;
  --body-text: #bcdcec;
  --radius: 18px;
  --gutter: clamp(16px, 6vw, 96px);
  --head: "Rajdhani", "Bahnschrift", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #0a2c4a 0%, var(--bg) 55%, #02070d 100%) fixed;
  color: var(--text);
  font: 16px/1.65 var(--body);
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--cyan-soft); }
h1, h2, h3 { font-family: var(--head); letter-spacing: 0.02em; line-height: 1.08; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
kbd {
  font: 600 0.82em var(--body); padding: 0.12em 0.5em;
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px;
  background: rgba(0, 60, 100, 0.4); color: var(--text);
}
.eyebrow { font: 700 0.82rem var(--head); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.8em; }
.eyebrow.small { font-size: 0.7rem; margin: 0; }
.glow { color: #fff; text-shadow: 0 0 18px rgba(0, 212, 255, 0.75), 0 0 42px rgba(0, 150, 255, 0.45); }
.lead { font-size: 1.12rem; color: #c7e7f5; max-width: 40em; }
.fine { font-size: 0.86rem; color: var(--muted); }
.center { text-align: center; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head .lead { margin: 0 auto; }

/* ---------- boot sequence ---------- */
#boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #06233c, #01060c 70%);
  transition: opacity 0.5s ease, visibility 0.5s;
  cursor: pointer;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(520px, 88vw); text-align: center; }
.boot-reactor { width: 140px; height: 140px; margin: 0 auto 18px; }
#boot-lines { text-align: left; font: 13px/1.8 var(--mono); color: #7fd8f5; min-height: 9.2em; margin: 0; white-space: pre-wrap; }
#boot-lines .ok { color: #5affc8; }
.boot-meta { display: flex; justify-content: space-between; margin-top: 16px; font: 600 0.72rem var(--mono); letter-spacing: 0.15em; color: #4f9fc0; }
#boot-pct { color: var(--cyan); }
.boot-bar { height: 3px; background: rgba(0, 120, 180, 0.3); margin-top: 6px; overflow: hidden; border-radius: 2px; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: width 0.12s linear; }
.boot-skip { font-size: 0.75rem; color: #3f7f9c; margin-top: 14px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- ambient layers ---------- */
#particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-grid {
  position: fixed; inset: 45% -40% -20%;
  background-image: linear-gradient(rgba(0,190,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(0,190,255,0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 95%);
  animation: grid 6s linear infinite; pointer-events: none; z-index: -1;
}
@keyframes grid { to { background-position: 0 64px; } }
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--cyan), #7af4ff); box-shadow: 0 0 10px var(--cyan); }

/* custom Jarvis cursor (pointer devices only) */
#cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: #fff; box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(0, 212, 255, 0.7); box-shadow: 0 0 14px rgba(0, 212, 255, 0.35); transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s; }
body.cursor-hot .cursor-ring { width: 58px; height: 58px; border-color: #fff; background: rgba(0, 212, 255, 0.08); }
@media (hover: hover) and (pointer: fine) { body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; } body.custom-cursor #cursor { display: block; } }

/* glitch text */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch:hover::before, .glitch.zap::before { opacity: 0.8; color: #ff4fa3; animation: glitch 0.45s steps(2) 2; clip-path: inset(10% 0 55% 0); }
.glitch:hover::after, .glitch.zap::after { opacity: 0.8; color: #40f6ff; animation: glitch 0.45s steps(2) reverse 2; clip-path: inset(60% 0 8% 0); }
@keyframes glitch { 0% { transform: translate(0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, 0); } 100% { transform: translate(0); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); background: rgba(3, 12, 22, 0.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.25rem var(--head); letter-spacing: 0.22em; }
.brand img { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); }
.links { display: flex; gap: clamp(14px, 1.7vw, 26px); }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; position: relative; white-space: nowrap; }
.nav .btn { white-space: nowrap; flex: none; }
@media (max-width: 1360px) { .links a.opt { display: none; } }   /* the less-visited sections, so nothing wraps */
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform 0.25s; box-shadow: 0 0 8px var(--cyan); }
.links a:hover { color: #fff; }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.links a.active { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #19c3ff, #0a86e0); color: #001522; font: 600 1rem var(--body); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 10px 34px rgba(0,170,255,0.35);
  position: relative; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset, 0 14px 44px rgba(0,190,255,0.55); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0,200,255,0.25); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.btn-big { padding: 18px 34px; font-size: 1.12rem; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: calc(100vh - 66px); padding: 40px var(--gutter); position: relative; }
.fx { opacity: 0; transform: translateY(24px); filter: blur(6px); }
body.ready .fx { animation: fxin 0.9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 0.12s + 0.1s); }
@keyframes fxin { to { opacity: 1; transform: none; filter: none; } }
.command {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 20px; padding: 12px 18px; min-height: 52px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 30, 55, 0.6); font: 500 1.08rem var(--mono); color: #e8fbff;
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.12);
}
.prompt { color: var(--cyan); font: 700 0.72rem var(--head); letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.caret { width: 10px; height: 1.2em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hero-reactor { position: relative; display: grid; place-items: center; perspective: 900px; }
.tilt { position: relative; transition: transform 0.15s ease-out; transform-style: preserve-3d; }
#reactor { width: min(540px, 88vw); aspect-ratio: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.7); } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: hint 1.6s infinite; }
@keyframes hint { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- stats + marquee ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1180px; margin: 40px auto 30px; padding: 0 var(--gutter); }
.stat { text-align: center; padding: 26px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat b { font: 700 clamp(2.4rem, 5vw, 3.4rem) var(--head); color: #fff; text-shadow: 0 0 20px rgba(0,212,255,0.6); }
.stat .unit { font: 600 1.2rem var(--head); color: var(--cyan); margin-left: 4px; }
.stat p { margin: 4px 0 0; color: var(--muted); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(0, 25, 45, 0.5); padding: 14px 0; margin: 30px 0 70px; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.track span { font: 600 1.1rem var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-soft); white-space: nowrap; }
.track span::before { content: "◆"; margin-right: 46px; color: rgba(0, 212, 255, 0.4); font-size: 0.7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- film ---------- */
.video-wrap { padding: 20px var(--gutter) 80px; }
.frame { max-width: 1120px; margin: 0 auto; border-radius: var(--radius); padding: 6px; position: relative;
  background: conic-gradient(from var(--a, 0deg), rgba(0,212,255,0.9), rgba(0,60,140,0.2), rgba(0,212,255,0.9), rgba(0,60,140,0.2), rgba(0,212,255,0.9));
  box-shadow: 0 30px 90px rgba(0, 140, 255, 0.25); animation: rot 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rot { to { --a: 360deg; } }
.frame video { width: 100%; border-radius: calc(var(--radius) - 6px); background: #000; }

/* ---------- inputs ---------- */
.holo-search input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(0,200,255,0.35); background: rgba(0,40,70,0.6); color: #e8f9ff; font: 0.97rem var(--body); outline: none;
}
.holo-search input:focus { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,212,255,0.25); }

/* ---------- scrollytelling ---------- */
.scrolly { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(24px, 5vw, 70px); padding: 40px var(--gutter); max-width: 1440px; margin: 0 auto; }
.s-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transition: opacity 0.5s, transform 0.5s; transform: translateX(-10px); }
.s-step.active { opacity: 1; transform: none; }
.s-step p { color: var(--body-text); }
.scrolly-media { position: relative; }
.shot-stack { position: sticky; top: 14vh; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,212,255,0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 50px rgba(0,170,255,0.18); background: #020a14; transform: perspective(1200px) rotateY(-6deg); transition: transform 0.6s; }
.shot-stack:hover { transform: perspective(1200px) rotateY(0); }
.s-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s, transform 1.2s; }
.s-shot.active { opacity: 1; transform: scale(1); }
.scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0 45%, rgba(120,230,255,0.22) 50%, transparent 55%); transform: translateY(-100%); }
.scan.go { animation: scan 0.8s ease-out; }
@keyframes scan { to { transform: translateY(100%); } }

/* ---------- hologram playground ---------- */
.holo { padding: 70px var(--gutter); }
.holo-box { position: relative; max-width: 1180px; height: min(640px, 74vh); margin: 0 auto; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(0,212,255,0.4); background: radial-gradient(ellipse at 50% 60%, #052a48, #01070e 75%); box-shadow: 0 30px 90px rgba(0,0,0,0.5); }
#holo { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#holo.dragging { cursor: grabbing; }
.holo-search { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; width: min(520px, 90%); }
.holo-toast { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); font: 700 1rem var(--head); letter-spacing: 0.2em; color: #78ffd2; opacity: 0; transition: opacity 0.3s; text-shadow: 0 0 12px rgba(120,255,210,0.6); }
.holo-toast.show { opacity: 1; }
.holo-hint { position: absolute; bottom: 12px; width: 100%; text-align: center; margin: 0; font: 600 0.75rem var(--head); letter-spacing: 0.3em; color: #3f8fb0; text-transform: uppercase; }

/* ---------- Esc simulation ---------- */
.esc { padding: 70px var(--gutter); }
.sim { max-width: 1000px; margin: 0 auto; text-align: center; }
.sim-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #12244a, #2a1240); box-shadow: 0 30px 80px rgba(0,0,0,0.5); text-align: left; }
.sim-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  box-shadow: inset 0 0 60px 10px rgba(0,170,255,0.65), inset 0 0 0 3px rgba(120,220,255,0.9); background: rgba(0,110,255,0.06); }
.sim.running .sim-screen::after { opacity: 1; animation: glowpulse 2.4s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: inset 0 0 40px 6px rgba(0,170,255,0.45), inset 0 0 0 3px rgba(120,220,255,0.6); } }
.sim-banner { position: absolute; top: 3%; left: 50%; transform: translate(-50%, -160%); transition: transform 0.5s cubic-bezier(.2,.9,.3,1.2); z-index: 3;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 999px; border: 1px solid rgba(0,200,255,0.7);
  background: linear-gradient(90deg, rgba(0,30,70,0.95), rgba(0,55,120,0.95)); color: #eaf9ff; font-size: clamp(0.62rem, 1.4vw, 0.85rem); white-space: nowrap; }
.sim.running .sim-banner { transform: translate(-50%, 0); }
.sim-banner small { display: block; color: #96d7f0; font-size: 0.85em; }
.sim-orb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(#fff, #6fe6ff 40%, transparent 70%); box-shadow: 0 0 12px var(--cyan); }
.sim-key { border: 1px solid #96d7f0; border-radius: 4px; padding: 0 5px; font-size: 0.75em; color: #96d7f0; }
#sim-stop { border: 0; border-radius: 999px; padding: 5px 12px; background: #ff465a; color: #fff; font-weight: 600; cursor: pointer; font-size: inherit; }
.sim-window { position: absolute; left: 14%; top: 20%; width: 52%; height: 62%; background: #f7f7f7; border-radius: 6px; overflow: hidden; color: #222;
  transform: scale(0.9); opacity: 0; transition: all 0.4s; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.sim.started .sim-window { transform: none; opacity: 1; }
.sim-title { background: #e6e6e6; padding: 5px 10px; font-size: clamp(0.6rem, 1.2vw, 0.8rem); }
.sim-menu { padding: 3px 10px; font-size: clamp(0.55rem, 1.1vw, 0.75rem); border-bottom: 1px solid #ddd; }
.sim-text { margin: 0; padding: 8px 12px; font: clamp(0.6rem, 1.4vw, 0.95rem)/1.5 var(--mono); white-space: pre-wrap; }
.sim-card { position: absolute; right: 3%; top: 20%; width: 27%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(0,210,255,0.5); background: rgba(0,30,55,0.85);
  font-size: clamp(0.5rem, 1.1vw, 0.78rem); color: var(--body-text); opacity: 0; transition: opacity 0.4s; }
.sim.started .sim-card { opacity: 1; }
.sim-card b { font-family: var(--head); letter-spacing: 0.16em; color: var(--cyan); }
.sim-card.stopped b { color: #ff7b8a; }
.sim-card ul { margin: 6px 0 0; padding-left: 14px; }
.sim-cursor { position: absolute; left: 80%; top: 80%; width: 22px; z-index: 4; opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 14px rgba(0,180,255,0.7)); }
.sim.started .sim-cursor { opacity: 1; }
.sim-cursor svg { width: 100%; fill: #dff8ff; stroke: #0060c0; stroke-width: 1.4; }
.sim-cursor span { position: absolute; left: 20px; top: 26px; font: 700 0.55rem var(--head); letter-spacing: 0.15em; color: #9be8ff; }
.sim-cursor.click::after { content: ""; position: absolute; left: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cyan); animation: ripple 0.5s forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.sim-stopped { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all 0.4s; padding: 10px 18px; border-radius: 12px;
  background: rgba(0,50,90,0.9); border: 1px solid var(--cyan); color: #fff; font-size: clamp(0.7rem, 1.6vw, 1rem); white-space: nowrap; }
.sim.stopped .sim-stopped { opacity: 1; transform: translateX(-50%); }
.sim-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: radial-gradient(circle at 50% 50%, rgba(0,120,200,0.25), transparent 60%); color: #dff4ff; cursor: pointer; font: inherit; transition: opacity 0.4s; }
.sim-idle .play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 1.8rem; padding-left: 6px;
  background: radial-gradient(circle, rgba(0,90,150,0.9), rgba(0,30,55,0.95)); border: 2px solid var(--cyan); box-shadow: 0 0 30px rgba(0,212,255,0.5);
  animation: nodepulse 2.4s infinite; }
.sim-idle b { font: 700 1.4rem var(--head); letter-spacing: 0.08em; margin-top: 8px; }
.sim-idle small { color: var(--muted); }
.sim.started .sim-idle { opacity: 0; pointer-events: none; }

/* ---------- how / pipeline ---------- */
.how { padding: 70px var(--gutter); max-width: 1280px; margin: 0 auto; }
.pipeline { position: relative; margin: 10px auto 50px; max-width: 1100px; }
/* the line runs between the first and last stage icons (column centres at 10% and 90%), through their middles */
.pipeline > svg { position: absolute; top: 7px; left: 0; width: 100%; height: 60px; overflow: visible; }
.pipeline > svg path { stroke: rgba(0,212,255,0.35); stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pipeline > svg circle { fill: #fff; filter: drop-shadow(0 0 6px var(--cyan)); }
.nodes { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.node { text-align: center; }
/* line icons (SVG sprite in index.html) */
.icon { width: 28px; height: 28px; fill: none; stroke: url(#ig); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.55)); overflow: visible; }

/* pipeline stage: glass disc inside a slowly turning segmented ring */
.node-ring { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #0a4f7c, #03182c 70%); /* opaque, so the pipeline line passes behind */
  box-shadow: 0 0 0 1px rgba(0,212,255,0.35) inset, 0 0 22px rgba(0,170,255,0.25); animation: nodepulse 3.2s infinite; }
.node-ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan) 0 14%, transparent 14% 25%, rgba(0,212,255,0.55) 25% 39%, transparent 39% 50%,
    var(--cyan) 50% 64%, transparent 64% 75%, rgba(0,212,255,0.55) 75% 89%, transparent 89%);
  /* keep only a thin 2.5px band at the outer edge (closest-side = measured to the edge, not the corner) */
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); animation: spin 9s linear infinite; opacity: 0.9; }
.nodes { z-index: 1; }
.node-ring .icon { width: 30px; height: 30px; }
.node:nth-child(2) .node-ring { animation-delay: 0.64s; } .node:nth-child(3) .node-ring { animation-delay: 1.28s; }
.node:nth-child(4) .node-ring { animation-delay: 1.92s; } .node:nth-child(5) .node-ring { animation-delay: 2.56s; }
.node:nth-child(even) .node-ring::before { animation-direction: reverse; }
@keyframes nodepulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(0,212,255,0.35) inset, 0 0 18px rgba(0,180,255,0.2); }
  10% { box-shadow: 0 0 0 1px rgba(0,230,255,0.9) inset, 0 0 42px rgba(0,230,255,0.75); transform: scale(1.07); } 25% { transform: none; } }
.node b { display: block; font: 700 1.12rem var(--head); letter-spacing: 0.03em; }
.node small { color: var(--muted); }

/* feature cards: glass panel, gradient top edge, HUD corner brackets, glowing icon tile, light sweep on hover */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; overflow: hidden; padding: 28px 26px 26px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 44, 72, 0.72), rgba(3, 15, 28, 0.88));
  border: 1px solid rgba(0, 212, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.9), transparent); opacity: 0.6; transition: opacity 0.3s; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(150, 235, 255, 0.10) 50%, transparent 65%); transform: translateX(-110%); transition: transform 0.9s; }
.card:hover { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(0, 170, 255, 0.18); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: translateX(110%); }
.card .corner { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-top: 1.5px solid rgba(0,212,255,0.5); border-right: 1.5px solid rgba(0,212,255,0.5); border-top-right-radius: 4px; }
.card h3 { margin: 18px 0 8px; font-size: 1.32rem; }
.card p { color: var(--body-text); margin: 0; font-size: 0.97rem; }
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px;
  background: radial-gradient(circle at 30% 25%, rgba(0, 170, 240, 0.45), rgba(0, 40, 75, 0.85) 70%);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.4) inset, 0 8px 22px rgba(0, 120, 220, 0.3); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover .ico { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 0 1px rgba(0, 230, 255, 0.8) inset, 0 10px 30px rgba(0, 170, 255, 0.5); }

/* ---------- pricing ---------- */
.pricing { padding: 70px var(--gutter); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 26px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--panel); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(0,212,255,0.6); box-shadow: 0 24px 60px rgba(0,120,220,0.25); }
.plan h3 { font-size: 1.8rem; margin: 0; }
.plan-tag { color: var(--muted); margin: 4px 0 18px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 22px; }
.price b { font: 700 4rem/1 var(--head); color: #fff; text-shadow: 0 0 24px rgba(0,212,255,0.55); }
.price .cur { font: 600 1.6rem var(--head); color: var(--cyan); align-self: flex-start; margin-top: 6px; }
.price .per { color: var(--muted); font-size: 1rem; margin-left: 4px; }
.plan .ticks { flex: 1; margin-bottom: 26px; }
.plan-btn { justify-content: center; width: 100%; }
.plan.pro { border-color: rgba(0,212,255,0.65);
  background: radial-gradient(ellipse at 50% 0%, rgba(0,160,255,0.25), transparent 60%), linear-gradient(160deg, rgba(4,40,70,0.95), rgba(3,16,30,0.95));
  box-shadow: 0 0 0 1px rgba(0,212,255,0.25) inset, 0 20px 70px rgba(0,140,255,0.28); }
.plan.pro::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), rgba(0,212,255,0.9), transparent 30%, rgba(0,212,255,0.9) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rot 5s linear infinite; }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #19c3ff, #0a86e0); color: #001522; font: 700 0.78rem var(--head); letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0,190,255,0.6); white-space: nowrap; }
.pro-tag { display: inline-block; padding: 1px 8px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--cyan); color: #fff;
  background: rgba(0,140,220,0.35); font-size: 0.7rem; letter-spacing: 0.18em; vertical-align: middle; }
.checkout-note { margin-top: 26px; min-height: 1.5em; }
.checkout-note.flash { color: var(--cyan-soft); animation: notepulse 0.9s ease; }
@keyframes notepulse { 0% { transform: scale(0.96); opacity: 0.2; } 60% { transform: scale(1.03); } 100% { transform: none; opacity: 1; } }

/* ---------- privacy, download, faq ---------- */
.privacy { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; max-width: 1080px; margin: 60px auto;
  padding: 46px clamp(22px, 4vw, 56px); width: calc(100% - 2 * var(--gutter)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.privacy p { color: var(--body-text); }
.shield svg { width: 100%; }
.shield path { fill: rgba(0,60,100,0.5); stroke: var(--cyan); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(0,212,255,0.6)); }
.shield .tick { fill: none; stroke: #5affc8; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s 0.4s; }
.privacy.in .tick { stroke-dashoffset: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: #d3ecf7; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--cyan) 30%, transparent 72%); box-shadow: 0 0 10px rgba(0,212,255,0.7); }
/* ---------- mobile app ---------- */
.mobile { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 90px var(--gutter); max-width: 1240px; margin: 0 auto; }
.mobile .ticks { margin: 22px 0 28px; }
.mobile-cta .fine { margin-top: 14px; max-width: 34em; }
.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19; padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #1d2a36, #05080c); box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 40px 90px rgba(0,0,0,0.6), 0 0 80px rgba(0,170,255,0.18); }
.phone-screen { height: 100%; border-radius: 37px; background: #000; display: flex; flex-direction: column; align-items: center; padding: 22px 18px; position: relative; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 42%, rgba(42,125,255,0.18), transparent 70%); }
.ph-top { width: 100%; display: flex; align-items: center; gap: 6px; font: 0.72rem var(--body); color: #8b8d96; position: relative; }
.ph-top b { margin-left: auto; color: #f4f5f7; font-weight: 600; }
.ph-live { width: 7px; height: 7px; border-radius: 50%; background: #ff5a6a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.ph-orb { width: 58%; aspect-ratio: 1; border-radius: 50%; margin: auto 0 22px; position: relative;
  background: radial-gradient(circle at 35% 30%, #d9f6ff 0%, #6fd8ff 18%, #2a7dff 45%, #3a1f9e 75%, #0a0420 100%);
  box-shadow: 0 0 60px -6px rgba(62,200,255,0.6), inset 0 -10px 30px rgba(0,0,0,0.55); animation: phtalk 1.1s ease-in-out infinite alternate; }
@keyframes phtalk { to { transform: scale(1.06); box-shadow: 0 0 90px 0 rgba(62,200,255,0.75), inset 0 -10px 30px rgba(0,0,0,0.55); } }
.ph-state { color: #3ec8ff; font-size: 0.78rem; font-weight: 600; margin: 0 0 6px; position: relative; }
.ph-heard { color: #f4f5f7; font-size: 1.05rem; text-align: center; margin: 0 0 auto; position: relative; }
.ph-controls { display: flex; gap: 22px; margin-top: 18px; position: relative; }
.ph-controls i { width: 46px; height: 46px; border-radius: 50%; background: #161619; }
.ph-controls i.end { background: #ff5a6a; }
@media (max-width: 860px) { .mobile { grid-template-columns: 1fr; padding: 60px var(--gutter); } }

.download { text-align: center; margin: 80px auto; max-width: 900px; padding: 56px clamp(22px, 4vw, 60px); width: calc(100% - 2 * var(--gutter));
  border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 50% 0%, rgba(0,150,255,0.22), transparent 65%), var(--panel); }
.download img { margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(0,200,255,0.6)); }
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.download .lead { margin: 0 auto 26px; }
.terminal { text-align: left; max-width: 640px; margin: 34px auto 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #010810; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(0,40,70,0.6); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font: 600 0.78rem var(--head); letter-spacing: 0.15em; color: var(--muted); }
#term { margin: 0; padding: 14px 16px; min-height: 13em; font: 0.82rem/1.7 var(--mono); color: #9fdcf3; white-space: pre-wrap; }
#term .ok { color: #5affc8; } #term .bar { color: var(--cyan); }
.install { text-align: left; max-width: 640px; margin: 26px auto 18px; padding-left: 1.3em; display: grid; gap: 10px; color: #c7e7f5; }
.faq { max-width: 860px; margin: 0 auto; padding: 30px clamp(16px, 6vw, 40px) 80px; }
.faq h2 { margin-bottom: 28px; }
details { padding: 18px 24px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color 0.2s; }
details[open] { border-color: rgba(0,212,255,0.55); }
summary { cursor: pointer; font: 600 1.18rem var(--head); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--cyan); font-size: 1.3rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--body-text); }
.footer { text-align: center; padding: 40px 16px 60px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .brand { justify-content: center; margin-bottom: 10px; }
#to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; z-index: 40;
  background: rgba(0,50,85,0.85); border: 1px solid var(--cyan); color: #fff; text-decoration: none; font-size: 1.2rem;
  opacity: 0; transform: translateY(20px); transition: all 0.3s; box-shadow: 0 0 18px rgba(0,212,255,0.35); }
#to-top.show { opacity: 1; transform: none; }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.8s; }
.reveal-scale { opacity: 0; transform: scale(0.94) translateY(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.reveal.in, .reveal-scale.in { opacity: 1; transform: none; filter: none; }


/* ---------- coding agents ---------- */
.agents { padding: 70px var(--gutter); }
.agents-stage { max-width: 1180px; margin: 0 auto 34px; }
.agents-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.agents-tab { font: 700 0.95rem var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: rgba(4, 30, 52, 0.6); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.agents-tab:hover { color: var(--text); border-color: rgba(0, 212, 255, 0.5); }
.agents-tab.active { color: #fff; border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 212, 255, 0.3); }
.agents-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.agents-frame img { width: 100%; height: auto; border-radius: calc(var(--radius) - 6px); transition: opacity 0.25s; }
.agents-frame img.swap { opacity: 0; }
.agents-cards { max-width: 1180px; margin: 0 auto; }

/* ---------- desktop buddy ---------- */
.buddy { padding: 70px var(--gutter); }
.buddies { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; gap: 18px; margin: 0 auto 46px; }
.buddies figure { margin: 0; text-align: center; }
.buddies img { width: 100%; height: auto; animation: bob 4.2s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 150, 255, 0.18)); }
.buddies figure:nth-child(2) img { animation-delay: -1s; }
.buddies figure:nth-child(3) img { animation-delay: -2s; }
.buddies figure:nth-child(4) img { animation-delay: -3s; }
.buddies figcaption { font: 700 0.85rem var(--head); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan-soft); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.boxing { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 460px); justify-content: center; align-items: center; gap: 36px;
  max-width: 1080px; margin: 0 auto; }
.boxing img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.boxing p { color: var(--body-text); }
@media (max-width: 960px) {
  .buddies { grid-template-columns: repeat(2, minmax(0, 200px)); }
  .boxing { grid-template-columns: 1fr; text-align: center; }
}

.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- coming soon ---------- */
.btn.soon { cursor: default; gap: 10px; }
.btn.soon:hover { transform: none; }
.soon-dot { width: 9px; height: 9px; border-radius: 50%; background: #78ffd2; box-shadow: 0 0 0 0 rgba(120, 255, 210, 0.7);
  animation: soon-pulse 1.8s ease-out infinite; flex: none; }
@keyframes soon-pulse { 0% { box-shadow: 0 0 0 0 rgba(120, 255, 210, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(120, 255, 210, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 24px; }
  .hero .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .hero-reactor { order: -1; }
  #reactor { width: min(400px, 80vw); }
  .scroll-hint { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-media { order: -1; position: sticky; top: 70px; z-index: 2; }
  .shot-stack { position: relative; top: 0; transform: none; }
  .s-step { min-height: 52vh; }
  .nodes { grid-template-columns: 1fr; gap: 22px; }
  .pipeline > svg { display: none; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 460px); }
  .privacy { grid-template-columns: 1fr; text-align: center; }
  .shield { width: 110px; margin: 0 auto; }
  .ticks { text-align: left; }
  .legal-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx, .reveal, .reveal-scale { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

/* the header's Sign in link (account.html); on small screens it replaces the decorative "Coming soon" button */
.nav .nav-signin { margin-left: auto; margin-right: 8px; white-space: nowrap; }
@media (max-width: 560px) { .nav .btn.soon { display: none; } .nav .nav-signin { margin-right: 0; } }

/* ---------------------------------------------------------------- clean premium (2.13)
   One quiet type family, sentence case, neutral glass, generous space: calm and Apple-like instead of sci-fi. */
:root { --head: "Inter", "Segoe UI", system-ui, sans-serif; --line: rgba(255, 255, 255, 0.09);
        --panel: rgba(255, 255, 255, 0.04); --text: #f2f6f9; --muted: #9aa8b4; --body-text: #c9d3db; --radius: 24px; }
body { letter-spacing: -0.006em; }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; }
h1 { font-weight: 750; }
.eyebrow, .boot-skip, .prompt, .track span, .holo-hint, .agents-tab, .buddies figcaption { text-transform: none; letter-spacing: 0; }
.eyebrow { font: 600 0.95rem var(--body); }
.track span { font-weight: 600; }
.sim-card b { letter-spacing: 0; }
.btn { border-radius: 999px; letter-spacing: 0; text-transform: none; font-family: var(--body); font-weight: 600; }
details, .card, .plan, .sim-card { border-color: var(--line); }
