/* Oathring's website, in the app's Clear Skies look (tokens mirror packages/ui/src/theme.ts). */
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(fonts/Sora_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Sora; font-weight: 700; font-display: swap; src: url(fonts/Sora_700Bold.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/Manrope_400Regular.ttf) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/Manrope_600SemiBold.ttf) format('truetype'); }

:root {
  color-scheme: dark;
  --void: #111217;
  --chrome: #15161c;
  --hull: #1b1c23;
  --hull2: #24252f;
  --line: #262833;
  --ink: #f2f2f5;
  --dim: #9a9cab;
  --signal: #f0a23b;
  --signal-ink: #f5b75f;
  --on-signal: #1f1405;
  --signal-surface: #261d12;
  --hostile: #ff6b6b;
  --hostile-ink: #ff8b8b;
  --hostile-surface: #2a1719;
  --friend: #3dd6b5;
  --friend-surface: #14332d;
  --display: Sora, ui-sans-serif, system-ui, sans-serif;
  --body: Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--void); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--signal-ink); }
a:hover { color: #ffd08a; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(17, 18, 23, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--ink); background: var(--hull); }
.top nav .button { color: var(--on-signal); }
@media (max-width: 520px) { .top nav .hide-narrow { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--hull2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; border: 0; }
.button:hover { color: var(--ink); background: #2e2f3b; }
.button.primary { background: var(--signal); color: var(--on-signal); }
.button.primary:hover { background: #f5b55a; color: var(--on-signal); }
.top nav .button { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero .orbits { position: absolute; inset: 0; margin: auto; width: 900px; max-width: none; height: 900px; top: -260px; opacity: 0.55; pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero .mark { width: 88px; height: 88px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: -1px; }
.hero .lede { max-width: 620px; font-size: clamp(18px, 2.4vw, 21px); color: #d6d7e0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.note { font-size: 14px; color: var(--dim); }

/* Sections and cards */
section { padding: 48px 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--signal-ink); margin-bottom: 8px; }
.section-title { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; letter-spacing: -0.4px; }
.section-lede { color: var(--dim); max-width: 640px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { background: var(--hull); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card p { color: #c9cad4; font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--signal-surface); color: var(--signal-ink); }
.icon svg { width: 22px; height: 22px; }
.icon.hostile { background: var(--hostile-surface); color: var(--hostile-ink); }
.icon.friend { background: var(--friend-surface); color: var(--friend); }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; background: var(--hull); border-radius: 18px; padding: 18px 20px; }
.step::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--hull2); color: var(--signal-ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.step p { color: #c9cad4; font-size: 16px; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-node { background: var(--hull2); border-radius: 12px; padding: 8px 12px; font-weight: 600; font-size: 15px; color: var(--ink); }
.flow-arrow { color: var(--signal-ink); font-weight: 700; }
.chapter ol.steps { padding-left: 0; list-style: none; gap: 8px; }
.chapter .step { background: var(--hull2); padding: 14px 16px; }
.chapter .step::before { background: var(--hull3, #2e2f3b); }
.chapter .step h3 { margin: 0 0 2px; font-size: 16px; }

.panel { background: var(--hull); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--signal-surface); }
.cta h2 { font-size: clamp(24px, 3.4vw, 30px); }
.cta p { color: #c9cad4; margin-top: 6px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.platform { background: var(--hull); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.platform h3 { font-size: 19px; font-weight: 600; }
.platform p { color: #c9cad4; font-size: 16px; flex: 1; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--hull2); color: var(--dim); }
.badge.live { background: var(--friend-surface); color: var(--friend); }

/* Guide */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 40px 0 72px; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.toc a:hover { color: var(--ink); background: var(--hull); }
@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--hull); padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; }
}
.manual { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.manual > header h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.6px; margin-bottom: 10px; }
.manual > header p { color: var(--dim); font-size: 18px; }
.chapter { background: var(--hull); border-radius: 24px; padding: clamp(20px, 3.5vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.chapter h2 { font-size: 24px; font-weight: 600; }
.chapter h3 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.chapter p, .chapter li { color: #d0d1da; }
.chapter ul, .chapter ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.chapter b, .chapter strong { color: var(--ink); font-weight: 600; }
.tip { background: var(--signal-surface); border-radius: 16px; padding: 14px 16px; color: #f6dfbd; font-size: 16px; }
.tip.warn { background: var(--hostile-surface); color: #ffd9d9; }
.table-scroll { overflow-x: auto; border-radius: 16px; background: var(--hull2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #30313c; vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.ship { font-weight: 600; color: var(--ink); white-space: nowrap; }
td:last-child { min-width: 240px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
