/* MusicFi — landing styles
   Brand: "Hi-Fi Clef" — deep navy + blue gradient + orange accent
   Typography: Instrument Serif (display), Cormorant (serif body), JetBrains Mono (eyebrow) */

:root {
  /* From Design/Sufi-3 brand palette */
  --bg:           #070d22;
  --bg-soft:      #0b1530;
  --bg-card:      #11193a;
  --bg-card-hi:   #182253;

  --ink:          #eef2ff;
  --ink-dim:      rgba(238, 242, 255, 0.72);
  --ink-mute:     rgba(238, 242, 255, 0.50);
  --ink-faint:    rgba(238, 242, 255, 0.22);
  --line:         rgba(238, 242, 255, 0.10);

  --blue:         oklch(0.55 0.14 245);
  --blue-deep:    oklch(0.32 0.12 255);
  --blue-bright:  oklch(0.72 0.14 240);

  --accent:       oklch(0.72 0.16 52);   /* warm orange */
  --accent-soft:  oklch(0.80 0.13 60);

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;
  --max:       1180px;

  --font-display: "Instrument Serif", "Cormorant", Georgia, serif;
  --font-serif:   "Cormorant", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ui:      -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1100px 600px at 80% -10%, oklch(0.55 0.14 245 / 0.30), transparent 60%),
    radial-gradient(800px 500px at -10% 0%, oklch(0.72 0.16 52 / 0.12), transparent 60%),
    linear-gradient(180deg, #060c1f, #070d22 40%, #050a1c);
  background-attachment: fixed;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-bright); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: #1a1020; }

.muted { color: var(--ink-mute); }
.small { font-size: 13px; }
.center { text-align: center; }

/* Eyebrow label — uppercase mono, used a lot in the brand */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ──────────────────────────────────────────────
   Navigation
   ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(7, 13, 34, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .fi { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-family: var(--font-ui);
}
.nav-links a {
  color: var(--ink-dim);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
}

/* ──────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 24px 80px;
  overflow: hidden;
}

/* Concentric "broadcast" rings behind the icon — from splash-f */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 38%, transparent 0, transparent 220px, oklch(0.72 0.14 240 / 0.10) 221px, transparent 224px),
    radial-gradient(circle at 50% 38%, transparent 0, transparent 320px, oklch(0.72 0.14 240 / 0.08) 321px, transparent 324px),
    radial-gradient(circle at 50% 38%, transparent 0, transparent 440px, oklch(0.72 0.14 240 / 0.06) 441px, transparent 444px),
    radial-gradient(circle at 50% 38%, transparent 0, transparent 580px, oklch(0.72 0.14 240 / 0.04) 581px, transparent 584px);
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-icon {
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  border-radius: 38px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}
.lede.center { margin-left: auto; margin-right: auto; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge-coming {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.1;
  min-width: 196px;
  transition: transform .2s ease, border-color .2s ease;
}
.badge-coming:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--accent-soft);
}
.badge-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #b9c0db;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.badge-main {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-ui);
}

.link-secondary {
  color: var(--ink-dim);
  font-weight: 500;
  font-family: var(--font-ui);
  position: relative;
}
.link-secondary::after {
  content: " →";
  transition: transform .2s ease, color .2s ease;
  display: inline-block;
}
.link-secondary:hover {
  color: var(--accent);
}
.link-secondary:hover::after {
  transform: translateX(3px);
}
.link-secondary.big {
  font-size: 18px;
  display: inline-block;
  margin-top: 12px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 28px;
}

/* ──────────────────────────────────────────────
   Sections
   ────────────────────────────────────────────── */
section {
  padding: 96px 24px;
  position: relative;
}

.section-eyebrow {
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ──────────────────────────────────────────────
   Cards
   ────────────────────────────────────────────── */
.features, .hifi, .screens, .cta { max-width: var(--max); margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background:
    linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, oklch(0.55 0.14 245 / 0.18), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 242, 255, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 30, 0.45);
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.6;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, oklch(0.55 0.14 245 / 0.30), oklch(0.72 0.16 52 / 0.20));
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}

/* ──────────────────────────────────────────────
   Hi-Fi section (distinct, lighter background)
   ────────────────────────────────────────────── */
.hifi-band {
  background:
    radial-gradient(900px 500px at 50% 0%, oklch(0.55 0.14 245 / 0.18), transparent 70%),
    linear-gradient(180deg, #0a1230, #0c1838 60%, #0a1230);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ──────────────────────────────────────────────
   Screenshots — polished with device frames
   ────────────────────────────────────────────── */
.screens-heading {
  margin: 64px auto 28px;
  max-width: 1080px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  text-align: center;
}
.screens-heading:first-of-type { margin-top: 24px; }

.screens-row {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.screens-iphone {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  padding: 10px 0;
}

.screens-ipad {
  grid-template-columns: 1fr;
  max-width: 980px;
  gap: 36px;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

/* ── iPhone device frame ── */
.shot-phone .frame {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background:
    linear-gradient(160deg, #2a2d3a 0%, #15171f 55%, #0c0d13 100%);
  box-shadow:
    0 40px 80px rgba(0, 0, 20, 0.55),
    0 12px 30px rgba(0, 0, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
  width: 100%;
}

.shot-phone .frame::after {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 24px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
  pointer-events: none;
}

.shot-phone .frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
  position: relative;
  z-index: 1;
}

/* ── iPad device frame ── */
.shot-tablet .frame {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, #2c2f3a 0%, #16181f 55%, #0c0d13 100%);
  box-shadow:
    0 50px 100px rgba(0, 0, 20, 0.6),
    0 16px 40px rgba(0, 0, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.shot-tablet .frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* hover lift */
.shot:hover .frame {
  transform: translateY(-6px);
  box-shadow:
    0 60px 120px rgba(0, 0, 30, 0.7),
    0 20px 50px rgba(0, 0, 30, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(106, 169, 255, 0.15);
}

/* subtle "stage" backdrop for the section */
.screens {
  position: relative;
}
.screens::before {
  content: "";
  position: absolute;
  inset: 80px 0 80px 0;
  background:
    radial-gradient(800px 500px at 50% 50%, oklch(0.55 0.14 245 / 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.screens > * { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────
   Final CTA block
   ────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 120px;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 580px;
}

/* ──────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 10, 28, 0.6);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-brand .fi { color: var(--accent); font-style: italic; }
.footer-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-ui);
}
.footer-links a {
  color: var(--ink-dim);
  font-size: 14.5px;
}
.footer-links a:hover { color: var(--accent); }

/* ──────────────────────────────────────────────
   Doc pages (privacy, support)
   ────────────────────────────────────────────── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 112px;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.doc .updated {
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin-top: 44px;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.doc h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}
.doc p, .doc li {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.7;
}
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc code {
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.doc a { color: var(--blue-bright); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.doc a:hover { color: var(--accent); border-bottom-color: currentColor; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet & small laptop */
@media (max-width: 960px) {
  section { padding: 80px 24px; }
  .hero { padding: 80px 22px 64px; }
}

/* Phone */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 18px; font-size: 13.5px; }
  .nav-links a:nth-child(2) { display: none; }
  .brand { font-size: 22px; }
  .brand img { width: 30px; height: 30px; }

  .hero { padding: 56px 20px 56px; }
  .hero-icon { width: 132px; height: 132px; border-radius: 30px; margin-bottom: 24px; }
  .hero h1 br { display: none; } /* let it wrap naturally */
  .lede { font-size: 17px; margin-bottom: 28px; }
  .cta-row { gap: 16px; }
  .badge-coming { min-width: 168px; padding: 11px 18px; }

  section { padding: 64px 20px; }
  .section-sub { margin-bottom: 36px; font-size: 17px; }
  .grid { gap: 14px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15px; }

  .screens-iphone { gap: 14px; grid-template-columns: repeat(3, 1fr); }
  .shot-phone .frame { padding: 7px; border-radius: 30px; }
  .shot-phone .frame img { border-radius: 24px; }
  .shot-phone .frame::after { top: 14px; height: 14px; width: 32%; border-radius: 10px; }
  .shot-tablet .frame { padding: 10px; border-radius: 20px; }
  .shot-tablet .frame img { border-radius: 10px; }
  .screens-heading { font-size: 10px; letter-spacing: 0.20em; margin: 40px auto 20px; }

  .footer-inner { padding: 28px 20px; gap: 18px; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 18px; }

  .doc { padding: 56px 20px 80px; }
  .doc h2 { font-size: 24px; margin-top: 36px; }
}

/* Small phones (iPhone SE, 375px and below) */
@media (max-width: 420px) {
  .nav { padding: 10px 16px; gap: 12px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .brand { font-size: 20px; }
  .brand img { width: 28px; height: 28px; }

  .hero { padding: 44px 18px 48px; }
  .hero-icon { width: 112px; height: 112px; border-radius: 26px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.20em; }
  .lede { font-size: 16px; }
  .cta-row { flex-direction: column; gap: 14px; }
  .badge-coming { width: 100%; align-items: center; min-width: 0; }
  .hero-meta { font-size: 10px; margin-top: 22px; }

  section { padding: 56px 18px; }
  .card { padding: 20px 18px; }
  .card-icon { width: 38px; height: 38px; font-size: 18px; }

  .screens-iphone { grid-template-columns: 1fr; gap: 24px; max-width: 280px; margin: 0 auto; }
  .shot-phone { align-items: stretch; }

  .doc h1 { font-size: 34px; }
  .doc p, .doc li { font-size: 15.5px; }
}

/* Wide screens — cap container, prevent line lengths from getting silly */
@media (min-width: 1400px) {
  .hero-inner { max-width: 1000px; }
  .section-title { font-size: 52px; }
}
