/* Wren TV landing page. Palette: Ember #E04A2A, Ink #1C1A21, Cream #F7F1E8. */
:root {
  --ember: #E04A2A;
  --ember-hi: #ef6545;
  --ink: #1C1A21;
  --cream: #F7F1E8;
  --bg: #141218;
  --bg-2: var(--ink);
  --bg-3: #27242d;
  --line: #34303b;
  --text: var(--cream);
  --muted: #b2aaa2;
  --ok: #4cc38a;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: #f7f1e814; padding: 1px 6px; border-radius: 5px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-hi); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 14px; }
.sub a { color: var(--cream); text-decoration-color: var(--ember); text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--cream); text-decoration: none;
  font-weight: 650; font-size: 16px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s var(--ease);
}
.btn:hover { background: #312d38; border-color: #4a4552; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ember); border-color: var(--ember); }
.btn.primary:hover { background: var(--ember-hi); border-color: var(--ember-hi); }
.btn.sm { padding: 9px 16px; font-size: 15px; }
.btn .gh { width: 18px; height: 18px; fill: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: #141218d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #f7f1e80f; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { height: 36px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.links a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%;
  background: radial-gradient(closest-side, #e04a2a33, transparent 70%); pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.lede { font-size: 20px; color: #ddd5ca; margin-top: 22px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.chips li { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.np { margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 40px 90px #0009; }
.np-screen {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 70% 20%, #3a2a2a 0%, #1c1a21 55%, #120f15 100%);
}
.np-mark { width: 30%; height: auto; opacity: .95; }
.np-badges { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.np-badges span { font-size: 12px; font-weight: 800; letter-spacing: .03em; padding: 3px 8px; border-radius: 5px; background: var(--cream); color: var(--ink); }
.np-info { padding: 16px 18px 18px; display: grid; gap: 7px; font-size: 14px; }
.np-row { display: flex; justify-content: space-between; gap: 16px; }
.np-row .k { color: var(--muted); }
.np-row .v { font-weight: 600; text-align: right; }
.np-row .ok { color: var(--ok); }
.np-bar { height: 4px; border-radius: 2px; background: #f7f1e826; margin-top: 8px; overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 38%; background: var(--ember); animation: grow 8s var(--ease) infinite alternate; }
@keyframes grow { from { width: 22%; } to { width: 64%; } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.band { background: var(--bg-2); border-block: 1px solid #f7f1e80d; }
.head { margin-bottom: 44px; }

.ladder { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ladder li {
  counter-increment: step; position: relative; padding: 22px 18px 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start;
}
.ladder li::before { content: counter(step); font-size: 13px; font-weight: 800; color: var(--cream); background: var(--ember); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; }
.ladder li.last::before { background: var(--bg-3); color: var(--muted); }
.ladder b { font-size: 17px; }
.ladder span { color: var(--muted); font-size: 15px; line-height: 1.5; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.card:hover { border-color: #e04a2a80; transform: translateY(-2px); }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--ember-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* ---------- install ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 15px; font-weight: 650; color: var(--muted); background: transparent; border: 0; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ember); color: var(--cream); }
.panel { max-width: 760px; }
.panel p { color: #ddd5ca; margin-bottom: 14px; }
pre { position: relative; margin: 0 0 12px; padding: 18px 20px; border-radius: 12px; background: #0e0c11; border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.6; }
pre code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { color: var(--cream); }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 760px; }

/* ---------- watch ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split .btn { margin-top: 28px; }
.flow { display: grid; gap: 0; justify-items: center; text-align: center; }
.flow .node { width: 100%; max-width: 320px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); font-weight: 700; }
.flow .node.ember { background: var(--ember); border-color: var(--ember); }
.flow .arrow { position: relative; height: 72px; width: 2px; background: repeating-linear-gradient(var(--ember-hi) 0 6px, transparent 6px 12px); }
.flow .arrow span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.flow .side { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 300px; }

/* ---------- source ---------- */
.source { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.source img { border-radius: 20px; }
.source .sub { margin-top: 10px; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 56px; border-top: 1px solid #f7f1e80d; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-in img { height: 30px; width: auto; }
.foot-in nav { margin-left: auto; display: flex; gap: 20px; }
.foot-in nav a { text-decoration: none; } .foot-in nav a:hover { color: var(--cream); }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost .btn { margin-top: 24px; }

@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 48px; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder li.last { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .lede { font-size: 18px; }
  .sub { font-size: 16px; }
  .ladder, .grid { grid-template-columns: 1fr; }
  .source { grid-template-columns: 1fr; gap: 20px; }
  .source img { width: 64px; height: 64px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .logo img { height: 30px; }
  .foot-in nav { margin-left: 0; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .tabs button { padding: 8px 4px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
