/* ═══════════ CUSTOM PROPERTIES ═══════════ */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-deep: #111110;
  --bg-mid: #161614;
  --bg-surface: #1a1a18;
  --bg-card: rgba(26, 26, 24, 0.6);
  --bg-card-hover: rgba(34, 34, 30, 0.8);
  --text-primary: #f5f0e8;
  --text-secondary: #a8a49c;
  --text-dim: #908d84;
  --accent: #e8a849;
  --accent-bright: #f0be6a;
  --accent-mid: #d4963f;
  --accent-dark: #9a6e2a;
  --accent-muted: #c4893a;
  --success: #7ab648;
  --success-deep: #5a8a34;
  --success-dim: #3d6b22;
  --glow-accent: rgba(232, 168, 73, 0.12);
  --glow-accent-strong: rgba(232, 168, 73, 0.22);
  --rose: #c4726a;
  --rose-dim: rgba(196, 114, 106, 0.12);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --nav-height: 64px;
}

/* ═══════════ RESET & BASE ═══════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Film grain overlay — matte record sleeve feel ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════ SCROLL PROGRESS BAR ═══════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-bright));
  z-index: 10001;
  transition: width 0.05s linear;
}

/* ═══════════ FLOATING NAV ═══════════ */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 10000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.floating-nav.scrolled {
  background: rgba(17, 17, 16, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(232,168,73,0.06), 0 8px 32px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.floating-nav.scrolled .nav-logo { opacity: 1; }
.nav-links {
  display: flex;
  gap: 36px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.floating-nav.scrolled .nav-links { opacity: 1; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, visibility 0.4s;
}
.floating-nav.scrolled .nav-cta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(232,168,73,0.3); }

/* ═══════════ SECTION DEFAULTS ═══════════ */
section {
  position: relative;
  z-index: 1;
  padding: 140px 40px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
}
h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  font-weight: 400;
  line-height: 1.75;
}

/* ═══════════ SCROLL REVEAL ANIMATIONS ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px) translateY(10px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px) translateY(10px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.reveal-fast {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-fast.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-gentle {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-gentle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ ANIMATED GRID DIVIDERS ═══════════ */
.grid-divider {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.grid-divider .block {
  width: 48px;
  height: 9px;
  border-radius: 3.5px;
  animation: dividerWave 3s ease-in-out infinite;
  animation-play-state: paused;
}
.grid-divider.visible .block { animation-play-state: running; }

.grid-divider .block:nth-child(1) { animation-delay: 0s; }
.grid-divider .block:nth-child(2) { animation-delay: 0.12s; }
.grid-divider .block:nth-child(3) { animation-delay: 0.24s; }
.grid-divider .block:nth-child(4) { animation-delay: 0.36s; }
.grid-divider .block:nth-child(5) { animation-delay: 0.48s; }
.grid-divider .block:nth-child(6) { animation-delay: 0.60s; }
.grid-divider .block:nth-child(7) { animation-delay: 0.72s; }
.grid-divider .block:nth-child(8) { animation-delay: 0.84s; }

@keyframes dividerWave {
  0%, 100% { opacity: var(--base-opacity, 0.7); filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.6); }
}

/* ═══════════ AMBIENT GLOW ZONES ═══════════ */
.glow-zone {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════
   HERO — ASYMMETRIC SPLIT
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #161614 100%);
}

.hero .glow-zone {
  width: 1000px;
  height: 1000px;
  top: -200px;
  left: 10%;
  transform: translateX(-30%);
  background: radial-gradient(circle, rgba(232,168,73,0.06) 0%, rgba(196,137,58,0.02) 35%, transparent 65%);
}

.hero-glow-follow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,73,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  left: 30%;
  top: 50%;
  transition: left 0.3s ease-out, top 0.3s ease-out;
  opacity: 0;
}
.hero:hover .hero-glow-follow { opacity: 1; }

.hero-split {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero .eyebrow { margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  max-width: 600px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(232,168,73,0.06);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.75;
  font-family: var(--font-body);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ── App Store button ── */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  background: var(--text-primary);
  color: var(--bg-deep);
  border-radius: 13px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.app-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(232, 168, 73, 0.2), 0 4px 12px rgba(0,0,0,0.3);
}
.app-store-btn svg { flex-shrink: 0; }
.app-store-btn .btn-text { text-align: left; line-height: 1.15; }
.app-store-btn .btn-text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: block;
  opacity: 0.8;
}
.app-store-btn .btn-text strong {
  font-size: 19px;
  font-weight: 700;
  display: block;
}

.cta-footnote {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════
   MOCK APP WINDOW
═══════════════════════════════════════════════ */
.hero-app-window {
  position: relative;
  perspective: 1200px;
}
.app-window {
  background: #1a1a18;
  border-radius: 12px;
  border: 1px solid rgba(232,168,73,0.08);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 16px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(232,168,73,0.03),
    inset 0 1px 0 rgba(255,255,255,0.02);
  transform: rotate(2.5deg);
  transform-origin: center center;
  overflow: hidden;
  will-change: transform;
}
.app-window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(20, 20, 18, 0.95);
  border-bottom: 1px solid rgba(232,168,73,0.05);
}
.chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.chrome-dot.red { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green { background: #28c840; }
.chrome-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chrome-spacer { width: 51px; }

/* ── Toolbar with Mode Tabs ── */
.app-window-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(22, 22, 20, 0.6);
  border-bottom: 1px solid rgba(232,168,73,0.05);
}
.mode-tabs {
  display: flex;
  gap: 2px;
  background: rgba(232,168,73,0.04);
  border-radius: 7px;
  padding: 2px;
}
.mode-tab {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 14px;
  border-radius: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mode-tab.active {
  background: rgba(232,168,73,0.12);
  color: var(--accent);
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.health-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.health-badge svg { opacity: 0.8; }
.cmd-k-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(232,168,73,0.06);
  border: 1px solid rgba(232,168,73,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ── Gallery Grid ── */
.app-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  min-height: 200px;
}
.gallery-tile {
  aspect-ratio: 1;
  border-radius: 5px;
  position: relative;
  background-size: cover;
}
.gallery-tile.missing {
  background: rgba(232,168,73,0.02);
  border: 1px dashed rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-tile.missing svg {
  width: 24px;
  height: 24px;
}
.tile-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tile-status.embedded { background: #34C759; }
.tile-status.library-only { background: #FF9500; }
.tile-status.low-res { background: #FFCC00; }
.tile-status.missing-dot { background: #FF3B30; }

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 56px 40px;
  background: rgba(26, 26, 24, 0.5);
  border-top: 1px solid rgba(232,168,73,0.04);
  border-bottom: 1px solid rgba(232,168,73,0.04);
}
.stats-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-value span { color: var(--accent); }
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
  text-align: center;
}
.stat-divider {
  width: 1px;
  background: rgba(232,168,73,0.08);
  align-self: stretch;
}

/* ═══════════════════════════════════════════════
   PROBLEMS — STAGGERED MASONRY
═══════════════════════════════════════════════ */
.problems {
  padding-top: 120px;
  background: linear-gradient(180deg, #161614 0%, #141412 100%);
}
.problems .container > h2 {
  text-align: center;
  margin-bottom: 64px;
}

.problems .glow-zone {
  width: 700px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232,168,73,0.03), transparent 70%);
}

.problems-masonry {
  display: grid;
  grid-template-columns: 40% 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 28px 36px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(232,168,73,0.06);
  backdrop-filter: blur(12px);
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.problem-card:hover {
  border-color: rgba(232,168,73,0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 168, 73, 0.06);
}

.problem-card:nth-child(1) {
  grid-row: 1 / 3;
}

.problem-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,168,73,0.08);
  border: 1.5px solid rgba(232,168,73,0.2);
  transition: box-shadow 0.4s ease;
}
.problem-card:hover .problem-icon {
  box-shadow: 0 0 20px rgba(232,168,73,0.1);
}
.problem-icon svg { width: 28px; height: 28px; }

.problem-card h3 { font-size: 22px; margin-bottom: 6px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.problem-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; font-weight: 400; }

.severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(232,168,73,0.08);
  border: 1px solid rgba(232,168,73,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  margin-top: 8px;
  width: fit-content;
}

/* ═══════════════════════════════════════════════
   FEATURES — EDITORIAL ALTERNATING
═══════════════════════════════════════════════ */
.features {
  padding-top: 120px;
  background: linear-gradient(180deg, #141412 0%, #131311 100%);
}
.features .section-header { text-align: center; margin-bottom: 88px; }
.features .section-sub { margin: 0 auto; }

.features .glow-zone {
  width: 800px;
  height: 600px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232,168,73,0.03), transparent 65%);
}

.editorial-row {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto 120px;
  align-items: center;
}
.editorial-row:last-child {
  margin-bottom: 0;
}
.editorial-row.reversed {
  grid-template-columns: 45% 55%;
}
.editorial-row.reversed .editorial-text {
  order: 2;
}
.editorial-row.reversed .editorial-illustration {
  order: 1;
}

.editorial-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.editorial-feature {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(232,168,73,0.06);
}
.editorial-feature:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.feature-glyph {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(232,168,73,0.08);
  border: 1px solid rgba(232,168,73,0.1);
  margin-bottom: 16px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.feature-glyph svg { width: 22px; height: 22px; }

.editorial-feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.editorial-feature p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 400;
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.source-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(232,168,73,0.06);
  border: 1px solid rgba(232,168,73,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════
   ILLUSTRATION PANELS
═══════════════════════════════════════════════ */
.editorial-illustration {
  perspective: 800px;
}
.illus-panel {
  background: rgba(20, 20, 18, 0.8);
  border: 1px solid rgba(232,168,73,0.08);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}
.illus-panel:hover {
  transform: rotateY(-1.5deg) rotateX(1deg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  border-color: rgba(232,168,73,0.15);
}

.illus-panel-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232,168,73,0.06);
}

/* ── Search Results Illustration ── */
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(232,168,73,0.02);
  border: 1px solid rgba(232,168,73,0.04);
}
.search-result:last-child { margin-bottom: 0; }
.search-provider-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(232,168,73,0.08);
  border: 1px solid rgba(232,168,73,0.15);
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-album {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.search-result-artist {
  font-size: 10px;
  color: var(--text-dim);
}
.confidence-bar-wrap {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.confidence-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(232,168,73,0.1);
  overflow: hidden;
}
.confidence-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.confidence-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Quality Breakdown Illustration ── */
.quality-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.quality-tier:last-child { margin-bottom: 0; }
.quality-tier-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 110px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.quality-bar-wrap {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.quality-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.quality-bar-fill.hires { background: linear-gradient(90deg, #28a745, #34C759); }
.quality-bar-fill.lossless { background: linear-gradient(90deg, #00a8a8, #00C7BE); }
.quality-bar-fill.lossy { background: linear-gradient(90deg, #0066cc, #0A84FF); }
.quality-bar-fill.low { background: linear-gradient(90deg, #cc7a00, #FF9500); }
.quality-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Opportunity Dashboard Illustration ── */
.opportunity-card-illus {
  text-align: center;
  padding: 8px 0;
}
.big-opportunity {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(232,168,73,0.12);
}
.big-opportunity-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.opportunity-breakdown {
  text-align: left;
  margin-top: 16px;
}
.opp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232,168,73,0.04);
}
.opp-row:last-child { border-bottom: none; }
.opp-row-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opp-row-icon svg { width: 16px; height: 16px; }
.opp-row-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}
.opp-row-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS — PROGRESS TRACK
═══════════════════════════════════════════════ */
.how-it-works {
  padding-top: 120px;
  background: linear-gradient(180deg, #131311 0%, #121210 100%);
}
.how-it-works .section-header { text-align: center; margin-bottom: 88px; }
.how-it-works .section-sub { margin: 0 auto; }

.steps-wrapper {
  position: relative;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.steps-track {
  position: absolute;
  top: 34px;
  left: calc(50% - 350px);
  width: 700px;
  height: 2px;
  background: rgba(232,168,73,0.08);
  z-index: 0;
}
.steps-track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 1px;
  transition: width 0.1s linear;
}

.step {
  flex: 0 0 300px;
  text-align: center;
  position: relative;
  padding: 0 24px;
}

.step-number {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(232,168,73,0.06);
  border: 2px solid var(--accent);
  box-shadow: 0 0 28px rgba(232,168,73,0.12), inset 0 0 12px rgba(232,168,73,0.05);
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  top: 34px;
  left: calc(50% + 54px);
  width: calc(100% - 68px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(232,168,73,0.08));
  z-index: 1;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  animation: connectorPulse 2.5s ease-in-out infinite;
}
@keyframes connectorPulse {
  0% { left: -40px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% + 40px); opacity: 0; }
}
.step:nth-child(2) .step-connector::after { animation-delay: 0.8s; }
.step:last-child .step-connector { display: none; }

.step h3 { font-size: 24px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.step p { font-size: 14px; color: var(--text-dim); line-height: 1.7; font-weight: 400; font-family: var(--font-body); }

/* ═══════════════════════════════════════════════
   iPOD / PORTABILITY SECTION
═══════════════════════════════════════════════ */
.portability {
  padding-top: 120px;
  padding-bottom: 120px;
  background: linear-gradient(180deg, #121210 0%, #111110 100%);
}

.portability .glow-zone {
  width: 600px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232,168,73,0.04), transparent 65%);
}

.portability-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.portability-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 48px;
}

.portability-devices {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.device-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(232,168,73,0.04);
  border: 1px solid rgba(232,168,73,0.1);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.device-tag:hover {
  border-color: rgba(232,168,73,0.25);
  background: rgba(232,168,73,0.08);
}
.device-tag svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.device-tag span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing {
  padding-top: 120px;
  background: linear-gradient(180deg, #111110 0%, var(--bg-deep) 100%);
}
.pricing .section-header { text-align: center; margin-bottom: 72px; }
.pricing .section-sub { margin: 0 auto; }

.pricing .glow-zone {
  width: 600px;
  height: 600px;
  bottom: -100px;
  left: 55%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,168,73,0.04), transparent 65%);
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 44px 32px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(232,168,73,0.08);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-card:hover { transform: translateY(-4px); }

/* ── Pro card ── */
.pricing-card.pro {
  border: 1px solid var(--accent-muted);
  padding: 46px 34px;
  background: var(--bg-card);
  flex: 1.08;
  transform: scale(1.02);
}
.pricing-card.pro:hover { transform: scale(1.02) translateY(-4px); }

/* ── Press Pack card ── */
.pricing-card.pack {
  border: 1px solid rgba(232,168,73,0.2);
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), var(--accent), var(--accent-dark), var(--accent-muted), var(--accent-bright), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 6s linear infinite;
  pointer-events: none;
}
@keyframes rotateBorder { to { --border-angle: 360deg; } }

.pricing-card.pro::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(232,168,73,0.06), transparent 40%);
  pointer-events: none;
}

.pro-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.pricing-card .plan-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.pricing-card h3 {
  font-size: 30px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  text-transform: none;
}
.pricing-card h3 .mono-price {
  font-family: var(--font-mono);
  font-weight: 700;
}
.pricing-card .price {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.pricing-card .price .mono-detail {
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-features {
  list-style: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(232,168,73,0.08);
  position: relative;
  z-index: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 400;
}
.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(232,168,73,0.08);
  border: 1.5px solid rgba(232,168,73,0.25);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8L7 11L12 5' stroke='%23e8a849' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.pricing-card.pro .pricing-features li::before {
  border-color: rgba(232,168,73,0.4);
  background-color: rgba(232,168,73,0.12);
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 1;
}
.pricing-cta:hover { transform: translateY(-2px); }

/* Free card CTA */
.pricing-card:not(.pack):not(.pro) .pricing-cta {
  background: rgba(232,168,73,0.12);
  color: var(--accent);
  border: 1px solid rgba(232,168,73,0.25);
}
.pricing-card:not(.pack):not(.pro) .pricing-cta:hover {
  background: rgba(232,168,73,0.18);
  box-shadow: 0 6px 24px rgba(232,168,73,0.12);
}

/* Pack card CTA */
.pricing-card.pack .pricing-cta {
  background: linear-gradient(135deg, rgba(232,168,73,0.25), rgba(232,168,73,0.15));
  color: var(--accent);
  border: 1px solid rgba(232,168,73,0.3);
}
.pricing-card.pack .pricing-cta:hover {
  background: linear-gradient(135deg, rgba(232,168,73,0.35), rgba(232,168,73,0.22));
  box-shadow: 0 6px 24px rgba(232,168,73,0.18);
}

/* Pro card CTA */
.pricing-card.pro .pricing-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: var(--bg-deep);
  font-weight: 700;
}
.pricing-card.pro .pricing-cta:hover {
  box-shadow: 0 8px 32px rgba(232,168,73,0.3);
}

/* ── Subtle divider after pricing ── */
.pricing-divider {
  max-width: 200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,168,73,0.1), transparent);
  margin-top: 80px;
}

/* ═══════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════ */
.final-cta {
  text-align: center;
  padding: 200px 40px 120px;
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0e0e0d 100%);
}
.final-cta .glow-zone {
  width: 500px;
  height: 500px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,168,73,0.05), transparent 60%);
}

.final-cta .final-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 44px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  position: relative;
  z-index: 1;
}
.final-cta .final-icon svg { width: 100%; height: 100%; }
.final-cta h2 { margin-bottom: 36px; position: relative; z-index: 1; }
.final-cta .cta-group {
  position: relative;
  z-index: 1;
  align-items: center;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 32px;
  border-top: 1px solid rgba(232,168,73,0.05);
}
footer p { font-size: 13px; color: var(--text-dim); font-weight: 400; }
footer a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
footer a:hover { opacity: 1; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  section { padding: 100px 24px; }
  .floating-nav { padding: 0 20px; }
  .nav-links { display: none; }

  /* Hero: stack vertically */
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero h1 { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .cta-group { align-items: center; }
  .app-window {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Problems: single column */
  .problems-masonry {
    grid-template-columns: 1fr;
  }
  .problem-card:nth-child(1) { grid-row: auto; }

  /* Features: single column */
  .editorial-row,
  .editorial-row.reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .editorial-row.reversed .editorial-text {
    order: 1;
  }
  .editorial-row.reversed .editorial-illustration {
    order: 2;
  }
  .editorial-row { margin-bottom: 80px; }

  /* Steps: vertical */
  .steps { flex-direction: column; align-items: center; gap: 48px; }
  .step-connector { display: none !important; }
  .steps-track { display: none; }

  /* Portability */
  .portability-devices { gap: 12px; }
  .device-tag { padding: 10px 18px; }

  /* Pricing */
  .pricing-cards {
    flex-direction: column;
    max-width: 400px;
  }
  .pricing-card.pro { transform: none; flex: 1; }
  .pricing-card.pro:hover { transform: translateY(-4px); }

  .grid-divider { gap: 5px; }
  .grid-divider .block { width: 36px; height: 7px; }
  .stats-container { flex-wrap: wrap; gap: 20px; }
  .stat { flex: 0 0 40%; }
  .stat-divider { display: none; }

  .final-cta { padding: 120px 24px 80px; }
}
@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .hero { padding-top: 80px; }
  .app-gallery { grid-template-columns: repeat(3, 1fr); }
  .cmd-k-hint { display: none; }
  .stats-bar { padding: 40px 20px; }
  .stat-value { font-size: 26px; }
  .final-cta .final-icon { width: 100px; height: 100px; }
  .portability-devices { flex-direction: column; align-items: center; }
}

/* ═══════════ FOCUS VISIBLE ═══════════ */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ═══════════ SKIP LINK ═══════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10002;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-fast, .reveal-gentle {
    opacity: 1;
    transform: none;
  }
  .hero-glow-follow { display: none; }
}
