/* Needlfy's dark look (ui/theme.slint, mode 1) with its orange accent. */
:root {
  --bg: #0E0E10;
  --panel: #16161A;
  --platter: #18181B;
  --line: #FFFFFF14;
  --line-strong: #FFFFFF24;
  --text: #F2F2F3;
  --muted: #A1A1AA;
  --accent: #F08A4B;
  --on-accent: #141414;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.defs { position: absolute; }

[hidden] { display: none !important; }

/* ---------- notch ---------- */

.notch {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 10px;
  background: #000;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 24px #00000080;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFFD9;
}

.notch-disc {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #000 0 1.5px, var(--accent) 2px 5px, transparent 5.5px),
    repeating-radial-gradient(circle, #1d1d21 0 1px, #111114 1px 2px);
  animation: spin 3s linear infinite;
}

.notch-bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.notch-bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
  animation: level 0.9s ease-in-out infinite alternate;
}
.notch-bars i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.notch-bars i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.notch-bars i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark { width: 22px; height: 22px; color: var(--accent); }

.nav-link { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-link:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px 72px;
}

.window {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 120px -20px #F08A4B2E, 0 30px 60px -30px #000;
  overflow: hidden;
  text-align: left;
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.dots-ghost { visibility: hidden; }
.search {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 42%;
  height: 28px;
  padding: 0 8px 0 12px;
  justify-content: space-between;
  border-radius: 8px;
  background: #FFFFFF0D;
  color: var(--muted);
  font-size: 13px;
}
.search kbd {
  font: inherit;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #FFFFFF14;
}

.stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 36px 40px 40px;
}

.platter {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--platter);
  border: 1px solid #FFFFFF12;
  display: grid;
  place-items: center;
}

.record {
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 30deg, #ffffff10, transparent 12%, transparent 38%, #ffffff0d 50%, transparent 62%, transparent 88%, #ffffff10),
    repeating-radial-gradient(circle, #141417 0 2px, #0b0b0d 2px 4px);
  box-shadow: 0 18px 40px #00000099, inset 0 0 0 1px #FFFFFF0A;
  animation: spin 6s linear infinite;
}
.label {
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg) 0 7%, transparent 7.5%),
    radial-gradient(circle at 30% 30%, #F6B48A, var(--accent) 45%, #C2501B);
}

.tonearm {
  position: absolute;
  top: 4%;
  right: 3%;
  width: 26%;
  overflow: visible;
  transform: rotate(6deg);
  transform-origin: 78% 10%;
}
.tonearm circle { fill: #2A2A30; stroke: #FFFFFF26; stroke-width: 2; }
.tonearm path { fill: none; stroke: #D4D4D8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tonearm rect { fill: #D4D4D8; }

.now { min-width: 0; }
.song { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.artist { margin: 2px 0 22px; color: var(--muted); }
.progress { height: 4px; border-radius: 2px; background: var(--line-strong); }
.progress span { display: block; width: 38%; height: 100%; border-radius: 2px; background: var(--accent); }
.controls { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.ctl { display: block; }
.prev, .next { width: 16px; height: 16px; background: var(--text); opacity: 0.85; }
.prev { clip-path: polygon(0 0, 18% 0, 18% 45%, 100% 0, 100% 100%, 18% 55%, 18% 100%, 0 100%); }
.next { clip-path: polygon(0 0, 82% 45%, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% 55%, 0 100%); }
.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.play::before, .play::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 4px;
  height: 16px;
  border-radius: 1px;
  background: var(--on-accent);
}
.play::before { left: 18px; }
.play::after { right: 18px; }

h1 {
  margin: 64px 0 0;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cta { display: flex; flex-direction: column; align-items: center; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: #F49C66; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.button-quiet { background: #FFFFFF14; color: var(--text); }
.button-quiet:hover { background: #FFFFFF24; }

.button-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.other { margin-top: 6px; color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
.other:hover { color: var(--text); }

.phone-note {
  max-width: 26em;
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.phone-note p { margin: 0 0 16px; color: var(--muted); }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.features article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.features h2 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- download ---------- */

.download {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  scroll-margin-top: 48px;
}
.download > h2 { margin: 0; font-size: 32px; letter-spacing: -0.02em; }
.section-lede { margin: 10px 0 28px; color: var(--muted); }

.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.platforms li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.platforms h3 { margin: 0; font-size: 17px; font-weight: 650; }
.platforms p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.platforms li.current h3::after {
  content: "Your computer";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F08A4B24;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}
.muted-row h3 { color: var(--muted); }

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.steps {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.3s ease;
}
.steps h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.steps ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li + li { margin-top: 6px; }
.steps b { color: var(--text); font-weight: 600; }
.steps.highlight { border-color: var(--accent); }

.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; font-size: 14px; }
.links a { color: var(--muted); text-underline-offset: 3px; }
.links a:hover { color: var(--text); }

footer {
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0; }

/* ---------- motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes level { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .record, .notch-disc, .notch-bars i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding: 18px 16px; }
  .hero { padding: 24px 16px 56px; }
  .stage { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .platter { width: 78%; margin: 0 auto; }
  .titlebar .search { width: 60%; }
  .dots-ghost { display: none; }
  h1 { margin-top: 48px; }
  .lede { font-size: 17px; }
  .features, .download { padding-left: 16px; padding-right: 16px; }
  .platforms li { flex-wrap: wrap; }
  .notch-title { display: none; }
}
