/* VidiSpark — tokens */
:root {
  --ink: #24124A;        /* deep purple */
  --paper: #F7F5FC;      /* violet-tinted white */
  --surface: #FFFFFF;
  --spark: #EA7500;      /* ignition orange */
  --signal: #5B2FD6;     /* violet, links */
  --muted: #5E5677;
  --line: #E0D9EE;
  --on-spark: #24124A;
  --band-bg: #24124A;
  --band-fg: #F7F5FC;

  --display: "Carlito", Calibri, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.6rem, 1.4rem + 5.2vw, 5.5rem);
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEE9F8;
    --paper: #140A2A;
    --surface: #1E1238;
    --signal: #B9A2FF;
    --muted: #B0A6C8;
    --line: #362A55;
    --band-bg: #2A1754;
    --band-fg: #EEE9F8;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--signal); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.6em; font-weight: 700; }
h2 { font-size: var(--step-2); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font: 700 1.35rem/1 var(--display); }
.brand-mark { width: 1.5rem; height: 1.5rem; fill: var(--spark); }
.site-header ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--spark); color: var(--on-spark);
  font-weight: 600; text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px;
}
.btn:hover { background: #FF8A1F; }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }
.link { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }

/* Hero: the headline is the memorable element */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 6rem); }
.display {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.product-name { font: 700 1.2rem/1 var(--display); color: var(--muted); margin-bottom: 1rem; }
.page-ignite .display { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.5rem); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.section-title { margin-bottom: 2.5rem; }
.band { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(3.5rem, 7vw, 6rem); }
.band .prose p { color: inherit; opacity: .88; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .band .split { align-items: start; }
  .hero-split { grid-template-columns: 1.1fr 1fr; }
}

/* Pillars: two-column definition list, no cards */
.pillars { display: grid; gap: 2rem 3.5rem; margin: 0; }
@media (min-width: 44rem) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars div { border-left: 3px solid var(--spark); padding-left: 1.25rem; }
.pillars dt { font: 700 var(--step-1)/1.2 var(--display); margin-bottom: .4rem; }
.pillars dd { margin: 0; color: var(--muted); max-width: 46ch; }

/* Steps: a real sequence, so it's numbered */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2.5rem; margin: 0; padding: 0; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font: 700 3.5rem/1 var(--display); color: var(--spark); margin-bottom: .75rem;
}
.steps p { color: var(--muted); }

/* Forge */
.display-wide { max-width: 20ch; }
.accent { color: var(--spark); }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2.5rem; }
@media (min-width: 64rem) { .pillars-3 { grid-template-columns: repeat(3, 1fr); } }

/* Pipeline: five numbered stages */
.pipeline { list-style: none; counter-reset: stage; display: grid; gap: 2rem; margin: 0; padding: 0; }
@media (min-width: 40rem) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pipeline { grid-template-columns: repeat(5, 1fr); } }
.pipeline li { counter-increment: stage; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.pipeline li::before {
  content: counter(stage, decimal-leading-zero);
  display: block; font: 700 1.75rem/1 var(--display); color: var(--spark); margin-bottom: .6rem;
}
.pipeline h3 { margin-bottom: .3rem; }
.pipeline p { color: var(--muted); font-size: 1rem; }

/* Deployment options */
.options { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 52rem) { .options { grid-template-columns: 1fr 1fr; } }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.option-label { color: var(--spark); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.option h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.option p:last-child { color: var(--muted); margin: 0; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.25rem; }
.compare thead tr { background: var(--surface); }
.compare thead th { font-weight: 600; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forge mock: a channel moving through the pipeline */
@media (min-width: 52rem) { .split-reverse > :first-child { order: 2; } }
.forge-mock { margin: 0; }
.forge-panel {
  background: #0E0720; border: 10px solid #2A1A4A; border-radius: 14px; padding: 6%;
  display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -30px rgba(36, 18, 74, .55);
  font-size: clamp(.6rem, 1.1vw, .8rem); color: #D2C8E6;
}
.forge-head { display: flex; justify-content: space-between; align-items: center; }
.forge-channel { color: #fff; font: 700 clamp(.85rem, 1.6vw, 1.15rem)/1.1 var(--display); }
.forge-status { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.forge-status::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #3DDC97; }
.forge-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4%; }
.forge-stages li {
  position: relative; text-align: center; padding: .7em .2em; border-radius: 6px;
  background: #2E2152; color: #EEE9F8; font-weight: 600;
}
.forge-stages li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -20%; width: 20%; height: 2px; background: #EA7500;
}
@media (max-width: 40rem) {
  .forge-stages { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .forge-stages li { padding: .6em .3em; }
  .forge-stages li::after { display: none; }
}
.forge-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.forge-ladder span {
  text-align: center; padding: .45em 0; border-radius: 4px;
  background: linear-gradient(90deg, #3A1C8C, #6A3DE8); color: #fff; font-weight: 600;
}
.forge-ladder span:nth-child(2) { opacity: .85; }
.forge-ladder span:nth-child(3) { opacity: .7; }
.forge-ladder span:nth-child(4) { opacity: .55; }
.forge-outputs { display: flex; flex-wrap: wrap; gap: .5em; }
.forge-outputs span { border: 1px solid #6E6390; border-radius: 999px; padding: .25em .8em; color: #D2C8E6; }
.forge-outputs span:nth-child(-n+2) { border-color: #EA7500; color: #fff; }
.forge-mock figcaption { font-size: .9rem; color: var(--muted); margin-top: 1rem; max-width: 48ch; }

/* TV mock: Ignite's three building blocks */
.tv { margin: 0; }
.tv-screen {
  aspect-ratio: 16 / 9; background: #0E0720; border: 10px solid #2A1A4A; border-radius: 14px;
  padding: 4%; display: grid; grid-template-rows: 1.6fr auto 1fr auto; gap: 4%; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(36, 18, 74, .55);
}
.tv-hero {
  border-radius: 6px; padding: 5%; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
  background: linear-gradient(110deg, #3A1C8C 0%, #6A3DE8 55%, #EA7500 130%);
}
.tv-hero-title { color: #fff; font: 700 clamp(.85rem, 1.6vw, 1.25rem)/1.1 var(--display); }
.tv-hero-cta { align-self: flex-start; background: #fff; color: #24124A; font-size: clamp(.55rem, .9vw, .75rem); font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.tv-rail-label { color: #D2C8E6; font-size: clamp(.55rem, .9vw, .75rem); font-weight: 600; }
.tv-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3%; }
.tv-rail span { border-radius: 4px; background: #2E2152; }
.tv-rail span:first-child { outline: 2px solid #EA7500; outline-offset: 2px; background: #47367E; }
.tv-ad {
  border: 1px dashed #6E6390; border-radius: 4px; color: #B0A6C8; text-align: center;
  font-size: clamp(.5rem, .85vw, .7rem); padding: 2% 0;
}
.tv figcaption { font-size: .9rem; color: var(--muted); margin-top: 1rem; max-width: 48ch; }

/* CTA */
.cta { text-align: left; }
.cta h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); max-width: 20ch; }
.cta p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; color: var(--muted); font-size: .95rem; }
.footer-brand { font: 700 1.2rem/1 var(--display); color: var(--ink); }
.fine { font-size: .85rem; margin-top: 1.5rem; }

@media (max-width: 40rem) {
  .site-header ul { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
