@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;700;900&display=swap');

:root {
  --bg: #f5f0e7;
  --bg-strong: #ecdfca;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-solid: #fffaf1;
  --surface-strong: #fff7ea;
  --text-main: #1f2f46;
  --text-sub: #4b5f7a;
  --text-mute: #6f7d91;
  --brand: #c5842f;
  --brand-strong: #9f6620;
  --accent: #12345b;
  --accent-soft: #294c77;
  --line: rgba(31, 47, 70, 0.14);
  --line-strong: rgba(31, 47, 70, 0.28);
  --ok: #0d7d62;
  --ok-bg: rgba(13, 125, 98, 0.16);
  --shadow-soft: 0 10px 30px rgba(28, 41, 62, 0.12);
  --shadow-float: 0 24px 52px rgba(18, 39, 67, 0.25);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1140px;
}

html.dark-mode {
  --bg: #0f1b2d;
  --bg-strong: #0f2239;
  --surface: rgba(14, 30, 50, 0.72);
  --surface-solid: #132843;
  --surface-strong: #1a3455;
  --text-main: #eef4ff;
  --text-sub: #c7d5ea;
  --text-mute: #95a9c5;
  --brand: #e0ae66;
  --brand-strong: #cf9540;
  --accent: #8fb3e6;
  --accent-soft: #5f8bc5;
  --line: rgba(238, 244, 255, 0.15);
  --line-strong: rgba(238, 244, 255, 0.28);
  --ok: #52d3af;
  --ok-bg: rgba(82, 211, 175, 0.2);
  --shadow-soft: 0 14px 34px rgba(4, 8, 14, 0.35);
  --shadow-float: 0 30px 64px rgba(2, 5, 12, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(760px 460px at 100% -8%, rgba(197, 132, 47, 0.24), transparent 64%),
    radial-gradient(920px 520px at -12% 18%, rgba(18, 52, 91, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-strong));
  color: var(--text-main);
  scroll-behavior: smooth;
}

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

.container {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
}

#navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 100%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

#navbar.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 32, 54, 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(138deg, var(--brand), var(--brand-strong));
  box-shadow: 0 8px 20px rgba(159, 102, 32, 0.35);
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  transition: color 0.22s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 78px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(860px 340px at 86% 6%, rgba(197, 132, 47, 0.2), transparent 70%),
    radial-gradient(740px 300px at 16% 78%, rgba(18, 52, 91, 0.18), transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--surface-solid) 75%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 5.1vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 0;
  max-width: 590px;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.78;
  color: var(--text-sub);
}

.cta-group {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(136deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 26px rgba(159, 102, 32, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(159, 102, 32, 0.42);
}

.btn-outline {
  padding: 11px 19px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-soft);
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
}

.availability {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
}

.badge.active {
  color: var(--ok);
  border-color: transparent;
  background: var(--ok-bg);
}

.hero-mockup {
  position: relative;
}

.floating-elements {
  position: absolute;
  inset: -24px auto auto 16px;
  display: grid;
  gap: 8px;
  z-index: 5;
}

.float-badge {
  width: max-content;
  max-width: 230px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  box-shadow: var(--shadow-soft);
  transform: translateX(-8px);
  animation: floatShift 5s ease-in-out infinite;
}

.float-badge:nth-child(2) {
  animation-delay: -1.6s;
}

.float-badge:nth-child(3) {
  animation-delay: -3.1s;
}

@keyframes floatShift {
  0%,
  100% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(4px);
  }
}

.device-card {
  border-radius: var(--radius-xl);
  padding: 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background:
    linear-gradient(162deg, color-mix(in srgb, var(--surface-solid) 96%, transparent), color-mix(in srgb, var(--surface-strong) 86%, transparent));
  box-shadow: var(--shadow-float);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.device-top h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.tempo-chip {
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lane-board {
  position: relative;
  height: 238px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--surface-solid) 86%, transparent));
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  overflow: hidden;
}

.lane {
  border-right: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.lane:last-child {
  border-right: none;
}

.hit-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  box-shadow: 0 0 12px rgba(197, 132, 47, 0.65);
}

.fall-note {
  position: absolute;
  top: -10%;
  width: 12%;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(197, 132, 47, 0.95), rgba(18, 52, 91, 0.82));
  box-shadow: 0 10px 24px rgba(18, 52, 91, 0.4);
  animation: fallNote var(--duration, 2600ms) linear forwards;
}

@keyframes fallNote {
  to {
    transform: translateY(260px);
    opacity: 0.95;
  }
}

.keybed {
  margin-top: 12px;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.white-key {
  height: 56px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: linear-gradient(180deg, #ffffff, #ebeff4);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

html.dark-mode .white-key {
  background: linear-gradient(180deg, #f5f9ff, #d3dbe7);
}

.white-key.active {
  background: linear-gradient(180deg, #ffe6bc, #f3ba68);
  transform: translateY(2px);
  box-shadow: inset 0 2px 10px rgba(134, 69, 9, 0.45);
}

.mockup-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-mute);
}

.features {
  padding: 80px 0 66px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.section-header h2 {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.76rem, 3.4vw, 2.6rem);
}

.section-header p {
  margin: 12px 0 0;
  color: var(--text-sub);
  line-height: 1.72;
}

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

.feature-card {
  min-height: 188px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0;
  font-size: 18px;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--text-sub);
  line-height: 1.7;
  font-size: 14px;
}

.quote-section {
  padding: 12px 0 66px;
}

.quote-content {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 92%, transparent), color-mix(in srgb, var(--surface-strong) 86%, transparent));
  box-shadow: var(--shadow-soft);
  padding: 30px 32px;
}

.quote-content blockquote {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.14rem, 2.2vw, 1.55rem);
  line-height: 1.72;
  color: var(--text-main);
}

.how-it-works {
  padding: 0 0 74px;
}

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

.step {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 93%, transparent);
  box-shadow: var(--shadow-soft);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  margin-bottom: 12px;
}

.step h3 {
  margin: 0;
  font-size: 18px;
}

.step p {
  margin: 10px 0 0;
  color: var(--text-sub);
  line-height: 1.72;
  font-size: 14px;
}

.cta-section {
  padding: 0 0 84px;
}

.cta-box {
  border-radius: var(--radius-xl);
  padding: 34px 34px 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: linear-gradient(128deg, #17335a, #0f2541);
  color: #ecf4ff;
  box-shadow: var(--shadow-float);
  text-align: center;
}

.cta-box h2 {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.65rem, 3vw, 2.32rem);
}

.cta-box p {
  margin: 12px auto 0;
  max-width: 740px;
  line-height: 1.74;
  color: #c4d7f3;
}

.cta-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-white {
  padding: 11px 18px;
  border: 1px solid rgba(236, 244, 255, 0.36);
  background: rgba(236, 244, 255, 0.12);
  color: #f5f9ff;
}

.btn-white:hover {
  transform: translateY(-1px);
  background: rgba(236, 244, 255, 0.22);
}

.btn-white.ghost {
  background: transparent;
}

.cta-note {
  margin-top: 14px;
  font-size: 12px;
  color: #9fb9de;
}

footer {
  padding: 0 0 48px;
}

footer .container {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

footer p {
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-links {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-sub);
}

.footer-links a:hover {
  color: var(--text-main);
}

.copyright {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-mute);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.72s cubic-bezier(0.33, 1, 0.68, 1), transform 0.72s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.18s;
}

.delay-3 {
  transition-delay: 0.28s;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-mockup {
    margin-top: 20px;
  }

  .floating-elements {
    inset: -14px auto auto 10px;
  }

  .features-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #navbar {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .hero {
    padding-bottom: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .subtitle {
    font-size: 0.98rem;
  }

  .lane-board {
    height: 208px;
  }

  .fall-note {
    height: 34px;
    width: 12.8%;
  }

  @keyframes fallNote {
    to {
      transform: translateY(226px);
      opacity: 0.95;
    }
  }

  .features {
    padding-top: 62px;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .quote-content,
  .cta-box {
    padding: 24px 20px;
  }
}
