:root {
  --red: #cc0000;
  --red-dark: #a30000;
  --ink: #1a1a1a;
  --muted: #5c5f66;
  --line: #e4e5e8;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --card: #ffffff;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light dark;
}
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1f2;
    --muted: #a3a6ad;
    --line: #2c2e33;
    --bg: #111214;
    --bg-soft: #18191c;
    --card: #1c1d21;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
  .logo-light { display: none; }
  .logo-dark { display: inline-block !important; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.cta { background: var(--red); color: #fff; }
.nav a.cta:hover { background: var(--red-dark); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 12px auto 16px; max-width: 16ch; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 auto; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }

/* Reel */
.reel {
  position: relative; margin: 40px auto 0; max-width: 1000px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #0d0e10; aspect-ratio: 16 / 10;
}
.reel .bar { position: absolute; inset: 0 0 auto 0; height: 34px; background: #1d1f23; display: flex; align-items: center; gap: 7px; padding: 0 14px; z-index: 3; }
.reel .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d43; }
.reel .bar span { margin-left: 12px; color: #9a9da4; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.reel .stage { position: absolute; inset: 34px 0 0 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.slide.on img { animation: drift 6.5s ease-out forwards; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.06) translate(-1%, -1%); } }
.slide .ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 20% 10%, var(--c1, #cc0000) 0%, #15161a 70%);
}
.slide .ph b { display: block; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.02em; }
.slide .ph small { color: #c9cbd0; font-size: 15px; }
.caption {
  position: absolute; left: 20px; bottom: 20px; z-index: 3; max-width: 70%;
  background: rgba(10,10,12,.78); color: #fff; backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.4;
}
.caption b { color: #ff6b6b; margin-right: 6px; }
.dots { position: absolute; right: 18px; bottom: 22px; z-index: 3; display: flex; gap: 6px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button.on { background: #fff; width: 22px; border-radius: 6px; }
.reel .toggle { position: absolute; top: 44px; right: 12px; z-index: 3; background: rgba(10,10,12,.6); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }

/* Sections */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 62ch; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); margin-bottom: 6px;
}
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); align-self: flex-start; }
.tag.live { color: #1a7f37; border-color: color-mix(in srgb, #1a7f37 40%, transparent); }
.card .go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--red); text-decoration: none; }
.card .go:hover { text-decoration: underline; }
a.card { text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--red); }

.logos { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: center; }
.logos img { height: 42px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .logos img { background: #fff; padding: 6px 10px; border-radius: 8px; } }

/* Connected flow */
section .eyebrow { margin-bottom: 8px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-app { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--red); }
.step:nth-of-type(n+2) .step-app { background: #1f6feb; }
.arrow { display: grid; place-items: center; color: var(--red); }
.arrow svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .arrow svg { transform: rotate(90deg); }
}

/* Release notes */
.release { border-left: 3px solid var(--line); padding: 0 0 28px 22px; position: relative; }
.release::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
.release h3 { margin: 0 0 2px; font-size: 18px; }
.release time { color: var(--muted); font-size: 14px; }
.release ul { margin: 8px 0 0; padding-left: 18px; }

.notice { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 8px 0 10px; max-width: none; font-size: clamp(30px, 4vw, 44px); }
.page-head .lead { margin: 0; }

@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .nav { margin-left: 0; }
  .caption { display: none; }
  .dots { left: 12px; right: auto; bottom: 10px; }
  .reel .toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on img { transition: none; animation: none; }
}
