@charset "UTF-8";
:root {
  --bg: #0a0e17;
  --bg-raised: #10151f;
  --card: #131a29;
  --card-border: #202a3d;
  --card-border-hover: #2c394f;
  --text: #e7ebf3;
  --text-dim: #8b96ab;
  --text-faint: #5b6579;
  --accent: #22c58b;
  --accent-strong: #2fe3a3;
  --accent-dim: rgba(34, 197, 139, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.14);
  --amber: #f5a524;
  --amber-dim: rgba(245, 165, 36, 0.14);
  --radius: 10px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Top nav ---- */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--card-border);
  background: rgba(10, 14, 23, 0.9); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
  /* Chromium has a known glitch where sticky + backdrop-filter renders the element in the
     wrong place mid-scroll unless it's promoted to its own compositing layer. */
  transform: translateZ(0);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  object-fit: cover; border: 1px solid var(--card-border);
}
.brand-sub { color: var(--text-faint); font-weight: 500; font-size: 11px; }
.nav-links {
  display: flex; gap: 22px; font-size: 13px; color: var(--text-dim);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  max-width: 100%;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-ip { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }

@media (max-width: 768px) {
  .topnav { padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; gap: 18px; padding-bottom: 2px; }
  .nav-ip { display: none; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .btn span { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  transition: border-color .15s, background .15s;
  min-height: 38px;
}
.btn:hover { border-color: var(--card-border-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04140d; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #06122b; }
.btn-red { background: var(--red); border-color: var(--red); color: #2b0505; }
.btn-sm { padding: 6px 12px; font-size: 12px; min-height: 32px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
  .btn { min-height: 42px; }
}

/* ---- Pills / badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--card-border); color: var(--text-dim);
}
.pill-accent { background: var(--accent-dim); border-color: rgba(34,197,139,.35); color: var(--accent-strong); }
.pill-blue { background: var(--blue-dim); border-color: rgba(59,130,246,.35); color: #7fb0ff; }
.pill-red { background: var(--red-dim); border-color: rgba(239,68,68,.35); color: #ff8f8f; }
.pill-amber { background: var(--amber-dim); border-color: rgba(245,165,36,.35); color: #ffc25c; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px; max-width: 100%; overflow-x: auto;
}
.card-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
/* The source banner art is a flat piece of key-art on an off-white background (no alpha) — framed
   as a deliberate "plate" (matching the art's own #f9f9f9 so there's no visible seam) rather than
   dropped directly on the dark page, where its white background would read as a rendering glitch. */
.hero-banner-wrap {
  max-width: 640px; margin: 0 auto 30px; padding: 16px 16px 12px;
  background: #f9f9f9; border-radius: var(--radius); border: 1px solid var(--card-border);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.45);
}
.hero-banner { width: 100%; height: auto; display: block; border-radius: 6px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent-strong); }
.hero p.lead { color: var(--text-dim); font-size: 15px; max-width: 640px; margin: 0 0 28px; }
.hero-stats { display: flex; gap: 34px; margin: 26px 0; flex-wrap: wrap; row-gap: 16px; }
.hero-stat-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.hero-stat-value { font-size: 15px; font-weight: 700; margin-top: 4px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 auto; justify-content: center; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

.video-mock {
  background: var(--bg-raised); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden;
}
.video-mock .vm-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--card-border); }
.video-mock .vm-body { aspect-ratio: 16/10; background: radial-gradient(120% 100% at 20% 0%, #0e1c14 0%, #0a0e17 60%); position: relative; display: flex; align-items: center; justify-content: center; }
.video-mock .vm-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.video-mock .vm-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; font-size: 11px; color: var(--text-faint); border-top: 1px solid var(--card-border); }

/* ---- Trailer (placeholder — see index.html's #trailer comment for how to swap in a real embed) ---- */
.trailer-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-raised); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
}
.trailer-frame iframe, .trailer-frame video { width: 100%; height: 100%; border: 0; display: block; }
.trailer-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(120% 100% at 50% 0%, #0e1c14 0%, #0a0e17 60%);
}
.trailer-play {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(34,197,139,.35); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 3px;
}
.trailer-label { color: var(--text-faint); font-size: 13px; font-weight: 600; }

/* ---- Section ---- */
.section { padding: 64px 0; scroll-margin-top: 68px; } /* keeps a smooth-scrolled section's heading clear of the sticky nav */
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); font-size: 14px; margin: 0; max-width: 620px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card ul { margin: 0; padding-left: 16px; color: var(--text-dim); font-size: 12.5px; line-height: 1.7; }
.feature-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 12px; }

.code-block {
  background: var(--bg-raised); border: 1px solid var(--card-border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; overflow-x: auto;
}
.code-block .cb-head { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--card-border); color: var(--text-faint); font-family: var(--sans); font-size: 11px; }
.code-block pre { margin: 0; padding: 14px; overflow-x: auto; }
.code-block .c-kw { color: #ff8f8f; }
.code-block .c-str { color: #7fd6a0; }
.code-block .c-com { color: var(--text-faint); }
.code-block .c-num { color: #ffc25c; }

table.perms { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.perms th { text-align: left; color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
table.perms td { padding: 9px 10px; border-bottom: 1px solid var(--card-border); }
table.perms tr:last-child td { border-bottom: none; }
table.perms code { font-family: var(--mono); color: var(--accent-strong); font-size: 11.5px; }

.footer-cta { text-align: center; padding: 56px 0; border-top: 1px solid var(--card-border); scroll-margin-top: 68px; }
.footer-cta h2 { font-size: clamp(20px, 5vw, 24px); margin: 0 0 10px; }
.footer-cta p { color: var(--text-dim); margin: 0 0 22px; }
footer.site-foot { border-top: 1px solid var(--card-border); padding: 20px 0; font-size: 11.5px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }

/* ==========================================================================
   Responsive breakpoints — phone (<480px), tablet (<768px), and grid/layout
   fixes shared by index.html + dashboard.html. Section-scoped selectors
   below override the inline grid-template-columns set in index.html; those
   need the extra specificity + !important since inline style otherwise wins.
   ========================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 22px; }
  #events .feature-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #kits .feature-grid, #grounded .feature-grid { grid-template-columns: 1fr !important; }
  .row-2 { flex-direction: column; align-items: stretch; }
  .ip-box, .link-box { min-width: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-badges .pill { font-size: 10.5px; }
  #events .feature-grid { grid-template-columns: 1fr !important; }
  footer.site-foot { flex-direction: column; text-align: center; }
  table.perms { font-size: 11.5px; }
  table.perms th, table.perms td { padding: 7px 6px; }
}

/* Minimum comfortable touch target on phones/tablets for anything clickable
   that doesn't already opt into a size via .btn/.btn-sm. */
@media (hover: none) and (pointer: coarse) {
  .nav-tile, .roster .chip, a.btn, button.btn { min-height: 40px; }
}
