/* ============================================================
   Riffday Landing — Design tokens
   ============================================================ */
:root {
  --surface: #09090b;
  --surface-2: #111113;
  --surface-3: #1a1a1e;
  --card: #18181b;
  --card-gradient-top: #141418;
  --card-gradient-bottom: #0c0c10;
  --border: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.045);
  --on: #fafafa;
  --on-2: rgba(255, 255, 255, 0.55);
  --on-3: rgba(255, 255, 255, 0.28);
  --accent: #a78bfa;
  --accent-weak: rgba(167, 139, 250, 0.16);
  --accent-softer: rgba(167, 139, 250, 0.08);
  --accent-line: rgba(167, 139, 250, 0.3);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 22px 48px -22px rgba(0, 0, 0, 0.7);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--on);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
img,
svg {
  max-width: 100%;
  display: block;
}

/* Background texture — low amplitude */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(167, 139, 250, 0.07),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 40%,
      rgba(167, 139, 250, 0.05),
      transparent 55%
    );
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0 14px 24px;
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  background: rgba(9, 9, 11, 0.66);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-accent {
  color: var(--accent);
}
.brand-muted {
  color: var(--on-2);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--on-2);
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--on);
}
.nav-cta {
  justify-self: end;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--on);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c1c20 0%, #111114 100%);
  border: 1px solid var(--border);
  color: var(--on);
  transition: transform 0.15s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.store-btn:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}
.store-btn.soon {
  position: relative;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
}
.store-btn.soon::after {
  content: "iOS 준비 중";
  position: absolute;
  top: -8px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  text-transform: uppercase;
}
.store-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--on);
  flex-shrink: 0;
}
.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store-btn small {
  font-size: 10px;
  color: var(--on-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.store-btn strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   Shared
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-2);
  margin: 0 0 16px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.section-header {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 24px;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-sub {
  color: var(--on-2);
  max-width: 520px;
  margin-top: 14px;
}

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 96px) 24px clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 {
  margin: 8px 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, #c4b1ff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lede {
  max-width: 480px;
  color: var(--on-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  margin: 0 0 32px;
}
.hero-copy .lede strong {
  color: var(--on);
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-2);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--on-3);
}
.dot-accent {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ============================================================
   Phone mock (hero + feature)
   ============================================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1600px;
}
.phone {
  position: relative;
  width: 320px;
  transform: rotate(-3deg) rotateY(-8deg);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-sm {
  width: 280px;
  transform: rotate(0deg);
}
.phone:hover {
  transform: rotate(-2deg) rotateY(-4deg) translateY(-4px);
}
.phone-sm:hover {
  transform: translateY(-2px);
}
.phone-frame {
  position: relative;
  padding: 14px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1e1e22 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #050506;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.phone-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(
    closest-side,
    rgba(167, 139, 250, 0.35),
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
}

/* Screens (shared) */
.screen {
  position: absolute;
  inset: 0;
  padding: 52px 16px 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mock-gnb {
  padding: 2px 4px 18px;
}
.mock-brand {
  font-family: var(--font-mono);
  font-size: 15px;
}
.mock-brand em {
  font-style: normal;
  color: var(--accent);
}
.mock-greeting {
  padding: 0 4px 20px;
}
.mock-greeting-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.mock-greeting-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--on-3);
}

/* Ambient Card visual (matches RN AmbientCard) */
.ambient-card {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--card-gradient-top) 0%,
    var(--card-gradient-bottom) 100%
  );
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ambient-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 160%;
  height: 80%;
  background: radial-gradient(
    closest-side,
    rgba(167, 139, 250, 0.22),
    transparent 70%
  );
  transform: translateX(-50%);
  pointer-events: none;
}
.ambient-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  pointer-events: none;
}

/* Hero home mock */
.play-card {
  position: relative;
  padding: 22px 16px;
  margin: 0 4px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 18px;
}
.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent-softer);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
  position: relative;
}
.play-btn:hover {
  background: var(--accent-weak);
  transform: scale(1.04);
}
.play-btn:active {
  transform: scale(0.95);
}
.play-btn.active {
  background: var(--accent-weak);
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.35);
}
.play-btn .icon-play {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.play-timer {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  display: none;
}
.play-btn.active .icon-play {
  display: none;
}
.play-btn.active .play-timer {
  display: block;
}
.play-label {
  margin: 18px 0 4px;
  font-size: 13px;
  font-weight: 600;
}
.play-sub {
  margin: 0;
  font-size: 10px;
  color: var(--on-3);
}

/* stats */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 18px;
}
.stat {
  padding: 12px 8px;
  text-align: center;
  border-radius: 12px;
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  font-size: 10px;
  color: var(--on-2);
  margin-top: 2px;
}

/* chart mock */
.chart-card {
  margin: 0 4px;
  padding: 14px 14px 12px;
  border-radius: 14px;
}
.chart-title {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--on-2);
  font-weight: 600;
}
.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 72px;
  margin-bottom: 10px;
}
.chart-bars span {
  display: block;
  height: var(--h);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.18),
    rgba(167, 139, 250, 0.06)
  );
  border-radius: 4px;
  border-top: 1px solid rgba(167, 139, 250, 0.28);
  transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chart-bars span.today {
  background: linear-gradient(180deg, var(--accent), rgba(167, 139, 250, 0.3));
  border-top-color: var(--accent);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.55);
}
.chart-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-3);
}
.chart-meta em {
  font-style: normal;
  color: var(--accent);
}

/* ============================================================
   Principles
   ============================================================ */
.principles {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.principle-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.principle {
  position: relative;
  padding: 28px 24px 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.principle:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.principle .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-3);
  letter-spacing: 0.08em;
}
.principle h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  color: var(--on-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.feature-tabs {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.feature-tabs::-webkit-scrollbar {
  display: none;
}
.feature-tabs button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--on-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.feature-tabs button:hover {
  color: var(--on);
  border-color: var(--accent-line);
}
.feature-tabs button.active {
  background: var(--accent-weak);
  color: var(--on);
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.08);
}

.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-panels {
  position: relative;
  min-height: 400px;
}
.feature-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.feature-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.feature-panel h3 {
  margin: 10px 0 16px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.feature-panel > p {
  margin: 0 0 20px;
  color: var(--on-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
}
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--on-2);
  font-size: 14px;
  line-height: 1.6;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Metronome demo (inside feature copy) */
.metro-demo {
  margin-top: 8px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  border-radius: 16px;
}
.metro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.metro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-softer);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.metro-toggle:hover {
  background: var(--accent-weak);
}
.metro-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: var(--surface);
}
.metro-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.metro-toggle .icon-pause {
  display: none;
}
.metro-toggle[aria-pressed="true"] .icon-play {
  display: none;
}
.metro-toggle[aria-pressed="true"] .icon-pause {
  display: block;
}
.bpm {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
}
.bpm output {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on);
}
.tempo-label {
  font-size: 11px;
  color: var(--on-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bpm-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--pct, 40%),
    rgba(255, 255, 255, 0.1) var(--pct, 40%),
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 999px;
  margin: 0 0 18px;
}
.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--on);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
  cursor: grab;
}
.bpm-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--on);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
  cursor: grab;
}
.beats {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.beat {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.beat.on {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.beat.accent-beat.on {
  background: #d7c7ff;
  box-shadow: 0 0 18px var(--accent);
  transform: scaleY(1.3);
}
.metro-hint {
  margin: 0;
  font-size: 11px;
  color: var(--on-3);
  text-align: center;
}

/* Journal demo */
.journal-demo {
  margin-top: 8px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  border-radius: 16px;
}
.journal-q {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--on-2);
}
.mood-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.mood {
  flex: 1;
  aspect-ratio: 1/1;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.15s ease;
  filter: grayscale(0.6);
  opacity: 0.6;
}
.mood:hover {
  transform: translateY(-1px);
  filter: none;
  opacity: 0.9;
}
.mood.selected {
  background: var(--accent-weak);
  border-color: var(--accent-line);
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.08);
  transform: scale(1.05);
}
.journal-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.jf {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  gap: 12px;
}
.jf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jf-body {
  font-size: 13px;
  color: var(--on);
}

/* ============================================================
   Feature visuals (phone-sm content)
   ============================================================ */
.feature-visual {
  display: flex;
  justify-content: center;
}

/* session screen */
.session-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 60px);
  gap: 28px;
}
.session-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.session-timer {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--on);
}
.session-play {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent-weak);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.4);
}
.session-play span {
  width: 0;
  height: 0;
  border-left: 18px solid var(--accent);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* metronome screen */
.metro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
}
.metro-tempo-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.metro-bpm {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
}
.metro-bpm b {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--on);
  line-height: 1;
}
.metro-bpm span {
  font-size: 13px;
  color: var(--on-2);
}
.metro-leds {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.metro-leds .led {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.1s ease;
}
.metro-leds .led.on {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  border-color: var(--accent);
}
.metro-leds .led.accent.on {
  background: #d7c7ff;
  box-shadow: 0 0 22px #d7c7ff;
  transform: scale(1.15);
}
.metro-signature {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--on-2);
  margin-top: 20px;
}

/* tuner screen */
.tuner-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
}
.tuner-strobo {
  width: 100%;
  max-width: 220px;
}
.tuner-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--on);
  letter-spacing: -0.04em;
  line-height: 1;
}
.tuner-note small {
  font-size: 20px;
  color: var(--on-2);
  margin-left: 2px;
}
.tuner-cents {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}
.tuner-freq {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-2);
}

/* journal screen */
.journal-screen {
  padding-top: 12px;
}
.journal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-3);
  margin: 0 4px 10px;
}
.journal-mood {
  font-size: 44px;
  text-align: center;
  padding: 16px 0 10px;
}
.journal-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
}
.journal-bars span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.journal-bars span.on {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.journal-entries {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.journal-entries p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.journal-entries em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.journal-entries span {
  color: var(--on);
}

/* records screen */
/* Recording screen mock */
.recording-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 12px;
}
.rec-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}
.rec-waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.rec-waveform span:nth-child(1) { height: 12px; animation-delay: 0s; }
.rec-waveform span:nth-child(2) { height: 28px; animation-delay: 0.1s; }
.rec-waveform span:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.rec-waveform span:nth-child(4) { height: 36px; animation-delay: 0.15s; }
.rec-waveform span:nth-child(5) { height: 22px; animation-delay: 0.25s; }
.rec-waveform span:nth-child(6) { height: 40px; animation-delay: 0.05s; }
.rec-waveform span:nth-child(7) { height: 30px; animation-delay: 0.2s; }
.rec-waveform span:nth-child(8) { height: 38px; animation-delay: 0.1s; }
.rec-waveform span:nth-child(9) { height: 20px; animation-delay: 0.3s; }
.rec-waveform span:nth-child(10) { height: 14px; animation-delay: 0.15s; }
@keyframes waveBar {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}
.rec-timer {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--on-1);
  letter-spacing: 2px;
}
.rec-status {
  font-size: 10px;
  color: #f87171;
  font-weight: 600;
}
.rec-btn-mock {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.rec-btn-mock span {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #f87171;
}

.records-screen {
  padding-top: 4px;
}
.records-title {
  margin: 0 4px 14px;
  font-size: 12px;
  color: var(--on-2);
  font-weight: 600;
}
.records-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 110px;
  padding: 0 4px;
  margin-bottom: 8px;
}
.records-bars span {
  position: relative;
  display: block;
  height: var(--h);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.2),
    rgba(167, 139, 250, 0.05)
  );
  border-radius: 4px;
  border-top: 1px solid rgba(167, 139, 250, 0.3);
  transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.records-bars span.today {
  background: linear-gradient(180deg, var(--accent), rgba(167, 139, 250, 0.35));
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.5);
}
.records-bars span em {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--on-3);
}
.records-sub {
  margin: 28px 4px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-3);
}
.records-sub b {
  color: var(--accent);
  font-weight: 500;
}
.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  padding: 0 4px;
}
.heatmap span {
  aspect-ratio: 1/1;
  border-radius: 3px;
  background: var(--surface-3);
}

/* ============================================================
   Theme / Color picker
   ============================================================ */
.theme-section {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.theme-showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.theme-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.theme-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.theme-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-3);
  margin-bottom: 10px;
}
.theme-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sw);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px var(--sw);
}
.swatch.selected {
  border-color: var(--on);
  box-shadow: 0 0 24px var(--sw);
  transform: scale(1.1);
}
.swatch.selected::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--on);
  z-index: 1;
}

/* Theme preview phone */
.theme-preview {
  display: flex;
  justify-content: center;
}
.theme-phone {
  width: 280px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7));
}
.theme-mock-screen {
  padding: 52px 16px 20px;
}
.theme-mock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  margin: 8px 4px 16px;
  background: linear-gradient(180deg, var(--card-gradient-top) 0%, var(--card-gradient-bottom) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.theme-mock-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 160%;
  height: 80%;
  background: radial-gradient(closest-side, var(--theme-glow, rgba(167,139,250,0.22)), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  transition: background 0.4s ease;
}
.theme-mock-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--theme-accent, var(--accent));
  background: var(--theme-accent-softer, var(--accent-softer));
  display: grid;
  place-items: center;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 28px var(--theme-accent-glow, rgba(167,139,250,0.3));
}
.theme-mock-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--theme-accent, var(--accent));
  transition: fill 0.4s ease;
}
.theme-mock-label {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--on);
}
.theme-mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 16px;
}
.theme-mock-stat {
  padding: 10px 6px;
  text-align: center;
  background: linear-gradient(180deg, var(--card-gradient-top) 0%, var(--card-gradient-bottom) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}
.theme-mock-stat b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--on);
}
.theme-mock-stat span {
  display: block;
  font-size: 9px;
  color: var(--on-2);
  margin-top: 2px;
}
.theme-mock-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  align-items: end;
  height: 60px;
  padding: 0 4px;
}
.theme-mock-bars span {
  display: block;
  height: var(--h);
  background: linear-gradient(180deg, var(--theme-bar-top, rgba(167,139,250,0.18)), var(--theme-bar-bottom, rgba(167,139,250,0.06)));
  border-radius: 3px;
  border-top: 1px solid var(--theme-bar-border, rgba(167,139,250,0.28));
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.theme-mock-bars span.today {
  background: linear-gradient(180deg, var(--theme-accent, var(--accent)), var(--theme-bar-today-bottom, rgba(167,139,250,0.3)));
  border-top-color: var(--theme-accent, var(--accent));
  box-shadow: 0 0 12px var(--theme-accent-glow, rgba(167,139,250,0.55));
}

@media (max-width: 960px) {
  .theme-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .theme-preview {
    order: -1;
  }
  .theme-phone {
    width: 240px;
  }
  .swatch {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   Philosophy
   ============================================================ */
.philosophy {
  padding: clamp(60px, 10vw, 120px) 24px;
  border-top: 1px solid var(--border);
}
.philosophy-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(
    180deg,
    rgba(167, 139, 250, 0.05),
    rgba(167, 139, 250, 0.01)
  );
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.philosophy-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 140%;
  height: 80%;
  background: radial-gradient(
    closest-side,
    rgba(167, 139, 250, 0.18),
    transparent 70%
  );
  transform: translateX(-50%);
  pointer-events: none;
}
.philosophy-card h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.phil-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin-inline: auto;
  text-align: left;
}
.phil-list li {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--on-2);
  font-size: 14px;
}
.phil-list li strong {
  color: var(--on);
  font-weight: 600;
}

/* ============================================================
   Download CTA
   ============================================================ */
.download {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 24px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(167, 139, 250, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 58, 237, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.download-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.7), rgba(9, 9, 11, 0.5));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.download-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.4), rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.download-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.download-inner .lede {
  margin: 0 auto 36px;
  color: var(--on-2);
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
}
.download-inner .cta-row {
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.download-inner .store-btn {
  min-width: 200px;
  padding: 14px 22px;
  border-radius: 16px;
}
.download-inner .store-btn svg {
  width: 28px;
  height: 28px;
}
.download-inner .store-btn strong {
  font-size: 16px;
}
.download-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.download-meta li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.download-fine {
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-3);
}
@media (max-width: 640px) {
  .download {
    padding: 64px 16px 80px;
  }
  .download-inner {
    padding: 36px 20px;
    border-radius: 20px;
  }
  .download-inner::before {
    border-radius: 20px;
  }
  .download-inner .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .download-inner .store-btn {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.foot-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}
.foot p {
  margin: 0;
  font-size: 12px;
  color: var(--on-3);
  max-width: 520px;
}
.foot a img {
  display: block;
  max-width: 100%;
  height: auto;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  font-size: 12px;
}
.foot-links span {
  color: var(--on-3);
  opacity: 0.5;
}
.foot-sub {
  color: var(--on-3);
}

@media (max-width: 640px) {
  .foot {
    padding: 32px 20px 40px;
    gap: 12px;
  }
  .foot p {
    font-size: 11px;
    line-height: 1.6;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .phone {
    width: 260px;
    transform: rotate(0);
  }
  .principle-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-panels {
    min-height: auto;
  }
  .feature-panel {
    position: relative;
    inset: auto;
  }
  .feature-panel:not(.active) {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .phone,
  .phone:hover,
  .phone-sm,
  .phone-sm:hover,
  .play-btn,
  .play-btn:hover,
  .chart-bars span,
  .records-bars span,
  .bpm-slider::-webkit-slider-thumb {
    transition: none;
  }
}

/* ============================================================
 * PROMO REEL — scroll-triggered zoom + cycling phone mockup
 * ============================================================ */
.promo-reel {
  position: relative;
  background: var(--bg, #09090b);
  /* Allow page scrolling around */
}
.promo-spacer {
  height: 280vh; /* Total scroll length controlling the zoom progression */
  position: relative;
}
.promo-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.promo-glow {
  position: absolute;
  inset: -200px;
  pointer-events: none;
  z-index: 0;
}
.promo-glow::before,
.promo-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
}
.promo-glow::before {
  width: 700px;
  height: 700px;
  background: #a78bfa;
  top: -100px;
  left: 8%;
  animation: promoGlowA 18s linear infinite;
}
.promo-glow::after {
  width: 600px;
  height: 600px;
  background: #7c3aed;
  bottom: -100px;
  right: 8%;
  animation: promoGlowB 18s linear infinite;
}
@keyframes promoGlowA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(180px, 80px) scale(1.15); opacity: 0.65; }
}
@keyframes promoGlowB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-160px, -80px) scale(1.18); opacity: 0.55; }
}

.promo-stage {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1280px;
  padding: 0 64px;
  width: 100%;
  /* Initial state — JS overrides */
  transform: scale(0.45);
  transform-origin: center center;
  opacity: 0;
  will-change: transform, opacity;
}

.promo-side {
  flex-shrink: 0;
}
.promo-cap-side {
  flex: 1;
  max-width: 540px;
  position: relative;
  min-height: 360px;
}
.promo-eye {
  position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--accent, #a78bfa);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
  min-height: 22px;
}
.promo-ttl {
  position: relative;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg, #fafafa);
  margin-bottom: 22px;
  min-height: 138px;
}
.promo-ttl em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--accent-light, #c4b5fd);
  font-weight: 500;
}
.promo-sub {
  position: relative;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted, rgba(255,255,255,0.55));
  letter-spacing: -0.005em;
  min-height: 58px;
}
.cap-text {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cap-text.cap-1 { animation: capCycle 16s ease-in-out infinite; animation-delay: 0s; }
.cap-text.cap-2 { animation: capCycle 16s ease-in-out infinite; animation-delay: -12.8s; } /* 16 * (1 - 0.2) */
.cap-text.cap-3 { animation: capCycle 16s ease-in-out infinite; animation-delay: -9.6s; }  /* 16 * (1 - 0.4) */
.cap-text.cap-4 { animation: capCycle 16s ease-in-out infinite; animation-delay: -6.4s; }  /* 16 * (1 - 0.6) */
.cap-text.cap-5 { animation: capCycle 16s ease-in-out infinite; animation-delay: -3.2s; }  /* 16 * (1 - 0.8) */
@keyframes capCycle {
  0%, 16%, 100% { opacity: 1; transform: translateY(0); }
  19%, 96% { opacity: 0; transform: translateY(-8px); }
}

/* Phone mockup */
.promo-phone-side { flex: 0 0 auto; }
.promo-phone {
  width: 380px;
  height: 824px;
  position: relative;
}
.promo-phone-bezel {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #2c2c33 0%, #1a1a1f 45%, #0a0a0e 100%);
  border-radius: 50px;
  padding: 9px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 1.5px rgba(255,255,255,0.10),
    0 60px 100px -25px rgba(0,0,0,0.85),
    0 0 80px rgba(167,139,250,0.4);
}
.promo-phone-screen {
  position: absolute;
  inset: 9px;
  background: var(--bg, #09090b);
  border-radius: 42px;
  overflow: hidden;
}
.promo-di {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 50;
}
.ps-status {
  position: absolute;
  top: 12px;
  left: 0; right: 0;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  height: 24px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--fg, #fafafa);
}

.promo-scene {
  position: absolute;
  inset: 0;
  padding: 56px 16px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
}
/* 16s loop, each scene gets ~3.2s with overlap */
.promo-scene.s1 { animation: psn1 16s linear infinite; }
.promo-scene.s2 { animation: psn2 16s linear infinite; }
.promo-scene.s3 { animation: psn3 16s linear infinite; }
.promo-scene.s4 { animation: psn4 16s linear infinite; }
.promo-scene.s5 { animation: psn5 16s linear infinite; }
@keyframes psn1 { 0%, 14%, 22%, 100% { opacity: 0; } 2%, 18% { opacity: 1; } }
@keyframes psn2 { 0%, 22%, 100% { opacity: 0; } 22.01%, 38% { opacity: 1; } 42% { opacity: 0; } }
@keyframes psn3 { 0%, 42%, 100% { opacity: 0; } 42.01%, 58% { opacity: 1; } 62% { opacity: 0; } }
@keyframes psn4 { 0%, 62%, 100% { opacity: 0; } 62.01%, 78% { opacity: 1; } 82% { opacity: 0; } }
@keyframes psn5 { 0%, 82%, 100% { opacity: 0; } 82.01%, 98% { opacity: 1; } }

/* ===== Tuner scene styles ===== */
.pt-note {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 800;
  font-size: 156px;
  text-align: center;
  line-height: 0.95;
  margin-top: 44px;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(167,139,250,0.45));
}
.pt-note sup { font-size: 0.4em; color: rgba(255,255,255,0.55); -webkit-text-fill-color: rgba(255,255,255,0.55); margin-left: 4px; }
.pt-meta {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.pt-cents {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  color: #5ec4b6;
  text-shadow: 0 0 16px rgba(94,196,182,0.4);
  margin-bottom: 16px;
}
.pt-arc-wrap { display: flex; justify-content: center; margin: 8px 0 16px; }
.pt-arc { width: 100%; max-width: 320px; height: 120px; }
.pt-strip {
  display: flex;
  justify-content: space-between;
  margin: 6px 4px 8px;
}
.pt-nt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
}
.pt-nt.on {
  color: #a78bfa;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(167,139,250,0.5);
}
.pt-presets {
  display: flex; justify-content: center; gap: 5px; flex-wrap: wrap;
}
.pt-pill {
  padding: 6px 10px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}
.pt-pill.on {
  background: rgba(167,139,250,0.16);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
  font-weight: 700;
}

/* ===== Metronome scene styles ===== */
.pm-bpm {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 180px;
  text-align: center;
  line-height: 0.95;
  margin-top: 38px;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(167,139,250,0.45));
}
.pm-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 6px;
}
.pm-ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.pm-beats {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 18px;
}
.pm-beat {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #1f1f23;
  border: 1.5px solid rgba(255,255,255,0.12);
}
.pm-beat.strong {
  background: #a78bfa;
  box-shadow: 0 0 20px #a78bfa, 0 0 50px rgba(167,139,250,0.4);
  animation: pmPulse 0.5s ease-in-out infinite;
}
.pm-beat.med { background: rgba(167,139,250,0.4); }
@keyframes pmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.pm-controls {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
}
.pm-c {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  border-radius: 8px;
}
.pm-play {
  width: 76px; height: 76px;
  background: #a78bfa;
  border-radius: 50%;
  margin: 6px auto 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(167,139,250,0.4);
}
.pm-play::after {
  content: ''; width: 0; height: 0;
  border-left: 22px solid #0a0a0c;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}
.pm-sub {
  display: flex; justify-content: center; gap: 5px;
}
.pm-pill {
  padding: 6px 10px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  font-family: 'JetBrains Mono', monospace;
}
.pm-pill.on {
  background: rgba(167,139,250,0.14);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
  font-weight: 700;
}

/* ===== Session scene styles ===== */
.pse-tag {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 50px;
  margin-bottom: 4px;
}
.pse-instr {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 60px;
}
.pse-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 100px;
  text-align: center;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(167,139,250,0.45));
}
.pse-active {
  text-align: center;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.14em;
  margin-bottom: 50px;
}
.pse-stop {
  width: 86px; height: 86px;
  background: #d44545;
  border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(212,69,69,0.5);
}
.pse-stop::after { content: ''; width: 30px; height: 30px; background: #fff; border-radius: 5px; }

/* ===== Journal scene styles ===== */
.pj-h {
  display: flex; align-items: center; gap: 10px;
  margin-top: 44px; margin-bottom: 14px;
}
.pj-icon {
  width: 32px; height: 32px;
  background: rgba(167,139,250,0.14);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.pj-icon svg { width: 14px; height: 14px; stroke: #a78bfa; fill: none; stroke-width: 1.6; }
.pj-h h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1px; color: var(--fg, #fafafa); }
.pj-h p { font-size: 9px; color: rgba(255,255,255,0.32); }
.pj-cond { display: flex; gap: 7px; margin-bottom: 12px; }
.pj-led {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,0.08);
}
.pj-led.on { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; border-color: #a78bfa; }
.pj-lab {
  font-size: 9px;
  color: rgba(255,255,255,0.32);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 12px 0 4px;
  text-transform: uppercase;
}
.pj-lab.acc { color: #c4b5fd; }
.pj-area {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 10px;
  color: var(--fg, #fafafa);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ===== Stats scene styles ===== */
.pr-summary {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 36px;
}
.pr-lab {
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pr-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #5ec4b6;
}
.pr-big {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
  color: var(--fg, #fafafa);
}
.pr-big .u { font-size: 16px; color: rgba(255,255,255,0.55); margin-left: 4px; font-weight: 400; }
.pr-chart {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 11px;
  padding: 10px;
  margin-bottom: 10px;
  height: 130px;
}
.pr-chart svg { width: 100%; height: 100%; }
.pr-heatmap {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 11px;
  padding: 10px;
}
.pr-hh {
  font-size: 9px;
  color: rgba(255,255,255,0.32);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
}
.pr-h {
  aspect-ratio: 1;
  background: #1f1f23;
  border-radius: 2px;
}
.pr-h.l1 { background: rgba(167,139,250,0.25); }
.pr-h.l2 { background: rgba(167,139,250,0.5); }
.pr-h.l3 { background: rgba(167,139,250,0.75); }
.pr-h.l4 { background: #a78bfa; box-shadow: 0 0 4px rgba(167,139,250,0.45); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .promo-stage {
    flex-direction: column;
    gap: 40px;
    padding: 0 32px;
  }
  .promo-cap-side {
    text-align: center;
    min-height: auto;
    max-width: 100%;
  }
  .promo-ttl { font-size: 44px; min-height: 96px; }
  .promo-sub { font-size: 14px; }
  .promo-spacer { height: 200vh; }
  .promo-phone { width: 280px; height: 607px; }
  .promo-phone-bezel { border-radius: 38px; padding: 7px; }
  .promo-phone-screen { border-radius: 32px; inset: 7px; }
  .promo-di { width: 100px; height: 18px; top: 12px; }
  .promo-scene { padding: 44px 12px 12px; }
  .pt-note, .pm-bpm { font-size: 110px; margin-top: 30px; }
  .pse-time { font-size: 72px; }
}

@media (max-width: 640px) {
  .promo-stage { padding: 0 20px; gap: 28px; }
  .promo-ttl { font-size: 34px; min-height: 76px; }
  .promo-eye { font-size: 11px; margin-bottom: 12px; }
  .promo-sub { font-size: 13px; min-height: 80px; }
  .promo-phone { width: 240px; height: 520px; }
}

/* Mobile: disable scroll-driven zoom — sticky + 100vh + URL-bar dynamics
   make the math unstable and clip the phone. Show static stacked layout. */
@media (max-width: 768px) {
  .promo-spacer { height: auto; }
  .promo-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 80px 0;
  }
  .promo-stage {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
  .promo-glow::before,
  .promo-glow::after { filter: blur(80px); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-stage { transform: none !important; opacity: 1 !important; }
  .promo-scene, .cap-text, .pm-beat.strong { animation: none; }
  .promo-scene.s1, .cap-text.cap-1 { opacity: 1; }
}
