/* ==========================================================================
   JARVIS — Mark OS HUD stylesheet
   Opaque dark surfaces. Sharp vector borders. No blur, no translucency.
   ========================================================================== */

:root {
  --bg-void: #0a0b0d;
  --bg-base: #111316;
  --bg-panel: #15181c;
  --bg-panel-raised: #1b1f24;
  --bg-inset: #0d0f11;

  --line: #2a2f35;
  --line-bright: #3d444c;

  --cyan: #18b4cc;
  --cyan-bright: #4fd8ef;
  --cyan-dim: #0e5c69;

  --gold: #e8a13a;
  --gold-bright: #ffc766;

  --red: #d4383a;
  --red-bright: #ff5456;

  --text-primary: #e8ecef;
  --text-secondary: #8a949e;
  --text-dim: #838b93;

  --font-display: "Orbitron", "Arial Narrow", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", "SF Mono", monospace;

  --radius: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan-dim);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ---------- Background texture: fixed grid + scanline (opaque, no blur) ---------- */

.hud-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(24, 180, 204, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 180, 204, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
}

/* ---------- Typography helpers ---------- */

.mono-dim {
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-inset);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: var(--cyan-bright);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-base);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-rule {
  height: 2px;
  background: linear-gradient(to right, var(--cyan) 0%, var(--line) 30%, var(--line) 70%, var(--gold) 100%);
  opacity: 0.6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arc-icon {
  width: 36px;
  height: 36px;
}

.arc-ring-outer {
  stroke: var(--line-bright);
  stroke-width: 1.5;
}

.arc-ring-mid {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 4 3;
  animation: spin-slow 12s linear infinite;
  transform-origin: center;
}

.arc-ring-core {
  stroke: var(--cyan-bright);
  fill: rgba(24, 180, 204, 0.18);
  stroke-width: 2;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.18s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  position: relative;
}

.btn-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04151a;
}

.btn-primary:hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

/* ---------- Panels (the core HUD surface unit) ---------- */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel-raised);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
}

.panel-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.panel-body {
  padding: 18px;
}

/* ---------- Status chip ---------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.chip-sep {
  color: var(--line-bright);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-online {
  background: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(79, 216, 239, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dot-warn {
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(255, 199, 102, 0.18);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  z-index: -1;
  opacity: 0.5;
}

.hero-rings .ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.ring-2 {
  stroke: var(--cyan-dim);
  stroke-dasharray: 2 6;
}

.ring-4 {
  stroke: var(--gold);
  opacity: 0.3;
  stroke-dasharray: 1 4;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-title .line {
  display: block;
}

.accent-cyan {
  color: var(--cyan-bright);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 50ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.stat dd {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat .unit {
  font-size: 15px;
  color: var(--text-dim);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, auto);
  }
}

/* ---------- Console panel ---------- */

.console {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  background: var(--bg-inset);
  min-height: 220px;
}

.console-line {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts {
  color: var(--text-dim);
  margin-right: 10px;
}

.tag {
  display: inline-block;
  font-weight: 700;
  padding: 0 6px;
  margin-right: 8px;
  border-radius: 1px;
}

.tag-sys { background: rgba(138, 148, 158, 0.15); color: var(--text-secondary); }
.tag-mem { background: rgba(24, 180, 204, 0.15); color: var(--cyan-bright); }
.tag-voice { background: rgba(232, 161, 58, 0.15); color: var(--gold-bright); }
.tag-auto { background: rgba(212, 56, 58, 0.15); color: var(--red-bright); }

.typing .type-target::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: var(--cyan-bright);
}

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

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: inline-flex;
  gap: 24px;
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  animation: ticker-scroll 32s linear infinite;
}

.ticker-track .dash {
  color: var(--cyan-dim);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 32px;
}

.section-alt {
  background: var(--bg-panel);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-alt > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section-head {
  margin-bottom: 48px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.02em;
}

/* ---------- Capability grid ---------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap-card {
  background: var(--bg-panel);
  padding: 28px;
  transition: background 0.18s ease;
}

.cap-card:hover {
  background: var(--bg-panel-raised);
}

.cap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cap-icon {
  width: 30px;
  height: 30px;
  color: var(--cyan);
}

.cap-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.cap-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.cap-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: var(--radius);
}

@media (max-width: 960px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Memory rail ---------- */

.memory-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.memory-tier .panel-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

.meter {
  height: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: var(--value);
  background: linear-gradient(to right, var(--cyan-dim), var(--cyan-bright));
}

.meter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .memory-rail {
    grid-template-columns: 1fr;
  }
}

/* ---------- Status grid ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.status-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  justify-content: space-between;
}

.tool-list .status-row {
  justify-content: flex-start;
}

.tool-list .status-row span:nth-child(2) {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.value-good { color: var(--cyan-bright); }
.value-warn { color: var(--gold-bright); }
.value-alert { color: var(--red-bright); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.bar {
  height: 5px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: -4px;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cyan);
  transition: width 0.6s ease;
}

.bar-gold {
  background: var(--gold);
}

@media (max-width: 1100px) {
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA ---------- */

.section-cta {
  padding-bottom: 120px;
}

.cta-panel {
  max-width: 820px;
  margin: 0 auto;
}

.cta-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 14px;
}

.cta-body p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 56ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-void);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.03em;
}

@media (max-width: 760px) {
  .header-inner {
    padding: 14px 20px;
  }
  .hero {
    padding: 48px 20px 40px;
  }
  .section {
    padding: 56px 20px;
  }
  .footer-inner {
    padding: 20px;
  }
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--cyan);
  color: #04151a;
  padding: 10px 16px;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-bright);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-cta {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Section notes ---------- */

.section-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-top: 16px;
  max-width: 80ch;
}

/* ---------- Flow (how it works) ---------- */

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.flow-step {
  padding: 22px 18px;
}

.flow-step:not(:last-child)::after {
  /* keep the HUD corner bracket; connector drawn via border trick */
  border-color: var(--cyan);
}

.flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-bright);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.flow-step h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

/* ---------- Examples ---------- */

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.example {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-say {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-primary);
}

.example-do {
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 960px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy / trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.trust li {
  padding-left: 18px;
  position: relative;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Install ---------- */

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.steps {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.steps li::marker {
  font-family: var(--font-mono);
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  border: 1px solid var(--line);
}

.faq-item {
  background: var(--bg-panel);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--cyan-bright);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--bg-panel-raised);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Footer links ---------- */

.footer-links {
  display: inline-flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

/* ---------- Scroll reveal (only hides when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- Reduced motion ---------- */

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

/* ---------- Small-screen fixes ---------- */

.hero > * {
  min-width: 0;
}

.status-chip {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ---------- Roadmap ---------- */

.road-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.road-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.road-list li {
  padding-left: 22px;
  position: relative;
}

.road-list li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
}

.road-done li::before { content: "✓"; color: var(--cyan-bright); }
.road-wip li::before { content: "◐"; color: var(--gold-bright); }
.road-next li::before { content: "○"; color: var(--text-dim); }

.inline-link {
  color: var(--cyan-bright);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .road-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Brain panel ---------- */

.brain {
  margin-top: 24px;
}

.brain-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.brain-copy p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 14px;
}

.brain-controls {
  font-size: 12px;
}

.region-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.region-list li {
  display: grid;
  grid-template-columns: 12px 110px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.region-list b {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.region-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

@media (max-width: 860px) {
  .brain-body {
    grid-template-columns: 1fr;
  }
  .region-list li {
    grid-template-columns: 12px 96px 1fr;
  }
}

.section, main { scroll-margin-top: 90px; }

/* ---------- Section separation ---------- */

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.section-alt {
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.section-alt::before {
  display: none;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  vertical-align: middle;
  margin-right: 12px;
}

/* The Get JARVIS call-to-action reads as its own band */
.section-cta {
  max-width: none;
  padding: 96px 32px 104px;
  background: var(--bg-void);
  box-shadow: inset 0 2px 0 var(--cyan), inset 0 -1px 0 var(--line);
}

.section-cta::before {
  display: none;
}

@media (max-width: 760px) {
  .section-cta {
    padding: 64px 20px 72px;
  }
}

/* FAQ plus/minus rotates instead of swapping */
.faq-item summary::after {
  content: "+";
  display: inline-block;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.faq-item[data-state="closing"] summary::after {
  transform: none;
}

/* Tighter space above section headers */
.section {
  padding-top: 40px;
}

.section-cta {
  padding-top: 56px;
}

@media (max-width: 760px) {
  .section {
    padding-top: 28px;
  }
  .section-cta {
    padding-top: 40px;
  }
}
