:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --card: #151517;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --dim: #5c5c63;
  --coral: #ff5a4e;
  --amber: #f5b544;
  --green: #4ade80;
  --radius: 20px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .nav, .foot { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.icon-btn { color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--text); color: #0a0a0b; box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08); }
.btn-light:hover { box-shadow: 0 10px 40px rgba(255, 255, 255, 0.16); }
.btn-dark { background: #1c1c1f; border: 1px solid var(--line-2); }
.btn-dark:hover { background: #242428; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }

/* HERO */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 80px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.hero-orb {
  position: relative;
  width: clamp(240px, 32vw, 400px);
  aspect-ratio: 1;
  margin: -8px 0 -40px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
/* The loop is rendered on the page colour; the radial mask fades its square edge into the dot field. */
.orb-video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 70%);
}
.orb-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 90, 78, 0.35), transparent 65%);
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, #8d8d94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.install { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.install-hint { font-size: 12px; color: var(--dim); }
.terminal {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 14px 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.terminal code { overflow-x: auto; white-space: nowrap; color: #d4d4d8; }
.prompt { color: var(--dim); }
.copy { background: none; border: 0; color: var(--dim); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.copy:hover, .copy.done { color: var(--text); }

/* MARQUEE */
.marquee-wrap { padding: 20px 0 60px; text-align: center; }
.eyebrow { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--dim); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 16px; text-align: center; }
h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.sub { color: var(--muted); max-width: 560px; margin: 16px auto 0; font-size: 17px; line-height: 1.55; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; perspective: 1000px; }
.card {
  position: relative;
  text-align: left;
  padding: 28px;
  background: linear-gradient(180deg, #18181b, #111113);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 78, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card img { width: 180px; height: 180px; margin: -6px auto 14px; transform: translateZ(40px); transition: transform 0.4s; }
.card:hover img { transform: translateZ(60px) scale(1.05) rotate(-3deg); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--coral); letter-spacing: 0.04em; }
.card h3 { font-size: 22px; margin: 8px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card b { color: var(--text); font-weight: 600; }

/* DEMO */
.demo {
  margin-top: 48px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 18, 20, 0.8);
  padding: 14px;
}
.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 4px 14px; }
.demo-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--font);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.demo-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.demo-pane { background: #0d0d0f; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 260px; }
.pane-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; }
#demo-input { padding: 18px; font: 13px/1.7 var(--mono); color: #c8c8cf; white-space: pre-wrap; word-break: break-word; }
#demo-input mark { background: rgba(255, 90, 78, 0.18); color: #ffb3ad; border-radius: 4px; padding: 1px 3px; outline: 1px solid rgba(255, 90, 78, 0.5); }
.verdict { margin: 20px 18px 6px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; font: 600 15px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.verdict::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.verdict.block { color: var(--coral); background: rgba(255, 90, 78, 0.1); }
.verdict.confirm { color: var(--amber); background: rgba(245, 181, 68, 0.1); }
.verdict.allow { color: var(--green); background: rgba(74, 222, 128, 0.1); }
.reasons { list-style: none; padding: 10px 18px 18px; display: grid; gap: 10px; }
.reasons li { font-size: 14px; color: var(--muted); line-height: 1.5; padding-left: 16px; position: relative; }
.reasons li::before { content: "→"; position: absolute; left: 0; color: var(--dim); }
.reasons code { font-family: var(--mono); font-size: 12px; color: var(--text); }

/* COMPARE */
.compare { max-width: 720px; margin: 44px auto 0; }
.switch { position: relative; display: inline-flex; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.switch button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 14px var(--font); padding: 10px 22px; cursor: pointer; transition: color 0.25s; width: 130px; }
.switch button.on { color: #0a0a0b; }
.switch-thumb { position: absolute; top: 4px; left: 4px; width: 130px; height: calc(100% - 8px); background: var(--text); border-radius: 10px; transition: transform 0.3s cubic-bezier(.3,.7,.2,1); }
.switch[data-mode="raw"] .switch-thumb { transform: translateX(130px); }
.compare-list { list-style: none; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; }
.compare-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); background: rgba(21, 21, 23, 0.7); font-size: 15px; }
.compare-list li:first-child { border-top: 0; }
.compare-list b { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.compare-list b.good { color: var(--green); background: rgba(74, 222, 128, 0.1); }
.compare-list b.warn { color: var(--amber); background: rgba(245, 181, 68, 0.1); }
.compare-list b.bad { color: var(--coral); background: rgba(255, 90, 78, 0.1); }

/* STEPS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; text-align: left; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 21, 23, 0.7); }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--text); color: #0a0a0b; font-weight: 800; margin-bottom: 22px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat b { display: block; font-size: clamp(48px, 7vw, 88px); font-weight: 800; letter-spacing: -0.05em; }
.stat span { color: var(--muted); font-size: 15px; }
.stats-note { margin-top: 44px; color: var(--muted); font-size: 17px; }

/* MODELS */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.model { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21, 21, 23, 0.7); text-align: left; }
.model h3 { font-size: 18px; }
.model p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* FINAL */
.final { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 80px 16px 120px; }
.final-mark { width: 200px; animation: float 7s ease-in-out infinite; }
.final h2 { font-size: clamp(40px, 7vw, 80px); }
.fine { color: var(--dim); font-size: 13px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot a { color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .switch button { width: 110px; padding: 10px 12px; }
  .switch-thumb { width: 110px; }
  .switch[data-mode="raw"] .switch-thumb { transform: translateX(110px); }
  .compare-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-cta .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
