/* ═══════════════════════════════════════════════════════════════════
   TETRATONICS — PROMOTIONAL WEBSITE
   Design tokens taken directly from AnalyticalIdentity.swift
   
   Color system:
     colorBasic    → HSL(209°, 70%, 75%)  — Sapphire Blue
     colorGuide    → HSL(151°, 60%, 65%)  — Emerald Green
     colorNatural  → HSL(36°,  75%, 85%)  — Warm Amber
     colorAltered  → HSL(353°, 70%, 80%)  — Refined Crimson
   
   Background: mesh-gradient with blurred circles
   Glass: ultraThinMaterial aesthetic → backdrop-filter blur
   Corner radii: 24px large, 16px medium, 8px small
   Animations: liquidSpring → cubic-bezier(0.34, 1.56, 0.64, 1)
═══════════════════════════════════════════════════════════════════ */

/* ── RESETS & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Direct translations of AnalyticalIdentity.swift color constants */
  --color-basic: hsl(209, 70%, 75%);
  /* Sapphire Blue – core tones */
  --color-guide: hsl(151, 60%, 65%);
  /* Emerald Green – guide tones */
  --color-natural: hsl(36, 75%, 85%);
  /* Warm Amber – natural ext */
  --color-altered: hsl(353, 70%, 80%);
  /* Refined Crimson – altered */

  --color-basic-raw: 209, 70%, 75%;
  --color-guide-raw: 151, 60%, 65%;
  --color-natural-raw: 36, 75%, 85%;
  --color-altered-raw: 353, 70%, 80%;

  /* Dark-mode background palette */
  --bg-primary: #0a0a0b;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-mid: rgba(255, 255, 255, 0.07);
  --bg-surface-hi: rgba(255, 255, 255, 0.11);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.30);

  /* Border */
  --border-glass: rgba(255, 255, 255, 0.10);
  --border-thin: rgba(255, 255, 255, 0.06);

  /* Corner radii from AnalyticalIdentity */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Layout */
  --padding-site: 48px;
  --max-width: 1160px;

  /* Glass effect */
  --glass-bg: rgba(10, 10, 11, 0.55);
  --glass-blur: blur(40px) saturate(1.8);

  /* Animation - translating liquidSpring (response:0.42, damping:0.85) */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 220ms;
  --duration-mid: 380ms;
  --duration-slow: 600ms;

  /* Nav height */
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-primary);
}

/* Typography utilities */
.mono {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

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

/* Harmonic color classes — from AnalyticalIdentity.swift */
.c-basic {
  color: var(--color-basic);
}

.c-guide {
  color: var(--color-guide);
}

.c-natural {
  color: var(--color-natural);
}

.c-altered {
  color: var(--color-altered);
}

.c-dim {
  color: var(--text-dim);
}


/* ── NOISE TEXTURE OVERLAY ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}


/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border-thin);
  transition: background var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

#site-header.scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-color: var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-site);
}

/* Nav brand row — includes app icon + wordmark */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wordmark — from app's appTitle: "TETRATONICS", monospaced, kerning */
.nav-wordmark {
  display: flex;
  align-items: center;
}

.wordmark-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 8px 18px;
  border-radius: 100px;
  transition: opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--spring);
}

.nav-cta:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 101;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: background var(--duration-fast) var(--ease-out);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  left: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.menu-open .hamburger {
  background: transparent;
}

.menu-open .hamburger::before {
  transform: rotate(45deg);
}

.menu-open .hamburger::after {
  transform: rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 80px) var(--padding-site) 80px;
  overflow: hidden;
}

/* Background blobs — from AnalyticalIdentity.backgroundView */
.hero-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.hero-blob--blue {
  width: 65vw;
  height: 65vw;
  background: hsl(209, 70%, 55%);
  opacity: 0.11;
  top: -15%;
  left: -20%;
  animation: blob-drift-1 22s ease-in-out infinite alternate;
}

.hero-blob--green {
  width: 80vw;
  height: 80vw;
  background: hsl(151, 60%, 50%);
  opacity: 0.08;
  top: 25%;
  right: -30%;
  animation: blob-drift-2 28s ease-in-out infinite alternate;
}

.hero-blob--amber {
  width: 50vw;
  height: 50vw;
  background: hsl(36, 75%, 70%);
  opacity: 0.06;
  bottom: 0%;
  left: 5%;
  animation: blob-drift-3 18s ease-in-out infinite alternate;
}

.hero-blob--crimson {
  width: 30vw;
  height: 30vw;
  background: hsl(353, 70%, 65%);
  opacity: 0.07;
  top: 50%;
  left: 40%;
  animation: blob-drift-4 24s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(5vw, 8vh) scale(1.1);
  }
}

@keyframes blob-drift-2 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-4vw, -6vh) scale(1.08);
  }
}

@keyframes blob-drift-3 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(3vw, -10vh) scale(1.12);
  }
}

@keyframes blob-drift-4 {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-6vw, 5vh) scale(0.92);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.eyebrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title--gradient {
  background: linear-gradient(135deg,
      var(--color-basic) 0%,
      var(--color-guide) 40%,
      var(--color-natural) 70%,
      var(--color-altered) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Chord symbol pill — translated from AnalyticalChordSymbolView */
.chord-symbol-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: var(--radius-lg);
  border: 0.5px solid linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}

.chord-symbol-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0.5px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.chord-root {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.chord-root-acc {
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  vertical-align: super;
  font-size: 28px;
  margin: 0 4px 0 -2px;
}

.chord-quality {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.chord-paren {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 400;
}

.chord-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
}

.chord-slash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 400;
}

.hero-chord-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.hero-chord-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform var(--duration-fast) var(--spring),
    opacity var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 14px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  transition: color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--spring);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-glass);
  transform: translateY(-1px);
}

/* Spec pills — like app status chips */
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-thin);
  background: var(--bg-surface);
  text-transform: uppercase;
}

/* Hero device */
.hero-device-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device-scene {
  position: relative;
  display: inline-block;
}

.hero-device-bezel {
  position: relative;
  width: 320px;
  aspect-ratio: 4.14 / 8.35;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  border-radius: 52px;
}

.hero-device-bezel::after {
  content: '';
  position: absolute;
  inset: -2px;
  /* Slight bleed */
  background: url('assets/iPhone 17 Pro Max - Deep Blue - Portrait.png') center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

.hero-device-screen {
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: 4.5%;
  right: 4.5%;
  border-radius: 12% / 6%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.hero-device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-device-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-device-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: var(--color-basic);
  opacity: 0.15;
  filter: blur(40px);
  border-radius: 50%;
}


/* ═══════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 120px 0;
}

.section--dark {
  background: var(--bg-primary);
}

.section--light {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-thin);
  border-bottom: 1px solid var(--border-thin);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-site);
}

.section-inner--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-inner--reverse {
  direction: rtl;
}

.section-inner--reverse>* {
  direction: ltr;
}

/* Section label — from AnalyticalIdentity uppercased mono labels */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════════
   TETRATONIC CHIP SYSTEM — from TetratonicMasterControl.swift
═══════════════════════════════════════════════════════════════ */
.tetratonic-grid-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 0;
}

.tetratonic-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tetratonic-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tetratonic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* The chip itself — translating tetratonicChip from TetratonicMasterControl */
.t-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-thin);
  cursor: default;
  transition: background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--spring);
}

.t-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass);
  transform: translateY(-1px);
}

.t-chip--active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.t-chip--active:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* Smaller chips for island demo */
.t-chip--sm {
  font-size: 10px;
  padding: 0 10px;
  height: 30px;
  border-radius: 6px;
}


/* Active chip in island selector */
.t-chip--island-active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 900;
}

.system-caption {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

/* ── Pitch Array Display ──── from Control Island / bottom sheet ── */
.pitch-array-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 0 32px;
  transition: background var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out);
}

.pitch-array-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transform: translateZ(0);
  will-change: opacity;
}

.pitch-array-notes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  transform: translateZ(0);
  will-change: opacity;
}

.pitch-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  transform: translateZ(0);
}

.pitch-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}

.pitch-array-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   HARMONIC RING CANVAS
═══════════════════════════════════════════════════════════════ */
.col-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ring-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 460px;
}

#harmonic-ring {
  width: 100% !important;
  max-width: 460px;
  height: auto !important;
  aspect-ratio: 1;
  display: block;
  filter: drop-shadow(0 0 40px rgba(100, 162, 204, 0.15));
}

/* Center overlay — chord symbol + tetratonic type label */
.ring-center-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  /* Centered within the canvas — the ring occupies ~60% of canvas diameter */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-chord-symbol {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 8px 16px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ring-chord-symbol .chord-root {
  font-size: 22px;
}

.ring-chord-symbol .chord-quality {
  font-size: 18px;
}

.ring-chord-symbol .chord-paren {
  font-size: 13px;
}

.ring-chord-symbol .chord-ext {
  font-size: 13px;
}

.ring-chord-symbol .chord-slash {
  font-size: 10px;
}

/* Tetratonic type below the chord symbol */
.ring-tetratonic-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  margin-top: 24px;
}

/* Color legend */
.color-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 24px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--blue {
  background: var(--color-basic);
  box-shadow: 0 0 8px var(--color-basic);
}

.legend-dot--green {
  background: var(--color-guide);
  box-shadow: 0 0 8px var(--color-guide);
}

.legend-dot--amber {
  background: var(--color-natural);
  box-shadow: 0 0 8px var(--color-natural);
}

.legend-dot--crimson {
  background: var(--color-altered);
  box-shadow: 0 0 8px var(--color-altered);
}

.legend-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legend-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.legend-caption {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   CHORD EXAMPLES GRID
═══════════════════════════════════════════════════════════════ */
.chord-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.chord-example-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-thin);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--spring),
    box-shadow var(--duration-mid) var(--ease-out);
}

.chord-example-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.chord-example-formula {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.formula-chord {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.formula-tetratonic {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.formula-type {
  color: var(--color-basic);
}

.formula-plus,
.formula-equals {
  color: var(--text-dim);
  font-weight: 400;
}

.chord-card-context {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
  font-style: italic;
  margin-top: 4px;
}

/* Smaller chord symbol pills */
.chord-symbol-pill--sm {
  padding: 8px 16px;
}

.chord-symbol-pill--sm .chord-root {
  font-size: 30px;
}

.chord-symbol-pill--sm .chord-root-acc {
  font-size: 20px;
  margin: 0 2px 0 -1px;
}

.chord-symbol-pill--sm .chord-quality {
  font-size: 24px;
}

.chord-symbol-pill--sm .chord-paren {
  font-size: 16px;
}

.chord-symbol-pill--sm .chord-ext {
  font-size: 16px;
}

.chord-symbol-pill--sm .chord-slash {
  font-size: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--duration-mid) var(--ease-out),
    border-color var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--spring);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon--blue {
  background: hsla(209, 70%, 75%, 0.12);
  color: var(--color-basic);
}

.feature-icon--green {
  background: hsla(151, 60%, 65%, 0.12);
  color: var(--color-guide);
}

.feature-icon--amber {
  background: hsla(36, 75%, 85%, 0.10);
  color: var(--color-natural);
}

.feature-icon--crimson {
  background: hsla(353, 70%, 80%, 0.10);
  color: var(--color-altered);
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   CONTROL ISLAND DEMO — from DashboardPage.controlIsland
═══════════════════════════════════════════════════════════════ */
.control-island-demo {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-radius: var(--radius-lg);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Subtle colored glow inside the island */
.control-island-demo::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-basic);
  opacity: 0.06;
  filter: blur(40px);
  pointer-events: none;
}

.island-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.island-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.island-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

/* Separator dot between notes in the island */
.island-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  align-self: center;
}

.island-notes {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.island-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  min-width: 44px;
  text-align: center;
}

.island-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  align-self: center;
}

.island-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08) 20%,
      rgba(255, 255, 255, 0.08) 80%,
      transparent);
  margin: 20px 0;
}

.island-divider--sm {
  margin: 16px 0;
}

.island-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Starting point chips — from startingPointChip() */
.starting-points-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.sp-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 54px;
  height: 60px;
  border-radius: 14px;
  padding: 8px 4px;
  cursor: default;
  transition: transform var(--duration-fast) var(--spring);
}

.sp-chip:hover {
  transform: translateY(-2px);
}

.sp-chip--blue {
  background: hsla(209, 70%, 75%, 0.07);
  border: 1px solid hsla(209, 70%, 75%, 0.15);
  color: var(--color-basic);
}

.sp-chip--green {
  background: hsla(151, 60%, 65%, 0.07);
  border: 1px solid hsla(151, 60%, 65%, 0.15);
  color: var(--color-guide);
}

.sp-chip--natural {
  background: hsla(36, 75%, 85%, 0.07);
  border: 1px solid hsla(36, 75%, 85%, 0.15);
  color: var(--color-natural);
}

.sp-chip--altered {
  background: hsla(353, 70%, 80%, 0.07);
  border: 1px solid hsla(353, 70%, 80%, 0.15);
  color: var(--color-altered);
}

.sp-chip--active {
  background: var(--color-basic) !important;
  border-color: transparent !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 6px 20px hsla(209, 70%, 75%, 0.3);
}

.sp-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.sp-interval {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}

.t-chips-island {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}


/* ═══════════════════════════════════════════════════════════════
   SCREENSHOTS GALLERY
═══════════════════════════════════════════════════════════════ */
.screenshots-scroll-container {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 56px;
  padding-bottom: 32px;
}

.screenshots-scroll-container::-webkit-scrollbar {
  display: none;
}

.screenshots-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 20px 4px 20px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Minimal clean bezel — using real image */
.screenshot-bezel {
  position: relative;
  overflow: visible;
}

.screenshot-bezel--portrait {
  width: 220px;
  aspect-ratio: 4.14 / 8.35;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-radius: 38px;
}

.screenshot-bezel--portrait::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  background: url('assets/iPhone 17 Pro Max - Deep Blue - Portrait.png') center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

.screenshot-bezel--portrait .screenshot-img {
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: 4.5%;
  right: 4.5%;
  width: 91%;
  height: 95%;
  border-radius: 12% / 6%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.screenshot-bezel--landscape {
  width: 100%;
  aspect-ratio: 8.35 / 4.14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border-radius: 24px;
}

.screenshot-bezel--landscape::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  background: url('assets/iPhone 17 Pro Max - Deep Blue - Landscape.png') center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

.screenshot-bezel--landscape .screenshot-img {
  position: absolute;
  top: 4.5%;
  bottom: 4.5%;
  left: 2.5%;
  right: 2.5%;
  width: 95%;
  height: 91%;
  border-radius: 6% / 12%;
  display: block;
  object-fit: cover;
  z-index: 1;
}

.screenshot-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Landscape screenshots */
.landscape-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.landscape-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════════════════════════════ */
.video-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  margin-top: 60px;
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.video-wrapper--portrait {
  max-width: 320px;
}

.video-wrapper--landscape {
  max-width: 800px;
}

.video-phone-bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 4.14 / 8.35;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  border-radius: 50px;
}

.video-phone-bezel::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  background: url('assets/iPhone 17 Pro Max - Deep Blue - Portrait.png') center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

.video-phone-bezel video {
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: 4.5%;
  right: 4.5%;
  width: 91%;
  height: 95%;
  border-radius: 12% / 6%;
  display: block;
  object-fit: cover;
  background: #000;
  z-index: 1;
}

.video-phone-bezel--landscape {
  max-width: 800px;
  aspect-ratio: 8.35 / 4.14;
}

.video-phone-bezel--landscape::after {
  background: url('assets/iPhone 17 Pro Max - Deep Blue - Landscape.png') center/100% 100% no-repeat;
}

.video-phone-bezel--landscape video {
  top: 4.5%;
  bottom: 4.5%;
  left: 2.5%;
  right: 2.5%;
  width: 95%;
  height: 91%;
  border-radius: 6% / 12%;
}

.video-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════
   MUSICIAN CARDS
═══════════════════════════════════════════════════════════════ */
.musician-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.musician-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--duration-mid) var(--ease-out),
    background var(--duration-mid) var(--ease-out),
    transform var(--duration-fast) var(--spring);
}

.musician-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-glass);
  transform: translateY(-4px);
}

.musician-card-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--color-natural);
  opacity: 0.7;
}

.musician-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.musician-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════ */
.section--cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: #0a0a0b;
}

.cta-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-blob--1 {
  width: 60vw;
  height: 60vw;
  background: hsl(209, 70%, 55%);
  opacity: 0.13;
  top: -20%;
  left: -15%;
  animation: blob-drift-1 20s ease-in-out infinite alternate;
}

.cta-blob--2 {
  width: 50vw;
  height: 50vw;
  background: hsl(151, 60%, 50%);
  opacity: 0.09;
  bottom: -20%;
  right: -15%;
  animation: blob-drift-2 25s ease-in-out infinite alternate;
}

.cta-blob--3 {
  width: 30vw;
  height: 30vw;
  background: hsl(353, 70%, 65%);
  opacity: 0.07;
  top: 40%;
  left: 50%;
  animation: blob-drift-4 18s ease-in-out infinite alternate;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: black;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.4);
}

.cta-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.55);
  max-width: 460px;
  margin-bottom: 48px;
  text-align: center;
}

.cta-actions {
  margin-bottom: 32px;
}

.appstore-badge {
  display: inline-block;
  transition: transform var(--duration-fast) var(--spring),
    opacity var(--duration-fast) var(--ease-out);
}

.appstore-badge:hover {
  transform: scale(1.05) translateY(-2px);
  opacity: 0.88;
}

.appstore-badge-img {
  height: 54px;
  width: auto;
  display: block;
  filter: invert(1);
  /* Use white badge on dark background */
}

.cta-specs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

.cta-spec-sep {
  color: rgba(255, 255, 255, 0.15);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#site-footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid var(--border-thin);
  padding: 60px 0 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-site);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.footer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-wordmark {
  font-size: 11px;
  letter-spacing: 0.35em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--padding-site) 0;
  border-top: 1px solid var(--border-thin);
}

.footer-legal {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 160ms;
}

.reveal-delay-3 {
  transition-delay: 240ms;
}

.reveal-delay-4 {
  transition-delay: 320ms;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --padding-site: 28px;
  }

  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    text-align: left;
  }

  .hero-device-wrap {
    display: none;
  }

  .section-inner--two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-inner--reverse {
    direction: ltr;
  }

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

  .musician-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chord-examples-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .video-grid {
    gap: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root {
    --padding-site: 20px;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 11px;
    gap: 6px;
  }

  .nav-cta svg {
    width: 14px;
    height: 14px;
  }

  .wordmark-text {
    display: none;
    /* Hide the wordmark text to make room for the CTA and hamburger menu, leaving just the beautiful App Icon */
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-mid) var(--ease-out),
      visibility var(--duration-mid) var(--ease-out);
    z-index: 100;
  }

  .nav-links.menu-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--duration-mid) var(--spring),
      opacity var(--duration-mid) var(--ease-out);
  }

  .nav-links.menu-open .nav-link {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links.menu-open .nav-link:nth-child(1) {
    transition-delay: 50ms;
  }

  .nav-links.menu-open .nav-link:nth-child(2) {
    transition-delay: 100ms;
  }

  .nav-links.menu-open .nav-link:nth-child(3) {
    transition-delay: 150ms;
  }

  .nav-links.menu-open .nav-link:nth-child(4) {
    transition-delay: 200ms;
  }

  /* Ensure body does not scroll while menu is open */
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open #site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom-color: transparent;
  }

  .hero-title {
    font-size: 42px;
  }

  .section-title {
    font-size: 30px;
  }

  .section {
    padding: 80px 0;
  }

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

  .musician-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .chord-examples-grid {
    grid-template-columns: 1fr;
  }

  .landscape-screenshots {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .cta-inner {
    padding: 0 4px;
  }

  .tetratonic-chip-row {
    gap: 6px;
  }

  .section-inner--two-col {
    gap: 36px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

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