/* ===========================================================
   FLASH: Fast Local Agent Shell, landing page
   =========================================================== */

:root {
  --bg: #08090b;
  --bg-alt: #0d0f12;
  --bg-raise: #131519;
  --fg: #f4f1ea;
  --muted: #9b968d;
  --muted-2: #8c8579;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --accent: #ff8a3d;
  --accent-2: #ffcf6b;
  --accent-dim: #b3652b;
  --accent-glow: rgba(255, 138, 61, 0.35);

  --violet: #8a6bff;
  --pink: #ff5da2;

  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Metric-matched local fallbacks so the Inter/JetBrains Mono webfont swap
   (font-display: swap) doesn't reflow the page: these size-adjusted local
   faces occupy the same box the real webfont will, so swapping in the
   loaded font only changes glyph shapes, not layout, avoiding CLS. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New");
  ascent-override: 102.02%;
  descent-override: 30%;
  line-gap-override: 0%;
  size-adjust: 99.98%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* The hero terminal's typing loop resizes content above the fold once
     scrolled past. Without this, the browser's scroll-anchoring "helpfully"
     drags the whole page along to compensate, which reads as the page
     scrolling on its own. */
  overflow-anchor: none;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--accent-2);
}

::selection { background: var(--accent-glow); color: #fff; }

/* ---------- background texture ---------- */

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  opacity: 0.6;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  will-change: transform;
}

/* ---------- scroll-scrub base ---------- */

[data-scrub] { --p: 0; }

/* ---------- layout helpers ---------- */

main, .nav, .footer { position: relative; z-index: 1; }

section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 14vw, 120px) clamp(20px, 6vw, 32px);
  scroll-margin-top: 108px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin: 0 0 64px;
}

.glow-word {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- reveal animations (one-shot, on first view) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px) scale(0.98);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-blur.in-view { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-blur { transition: none; opacity: 1; transform: none; filter: none; }
}

/* =============== NAV =============== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 32px);
  padding-left: max(clamp(18px, 4vw, 32px), calc(env(safe-area-inset-left) + 12px));
  padding-right: max(clamp(18px, 4vw, 32px), calc(env(safe-area-inset-right) + 12px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  flex-shrink: 0;
}
.brand-bolt { flex-shrink: 0; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost span:last-child { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 9, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px clamp(18px, 6vw, 32px); border-top: 1px solid var(--line-soft); }
}

/* =============== BUTTONS =============== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #150c04;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-solid:hover { box-shadow: 0 6px 24px -4px var(--accent-glow); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-outline {
  border-color: var(--line);
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--accent-dim); background: rgba(255, 138, 61, 0.06); }

.btn-lg { padding: 14px 22px; font-size: 0.9rem; }

/* =============== HERO =============== */

.hero {
  position: relative;
  padding: clamp(130px, 24vw, 190px) clamp(20px, 6vw, 32px) clamp(80px, 12vw, 120px);
  max-width: 1120px;
  margin: 0 auto;
}

.hero-lights {
  position: absolute;
  top: -10%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.beam {
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  filter: blur(60px);
  opacity: 0.35;
  border-radius: 100%;
  animation: drift 14s ease-in-out infinite;
}
.beam-1 { left: 4%;  background: var(--violet); animation-delay: 0s; }
.beam-2 { left: 22%; background: var(--pink); width: 90px; animation-delay: -3s; }
.beam-3 { right: 18%; background: var(--accent); width: 180px; animation-delay: -6s; }
.beam-4 { right: 2%; background: var(--violet); width: 100px; animation-delay: -9s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(40px) scale(1.15); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .beam { animation: none; } }
@media (max-width: 640px) {
  .beam { filter: blur(42px); opacity: 0.25; }
}

.hero-inner { text-align: center; position: relative; }

.hero-title {
  font-size: clamp(2.2rem, 7.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 26px;
}
.hero-title .muted-line { color: var(--muted-2); font-weight: 700; }
.accent-glow-text {
  display: inline-block;
  font-size: 0.84em;
  color: var(--accent-2);
  text-shadow:
    0 0 14px var(--accent-glow),
    0 0 38px var(--accent-glow),
    0 0 70px rgba(255, 138, 61, 0.25);
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.2vw, 1.1rem);
}
.hero-sub strong { color: var(--fg); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 90px;
}

/* ---- demo video ---- */

.video-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-embed:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-dim);
}
.video-embed:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.video-embed-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(0.7) blur(3px);
  transition: filter 0.3s;
}
.video-embed:hover .video-embed-thumb { filter: brightness(0.55) blur(3px); }

.video-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #150c04;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.video-embed:hover .video-embed-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 36px -6px var(--accent-glow);
}

/* ---- terminal mockup ---- */

.hero-terminal {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  perspective: 1200px;
  transform: translateY(calc((var(--p, 0) - 0.5) * -46px));
  will-change: transform;
}

.term-glow {
  position: absolute;
  inset: -6%;
  background: radial-gradient(ellipse 60% 60% at 50% 30%, var(--accent-glow), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.term-window {
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
  text-align: left;
  transform: rotateX(6deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.term-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.term-body {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 22px 20px 30px;
  height: 400px;
  overflow: hidden;
  color: #d9d5cc;
  white-space: pre-wrap;
  word-break: break-word;
}
/* =============== WATCH SECTION =============== */

.watch {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(90px, 15vw, 130px) clamp(20px, 6vw, 32px) clamp(90px, 16vw, 120px);
  text-align: center;
}

.section-divider {
  border-top: 1px solid var(--line);
}
.watch-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 18px;
}
.watch-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.watch-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 480px;
  margin: 0 auto 64px;
}

/* =============== POWER / AURA SECTION =============== */

.power-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(90px, 18vw, 140px) clamp(20px, 6vw, 32px);
  text-align: center;
  overflow: hidden;
}

.aura-field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.aura-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--pink), var(--violet), var(--accent-2), var(--accent));
  filter: blur(90px);
  opacity: calc(0.14 + var(--p, 0) * 0.26);
  transform: rotate(calc(var(--p, 0) * 720deg)) scale(calc(0.82 + var(--p, 0) * 0.38));
  will-change: transform, opacity;
}

.power-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 18px;
}
.power-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 22px;
}
.power-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 540px;
  margin: 0 auto 52px;
}

.cloud-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent-dim);
  background: rgba(255, 138, 61, 0.06);
  margin: 0 auto 52px;
  max-width: 560px;
  text-align: left;
}
.cloud-note svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.cloud-note p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.cloud-note strong { color: var(--accent-2); font-weight: 700; }

.host-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.host-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  min-width: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.host-card code {
  background: none;
  padding: 0;
  color: var(--fg);
  font-size: 0.85rem;
}
.host-card .host-sub { color: var(--muted); font-size: 0.78rem; }
.host-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.host-card.active {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 40px -12px var(--accent-glow);
  transform: translateY(-3px);
}
.host-swap { color: var(--muted-2); }

@media (max-width: 560px) {
  .host-toggle { flex-direction: column; }
  .host-swap { transform: rotate(90deg); }
}

/* =============== CLAIM / WARP TEXT SECTION =============== */

.claim-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(70px, 14vw, 100px) clamp(20px, 6vw, 32px);
}
.claim-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .claim-inner { grid-template-columns: 1fr; gap: 40px; }
}

.claim-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 16px;
}
.claim-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  line-height: 1.1;
}
.warp-text {
  display: inline-block;
  color: var(--accent);
  filter: blur(calc((1 - min(var(--p, 0) * 2, 1)) * 14px));
  transform: scale(calc(1 + (1 - min(var(--p, 0) * 2, 1)) * 0.12));
  /* Floor of 0.6 (not 0) keeps this at/above 3:1 contrast against --bg
     even at the dimmest, pre-scroll-reveal state. */
  opacity: calc(0.6 + min(var(--p, 0) * 2, 1) * 0.4);
  will-change: transform, filter, opacity;
}
.claim-sub { color: var(--muted); font-size: clamp(0.95rem, 2vw, 1.02rem); max-width: 440px; }

.claim-visual { display: flex; justify-content: center; }
.mini-term {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.mini-term-row { padding: 5px 0; }
.mini-term-row.muted { color: var(--muted-2); }
.mini-term-row.accent { color: var(--accent); }
.mini-prompt { color: var(--accent); margin-right: 8px; }
.mini-cmd { color: var(--fg); }

/* =============== FEATURES =============== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card-wide { grid-column: 1 / -1; }
@media (min-width: 601px) {
  .feature-card-wide {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .feature-card-wide .feature-icon { margin-bottom: 0; flex-shrink: 0; }
  .feature-card-wide h3 { margin: 0 0 6px; }
  .feature-card-wide p { max-width: 640px; }
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  background: var(--bg-raise);
}
.feature-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 138, 61, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 44px auto 0;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  text-align: left;
}
.trust-note svg { color: var(--accent); flex-shrink: 0; }
.trust-note p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* =============== ONYX =============== */

.onyx { max-width: 1120px; margin: 0 auto; padding: clamp(90px, 16vw, 120px) clamp(20px, 6vw, 32px); }
.onyx-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .onyx-inner { grid-template-columns: 1fr; gap: 40px; } }

.onyx-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 16px;
}
.onyx-title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.onyx-badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #150c04;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: 10px;
  font-weight: 700;
}
.onyx-sub { color: var(--muted); margin: 0 0 32px; max-width: 480px; font-size: clamp(0.95rem, 2vw, 1rem); }

.onyx-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 32px;
  max-width: 480px;
}
.compare-prompt {
  padding: 0 4px;
}
.compare-prompt .compare-label { color: var(--muted-2); }
.compare-prompt p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--fg);
}

.compare-row {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.compare-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.compare-generic { opacity: 0.65; }
.compare-generic .compare-label { color: var(--muted-2); }
.compare-generic p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.compare-onyx {
  border-color: var(--accent-dim);
  background: rgba(255, 138, 61, 0.07);
}
.compare-onyx .compare-label { color: var(--accent); }
.compare-onyx p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-2);
}

.onyx-claim {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent-dim);
  background: rgba(255, 138, 61, 0.06);
  margin: 0 0 32px;
  max-width: 480px;
  text-align: left;
}
.onyx-claim svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.onyx-claim p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.onyx-claim strong { color: var(--accent-2); font-weight: 700; }

.onyx-visual { display: flex; justify-content: center; }
.onyx-orb-wrap { position: relative; width: 260px; height: 260px; }
.onyx-orb {
  position: absolute; inset: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 55%, #4a2308 100%);
  box-shadow: 0 0 80px 10px var(--accent-glow), inset -10px -10px 30px rgba(0,0,0,0.4);
  transform: translateY(calc((var(--p, 0) - 0.5) * -28px)) scale(calc(0.94 + var(--p, 0) * 0.1));
  will-change: transform;
}
.onyx-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line);
  transform: rotate(calc(var(--p, 0) * -540deg));
  will-change: transform;
}

/* =============== CODE BLOCKS / TABS =============== */

.code-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}
.code-block code {
  background: none;
  padding: 0;
  color: #d9d5cc;
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(255, 138, 61, 0.15); color: var(--accent-2); }
.copy-btn.copied { color: #7ee787; border-color: #7ee787; }

.install { max-width: 780px; margin: 0 auto; padding: clamp(90px, 16vw, 120px) clamp(20px, 6vw, 32px); }

.tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 100px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.tab.active { background: var(--accent); color: #150c04; font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.4s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.os-toggle {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}
.os-tab {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.os-tab.active {
  border-color: var(--accent-dim);
  color: var(--accent-2);
  background: rgba(255, 138, 61, 0.1);
}
.os-panel { display: none; }
.os-panel.active { display: block; animation: fade-in 0.35s var(--ease); }

.win-notify {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent-dim);
  background: rgba(255, 138, 61, 0.06);
  margin: 0 0 16px;
}
.win-notify svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.win-notify p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.config-note { margin-top: 32px; color: var(--muted); font-size: 0.95rem; }
.config-note p { margin: 0 0 10px; }
.config-note-sub { font-size: 0.85rem; color: var(--muted-2); }

.live-config {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: rgba(255, 138, 61, 0.05);
}
.live-config-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 12px;
}
.live-config-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
}
.live-config .cmd-table { margin: 4px 0 16px; }
.live-config .config-note-sub { margin: 0; }

/* =============== USAGE =============== */

.usage { max-width: 1120px; margin: 0 auto; padding: clamp(90px, 16vw, 120px) clamp(20px, 6vw, 32px); }
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .usage-grid { grid-template-columns: 1fr; } }

.usage-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.usage-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.usage-card h3 { margin: 0 0 14px; font-size: 1.05rem; }
.usage-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.usage-note { margin: 14px 0 0; }

.note-star { color: var(--accent); font-weight: 700; }

.usage-footnote {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 0.76rem;
}
.usage-footnote .note-star { margin-right: 4px; }
.usage-footnote + .usage-footnote { margin-top: 6px; }

.cmd-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cmd-table td { padding: 8px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.cmd-table td:first-child { white-space: nowrap; padding-right: 14px; }
.cmd-table td:last-child { color: var(--muted); }
.cmd-alt { color: var(--muted-2); font-size: 0.8rem; margin-left: 4px; }

.mini-term.static { box-shadow: none; }

/* =============== MARQUEE =============== */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  animation: marquee 28s linear infinite;
}
.marquee-track span:nth-child(odd) { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* =============== FINAL CTA =============== */

.final-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(110px, 20vw, 160px) clamp(20px, 6vw, 32px) clamp(90px, 16vw, 140px);
  text-align: center;
}
.final-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.final-sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 2.2vw, 1.05rem);
  max-width: 520px;
  margin: 0 auto 44px;
}

/* =============== FOOTER =============== */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 6vw, 32px) 30px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-tag { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 480px; }
.footer-links { display: flex; gap: 20px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--accent-2); }
.footer-fine {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.78rem;
  margin: 30px 0 0;
}

/* =============== SCROLL TOP =============== */

.scroll-top {
  position: fixed;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px));
  right: max(26px, calc(env(safe-area-inset-right) + 16px));
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.8);
  backdrop-filter: blur(8px);
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 45;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--accent-dim); color: var(--accent-2); }
