/* MyRadio landing — Apple-style minimalism
   - System font stack (SF Pro on Apple platforms)
   - prefers-color-scheme aware
   - Generous whitespace, large type, soft surfaces */

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

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-soft: #86868b;
  --accent: #ff5a3c;          /* derived from app icon */
  --accent-press: #e8472b;
  --link: #0066cc;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-2: 0 30px 60px -20px rgba(0,0,0,0.25), 0 18px 36px -18px rgba(0,0,0,0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0b0b0d;
    --surface-2: #141416;
    --border: rgba(255, 255, 255, 0.10);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-soft: #86868b;
    --link: #2997ff;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.5);
    --shadow-2: 0 40px 80px -20px rgba(0,0,0,0.7), 0 20px 40px -20px rgba(0,0,0,0.5);
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: var(--mono); }

/* ─── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { border-radius: 7px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 540px) {
  .nav-links { gap: 18px; }
  .nav-links a:nth-child(1) { display: none; }
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 88px 24px 0;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  border-radius: 28px;
  box-shadow: var(--shadow-1);
}
.hero h1 {
  font-size: clamp(56px, 10vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero-tagline {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 22px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.hero-sub a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

.cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin: 8px 0 0;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 80ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-press); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg {
  padding: 16px 30px;
  font-size: 17px;
}
.btn-icon {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ─── Screenshot ──────────────────────────────────── */
.shot {
  margin: 64px auto 0;
  max-width: 1100px;
  padding: 0 24px;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
}

/* ─── Sections ────────────────────────────────────── */
section { padding-top: 120px; }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Features grid ───────────────────────────────── */
.features { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 880px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: transform 120ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.card-glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ─── Install steps ───────────────────────────────── */
.install { max-width: 780px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
.steps h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.steps p { margin: 0 0 10px; color: var(--text-muted); font-size: 15px; }
.steps p:last-child { margin-bottom: 0; }
.steps code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}
.steps pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 6px 0 0;
}
.steps pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

/* ─── Bottom CTA ──────────────────────────────────── */
.cta-bottom {
  text-align: center;
  padding-top: 140px;
  padding-bottom: 120px;
  padding-left: 24px;
  padding-right: 24px;
}
.cta-bottom h2 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 28px;
}

/* ─── Footer ──────────────────────────────────────── */
.footer {
  padding: 36px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); }
.footer .muted { color: var(--text-soft); margin-top: 12px; }

/* ─── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
