/* Orpheus website. Colours mirror the app's asset catalog; each theme redefines the tokens. */

@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("assets/fonts/Orbitron-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("assets/fonts/Cinzel-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Bungee"; src: url("assets/fonts/Bungee-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("assets/fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Righteous"; src: url("assets/fonts/Righteous-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #0D0A1F;
  --glow: #3A1F7A;
  --surface: #1B1538;
  --surface-muted: #161131;
  --text: #FFFFFF;
  --text-2: #C0B7ED;
  --primary: #A88BFF;
  --boost: #FFC53D;
  --action: #FF3D86;
  --success: #3EE6A0;
  --info: #53E7FF;
  --on-primary: #0D0A1F;
  --line: color-mix(in srgb, var(--text-2) 18%, transparent);
  --display: "Space Grotesk", system-ui, sans-serif;
  --display-scale: 1;
  --display-track: .04em;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-card: 20px;
  --r-ctl: 14px;
  --depth: 4px;
  color-scheme: dark;
}

[data-theme="retro"] {
  --bg: #1A1C2C; --glow: #29366F; --surface: #333C57; --surface-muted: #262B44;
  --text: #F4F4F4; --text-2: #94B0C2; --primary: #5CB8FF; --boost: #FFCD75;
  --action: #F0697F; --success: #38B764; --info: #73EFF7; --on-primary: #1A1C2C;
  --display: "Press Start 2P", monospace; --display-scale: .62; --display-track: 0;
  --r-card: 0; --r-ctl: 0;
}
[data-theme="cosmos"] {
  --bg: #070B1E; --glow: #1E2A6E; --surface: #111A3A; --surface-muted: #0A1029;
  --text: #F2F5FF; --text-2: #9FB0E8; --primary: #7AA2FF; --boost: #FFB86B;
  --action: #FF5C8A; --success: #5BF2C5; --info: #9BE7FF; --on-primary: #070B1E;
  --display: "Orbitron", system-ui, sans-serif; --display-scale: .82; --display-track: .1em;
}
[data-theme="sylve"] {
  --bg: #0E1A14; --glow: #23402C; --surface: #182A20; --surface-muted: #12211A;
  --text: #F3EEDC; --text-2: #B5C7A6; --primary: #8FD694; --boost: #F4C95D;
  --action: #E8745A; --success: #B5E655; --info: #7FD1C7; --on-primary: #0E1A14;
  --display: "Cinzel", Georgia, serif; --display-scale: .95; --display-track: .05em;
}
[data-theme="magma"] {
  --bg: #170908; --glow: #5A1A0E; --surface: #2A1311; --surface-muted: #1F0D0C;
  --text: #FFF3EC; --text-2: #E3AE9A; --primary: #FF7A45; --boost: #FFD23F;
  --action: #FF3B3B; --success: #9BE15D; --info: #FFB38A; --on-primary: #170908;
  --display: "Bungee", system-ui, sans-serif; --display-scale: .88; --display-track: .02em;
}
[data-theme="givre"] {
  --bg: #DCEAF6; --glow: #FFFFFF; --surface: #FFFFFF; --surface-muted: #D5E3F0;
  --text: #10243A; --text-2: #4A6582; --primary: #2F6BFF; --boost: #FF8A00;
  --action: #B81D3C; --success: #12B886; --info: #00618A; --on-primary: #FFFFFF;
  --display: "Fredoka", system-ui, sans-serif; --display-scale: 1.05; --display-track: .02em;
  --r-card: 24px; --r-ctl: 18px;
  color-scheme: light;
}
[data-theme="abysses"] {
  --bg: #03141A; --glow: #0B4450; --surface: #082630; --surface-muted: #051C24;
  --text: #E6FFFB; --text-2: #8CC7C9; --primary: #2EE6D6; --boost: #F9F871;
  --action: #FF6F91; --success: #7CFFB2; --info: #6FC3FF; --on-primary: #03141A;
  --display: "Righteous", system-ui, sans-serif; --display-scale: 1; --display-track: .04em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-muted); padding: .1em .4em; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--info); outline-offset: 3px; }

/* Display type follows the theme, with the app's per-font scale. */
h1, h2, h3, .brand span, .step-n, .kicker {
  font-family: var(--display);
  letter-spacing: var(--display-track);
  font-weight: 700;
}
h1 { font-size: calc(clamp(38px, 6.4vw, 68px) * var(--display-scale)); line-height: 1.12; margin: 0 0 20px; text-wrap: balance; }
h2 { font-size: calc(clamp(28px, 4vw, 42px) * var(--display-scale)); line-height: 1.2; margin: 0 0 32px; text-wrap: balance; }
h3 { font-size: calc(19px * var(--display-scale)); line-height: 1.3; margin: 0 0 8px; }
[data-theme="retro"] h1, [data-theme="retro"] h2 { line-height: 1.45; }

.accent { color: var(--primary); }
.kicker { color: var(--primary); font-size: calc(13px * var(--display-scale)); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { font-size: calc(18px * var(--display-scale)); letter-spacing: .12em; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--text); }
@media (max-width: 760px) { .topbar nav { display: none; } .topbar .btn-small { margin-left: auto; } }

/* Chunky buttons, like the app's ChunkyButtonStyle */
.btn {
  --btn: var(--surface-muted);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--body);
  color: var(--btn-fg); background: var(--btn);
  text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: var(--r-ctl);
  box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--btn) 55%, black);
  transition: transform .12s ease, box-shadow .12s ease, background-color .35s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 calc(var(--depth) + 1px) 0 color-mix(in srgb, var(--btn) 55%, black); }
.btn:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 transparent; }
.btn-primary { --btn: var(--primary); --btn-fg: var(--on-primary); }
.btn-small { padding: 10px 16px; font-size: 14px; --depth: 3px; }
.btn-big { padding: 18px 28px; font-size: 18px; }

.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--surface-muted); color: var(--text-2); font: 600 13px/1.2 var(--body); }
.chip-ok { color: var(--success); }
[data-theme="retro"] .chip { border-radius: 0; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--glow) 80%, transparent), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding: 40px 0 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 14px; margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 54ch; margin: 0 0 32px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-shot { position: relative; margin: 0; justify-self: center; }
.hero-shot img, .theme-shot img {
  width: 360px; max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px var(--line);
  transition: opacity .25s ease;
}
@media (min-width: 901px) { .hero-shot img { transform: rotate(-1.5deg); } }
.hero-shot .glow { position: absolute; inset: 10% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 35%, transparent), transparent); filter: blur(30px); z-index: -1; }
img.is-swapping { opacity: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: color-mix(in srgb, var(--surface-muted) 70%, var(--bg)); border-block: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.card { background: var(--surface); border-radius: var(--r-card); padding: 24px; transition: background-color .35s ease; }
.card p { margin: 0; color: var(--text-2); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.feature { display: flex; flex-direction: column; gap: 6px; }
.tile {
  width: 48px; height: 48px; margin-bottom: 10px;
  display: grid; place-items: center;
  border-radius: var(--r-ctl);
  background: color-mix(in srgb, var(--primary) 20%, var(--surface-muted));
  color: var(--primary);
}
.tile svg { width: 24px; height: 24px; }
.tile .lyre { width: 30px; height: auto; }
[data-theme="givre"] .tile .lyre { filter: invert(1); }
.feature-boost .tile { color: var(--boost); background: color-mix(in srgb, var(--boost) 18%, var(--surface-muted)); }

/* Themes */
.themes-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
@media (max-width: 900px) { .themes-grid { grid-template-columns: minmax(0, 1fr); } }
.themes-copy > p { color: var(--text-2); max-width: 52ch; margin: -16px 0 24px; }
.theme-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.theme-picker button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--body); color: var(--text);
  background: var(--surface-muted); border: 2px solid transparent;
  padding: 9px 14px 9px 10px; border-radius: 999px; cursor: pointer;
}
.theme-picker button:hover { border-color: var(--line); }
.theme-picker button[aria-checked="true"] { border-color: var(--primary); background: var(--surface); }
.theme-picker .sw { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--sw) 0 50%, var(--sw2) 50% 100%); box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }
.theme-card h3 { color: var(--primary); }
.theme-shot { margin: 0; justify-self: center; }

/* Install */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: var(--r-ctl); background: var(--primary); color: var(--on-primary);
  font-size: calc(20px * var(--display-scale));
  box-shadow: 0 var(--depth) 0 color-mix(in srgb, var(--primary) 55%, black);
}
.checksum summary, .qa summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
.checksum p { margin-top: 12px; }
.hash { display: block; margin-top: 8px; padding: 10px 12px; overflow-wrap: anywhere; color: var(--text); }

/* FAQ */
.qa { margin-bottom: 12px; padding: 18px 22px; }
.qa p { margin-top: 10px; }

/* Footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; color: var(--text-2); font-size: 14px; }
.footer .brand span { font-size: calc(15px * var(--display-scale)); }

/* Keep the picker in view next to the tall panel on wide screens. */
@media (min-width: 901px) {
  .themes-grid { align-items: start; }
  .themes-copy { position: sticky; top: 120px; }
}
