:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #1e293b;
  --card-hover: #243247;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --warm: #fbbf24;
  --success: #34d399;
  --nav-h: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.05rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* —— Sticky top nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav .brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: 8px;
  white-space: nowrap;
}

.topnav .brand:hover { color: var(--accent); text-decoration: none; }

.topnav .nav-links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topnav .nav-links::-webkit-scrollbar { display: none; }

.topnav .nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.topnav .nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

.topnav .nav-cta {
  display: none;
  background: var(--accent);
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
}

.topnav .nav-cta:hover { filter: brightness(1.06); }

@media (min-width: 720px) {
  .topnav .nav-cta { display: inline-block; }
  .topnav .nav-links a { font-size: 0.9rem; padding: 8px 12px; }
}

/* —— Layout —— */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.hero {
  padding: 48px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.18), transparent),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 8px;
}

.hero .platforms {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 16px 0 0;
}

.hero .platforms strong { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #0f172a !important;
  font-weight: 700;
  text-decoration: none !important;
  padding: 12px 20px;
  border-radius: 10px;
}

.cta:hover { filter: brightness(1.06); }

.cta-ghost {
  display: inline-block;
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cta-ghost:hover { background: var(--accent-soft); }

section.block {
  padding: 40px 0 16px;
  border-top: 1px solid var(--border);
}

section.block:first-of-type { border-top: none; }

h2 {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--text);
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 0 0 20px;
}

.role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* —— Cards & grids —— */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.shot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin: 24px 0;
}

figure {
  margin: 0;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #020617;
}

figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.role-jump {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 24px 0 8px;
}

.role-jump a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.role-jump a:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  text-decoration: none;
}

.role-jump a strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

.role-jump a span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Steps —— */
ol.steps, ul.checklist {
  margin: 12px 0 20px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

ol.steps li {
  position: relative;
  padding: 12px 12px 12px 52px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  counter-increment: step;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.steps li strong { color: var(--text); }

ul.checklist li {
  position: relative;
  padding: 8px 8px 8px 28px;
  color: var(--muted);
}

ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

ul.bullets {
  color: var(--muted);
  padding-left: 1.25rem;
  margin: 8px 0 20px;
}

ul.bullets li { margin-bottom: 6px; }
ul.bullets li strong { color: var(--text); }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
  margin: 16px 0 20px;
  font-size: 0.98rem;
}

.callout strong { color: var(--text); }

.two-col {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .two-col.flip { grid-template-columns: 0.85fr 1.15fr; }
  .two-col .shot-stack { position: sticky; top: calc(var(--nav-h) + 16px); }
}

.shot-stack {
  display: grid;
  gap: 14px;
}

.shot-stack figure { max-width: 320px; margin-left: auto; margin-right: auto; }

@media (min-width: 800px) {
  .shot-stack figure { max-width: none; }
}

.close-line {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  margin: 20px 0 8px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

/* —— Footer —— */
footer.site-footer {
  margin-top: 48px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

footer.site-footer a { color: var(--accent); }

.legal-body {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 16px 48px;
  line-height: 1.65;
  color: var(--text);
}

.legal-body h1 { font-size: 1.75rem; }
.legal-body p { color: var(--muted); }
.legal-body a { color: var(--accent); }

/* —— Video players —— */
.video-frame {
  margin: 28px 0 0;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(2, 6, 23, 0.9), 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.video-frame figcaption strong { color: var(--text); font-weight: 700; }

.video-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.hero .video-frame + .cta-row { margin-top: 24px; }

.pilot-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.pilot-note span {
  background: var(--warm);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
}

/* —— Role cards (home) —— */
.role-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 24px 0 8px;
}

.role-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: var(--accent);
  background: var(--card-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.role-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-bottom: 1px solid var(--border);
}

.role-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-card .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  border: 2px solid rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
}

.role-card .play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--text);
}

.role-card:hover .play { background: var(--accent); border-color: var(--accent); }
.role-card:hover .play::after { border-left-color: #0f172a; }

.role-card .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(2, 6, 23, 0.82);
  padding: 2px 8px;
  border-radius: 6px;
}

.role-card .body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  flex: 1;
}

.role-card .body .role-badge { align-self: flex-start; margin-bottom: 4px; }
.role-card .body strong { font-size: 1.1rem; color: var(--text); }
.role-card .body .desc { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.role-card .body .more { margin-top: auto; padding-top: 10px; font-size: 0.9rem; font-weight: 700; color: var(--accent); }

/* —— Role switcher & pager (role pages) —— */
.crumb {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumb:hover { color: var(--accent); }

.role-switch {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin: 8px 0 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.role-switch::-webkit-scrollbar { display: none; }

.role-switch a {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  white-space: nowrap;
  text-decoration: none;
}

.role-switch a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

.role-switch a[aria-current="page"] {
  color: #0f172a;
  background: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 720px) {
  .role-switch { flex-wrap: wrap; overflow: visible; }
}

.topnav .nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.role-pager {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 28px 0 8px;
}

@media (min-width: 640px) {
  .role-pager { grid-template-columns: 1fr 1fr; }
}

.role-pager a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.role-pager a:hover { border-color: var(--accent); background: var(--card-hover); text-decoration: none; }
.role-pager a span { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.role-pager a strong { color: var(--accent); }
.role-pager .next { text-align: right; }

@media (max-width: 639px) {
  .role-pager .next { text-align: left; }
}
