/* SetPilot — marketing site. Shares the app's design language:
   neutral dark, one green accent, Space Grotesk display + Inter UI, calm motion. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

/* ---------- Tokens (mirror the app) ---------- */
:root {
  --bg: #0e0e11;
  --bg-2: #0b0b0e;
  --card: #161619;
  --card-2: #1c1c21;
  --border: #2a2a31;
  --border-soft: #232328;
  --text: #f3f3f5;
  --muted: #9a9aa3;
  --faint: #6b6b74;
  --accent: #34d399;
  --accent-2: #2bbf88;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --accent-ink: #052b1e;
  --danger: #f0584f;
  --display: "Space Grotesk", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient accent glow behind the hero */
body::before {
  content: "";
  position: fixed;
  top: -30vh; left: 50%;
  width: 80vw; max-width: 900px; height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font: 600 12px/1 var(--ui);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--ui);
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.985); }
.btn i { font-size: 0.95em; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.18);
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.primary i { color: var(--accent-ink); }

.btn.ghost { background: transparent; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.sm { padding: 9px 14px; font-size: 13px; }

.btn .sub { font-weight: 500; opacity: 0.75; font-size: 0.82em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font: 700 20px/1 var(--display);
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 10px;
}
.brand .brand-icon { color: var(--accent); font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link {
  padding: 9px 13px; border-radius: 9px;
  font: 500 14px/1 var(--ui); color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a.link:hover { color: var(--text); background: var(--card); }

/* ---------- Section scaffolding ---------- */
section { position: relative; z-index: 1; }
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  margin: 14px 0 0;
  font: 700 clamp(28px, 4.5vw, 40px)/1.1 var(--display);
  letter-spacing: -0.6px;
}
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  margin: 20px 0 0;
  font: 700 clamp(38px, 6.2vw, 62px)/1.02 var(--display);
  letter-spacing: -1.4px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  margin: 22px 0 0; max-width: 520px;
  font-size: 18px; color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 28px;
  font: 500 14px/1 var(--ui); color: var(--faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--accent); }

/* ---------- App mockup (CSS recreation of the real UI) ---------- */
.mock {
  width: 100%; max-width: 372px; margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* topbar */
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.mock-brand { font: 700 17px/1 var(--display); letter-spacing: -0.2px; display: flex; align-items: center; gap: 8px; }
.mock-brand i { color: var(--accent); font-size: 14px; }
.mock-status { display: flex; align-items: center; gap: 7px; font: 500 11px/1 var(--ui); color: var(--muted); }
.mock-lamp { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.mock-bpm { padding-left: 8px; border-left: 1px solid var(--border); color: var(--faint); }
.mock-bpm b { color: var(--text); font-family: var(--display); }
.mock-wifi {
  width: 24px; height: 24px; border-radius: 7px; margin-left: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-size: 10px;
}

/* cards */
.mock-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 15px; padding: 15px; }
.mock-card.tight { padding: 14px 12px; }

/* now playing */
.mock-np-top { display: flex; align-items: center; justify-content: space-between; }
.mock-eyebrow { font: 600 10px/1 var(--ui); letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.mock-eyebrow.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.mock-ap {
  font: 600 10px/1 var(--ui); color: var(--accent-ink); background: var(--accent);
  padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
}
.mock-ap b { font-weight: 700; }
.mock-title { font: 700 20px/1.1 var(--display); letter-spacing: -0.3px; margin: 11px 0 12px; }
.mock-track { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.mock-fill { height: 100%; width: 62%; background: var(--accent); border-radius: 999px; }
.mock-time { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px/1 var(--display); color: var(--text); }
.mock-time .muted { color: var(--faint); }
.mock-next { display: flex; align-items: baseline; gap: 9px; margin-top: 12px; font: 500 13px/1 var(--ui); }
.mock-next .lbl { font: 600 10px/1 var(--ui); letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.mock-controls { display: flex; gap: 9px; margin-top: 13px; }
.mock-ctl {
  flex: 1; padding: 10px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 13px/1 var(--ui); color: var(--text);
  background: var(--card-2); border: 1px solid var(--border);
}
.mock-ctl i { font-size: 11px; }
.mock-ctl.danger { color: var(--danger); }

/* set list */
.mock-set-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; }
.mock-set-head .h { font: 700 14px/1 var(--display); letter-spacing: -0.2px; }
.mock-set-head .r { display: inline-flex; align-items: center; gap: 9px; }
.mock-set-head .cnt { font: 500 11px/1 var(--ui); color: var(--faint); }
.mock-lock {
  width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-size: 10px;
}
.mock-list { display: flex; flex-direction: column; }
.mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; border-radius: 9px; font: 500 13px/1 var(--ui);
  border-bottom: 1px solid var(--border-soft);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row .grip { color: var(--faint); font-size: 11px; width: 14px; }
.mock-row .n { font: 600 12px/1 var(--display); color: var(--faint); min-width: 14px; text-align: center; }
.mock-row .name { flex: 1; }
.mock-row .len { font: 500 11px/1 var(--display); color: var(--faint); }
.mock-row.cur { background: var(--accent-soft); border-bottom-color: transparent; border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; padding-left: 4px; }
.mock-row.cur .name, .mock-row.cur .n { color: var(--accent); font-weight: 600; }

/* ---------- Diagram ---------- */
.flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0;
  max-width: 920px; margin: 0 auto;
}
.flow-node {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.flow-node .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px;
}
.flow-node h3 { margin: 0; font: 700 16px/1.2 var(--display); }
.flow-node p { margin: 0; font-size: 14px; color: var(--muted); }
.flow-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 8px; color: var(--faint); min-width: 70px;
}
.flow-link .label { font: 600 11px/1 var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.flow-link .line { font-size: 18px; color: var(--border); }

/* Inline info icon — opens the AbletonOSC credit modal */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0 1px 0 3px; border: 0; background: none; cursor: pointer;
  color: var(--faint); font-size: 0.78em; line-height: 1; vertical-align: baseline;
  transition: color 0.15s ease;
}
.info-dot:hover { color: var(--accent); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 380px; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 28px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: modal-in 0.18s ease;
}
.modal-box .ic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent); font-size: 19px;
}
.modal-box h3 { margin: 0 0 10px; font: 700 19px/1.2 var(--display); letter-spacing: -0.2px; }
.modal-box p { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.modal-box p b { color: var(--text); font-weight: 600; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }

@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover { border-color: var(--border); transform: translateY(-3px); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 18px; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font: 700 17px/1.2 var(--display); letter-spacing: -0.2px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Download ---------- */
.download { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.dl-primary { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 40px; }
.dl-primary .btn.lg { min-width: 280px; }
.dl-hint { font: 500 13px/1 var(--ui); color: var(--faint); }
.dl-hint a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.dl-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 480px; margin: 0 auto; }
.dl-plat {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color 0.15s ease;
}
.dl-plat.active { border-color: var(--accent); }
.dl-plat i.os { font-size: 30px; color: var(--text); }
.dl-plat .os-name { font: 700 15px/1 var(--display); }
.dl-plat .os-file { font: 500 12px/1 var(--ui); color: var(--faint); min-height: 14px; }

/* Build from source */
.dl-source {
  max-width: 720px; margin: 44px auto 0;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px;
}
.dl-source h3 { margin: 0 0 6px; font: 700 17px/1.2 var(--display); }
.dl-source p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.code {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto;
  font: 500 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text);
}
.code .c { color: var(--faint); }
.code .g { color: var(--accent); }
.code .line { display: block; white-space: pre; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  font: 700 15px/1 var(--display); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font: 700 16px/1.2 var(--display); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.step p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 48px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 17px; }
.footer .f-meta { font: 500 13px/1.6 var(--ui); color: var(--faint); }
.footer .f-links { display: flex; gap: 18px; }
.footer .f-links a { color: var(--muted); font: 500 14px/1 var(--ui); }
.footer .f-links a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mock { margin: 0 auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-link { flex-direction: row; padding: 14px 0; min-width: 0; }
  .flow-link .label { margin: 0 10px 0 0; }
  .flow-link .line { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .features, .steps, .dl-platforms { grid-template-columns: 1fr; }
  .nav-links .link { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
