@font-face {
  font-family: Lora;
  src: url("./lora-latin.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #fcf1eb;
  --soft: #cbbac1;
  --bg: #171017;
  --panel: #211722;
  --line: #443343;
  --gold: #f8c687;
  --lavender: #d4baf3;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.7 system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 4px;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
p {
  color: var(--soft);
}
.shell {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 12px;
  transform: translateY(-140%);
}
.skip:focus {
  transform: none;
}
.header {
  border-bottom: 1px solid var(--line);
  background: #181019;
}
.bar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  width: fit-content;
  white-space: nowrap;
}
.brand img {
  border-radius: 10px;
}
.bar nav,
.footer nav {
  display: flex;
  gap: 32px;
  color: var(--soft);
  font-size: 0.9rem;
}
.bar a:hover,
.footer a:hover,
.quiet:hover {
  color: var(--gold);
}
.nav-cta {
  justify-self: end;
  border: 1px solid #614a5d;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
}
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 82% 45%,
    #432940 0%,
    #251625 42%,
    transparent 72%
  );
}
.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}
.hero-copy {
  padding: 52px 0;
  position: relative;
  z-index: 1;
}
.english {
  color: var(--gold);
  font:
    italic 1.36rem Lora,
    Georgia,
    serif;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(3.6rem, 6.8vw, 6.25rem);
  letter-spacing: -0.075em;
  font-weight: 790;
  line-height: 1.04;
}
.hero h1 span {
  color: var(--lavender);
}
.hero-text {
  max-width: 390px;
  margin-top: 26px;
  font-size: 1.06rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  min-height: 47px;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.4;
}
.button {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #271727;
}
.button:hover {
  background: #ffdfa7;
}
.button span {
  font-size: 0.77rem;
}
.outline {
  border: 1px solid #745775;
  background: transparent;
  color: var(--ink);
}
.outline:hover {
  background: #352438;
}
.quiet {
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid #775d72;
}
.hero-visual {
  position: relative;
  min-height: 545px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.visual-grid {
  position: absolute;
  inset: 11% 0 12%;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, #d4baf326 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 34px, #d4baf326 35px 36px);
  mask-image: radial-gradient(ellipse, #000, transparent 72%);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  width: min(98%, 462px);
  border: 1px solid #a478ab61;
  border-radius: 50%;
  z-index: -1;
}
.hero-visual::after {
  width: min(84%, 410px);
  border-style: dashed;
  transform: rotate(22deg);
}
.phone {
  width: 222px;
  padding: 7px;
  border: 1px solid #916f87;
  background: #160f16;
  border-radius: 32px;
  box-shadow:
    0 31px 78px #100b16bd,
    0 0 55px #b073a83a;
  transform: rotate(-6deg);
}
.phone img {
  border-radius: 25px;
  width: 100%;
}
.sound-tag {
  position: absolute;
  bottom: 23%;
  right: 3%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #231625f2;
  border: 1px solid #896887;
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--gold);
  font:
    1rem Lora,
    Georgia,
    serif;
  box-shadow: 0 12px 28px #130e15a8;
}
.signal {
  display: flex;
  align-items: center;
  gap: 3px;
}
.signal i {
  width: 3px;
  height: 10px;
  border-radius: 9px;
  background: var(--lavender);
}
.signal i:nth-child(2n) {
  height: 16px;
}
.signal i:nth-child(3) {
  height: 23px;
}
.hero-visual figcaption {
  position: absolute;
  bottom: 10px;
  color: var(--soft);
  font-size: 0.82rem;
}
.demo-section {
  padding: 76px 0;
  background: #1c131d;
  border-block: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 27px;
}
.section-heading h2,
.app-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  letter-spacing: -0.055em;
}
.section-heading p {
  margin-top: 9px;
}
.demo {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid #5c405c;
  background: #231824;
  border-radius: 15px;
  overflow: hidden;
}
.demo-sidebar {
  padding: 25px;
  border-right: 1px solid var(--line);
  background: #291d2c;
}
.demo-sidebar label {
  display: block;
  font-weight: 730;
  margin-bottom: 8px;
}
select {
  appearance: none;
  width: 100%;
  color: var(--ink);
  background: #1e1420
    linear-gradient(45deg, transparent 50%, var(--lavender) 50%) right 13px
    center/6px 6px no-repeat;
  border: 1px solid #69526a;
  border-radius: 7px;
  padding: 8px 24px 8px 10px;
  font-size: 0.9rem;
}
.legend {
  line-height: 2;
  margin-top: 18px;
}
.legend b {
  color: var(--gold);
  display: inline-block;
  min-width: 19px;
}
.deck {
  padding: 25px;
}
.deck-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 10px;
}
.deck-title h3 {
  font:
    500 clamp(1.6rem, 4vw, 2.25rem) Lora,
    Georgia,
    serif;
}
.meter {
  padding: 3px 12px;
  border: 1px solid #735975;
  border-radius: 99px;
  color: var(--lavender);
  white-space: nowrap;
}
.score {
  display: grid;
  grid-template-columns: repeat(var(--slots, 8), minmax(0, 1fr));
  gap: 5px;
}
.step {
  display: grid;
  text-align: center;
  place-items: center;
  gap: 2px;
  min-height: 55px;
  border: 1px solid #4d3e50;
  border-radius: 6px;
  color: #c9b9c8;
  font-size: 0.8rem;
}
.step strong {
  font-size: 1.05rem;
}
.step[data-hit="D"] {
  background: #513834;
  color: #ffcf96;
}
.step[data-hit="T"],
.step[data-hit="K"] {
  background: #40324e;
  color: #ead5ff;
}
.step.is-active {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}
.tempo {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 100px;
  max-width: 300px;
  font-size: 0.9rem;
}
.tempo input {
  width: 100%;
  margin: 0;
  accent-color: var(--gold);
}
.tempo output {
  color: var(--gold);
  font-weight: 800;
}
.description,
.demo-note {
  font-size: 0.92rem;
}
.demo-note {
  margin-top: 11px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.features,
.support {
  padding-block: 76px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  margin-bottom: 35px;
}
.feature-grid article {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}
.feature-grid article:last-child {
  border-right: 0;
}
.feature-mark {
  font-size: 1.55rem;
  color: var(--gold);
}
.feature-grid h3 {
  font-size: 1.08rem;
  margin: 8px 0;
}
.feature-grid p {
  font-size: 0.95rem;
}
.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.screens figure {
  padding: 20px 12px 16px;
  background: radial-gradient(ellipse at 50% 40%, #412c47, #211723 78%);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
}
.screens img {
  width: min(100%, 190px);
  border-radius: 14px;
  margin: 0 auto 12px;
}
.screens figcaption {
  font-size: 0.92rem;
  color: var(--soft);
}
.app-section {
  padding-block: 32px;
  background: #221725;
  border-block: 1px solid var(--line);
}
.app-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
.app-panel img {
  border-radius: 19px;
}
.app-panel p {
  margin-top: 6px;
}
.app-panel .availability {
  font-size: 0.92rem;
}
.support details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.support details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.support details p {
  margin: 8px 0 0 20px;
}
footer {
  background: #1c131d;
  border-top: 1px solid var(--line);
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 28px;
}
.footer p {
  font-size: 0.9rem;
  margin-top: 6px;
}
@media (max-width: 820px) {
  .shell {
    width: calc(100% - 40px);
  }
  .hero-grid {
    min-height: 500px;
  }
  .hero-visual {
    min-height: 445px;
  }
  .phone {
    width: 173px;
  }
  .sound-tag {
    right: 0;
    bottom: 22%;
    font-size: 0.86rem;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid article:nth-child(2) {
    border-right: 0;
  }
  .feature-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .app-panel {
    grid-template-columns: auto 1fr;
  }
  .app-panel .outline {
    grid-column: 2;
    justify-self: start;
  }
  .bar nav,
  .footer nav {
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }
  .bar {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }
  .bar nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    padding: 44px 0 12px;
  }
  .hero h1 {
    font-size: clamp(3.05rem, 12vw, 4.45rem);
  }
  .hero-visual {
    min-height: 390px;
  }
  .hero-visual figcaption {
    bottom: 17px;
  }
  .phone {
    width: 151px;
  }
  .sound-tag {
    right: 3%;
  }
  .demo-section,
  .features,
  .support {
    padding-block: 45px;
  }
  .demo {
    grid-template-columns: 1fr;
  }
  .demo-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px;
  }
  .legend {
    line-height: 1.6;
    font-size: 0.84rem;
    margin-top: 8px;
  }
  .legend br {
    display: none;
  }
  .legend b {
    min-width: auto;
    margin-left: 5px;
  }
  .deck {
    padding: 15px;
  }
  .score[data-long="true"] {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .step {
    min-height: 42px;
  }
  .controls .tempo {
    flex-basis: 100%;
    max-width: none;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-panel {
    gap: 14px;
  }
  .app-panel img {
    width: 60px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
