/* OxyRift public site — dark graphite surfaces, restrained cyan accents.
   Tokens mirror the launcher's palette (src/app.css). No external requests. */

:root {
  color-scheme: dark;

  --bg: #05090d;
  --bg-deep: #071016;
  --surface: #0a161d;
  --surface-2: #0b1b23;
  --surface-3: #0d2029;
  --line: #213944;
  --line-strong: #2b4654;

  --text: #f3f8fb;
  --text-dim: #a9bbc3;
  --text-faint: #7d919b;

  --accent: #2ce4f3;
  --accent-deep: #23cce0;
  --accent-ink: #041014;
  --ok: #51ee9b;
  --gated: #f1a23a;

  --radius: 6px;
  --radius-lg: 10px;
  --shell: 1140px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 72% -12%, #10303d 0%, transparent 58%),
    radial-gradient(760px 420px at 8% 4%, #0b2530 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); letter-spacing: -0.028em; }
h3 { font-size: 1.0625rem; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6defff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--accent-ink); }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 14, 0.82);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-size: 1.0625rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: #0e1f28; }
.nav a[aria-current="page"] { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn--primary {
  border-color: #3ce8f4;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
}
.btn--primary:hover { color: var(--accent-ink); background: #47ecf7; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); background: #09161d; color: var(--text); }
.btn--ghost:hover { color: var(--text); border-color: #3a5b6a; background: #0d1f28; transform: translateY(-1px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: #0b1a22;
  color: var(--text-dim);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(81, 238, 155, 0.14); }
.dot--gated { background: var(--gated); box-shadow: 0 0 0 3px rgba(241, 162, 58, 0.14); }
.dot--idle { background: var(--text-faint); box-shadow: 0 0 0 3px rgba(125, 145, 155, 0.12); }

/* ---------- Sections ---------- */

section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 62ch; display: grid; gap: 14px; margin-bottom: 40px; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { color: var(--text-dim); font-size: 1.0625rem; }

.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__copy p { max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Decorative launcher-shaped illustration; not a screenshot. */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0c1f28, #070f15 62%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 20, 26, 0.7);
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #233a45; }
.frame__bar i:first-child { background: #2b4a57; }
.frame__title { margin-left: 6px; font-size: 0.75rem; color: var(--text-faint); font-style: normal; letter-spacing: 0.04em; }
.frame__body { padding: 16px; display: grid; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #223d49;
  border-radius: var(--radius);
  background: #0a1820;
}
.row--active { border-color: rgba(44, 228, 243, 0.45); background: linear-gradient(135deg, #102b35, #0b1b23); }
.row__icon { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(145deg, #17414e, #0b222c); border: 1px solid #27505e; }
.row__lines { display: grid; gap: 6px; }
.bar { height: 7px; border-radius: 4px; background: #1b333e; }
.bar--wide { width: 68%; }
.bar--mid { width: 46%; background: #162b34; }
.bar--accent { width: 54%; background: linear-gradient(90deg, rgba(44, 228, 243, 0.7), rgba(44, 228, 243, 0.12)); }
.pill { width: 54px; height: 22px; border-radius: 100px; border: 1px solid #2a4956; background: #0c1d25; }
.pill--accent { border-color: rgba(44, 228, 243, 0.5); background: rgba(44, 228, 243, 0.12); }

.caption { margin-top: 12px; font-size: 0.8125rem; color: var(--text-faint); text-align: center; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 70%);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.card:hover { border-color: #345767; transform: translateY(-2px); }
.card p { color: var(--text-dim); font-size: 0.9375rem; }

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(44, 228, 243, 0.3);
  border-radius: 9px;
  background: rgba(44, 228, 243, 0.08);
  color: var(--accent);
}
.card__icon svg { width: 19px; height: 19px; }

/* ---------- Source cards (Discover Mods) ---------- */

.source {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-3), var(--surface) 72%);
}
.source__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.source__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.source p { color: var(--text-dim); font-size: 0.9375rem; }
.source--gated { background: linear-gradient(170deg, #1a1710, #0b1319 72%); border-color: #4a3a22; }

/* ---------- Status list ---------- */

.status { display: grid; gap: 10px; }
.status__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.status__item .dot { margin-top: 9px; }
.status__item strong { font-weight: 650; }
.status__item p { color: var(--text-dim); font-size: 0.9375rem; }

/* ---------- Callout ---------- */

.callout {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #09161d;
}
.callout p { color: var(--text-dim); }
.callout--warn { border-left-color: var(--gated); }

/* ---------- Legal pages ---------- */

.page-head { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 8px; }
.prose { max-width: 72ch; display: grid; gap: 18px; padding-bottom: clamp(56px, 7vw, 88px); }
.prose h2 { margin-top: 22px; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose strong { color: var(--text); }

.notice {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--gated);
  border-radius: var(--radius);
  background: rgba(241, 162, 58, 0.07);
}
.notice p { color: #f0d8b4; }
.notice strong { color: #ffd9a1; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 12, 0.6);
  padding-block: 44px 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--text-dim); text-decoration: none; font-size: 0.9375rem; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__tag { margin-top: 10px; color: var(--text-faint); font-size: 0.875rem; max-width: 46ch; }

.disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07121a;
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.disclaimer strong { color: var(--text); font-weight: 650; }
.copyright { margin-top: 20px; color: var(--text-faint); font-size: 0.8125rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  .topbar__inner { min-height: 58px; flex-wrap: wrap; }

  /* Native-feeling disclosure menu; works without JavaScript. */
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: #09161d;
    color: var(--text);
    font-size: 0.9375rem;
    cursor: pointer;
    list-style: none;
  }
  .nav-toggle > summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] > summary { border-color: var(--accent); }
  /* The disclosure sits immediately before the nav, so it can collapse it. */
  .nav-toggle:not([open]) + .nav { display: none; }
  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 14px;
  }
  .nav a { padding: 11px 12px; border-radius: 5px; background: #08141b; }

  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .card, .source { padding: 20px; }
}

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

@media print {
  body { background: #fff; color: #000; }
  .topbar, .skip-link, .hero__art { display: none; }
}
