@font-face {
  font-family: Caxo;
  src: url("fonts/Caxo.woff2") format("woff2"),
       url("fonts/Caxo.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #242a33;
  --bg2: #1c2128;
  --panel: #1a1f28;
  --panel2: #141920;
  --fg: #aad5db;
  --heading: #ffffff;
  --muted: #7a9ea4;
  --border: rgba(170,213,219,.18);
  --accent: #aad5db;
  --accent2: #e4e790;
  --green: #aad5db;
  --gold: #e4e790;
  --red: #f5e0e5;
  --nav-progress: 0%;
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  overflow-x: hidden;
}

.hero, section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(228,231,144,0.22);
}

section:nth-of-type(odd) {
  background-color: #232930;
  background-image: radial-gradient(circle, rgba(170,213,219,0.07) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

section:nth-of-type(even) {
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(170,213,219,0.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

#testimonials {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(170,213,219,0.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

#testimonials::before {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 82% 12%, rgba(228,231,144,0.16), transparent 60%);
  opacity: 0.95;
  transform: translate3d(0, 0, 0) scale(1);
  animation: testimonials-glow-yellow 7s ease-in-out infinite alternate;
}

#testimonials::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  background:
    radial-gradient(520px 380px at 10% 92%, rgba(170,213,219,0.18), transparent 58%);
  opacity: 0.92;
  transform: translate3d(0, 0, 0) scale(1);
  animation: testimonials-glow-cyan 8s ease-in-out infinite alternate;
}

#testimonials > .wrap {
  position: relative;
  z-index: 1;
}

.hero, section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}

.hero.in, section.in { opacity: 1; transform: none; }

@keyframes testimonials-glow-yellow {
  0% {
    transform: translate3d(18%, -12%, 0) scale(0.96);
    opacity: 0.76;
  }
  50% {
    transform: translate3d(0%, 6%, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(-22%, 18%, 0) scale(1.1);
    opacity: 0.84;
  }
}

@keyframes testimonials-glow-cyan {
  0% {
    transform: translate3d(-18%, 16%, 0) scale(0.96);
    opacity: 0.74;
  }
  50% {
    transform: translate3d(4%, -6%, 0) scale(1.05);
    opacity: 0.96;
  }
  100% {
    transform: translate3d(20%, -20%, 0) scale(1.12);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero, section { opacity: 1 !important; transform: none !important; transition: none; }
  .netflix-intro { animation-delay: .2s; }
  .intro-sweep, .hero-bg-mark.intro-active { animation-duration: .2s; }
  #testimonials::before, #testimonials::after { animation: none; }
}

#features .feature { opacity: 0; transform: translateY(16px); }
#features.in .feature { animation: domino-in .5s cubic-bezier(.2,.7,.2,1) forwards; }
#features.in .feature:nth-child(1) { animation-delay: .04s; }
#features.in .feature:nth-child(2) { animation-delay: .09s; }
#features.in .feature:nth-child(3) { animation-delay: .14s; }
#features.in .feature:nth-child(4) { animation-delay: .19s; }
#features.in .feature:nth-child(5) { animation-delay: .24s; }
#features.in .feature:nth-child(6) { animation-delay: .29s; }
#features.in .feature:nth-child(7) { animation-delay: .34s; }
#features.in .feature:nth-child(8) { animation-delay: .39s; }
#features.in .feature:nth-child(9) { animation-delay: .44s; }

@keyframes domino-in { to { opacity: 1; transform: none; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.intro-running .hero {
  overflow: visible;
}

.netflix-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  animation: introFadeOut .55s ease forwards;
  animation-delay: 2.05s;
}

.netflix-intro.hidden {
  pointer-events: none;
}

.intro-sweep {
  position: absolute;
  inset: -20% -10%;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      transparent 0 44%,
      rgba(170,213,219,.14) 47%,
      rgba(232,247,252,.88) 50%,
      rgba(244,182,194,.3) 53%,
      transparent 56%,
      transparent 100%
    ),
    radial-gradient(circle at 50% 50%, rgba(170,213,219,.22), transparent 58%);
  transform: translateX(-70%) skewX(-14deg);
  filter: blur(2px);
  animation: introSweep 1.8s cubic-bezier(.2, .72, .2, 1) forwards;
  animation-delay: .9s;
}

@keyframes introSweep {
  0% { transform: translateX(-70%) skewX(-14deg); opacity: .4; }
  50% { opacity: 1; }
  100% { transform: translateX(80%) skewX(-14deg); opacity: .65; }
}

@keyframes introFadeOut {
  to { opacity: 0; visibility: hidden; }
}

a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.1);
}
nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    #f4b6c2 0,
    #f4b6c2 var(--nav-progress),
    var(--border) var(--nav-progress),
    var(--border) 100%
  );
  pointer-events: none;
}
nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 60px;
}
.brand { display: flex; align-items: center; font-size: 17px; text-transform: uppercase; color: var(--heading); }
.brand .brand-name,
.hero-logo .wordmark {
  display: inline-block;
  letter-spacing: 0.5em;
  transform-origin: left center;
  font-family: Caxo, Inter, sans-serif;
}

.brand .brand-name {
  transform: skewX(-14deg);
}
.logo-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  transform: rotate(10deg);
  filter: drop-shadow(0 2px 10px rgba(170,213,219,0.2));
}
.nav-logo {
  justify-self: end;
  margin-right: 50px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #c7e1e5; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); color: var(--fg); background: var(--panel);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(228,231,144,0.22); }
.btn.primary {
  background: linear-gradient(135deg, #aad5db 0%, #f4b6c2 100%);
  color: #1a1f28; border: none;
}
.btn.primary:hover { filter: brightness(1.08); }
.lang-toggle {
  min-width: 84px;
  justify-content: center;
  letter-spacing: 0.04em;
}

/* ── Hero ── */
.hero { padding: 0 0 40px; text-align: center; position: relative; overflow: hidden; }
#hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }
.hero-bg-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8vw;
  height: auto;
  transform: translate(-50%, -50%) rotate(10deg);
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  filter: blur(0.4px) drop-shadow(0 0 40px rgba(170,213,219,0.14));
}

.hero-bg-mark.intro-active {
  z-index: 10002;
  opacity: 1;
  animation: heroMarkSettle .92s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: 0s;
  will-change: opacity, transform;
}

@keyframes heroMarkSettle {
  0% {
    opacity: 1;
    transform: translate(-50%, -58%) rotate(10deg) scale(6);
  }
  100% {
    opacity: .3;
    transform: translate(-50%, -50%) rotate(10deg) scale(1);
  }
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1, .hero .lede, .hero .wordmark { text-shadow: 0 2px 20px rgba(0,0,0,0.45); }
@media (prefers-reduced-motion: reduce) { #hero-flow { display: none; } }

.hero .wrap {
  max-width: none;
  width: 100%;
  min-height: calc(92vh - 40px);
  padding: 10px 0 0;
}

.hero-heading,
.hero-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 44px));
  margin: 0;
}

.hero-heading {
  top: 33vh;
  width: 100vw;
  max-width: none;
  text-align: center;
  left: 52vw;
  transform: translate(-50%, -50%);
}

.hero-copy {
  top: 65vh;
  width: 100vw;
  max-width: none;
  text-align: center;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-logo {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: fit-content;
  margin: 0 auto 10px;
}

.hero h1 {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100vw;
  max-width: none;
  font-size: clamp(30px, 4.2vw, 52px);
  margin: 0;
  text-align: center;
}

.hero h1 .hero-line {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.hero p.lede {
  max-width: 700px;
  text-align: center;
}

.hero .hero-note {
  max-width: 560px;
}

.hero-copy .lede,
.hero-copy .hero-note,
.hero-copy .hero-cta {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
}

.hero-copy .lede {
  margin: 0 auto;
}

.hero-copy .hero-note {
  margin: 0 auto !important;
}

.hero-copy .hero-cta {
  margin: 0 auto;
}

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--border);
  background: var(--panel); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 10px;
  color: var(--accent);
}
.hero-logo .hero-mark {
  width: 72px;
  height: 72px;
  display: block;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 22px rgba(170,213,219,0.34));
}
.hero-logo .wordmark {
  font-size: 152px;
  font-family: Caxo, Inter, sans-serif;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1;
  transform: skewX(-14deg);
  transform-origin: center center;
}

.hero h1 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em; font-weight: 700; color: var(--heading);
}
.hero h1 .grad {
  background: linear-gradient(120deg, #aad5db 0%, #f4b6c2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .slogan {
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-style: italic;
  color: var(--accent);
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.3px;
  opacity: 0.9;
  z-index: 3;
}
.hero p.lede { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-copy p.lede { margin: 0 auto; }
.hero-copy .hero-note { margin: 0 auto !important; }
.hero-copy .hero-cta { margin: 0 auto; }

@media (max-width: 900px) {
  .hero .wrap {
    min-height: auto;
    padding: 24px 22px 10px;
  }
  .hero-logo,
  .hero-copy,
  .hero-heading,
  .hero h1,
  .hero p.lede,
  .hero .hero-note,
  .hero-cta {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
  }
  .hero-logo { margin: 0 auto 12px; }
  .hero h1 { margin: 0 0 18px; }
  .hero p.lede { margin: 0 auto 22px; }
  .hero .hero-note { margin: -10px auto 24px !important; }
}

/* ── Terminal ── */
.term-intro { color: var(--fg); font-size: clamp(13px, 1.8vw, 15px); margin: 34px auto 0; max-width: 560px; }
.term {
  max-width: 620px; margin: 12px auto 0; text-align: left;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  transition: opacity .18s ease, transform .18s ease;
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 6px 5px 12px; border-bottom: 1px solid var(--border); background: #18202e;
}
.term-bar .ttl { color: var(--muted); font-size: 12px; font-family: ui-monospace, monospace; }
.term-bar .winbtns { display: flex; gap: 1px; }
.term-bar .winbtns span { cursor: pointer; }

.term.term-min { max-width: max-content; border-radius: 999px; box-shadow: 0 6px 22px rgba(0,0,0,0.4); }
.term.term-min .term-bar { border-bottom: none; border-radius: 999px; padding: 7px 10px 7px 16px; gap: 12px; background: var(--panel); }
.term.term-min pre { display: none; }
.term.term-closed { opacity: 0; transform: scale(0.96); pointer-events: none; height: 0; margin: 0 auto; border: 0; overflow: hidden; }

.term-reopen {
  display: none; margin: 14px auto 0; font-family: ui-monospace, monospace; font-size: 12px;
  color: var(--muted); background: none; border: 1px dashed var(--border); border-radius: 6px;
  padding: 5px 12px; cursor: pointer;
}
.term-reopen:hover { color: var(--accent); border-color: var(--accent); }
.term-reopen.show { display: inline-block; }

.term-bar .winbtns span {
  width: 28px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 1;
}
.term-bar .winbtns span:hover { background: rgba(156,222,242,0.12); color: var(--fg); }
.term-bar .winbtns span.x:hover { background: #c0392b; color: #fff; }

.term pre {
  margin: 0; padding: 18px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; color: var(--fg); line-height: 1.7; white-space: pre-wrap;
}
.term .cs { color: var(--green); }
.term .cm { color: #828997; }
.term-cursor { display: inline-block; color: var(--fg); font-weight: 400; animation: term-blink 1.05s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }

/* ── Sections ── */
section { padding: 60px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
h2.h { font-size: clamp(19px, 2.7vw, 26px); margin: 8px 0 12px; letter-spacing: -0.01em; color: var(--heading); font-weight: 700; }
.sub { color: var(--muted); max-width: 620px; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* ── Testimonials ── */
.tcarousel-wrap { position: relative; max-width: 820px; margin: 36px auto 0; }
.tarrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(17,17,17,0.85); border: 1px solid var(--border); color: var(--fg);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s ease, color .12s ease;
}
.tarrow:hover { border-color: var(--accent); color: var(--accent); }
.tarrow.prev { left: 0; }
.tarrow.next { right: 0; }

.tgrid {
  display: block; position: relative; overflow: hidden; cursor: pointer;
  margin: 0 auto; max-width: 740px;
}
.tgrid .tcard {
  display: none;
  flex-direction: row-reverse; align-items: center; gap: 24px; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.tgrid .tcard.active { display: flex; animation: tslide .25s ease both; }
.tgrid .tcard.active.shake { animation: tshake .5s ease-in-out 2 both; }

.tcard .av {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel2); flex: 0 0 auto;
}
.tcard .av img, .tcard .av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard .tmeta { flex: 1 1 auto; }
.tcard .q { font-size: 18px; color: var(--fg); margin: 0 0 12px; }
.tcard .stars { font-size: 15px; letter-spacing: 3px; margin: 0 0 8px; color: var(--gold); }
.tcard .stars.zero { color: var(--muted); opacity: 0.5; }
.tcard .nm { font-weight: 700; font-size: 14.5px; }
.tcard .rl { color: var(--muted); font-size: 12.5px; }
.tcard.cyclops { border-color: rgba(255,90,90,0.45); background: linear-gradient(180deg, rgba(255,80,80,0.06), var(--panel)); }
.tcard.cyclops .q { color: #ff8a8a; font-weight: 700; letter-spacing: 0.4px; word-break: break-word; }

.tnav { display: block; text-align: center; margin-top: 18px; }
.tdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #39414d; margin: 0 4px; cursor: pointer; }
.tdot.on { background: var(--accent); }
.thint { font-size: 12px; color: var(--muted); margin-top: 8px; }

@keyframes tshake {
  0%,100% { transform: translateX(0) rotate(0); }
  10%  { transform: translateX(-9px) rotate(-1.5deg); }
  20%  { transform: translateX(9px) rotate(1.5deg); }
  35%  { transform: translateX(-7px) rotate(-1deg); }
  50%  { transform: translateX(7px) rotate(1deg); }
  65%  { transform: translateX(-5px); }
  80%  { transform: translateX(4px); }
  92%  { transform: translateX(-2px); }
}
@keyframes tslide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ── Features grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .14s ease, border-color .14s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(170,213,219,0.18), rgba(228,231,144,0.12));
  border: 1px solid var(--border); color: var(--accent); margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Screenshot strip ── */
.shotrow { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 8px; }
.shot {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; position: relative;
}
.shot .ph { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.7; }
.shot .frame-dots { position: absolute; top: 10px; left: 12px; display: flex; gap: 5px; }
.shot .frame-dots i { width: 8px; height: 8px; border-radius: 50%; background: #39414d; display: inline-block; }

/* ── Previews ── */
.previews { display: flex; align-items: center; gap: 12px; height: 480px; max-width: 1000px; margin: 36px auto 0; }
.preview-panel {
  position: relative; flex: 1 1 0; min-width: 0; height: 360px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  transition: flex-grow .5s cubic-bezier(.2,.7,.2,1), height .5s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
}
.previews:hover .preview-panel { flex-grow: 0.55; height: 300px; }
.preview-panel:hover,
.preview-panel:focus-visible,
.preview-panel.is-active { flex-grow: 3.4 !important; height: 480px !important; border-color: var(--accent); }

.preview-panel .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 12.5px; opacity: 0.7; text-align: center; padding: 8px;
}
.preview-panel video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; opacity: 0; transition: opacity .3s ease; background: transparent;
}
.preview-panel.has-video video { opacity: 1; }

.preview-panel:has(source[src="document.webm"]) video,
.preview-panel:has(source[src="notes.webm"]) video { object-position: right center; }

.preview-panel .label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.82), transparent);
  color: var(--heading);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.preview-panel .label .t { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; font-size: 14px; }
.preview-panel .label .ico { color: var(--accent); flex-shrink: 0; }
.preview-panel .label .desc {
  font-weight: 400; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,0.82);
  white-space: normal; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease;
}
.preview-panel:hover .label .desc,
.preview-panel:focus-visible .label .desc,
.preview-panel.is-active .label .desc { max-height: 64px; opacity: 1; }

@media (max-width: 760px) {
  .previews { flex-direction: column; height: auto; touch-action: pan-y; }
  .preview-panel { height: 190px; flex: none; width: 100%; }
  .preview-panel.is-active { height: 280px !important; }
  .previews:hover .preview-panel, .preview-panel:hover { flex: none !important; }
  .preview-panel .label .desc { max-height: 64px; opacity: 1; }
}

/* ── Background video section ── */
.has-bg-video { position: relative; overflow: hidden; }
.has-bg-video .sec-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
  filter: blur(4px) saturate(1.08) brightness(0.92);
  transform: scale(1.12);
  transform-origin: 55% 45%;
  animation: bg-drift 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bg-drift {
  from { transform: scale(1.12) translate(0, 0); }
  to   { transform: scale(1.2) translate(-2.5%, -1.5%); }
}
.has-bg-video .sec-bg-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(44,50,62,0.88), rgba(44,50,62,0.60) 42%, rgba(44,50,62,0.94)),
    radial-gradient(1200px 680px at 50% 46%, rgba(44,50,62,0.18), rgba(44,50,62,0.76));
}
.has-bg-video .sec-bg-tint::before,
.has-bg-video .sec-bg-tint::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}
.has-bg-video .sec-bg-tint::before {
  background: radial-gradient(560px 360px at 78% 18%, rgba(170,213,219,0.16), transparent 60%);
  opacity: 0.92;
  animation: approach-glow-cyan 7s ease-in-out infinite alternate;
}
.has-bg-video .sec-bg-tint::after {
  background: radial-gradient(520px 360px at 8% 88%, rgba(228,231,144,0.14), transparent 58%);
  opacity: 0.88;
  animation: approach-glow-yellow 8s ease-in-out infinite alternate;
}
.has-bg-video .wrap { position: relative; z-index: 2; }
.has-bg-video .eyebrow,
.has-bg-video .h { text-shadow: 0 2px 22px rgba(0,0,0,0.7); }
.has-bg-video .sub { color: rgba(255,255,255,.75); text-shadow: 0 1px 14px rgba(0,0,0,0.75); }
.hero.has-bg-video h1, .hero.has-bg-video .wordmark,
.hero.has-bg-video .lede, .hero.has-bg-video .slogan { text-shadow: 0 2px 22px rgba(0,0,0,0.72); }

@keyframes approach-glow-cyan {
  0% {
    transform: translate3d(18%, -12%, 0) scale(0.96);
    opacity: 0.76;
  }
  50% {
    transform: translate3d(0%, 6%, 0) scale(1.04);
    opacity: 0.96;
  }
  100% {
    transform: translate3d(-22%, 18%, 0) scale(1.1);
    opacity: 0.82;
  }
}

@keyframes approach-glow-yellow {
  0% {
    transform: translate3d(-18%, 16%, 0) scale(0.96);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(4%, -6%, 0) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(20%, -20%, 0) scale(1.12);
    opacity: 0.78;
  }
}
@media (prefers-reduced-motion: reduce) {
  .has-bg-video .sec-bg { animation: none; transform: scale(1.12); }
  .has-bg-video .sec-bg-tint::before,
  .has-bg-video .sec-bg-tint::after { animation: none; }
}

/* ── Get Started ── */
.start {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 18px; padding: 40px; text-align: center;
}
.codeblock {
  display: inline-flex; align-items: center; gap: 14px; margin: 18px auto 8px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-family: ui-monospace, monospace; font-size: 14px; color: var(--fg);
  text-align: left;
}
.codeblock .prompt { color: var(--accent); }
.codeblock .copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px 10px;
  font-family: inherit; transition: border-color .12s ease, color .12s ease;
}
.codeblock .copy-btn:hover { border-color: var(--accent); color: var(--fg); }
.codeblock .copy-btn.copied { border-color: var(--green); color: var(--green); }

.pill-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.pill { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; background: var(--panel); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 30px 0;
  background: rgba(0,0,0,0.1);
  color: var(--muted); font-size: 13px; scroll-snap-align: end;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shotrow { grid-template-columns: 1fr; }
  .nav-logo { margin-left: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .codeblock { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
  .codeblock > span { flex: 1 1 auto; min-width: 0; }
  .codeblock .copy-btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .hero-bg-mark { width: min(52vw, 220px); opacity: 0.07; }
  .grid { grid-template-columns: 1fr; }
  .tgrid .tcard { padding: 20px; gap: 16px; }
  .tcard .av { width: 64px; height: 64px; }
  .tcard .q { font-size: 15px; }
}
