/* ---------------------------------------------------------------------------
   oriiion video worker — landing
   The page is captioned like the videos it makes: headlines are set in the
   product's own caption font (Anton) as burned-in caption cards, data wears
   the mono the logs wear, and the hero "renders" a reel in a 9:16 frame.
   --------------------------------------------------------------------------- */

:root {
  --ink: #141419;          /* frame black — a material, not a background */
  --ink-2: #1e1e26;
  --studio: #eff1f4;       /* cool daylight, deliberately not cream */
  --card: #ffffff;
  --line: #d9dee4;
  --muted: #5b6470;
  --caption: #ffd400;      /* subtitle yellow — the highlight box */
  --speech: #1fab5e;       /* verdict colors: the product's own semantics */
  --sound: #f97316;
  --silent: #8b95a1;
  --display: 'Anton', 'Archivo Black', sans-serif;
  --body: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--studio);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- caption vocabulary ---------------------------------------------------- */

/* A word the renderer would highlight: ink on a subtitle-yellow box. */
.hl {
  background: var(--caption);
  color: var(--ink);
  padding: 0 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Timecode eyebrow: sections sit on a timeline, not in a numbered list. */
.tc {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.tc::before { content: ''; width: 34px; height: 2px; background: var(--ink); }

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

.nav {
  position: sticky; top: 0; z-index: 40;
  /* Solid, deliberately: a translucent blur here is invisible at this palette's
     contrast and backdrop-filter on sticky elements is a repaint liability. */
  background: var(--studio);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  /* Vertical only — this element is also .wrap, whose side padding must survive. */
  padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark .hl { padding: 0 0.18em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 10px 20px;
  border-radius: 4px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--caption); }
.btn-ink:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--caption); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.nav .btn { padding: 8px 16px; box-shadow: 3px 3px 0 var(--caption); }

/* --- hero ------------------------------------------------------------------ */

.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.caption-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.caption-line {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  background: var(--ink);
  color: #fff;
  padding: 0.08em 0.28em 0.12em;
  border-radius: 6px;
}
.caption-line:nth-child(1) { transform: rotate(-0.6deg); }
.caption-line:nth-child(2) { transform: rotate(0.4deg); }
.caption-line:nth-child(3) { transform: rotate(-0.3deg); }

.hero-sub {
  margin: 26px 0 30px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-facts {
  margin-top: 34px;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.hero-facts span::before { content: '▸ '; color: var(--ink); }

/* The 9:16 render frame. */
.phone {
  aspect-ratio: 9 / 16;
  /* Every child is absolutely positioned, so without an explicit width this
     grid item shrinks to its intrinsic (empty) width and vanishes. */
  width: min(300px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(120% 90% at 20% 0%, #2a2a35 0%, var(--ink) 55%),
    var(--ink);
  border-radius: 22px;
  border: 1px solid #34343f;
  box-shadow: 10px 12px 0 rgba(20, 20, 25, 0.12);
  position: relative;
  overflow: hidden;
  color: #fff;
}
/* The renderer's safe box, drawn the way the code sees it. */
.phone .safe {
  position: absolute; inset: 13% 12% 22% 7%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}
.phone .hook {
  position: absolute; top: 19%; left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0 14%;
}
.phone .captions {
  position: absolute; top: 56%; left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.25;
  padding: 0 10%;
  min-height: 3em;
}
.phone .captions .w { opacity: 0; display: inline-block; margin: 0 0.14em; }
.phone .captions .w.on { opacity: 1; }
.phone .captions .w.hot { background: var(--caption); color: var(--ink); padding: 0 0.12em; }
@media (prefers-reduced-motion: no-preference) {
  .phone .captions .w.on { animation: pop 0.16s ease-out; }
  @keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }
}
.phone .status {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  font-family: var(--mono); font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.35);
}
.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 0.66rem;
  padding: 2px 8px; border-radius: 99px;
}
.chip-speech { background: var(--speech); color: #fff; }
.chip-sound { background: var(--sound); color: #fff; }
.chip-silent { background: var(--silent); color: #fff; }

/* --- the EDL strip --------------------------------------------------------- */

/* Shares its element with .wrap, so only the vertical axis is set here —
   a padding shorthand would silently erase .wrap's side padding. */
.edl { padding-top: 30px; padding-bottom: 8px; overflow-x: auto; }
.edl-track {
  display: flex; align-items: center; gap: 6px;
  min-width: 700px;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.take {
  font-family: var(--mono); font-size: 0.74rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 4px;
  padding: 8px 12px;
  white-space: nowrap;
  flex: 1 1 auto;
  color: var(--muted);
}
.take b { color: var(--ink); font-weight: 500; display: block; }
.take.photo { border-left-color: var(--silent); }
.take.dropped { opacity: 0.45; text-decoration: line-through; flex-grow: 0.5; }
.joint { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.joint.sfx { color: var(--sound); }
.edl-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 10px 0 0;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.edl-legend .music { color: var(--speech); }

/* --- sections -------------------------------------------------------------- */

.section { padding-top: 72px; }
.section-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  max-width: 24ch;
}
.section-intro { margin-top: 14px; color: var(--muted); max-width: 60ch; }

.feature-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature .log {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feature .log::before { content: '[worker] '; color: var(--ink); }
.feature h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.feature p { font-size: 0.93rem; color: var(--muted); }

/* --- caption styles row ---------------------------------------------------- */

.styles-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.style-card {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  text-align: center;
}
.style-card .demo {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.2;
}
.style-card .name { font-family: var(--mono); font-size: 0.68rem; color: rgba(255,255,255,0.6); }
.demo .box { background: var(--caption); color: var(--ink); padding: 0 0.14em; }
.demo .green { color: #22c55e; }
.demo .stroke { -webkit-text-stroke: 1px #fff; color: transparent; }
.demo .karaoke { color: var(--caption); }

/* --- verdicts -------------------------------------------------------------- */

.verdicts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verdict {
  border-top: 4px solid var(--line);
  padding-top: 16px;
}
.verdict.v-speech { border-top-color: var(--speech); }
.verdict.v-sound { border-top-color: var(--sound); }
.verdict.v-silent { border-top-color: var(--silent); }
.verdict h3 { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.verdict p { font-size: 0.92rem; color: var(--muted); }

/* --- access ---------------------------------------------------------------- */

.access {
  margin-top: 72px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.access .tc { color: rgba(255,255,255,0.55); }
.access .tc::before { background: var(--caption); }
.access h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: 0.015em;
}
.access p { margin-top: 14px; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.access p strong { color: #fff; }
.access .btn-ink { background: var(--caption); color: var(--ink); border-color: var(--caption); box-shadow: 4px 4px 0 rgba(255,255,255,0.25); margin-top: 22px; }
.access pre {
  background: var(--ink-2);
  border: 1px solid #33333e;
  border-radius: 8px;
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #d7dae0;
}
.access pre .c { color: #7c8494; }
.access pre .y { color: var(--caption); }

/* --- footer ---------------------------------------------------------------- */

.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer .mono { font-family: var(--mono); font-size: 0.74rem; }

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone { max-width: 260px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .styles-row { grid-template-columns: 1fr 1fr; }
  .verdicts { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; justify-content: space-between; }
  .wordmark { font-size: 1rem; }
  .nav .btn { padding: 7px 12px; font-size: 0.85rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
