/* Octave Flow Studios: palette taken from the PianoFlow app */
:root {
  --bg: #0e1116;
  --panel: #161b22;
  --panel-2: #1c232d;
  --line: #2a323d;
  --text: #e6edf3;
  --muted: #8b97a7;
  --accent: #5b8cff;
  --hand-l: #ff8f5b;
  --hand-r: #4d9fff;
  --green: #3ecf9e;
  --gold: #f5c04a;
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(91, 140, 255, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(255, 143, 91, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }

/* ---------- Banner + tabs ---------- */
.banner {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 22, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.banner-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  white-space: nowrap;
}
.brand img { border-radius: 9px; }

.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.tabs a {
  padding: 7px 18px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap; transition: background .15s, color .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-selected="true"] { background: var(--accent); color: #fff; }

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

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.hero-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 22px;
  box-shadow: 0 10px 40px rgba(91, 140, 255, .25); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 span {
  background: linear-gradient(90deg, var(--hand-r), var(--green) 55%, var(--hand-l));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.15rem; color: #c3ccd7; max-width: 34em; }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.pill {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem; font-weight: 600;
}

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 18px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #3a4250;
  transition: transform .15s, border-color .15s;
}
.play-badge svg { width: 26px; height: 26px; fill: var(--green); }
.play-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #c7ced8; }
.play-badge strong { font-size: 1.2rem; font-weight: 600; }
.play-badge:not([aria-disabled]):hover { transform: translateY(-2px); border-color: var(--accent); }
.play-badge[aria-disabled] { cursor: default; }

/* ---------- Device frames ---------- */
.device {
  margin: 0; padding: 10px; border-radius: 26px;
  background: linear-gradient(160deg, #2a313c, #12161c);
  border: 1px solid #343c49;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.device img { border-radius: 16px; width: 100%; }
.device-portrait { max-width: 300px; padding: 9px; border-radius: 34px; }
.device-portrait img { border-radius: 26px; }
.hero-shot { transform: perspective(1400px) rotateY(-6deg); }

/* ---------- Features ---------- */
.features { padding: 40px 0 24px; }
.features > h2, .closing h2, .showcase h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.features > h2 { text-align: center; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

/* ---------- Showcase ---------- */
.showcase { padding: 56px 0 24px; display: grid; gap: 80px; }
.showcase-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.showcase-row.reverse { grid-template-columns: 1fr 1.3fr; }
.showcase-row.reverse .device { order: 2; justify-self: center; }
.showcase-copy p { color: #c3ccd7; font-size: 1.05rem; }

/* ---------- Closing CTA ---------- */
.closing {
  margin: 80px 0 72px; padding: 52px 24px; text-align: center;
  border-radius: 24px; border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(77, 159, 255, .14), rgba(255, 143, 91, .10)),
    var(--panel);
}
.closing p { color: #c3ccd7; margin: 0 auto 26px; max-width: 32em; }

/* ---------- About ---------- */
.about { max-width: 680px; margin: 0 auto; padding: 96px 0 120px; }
.about-icon { border-radius: 18px; margin-bottom: 24px; }
.about h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.about p { color: #c3ccd7; }
.about .lede { color: var(--text); }
.text-link { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 24px 20px;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 48px; text-align: center; }
  .hero-icon { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-shot { transform: none; }
  .showcase-row.reverse .device { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .banner-inner { padding: 10px 16px; }
  .brand span { display: none; }
  .tabs a { padding: 7px 14px; }
  main { padding: 0 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .device { padding: 6px; border-radius: 16px; }
  .device img { border-radius: 11px; }
  .device-portrait { max-width: 240px; padding: 7px; border-radius: 28px; }
  .device-portrait img { border-radius: 22px; }
  .about { padding: 56px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
