:root {
  color-scheme: light dark;
  --page: #f8fafc;
  --page-soft: #eef4f8;
  --surface: #ffffff;
  --surface-strong: #0d1b2a;
  --ink: #102033;
  --ink-strong: #06111f;
  --muted: #536273;
  --muted-strong: #334155;
  --line: #d8e1ea;
  --line-strong: #b8c5d3;
  --orange: #f97316;
  --orange-deep: #c2410c;
  --green: #16a34a;
  --blue: #2563eb;
  --cyan: #0891b2;
  --focus: #ea580c;
  --header-bg: rgb(248 250 252 / 88%);
  --shadow: 0 24px 70px rgb(15 23 42 / 14%);
  --shadow-strong: 0 28px 80px rgb(15 23 42 / 24%);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #bbf7d0;
  color: var(--ink-strong);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.section-shell,
.hero-shell,
.nav-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(216 225 234 / 76%);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  min-height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 820;
  color: var(--ink-strong);
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(249 115 22 / 22%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-links a,
.nav-toggle {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
}

.nav-links a:hover,
.nav-toggle:hover {
  background: #e8f0f6;
  color: var(--ink-strong);
}

.nav-links a:active,
.nav-toggle:active {
  transform: translateY(1px);
}

.nav-links .nav-download {
  margin-left: 8px;
  background: var(--ink-strong);
  color: #ffffff;
  box-shadow: 0 10px 28px rgb(15 23 42 / 16%);
}

.nav-links .nav-download:hover {
  background: var(--orange);
  color: #ffffff;
}

.nav-toggle {
  width: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100dvh - 72px));
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgb(248 250 252 / 0) 0 49px, rgb(216 225 234 / 54%) 50px 51px, rgb(248 250 252 / 0) 52px) 0 0 / 92px 92px,
    var(--page);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: var(--surface-strong);
  clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding-top: 68px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
  align-items: center;
  gap: 68px;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 860;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 660px;
  color: var(--ink-strong);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 18px rgb(15 23 42 / 20%));
}

.store-badge:active {
  transform: translateY(1px);
}

.store-badge img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.hero-stats {
  max-width: 640px;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats div {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}

.hero-stats dt {
  color: #0b1220;
  font-size: 24px;
  font-weight: 860;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 640px;
}

.phone-stack {
  position: relative;
  min-height: 590px;
}

.phone-shot {
  margin: 0;
  width: min(47vw, 326px);
  overflow: hidden;
  border: 8px solid #101827;
  border-radius: 26px;
  background: #101827;
  box-shadow: var(--shadow-strong);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
}

.primary-shot {
  position: absolute;
  right: 28px;
  top: 0;
  z-index: 2;
}

.secondary-shot {
  position: absolute;
  left: 12px;
  top: 86px;
  z-index: 1;
  transform: rotate(-5deg);
}

.cadence-strip {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 74px;
  z-index: 3;
  height: 104px;
  padding: 20px 22px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  background: rgb(13 27 42 / 92%);
  box-shadow: 0 22px 54px rgb(2 6 23 / 26%);
}

.cadence-strip span {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--orange);
}

.cadence-strip span:nth-child(3n + 2) {
  background: var(--green);
}

.cadence-strip span:nth-child(3n) {
  background: var(--blue);
}

.section {
  padding-block: 112px;
  scroll-margin-top: 80px;
}

.section-heading {
  min-width: 0;
  max-width: 720px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading h2,
.download-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.download-panel p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.split-layout,
.sound-layout,
.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 72px;
}

.cadence-section {
  background: var(--surface);
}

.cadence-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
}

.range-card,
.phase-card,
.sound-console,
.record-board,
.screen-card,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgb(15 23 42 / 8%);
}

.range-card,
.phase-card {
  min-height: 292px;
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.range-card span,
.phase-card span {
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 840;
}

.range-card strong {
  color: var(--ink-strong);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.range-line {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #dbe8ef;
}

.range-line i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--orange), var(--blue));
}

.phase-bars {
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(5, minmax(24px, 1fr));
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.phase-bars i {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--orange);
}

.phase-bars i:nth-child(even) {
  background: var(--green);
}

.phase-card p {
  margin: 0;
  color: var(--muted);
}

.sound-section {
  border-block: 1px solid rgb(216 225 234 / 70%);
  background: var(--page-soft);
}

.sound-layout {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
}

.sound-console {
  min-width: 0;
  padding: 28px;
  background: var(--surface-strong);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.sound-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.sound-row:first-child {
  padding-top: 0;
}

.sound-row span {
  color: #cbd5e1;
  font-weight: 720;
}

.sound-row b {
  color: #ffffff;
  font-size: 22px;
}

.sound-wave {
  height: 132px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 12px;
}

.sound-wave span {
  height: 54px;
  border-radius: 999px;
  background: #38bdf8;
}

.sound-wave span:nth-child(2n) {
  height: 94px;
  background: #22c55e;
}

.sound-wave span:nth-child(3n) {
  height: 116px;
  background: #f97316;
}

.records-section {
  background: var(--surface);
}

.records-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
}

.record-board {
  min-width: 0;
  padding: 28px;
}

.record-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius);
  background: #e8f0f6;
}

.record-tabs span {
  min-width: 52px;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  color: var(--muted-strong);
  font-weight: 790;
}

.record-tabs span:first-child {
  background: var(--surface);
  color: var(--ink-strong);
  box-shadow: 0 8px 20px rgb(15 23 42 / 8%);
}

.record-chart {
  height: 238px;
  margin-top: 30px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 18px / 100% 54px;
}

.record-chart i {
  display: block;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.record-chart i:nth-child(2n) {
  background: var(--green);
}

.record-chart i:nth-child(3n) {
  background: var(--orange);
}

.record-summary {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.record-summary strong {
  color: var(--ink-strong);
  font-size: 20px;
}

.record-summary span {
  color: var(--muted);
}

.screenshots-section {
  background: var(--page);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.screen-card {
  min-width: 0;
  margin: 0;
  padding: 8px;
  overflow: hidden;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
}

.screen-card figcaption {
  padding: 12px 4px 4px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.download-section {
  background: var(--surface);
}

.download-panel {
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(238 244 248 / 94%)),
    var(--surface);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
  color: #cbd5e1;
}

.footer-layout {
  min-height: 112px;
  padding-block: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px 32px;
}

.footer-links,
.footer-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  color: #cbd5e1;
  font-size: 13px;
}

.footer-links {
  font-weight: 720;
  justify-content: flex-start;
}

.footer-meta {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #ffffff;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1220;
    --page-soft: #101827;
    --surface: #111c2e;
    --surface-strong: #07111f;
    --ink: #e5edf7;
    --ink-strong: #f8fbff;
    --muted: #b4c2d2;
    --muted-strong: #d2dbe6;
    --line: #26364a;
    --line-strong: #3b4b61;
    --header-bg: rgb(11 18 32 / 88%);
    --shadow: 0 24px 70px rgb(0 0 0 / 26%);
    --shadow-strong: 0 28px 80px rgb(0 0 0 / 42%);
  }

  .hero {
    background:
      linear-gradient(90deg, rgb(11 18 32 / 0) 0 49px, rgb(59 75 97 / 42%) 50px 51px, rgb(11 18 32 / 0) 52px) 0 0 / 92px 92px,
      var(--page);
  }

  .nav-links a:hover,
  .nav-toggle:hover,
  .record-tabs {
    background: #17243a;
  }

  .range-line,
  .record-tabs span:first-child {
    background: #17243a;
  }

  .record-chart {
    background:
      linear-gradient(var(--line) 1px, transparent 1px) 0 18px / 100% 54px;
  }

  .download-panel {
    background:
      linear-gradient(135deg, rgb(17 28 46 / 96%), rgb(16 24 39 / 94%)),
      var(--surface);
  }
}

@media (max-width: 1120px) {
  .hero-shell {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 42px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone-shot {
    width: min(40vw, 286px);
  }

  .screens-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-shell,
  .split-layout,
  .sound-layout,
  .records-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-top: 52px;
  }

  .hero-visual {
    min-height: 590px;
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .phone-shot {
    width: min(56vw, 310px);
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .hero-shell,
  .nav-shell {
    padding-inline: 20px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    width: min(280px, calc(100vw - 40px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 44px rgb(15 23 42 / 18%);
    display: grid;
    gap: 2px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      visibility 180ms ease,
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links .nav-download {
    margin: 2px 0 0;
    justify-content: center;
  }

  .section {
    padding-block: 84px;
  }

  .hero-shell {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.5vw, 48px);
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .phone-stack {
    min-height: 454px;
  }

  .phone-shot {
    border-width: 6px;
    border-radius: 20px;
    width: min(58vw, 250px);
  }

  .phone-shot img {
    border-radius: 14px;
  }

  .primary-shot {
    right: 0;
  }

  .secondary-shot {
    left: 0;
    top: 74px;
  }

  .cadence-strip {
    left: 16px;
    bottom: 0;
    height: 88px;
    padding: 16px;
    gap: 7px;
  }

  .cadence-panel {
    grid-template-columns: 1fr;
  }

  .sound-layout,
  .records-layout,
  .split-layout {
    gap: 44px;
  }

  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .download-panel {
    padding: 28px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-meta {
    justify-content: flex-start;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .download-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-badge img {
    height: 48px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .phone-stack {
    min-height: 388px;
  }

  .phone-shot {
    width: min(60vw, 216px);
  }

  .secondary-shot {
    top: 62px;
  }

  .cadence-strip {
    height: 76px;
  }

  .screens-grid {
    gap: 14px;
  }

  .record-chart {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
