/* InnerPlayer site: the Player's look in its Midnight theme (Theme.swift: window #0F1424, bar #161D33),
   soft raised and recessed surfaces lit from the top left
   at 45°, small radii, white accents and a glow only on what's active. */

:root {
  --bg: #0f1424;
  --surface: #161d33;
  --well: #0b1020;
  --text: #eef2ff;
  --secondary: #8c98b8;
  --tertiary: #56617f;
  --accent: #22d3ee;        /* Midnight's Deck A: cyan, as in the app icon */
  --accent-2: #f472b6;      /* Midnight's Deck B: pink, used only blended with the cyan */
  --glow: rgba(34, 211, 238, 0.45);
  --raised: 5px 5px 12px rgba(0, 0, 0, 0.5), -3px -3px 8px rgba(140, 165, 255, 0.06);
  --raised-small: 3px 3px 7px rgba(0, 0, 0, 0.45), -2px -2px 5px rgba(140, 165, 255, 0.05);
  --inset: inset 3px 3px 7px rgba(0, 0, 0, 0.55), inset -2px -2px 5px rgba(140, 165, 255, 0.06);
  --radius: 8px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration-color: var(--tertiary); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: rgba(34, 211, 238, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
em { color: var(--accent); font-style: normal; }

/* The headline's second line: Deck A's cyan mixing into Deck B's pink */
.mix {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
h2 { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 24px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }

code {
  font: 0.9em "SF Mono", Menlo, monospace;
  background: var(--well);
  box-shadow: var(--inset);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Backdrop: the Player in its Midnight theme, fully visible at the top, fading into the page. */
.backdrop {
  position: absolute;
  top: 118px;   /* just below the header (72 pt logo + 2 × 22 pt padding), so the logo and menu stay clear */
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.08) 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.08) 75%, transparent 100%);
}
.top, main, footer { position: relative; z-index: 1; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; font-weight: 600; font-size: 33px; }
.brand img { width: 72px; height: 72px; border-radius: 15px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--secondary); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }

/* Hero */
/* The headline starts below the backdrop's first (fully visible) strip: one strip is ~11 % of the page width. */
.hero { padding-top: calc(11vw + 36px); text-align: center; }
.lead { text-wrap: pretty; max-width: 680px; margin: 0 auto 32px; color: var(--secondary); font-size: 19px; }
.meta { color: var(--tertiary); font-size: 14px; margin: 18px 0 48px; }

/* Buttons: raised; the primary one glows like the playing button in the app */
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--raised);
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.08s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.button:hover { color: var(--text); }
.button:active { transform: scale(0.98); box-shadow: var(--inset); }
.button.primary { color: var(--text); }
.button.primary svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent);
  filter: drop-shadow(0 0 4px var(--glow));
}
.button.primary:hover { box-shadow: var(--raised), 0 0 0 1px var(--glow), 0 0 16px rgba(34, 211, 238, 0.25); }

/* The hero's buttons are flat (no depth); the primary one is a shade brighter. */
.hero .button {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero .button:hover { background: #1f2843; box-shadow: none; }
.hero .button:active { transform: scale(0.98); box-shadow: none; }
.hero .button.primary { background: #243052; border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 18px rgba(34, 211, 238, 0.12); }
.hero .button.primary:hover { background: #2b385f; box-shadow: 0 0 22px rgba(34, 211, 238, 0.25); }

/* Screenshot in a recessed frame */
.shot {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--well);
  box-shadow: var(--inset);
}
.shot img, .shot video { display: block; width: 100%; height: auto; border-radius: 6px; }
.shot video { aspect-ratio: 16 / 9; background: #0a0d18; }
.shot:has(video) { box-shadow: var(--inset), 0 0 60px rgba(34, 211, 238, 0.07); }
.shot + .shot { margin-top: 28px; }

/* Panels */
.panel {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--raised);
}
.panel.inset { background: var(--well); box-shadow: var(--inset); }
.panel p { color: var(--secondary); margin: 0; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--raised);
}
.card p { color: var(--secondary); margin: 0; font-size: 16px; }
.card { transition: box-shadow 0.2s ease; }
.card:hover { box-shadow: var(--raised), 0 0 0 1px rgba(34, 211, 238, 0.25); }

/* First-launch steps with recessed numbers */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.num {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--well);
  box-shadow: var(--inset);
  font: 600 15px "SF Mono", Menlo, monospace;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow);   /* lit, like an active control in the app */
}
.steps .note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; }
.cta.center { margin-top: 32px; }

.open .panel { text-align: center; }
.open .panel p { max-width: 720px; margin: 0 auto; }

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: var(--tertiary);
  font-size: 14px;
  text-align: center;
}
footer a { color: var(--secondary); }
footer .small { font-size: 12px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  nav { gap: 14px; }
  nav a:first-child { display: none; }
  .brand { font-size: 26px; gap: 12px; }
  .brand img { width: 56px; height: 56px; border-radius: 12px; }
  .backdrop { top: 102px; }
  .panel { padding: 22px 20px; }
  section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card { transition: none; }
}
