/* ========================================================================
   Novacast landing — novacast.app
   Bands: dark (hero, control, faq) · light (features, platforms) · indigo (pairing)
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* color system — anchored on the product's indigo #6366f1 */
  --ink-page: oklch(0.155 0.022 277);       /* deep navy, dark band bg */
  --ink-raise: oklch(0.2 0.026 277);        /* elevated dark surface */
  --ink-line: oklch(0.32 0.03 277);         /* dark band hairlines */
  --ink-text: oklch(0.93 0.01 277);         /* text on dark */
  --ink-text-dim: oklch(0.78 0.02 277);     /* secondary on dark ≥4.5:1 */

  --day-page: oklch(0.972 0.006 277);       /* light band bg */
  --day-raise: oklch(1 0 0);
  --day-line: oklch(0.88 0.014 277);
  --day-text: oklch(0.245 0.032 277);       /* ink on light */
  --day-text-dim: oklch(0.41 0.032 277);    /* secondary on light ≥4.5:1 */

  --indigo: oklch(0.585 0.2 277);           /* #6366f1 */
  --indigo-deep: oklch(0.5 0.21 277);       /* band bg end */
  --indigo-deeper: oklch(0.42 0.19 277);    /* band bg start */
  --indigo-bright: oklch(0.75 0.13 277);    /* accents on dark */
  --indigo-wash: oklch(0.93 0.035 277);     /* light-band tint chips */

  --focus-ring: 0 0 0 2px var(--ink-page), 0 0 0 5px var(--indigo-bright);
  --radius-card: 14px;
  --radius-shot: 10px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --band-y: clamp(4.5rem, 10vw, 8.5rem);
  --z-nav: 100;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-text);
  background: var(--ink-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.band--day :focus-visible { box-shadow: 0 0 0 2px var(--day-page), 0 0 0 5px var(--indigo); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: calc(var(--z-nav) + 1);
  background: var(--indigo); color: #fff; padding: 0.6rem 1.1rem;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in oklch, var(--ink-page) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.site-head__in {
  max-width: 74rem; margin-inline: auto; padding: 0.85rem var(--pad-x);
  display: flex; align-items: center; gap: 1.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--indigo-bright); font-weight: 700; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: var(--ink-text-dim);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink-text); }

.lang-switch {
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: var(--ink-text-dim); border: 1px solid var(--ink-line);
  padding: 0.32rem 0.7rem; border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-switch:hover { color: var(--ink-text); border-color: var(--indigo-bright); }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: 0.78rem 1.5rem; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-deep); }
.btn--ghost {
  background: transparent; color: var(--ink-text);
  border: 1px solid var(--ink-line);
}
.btn--ghost:hover { border-color: var(--indigo-bright); }
.btn--onindigo { background: #fff; color: var(--indigo-deeper); }
.btn--onindigo:hover { background: oklch(0.93 0.02 277); }

/* ---------- bands ---------- */

.band { padding-block: var(--band-y); }
.band__in { max-width: 74rem; margin-inline: auto; padding-inline: var(--pad-x); }

.band--day { background: var(--day-page); color: var(--day-text); }
.band--indigo {
  background: linear-gradient(160deg, var(--indigo-deeper), var(--indigo-deep) 55%, var(--indigo));
  color: #fff;
}

.band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700; font-stretch: 108%;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.band__lede { max-width: 62ch; font-size: 1.125rem; }
.band--day .band__lede { color: var(--day-text-dim); }
.band--dark .band__lede { color: var(--ink-text-dim); }

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

.hero { padding-block: clamp(4rem, 9vw, 7.5rem) 0; overflow: clip; }
.hero__in {
  max-width: 74rem; margin-inline: auto; padding-inline: var(--pad-x);
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 750; font-stretch: 112%;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--indigo-bright); }
.hero__lede {
  margin-top: 1.4rem; max-width: 56ch;
  font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.6;
  color: var(--ink-text-dim);
}
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__platforms {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.55rem 0.55rem; list-style: none;
  font-size: 0.85rem; font-weight: 600;
}
.hero__platforms li {
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 0.3rem 0.85rem; color: var(--ink-text-dim);
  white-space: nowrap;
}

.hero__stage {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
}
.hero__stage::before {
  content: ""; position: absolute; inset: -12% -20% -30%;
  background: radial-gradient(58% 62% at 50% 42%, oklch(0.42 0.16 277 / 0.42), transparent 70%);
  pointer-events: none;
}
.hero__frame {
  position: relative;
  border-radius: var(--radius-shot);
  border: 1px solid oklch(0.4 0.05 277);
  box-shadow: 0 30px 80px -30px oklch(0.1 0.05 277 / 0.9);
  overflow: hidden;
  animation: hero-rise 0.9s var(--ease-out) both;
}
.hero__frame img { width: 100%; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- features (light band) ---------- */

.feature-lead {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 60rem) {
  .feature-lead { grid-template-columns: 1.05fr 0.95fr; }
}
.feature-lead h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700;
  margin-bottom: 0.7rem;
}
.feature-lead p { color: var(--day-text-dim); max-width: 52ch; }
.feature-lead figure { margin: 0; }
.feature-lead img {
  border-radius: var(--radius-shot);
  border: 1px solid var(--day-line);
  box-shadow: 0 24px 60px -28px oklch(0.3 0.08 277 / 0.45);
}
.feature-lead figcaption {
  margin-top: 0.7rem; font-size: 0.85rem; color: var(--day-text-dim);
}

.feature-row {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; gap: 2.2rem clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--day-line);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.feature-row h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.feature-row p { font-size: 0.98rem; color: var(--day-text-dim); }
.feature-row code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em; background: var(--indigo-wash);
  padding: 0.1em 0.4em; border-radius: 5px; color: var(--day-text);
}

/* ---------- pairing band (indigo) ---------- */

.pair-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 60rem) {
  .pair-grid { grid-template-columns: 1fr 1fr; }
}

.band--indigo h2 { color: #fff; }
.band--indigo .band__lede { color: oklch(0.93 0.03 277); }

.pin-demo {
  display: flex; gap: 0.5rem; align-items: center;
  margin: 2rem 0 2.4rem;
}
.pin-demo span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700;
  background: oklch(0.32 0.14 277 / 0.55);
  border: 1px solid oklch(0.85 0.05 277 / 0.35);
  border-radius: 12px;
  padding: 0.45em 0.5em; line-height: 1;
  min-width: 1.7em; text-align: center;
}
.pin-demo .pin-demo__dash { background: none; border: 0; min-width: auto; padding: 0 0.1em; opacity: 0.7; }

.pair-steps { list-style: none; counter-reset: step; display: grid; gap: 1.4rem; max-width: 46ch; }
.pair-steps li { counter-increment: step; display: flex; gap: 1rem; align-items: baseline; }
.pair-steps li::before {
  content: counter(step);
  flex: none; display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #fff; color: var(--indigo-deeper);
  font-weight: 750; font-size: 0.95rem;
  transform: translateY(0.3rem);
}
.pair-steps b { display: block; font-size: 1.08rem; margin-bottom: 0.15rem; }
.pair-steps p { color: oklch(0.92 0.03 277); font-size: 0.98rem; }

.pair-shot img {
  border-radius: var(--radius-shot);
  border: 1px solid oklch(0.88 0.04 277 / 0.4);
  box-shadow: 0 32px 70px -30px oklch(0.2 0.12 277 / 0.85);
}
.pair-shot figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: oklch(0.9 0.03 277); }

/* ---------- control / dashboard (dark band) ---------- */

.control-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .control-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.control-grid figure { margin: 0; }
.control-grid img {
  border-radius: var(--radius-shot);
  border: 1px solid var(--ink-line);
}
.control-grid figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-text-dim); }

.control-points { display: grid; gap: 1.6rem; align-content: start; }
.control-points h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.control-points p { color: var(--ink-text-dim); font-size: 0.99rem; max-width: 48ch; }

/* ---------- full-bleed tv strip ---------- */

.tvstrip { position: relative; overflow: clip; }
.tvstrip img { width: 100%; height: clamp(300px, 48vw, 560px); object-fit: cover; }
.tvstrip figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad-x);
  background: linear-gradient(transparent, oklch(0.13 0.03 277 / 0.9));
  color: #fff;
}
.tvstrip figcaption .in { max-width: 74rem; margin-inline: auto; }
.tvstrip b { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; display: block; }
.tvstrip span { color: oklch(0.88 0.02 277); font-size: 0.98rem; }

/* ---------- platform matrix (light band) ---------- */

.platform-table-wrap { margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; }
.platform-table {
  width: 100%; border-collapse: collapse; min-width: 40rem;
  background: var(--day-raise);
  border: 1px solid var(--day-line); border-radius: var(--radius-card);
  overflow: hidden;
}
.platform-table caption { text-align: left; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--day-text-dim); }
.platform-table th, .platform-table td {
  text-align: left; padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--day-line);
  font-size: 0.97rem;
}
.platform-table thead th {
  font-size: 0.82rem; font-weight: 700;
  color: var(--day-text-dim); background: var(--day-page);
}
.platform-table tbody tr:last-child td { border-bottom: 0; }
.platform-table td code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em; background: var(--indigo-wash);
  padding: 0.12em 0.45em; border-radius: 5px;
}
.platform-table td b { font-weight: 650; }

/* ---------- faq (dark band) ---------- */

.faq-list { margin-top: clamp(2rem, 4vw, 3rem); max-width: 52rem; display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--ink-raise);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 650; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400;
  color: var(--indigo-bright);
  transition: transform 0.25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-text-dim); font-size: 0.98rem; max-width: 65ch;
}

/* ---------- final cta + footer ---------- */

.cta-final { text-align: center; }
.cta-final h2 { margin-inline: auto; }
.cta-final .band__lede { margin-inline: auto; }
.cta-final .btn { margin-top: 2rem; font-size: 1.08rem; padding: 0.95rem 2rem; }
.cta-final .cta-mail {
  display: block; margin-top: 1.1rem; font-size: 0.95rem;
  color: var(--ink-text-dim);
}
.cta-final .cta-mail a { color: var(--indigo-bright); text-decoration: none; }
.cta-final .cta-mail a:hover { text-decoration: underline; }

.site-foot { border-top: 1px solid var(--ink-line); }
.site-foot__in {
  max-width: 74rem; margin-inline: auto; padding: 2.2rem var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center;
  font-size: 0.9rem; color: var(--ink-text-dim);
}
.site-foot__in nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-foot__in a { color: var(--ink-text-dim); text-decoration: none; }
.site-foot__in a:hover { color: var(--ink-text); }

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

@media (max-width: 47rem) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-page);
    border-bottom: 1px solid var(--ink-line);
    display: none; padding: 1rem var(--pad-x) 1.4rem;
  }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .site-head.nav-open .site-nav { display: block; }
  .nav-toggle {
    display: inline-flex; margin-left: auto;
    background: none; border: 1px solid var(--ink-line); border-radius: 8px;
    color: var(--ink-text); padding: 0.45rem 0.7rem; cursor: pointer;
    font: inherit; font-size: 0.9rem;
  }
  .site-head__in { gap: 1rem; }
  .site-head .btn { display: none; }
}

/* ---------- reduced motion ---------- */

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