/* ============================================================
   ORBIT PLAY — Core tokens, reset, typography
   Prefix: op-
   ============================================================ */

:root {
  /* —— Surfaces —— */
  --op-void: #080d1b;
  --op-deep: #10182a;
  --op-card: #17233b;
  --op-card-hi: #1d2b47;
  --op-line: rgba(137, 152, 181, 0.14);
  --op-line-strong: rgba(137, 152, 181, 0.26);

  /* —— Ink —— */
  --op-ink: #f1f5ff;
  --op-ink-soft: #c3cee6;
  --op-muted: #8998b5;
  --op-faint: #5d6b88;

  /* —— Spectrum —— */
  --op-blue: #5b8cff;
  --op-blue-deep: #2f5bd0;
  --op-purple: #a879ff;
  --op-purple-deep: #7040d8;
  --op-cyan: #43e6d2;
  --op-cyan-deep: #17a999;
  --op-amber: #ffb454;
  --op-rose: #ff7aa8;

  /* —— Glow —— */
  --op-glow-blue: rgba(91, 140, 255, 0.35);
  --op-glow-purple: rgba(168, 121, 255, 0.32);
  --op-glow-cyan: rgba(67, 230, 210, 0.28);

  /* —— Type —— */
  --op-font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --op-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --op-font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;

  /* —— Geometry —— */
  --op-radius-xs: 6px;
  --op-radius-sm: 10px;
  --op-radius: 16px;
  --op-radius-lg: 24px;
  --op-radius-xl: 34px;
  --op-pill: 999px;

  /* —— Spacing scale —— */
  --op-s1: 4px;
  --op-s2: 8px;
  --op-s3: 12px;
  --op-s4: 16px;
  --op-s5: 24px;
  --op-s6: 32px;
  --op-s7: 48px;
  --op-s8: 72px;
  --op-s9: 104px;

  /* —— Shell —— */
  --op-shell: min(100% - 48px, 1280px);
  --op-header-h: 76px;
  --op-ease: cubic-bezier(0.22, 0.68, 0.35, 1);

  /* —— Elevation —— */
  --op-shadow-card: 0 18px 48px -24px rgba(0, 0, 0, 0.9);
  --op-shadow-lift: 0 28px 64px -28px rgba(0, 0, 0, 0.95);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  background: var(--op-void);
}

body {
  margin: 0;
  font-family: var(--op-font-body);
  font-size: 15px;
  line-height: 1.62;
  color: var(--op-ink);
  background-color: var(--op-void);
  background-image:
    radial-gradient(1100px 640px at 78% -12%, rgba(112, 64, 216, 0.30), transparent 62%),
    radial-gradient(900px 560px at 8% 4%, rgba(47, 91, 208, 0.24), transparent 60%),
    radial-gradient(760px 520px at 52% 46%, rgba(23, 169, 153, 0.07), transparent 68%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint starfield — two layers, no images */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(241, 245, 255, 0.75), transparent 100%),
    radial-gradient(1.2px 1.2px at 34% 62%, rgba(195, 206, 230, 0.55), transparent 100%),
    radial-gradient(1.6px 1.6px at 68% 28%, rgba(241, 245, 255, 0.6), transparent 100%),
    radial-gradient(1.1px 1.1px at 84% 74%, rgba(195, 206, 230, 0.5), transparent 100%),
    radial-gradient(1.3px 1.3px at 52% 88%, rgba(241, 245, 255, 0.42), transparent 100%),
    radial-gradient(1px 1px at 22% 78%, rgba(195, 206, 230, 0.45), transparent 100%),
    radial-gradient(1.2px 1.2px at 92% 12%, rgba(241, 245, 255, 0.5), transparent 100%);
  background-size: 100% 100%;
  opacity: 0.7;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

iframe {
  display: block;
  max-width: 100%;
  border: 0;
  vertical-align: bottom;
}

a { color: var(--op-cyan); text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--op-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }

::selection {
  background: rgba(91, 140, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--op-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* —— Shell —— */
.op-shell {
  width: var(--op-shell);
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.op-skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--op-cyan);
  color: #04121a;
  border-radius: var(--op-radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.op-skip:focus { left: 16px; }

/* —— Type utilities —— */
.op-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--op-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--op-cyan);
  margin: 0;
}

.op-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--op-cyan));
}

/* The brand token must render exactly as the platform wrote it. Any uppercase
   container that inlines the token wraps it in this class so the macro is not
   visually mangled before substitution. */
.op-brand-token {
  text-transform: none;
  letter-spacing: normal;
}

.op-disclosure {
  font-size: 12px;
  line-height: 1.55;
  color: var(--op-faint);
  margin: 0;
}

.op-error {
  color: var(--op-rose);
  padding: 40px 0;
  font-size: 15px;
}

.op-no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

.op-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* —— Prose pages (about / privacy / terms / contact / cookies) —— */
.op-prose {
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  max-width: 820px;
}

.op-prose h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: var(--op-s4);
  background: linear-gradient(120deg, #fff 0%, #b9c9ee 58%, var(--op-purple) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.op-prose h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: var(--op-s6) 0 var(--op-s3);
  color: var(--op-ink);
}

.op-prose h2::before {
  content: '//';
  font-family: var(--op-font-mono);
  color: var(--op-purple);
  margin-right: 10px;
  font-size: 0.85em;
}

.op-prose p,
.op-prose li {
  color: var(--op-ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.op-prose p { margin-bottom: var(--op-s4); }

.op-prose ul {
  margin: 0 0 var(--op-s5);
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.op-prose li::marker { color: var(--op-cyan); }

.op-prose strong { color: var(--op-ink); font-weight: 600; }

.op-prose a {
  color: var(--op-cyan);
  border-bottom: 1px solid rgba(67, 230, 210, 0.32);
  transition: border-color 0.2s;
}
.op-prose a:hover { border-color: var(--op-cyan); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
