/* ==========================================================================
   STEAD — Pure Typographic UI Style (OLED Minimalist Editorial)
   Clean, Direct, Highly Interactive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Prototype Palette */
  --bg: #040405;
  --surface: transparent;
  --surface-hover: rgba(255, 255, 255, 0.035);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.24);
  --frame-border: rgba(255, 255, 255, 0.16);
  --text: #F4F4F1;
  --text-2: #8B8C93;
  --text-3: #4E5058;
  
  --accent: #4CB98A;
  --accent-soft: rgba(76, 185, 138, 0.09);
  --reward: rgba(226, 174, 102, 0.78);
  --reward-soft: rgba(226, 174, 102, 0.055);
  --warn: rgba(219, 107, 94, 0.88);

  --radius-btn: 999px;
  --radius-item: 12px;
  --container-width: 980px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
}

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

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

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

/* --------------------------------------------------------------------------
   Top Navigation with Official Logo
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 4, 5, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  text-transform: uppercase;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s ease;
}

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

.btn-solid {
  background: var(--text);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.16s var(--ease-out), opacity 0.16s ease;
}

.btn-solid:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.mobile-menu-toggle {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
  padding: 6px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 12px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 6px 0;
}

/* --------------------------------------------------------------------------
   Hero Section — Clean, Straightforward, Direct
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 56px 0 40px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 72px 0 48px;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-cta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Interactive Instrument Stage (Star of the Page)
   -------------------------------------------------------------------------- */
.explorer-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 56px;
}

.explorer-top-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .explorer-top-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sec-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.pill-bar {
  display: inline-flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 3px;
  gap: 2px;
}

.pill-opt {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.pill-opt:hover {
  color: var(--text);
}

.pill-opt.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

/* Device Preview Frame */
.device-viewport {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--frame-border);
  border-radius: 16px;
  background: var(--bg);
  padding: 28px 24px;
}

@media (min-width: 640px) {
  .device-viewport {
    padding: 36px 32px;
  }
}

.device-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.stage-content {
  min-height: 340px;
}

/* Interactive Scale Ticks */
.scale-ticks-grid {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 18px 0 20px;
}

.scale-tick-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-align: center;
}

.scale-tick-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.scale-tick-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 700;
}

.score-hero-num {
  font-family: var(--font-serif);
  font-size: 76px;
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 8px 0 4px;
  transition: color 0.2s ease;
}

.score-hero-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.score-hero-sub {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
}

/* Interactive Rhythm Items */
.rhythm-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  text-align: left;
  cursor: pointer;
}

.rhythm-item:hover {
  background: var(--surface-hover);
}

.ring-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}

.rhythm-item.done .ring-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--reward);
  background: var(--reward-soft);
  border: 1px solid rgba(226, 174, 102, 0.18);
  padding: 2px 8px;
  border-radius: var(--radius-btn);
}

/* --------------------------------------------------------------------------
   Clean Three-Column Hairline Overview
   -------------------------------------------------------------------------- */
.overview-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.hairline-3col {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hairline-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.overview-col {
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .overview-col {
    border-right: 1px solid var(--border);
  }
  .overview-col:last-child {
    border-right: none;
  }
}

.overview-col h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 10px 0 8px;
}

.overview-col p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Clean Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 48px 0 32px;
  font-size: 12.5px;
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-2);
  transition: color 0.15s ease;
}

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