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

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f1ece4;
  --border: #e2dbd0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.08);
  --gold: #d97706;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-dim: #a8a29e;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --max-w: 1100px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.07), 0 2px 4px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 12px 48px rgba(28, 25, 23, 0.1);

  --enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --move-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

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

/* ---- Status Indicator ---- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid #22c55e;
  animation: status-ring 2s ease-in-out infinite;
}

@keyframes status-ring {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.6); }
}

/* ---- Header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span { color: var(--text); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-nav .btn-nav {
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  margin-left: 6px;
}

.header-nav .btn-nav:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s var(--enter-ease),
              transform 0.12s var(--enter-ease),
              box-shadow 0.2s var(--enter-ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
}

.btn-primary:active {
  transform: scale(0.97) translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  padding: 14px 32px;
  font-size: 1rem;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ---- Hero Entrance (page load) ---- */

.hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(24px);
}

.page-loaded .hero-wordmark {
  animation: fadeInUp 500ms var(--enter-ease) forwards;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
}

.page-loaded .hero-tagline {
  animation: fadeInUp 500ms var(--enter-ease) 150ms forwards;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

.page-loaded .hero-buttons {
  animation: fadeInUp 400ms var(--enter-ease) 500ms forwards;
}

.hero-visual {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(30px);
}

.page-loaded .hero-visual {
  animation: fadeInRight 600ms var(--enter-ease) 300ms forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Status Bar (hero stats) ---- */

.stats-bar {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  opacity: 0;
  transform: translateY(16px);
}

.page-loaded .stats-bar {
  animation: fadeInUp 400ms var(--enter-ease) 650ms forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ---- Embed Mockup ---- */

.embed-mockup {
  width: 360px;
  background: #1e1f22;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(28, 25, 23, 0.16);
  position: relative;
}

.embed-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.mockup-name {
  color: #e8e8e8;
  font-size: 0.85rem;
  font-weight: 600;
}

.mockup-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

.mockup-time {
  margin-left: auto;
  color: #6b6b80;
  font-size: 0.7rem;
}

.embed-mockup-body {
  padding: 8px 16px 16px;
}

.mockup-text {
  color: #d2d2d7;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.mockup-cmd {
  color: #e8e8e8;
}

.mockup-embed {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.embed-sidebar {
  width: 4px;
  background: var(--primary);
  flex-shrink: 0;
}

.embed-content {
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
}

.embed-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-bottom: 6px;
}

.eq-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 1.5px;
  animation: eq 0.55s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.05s; }
.eq-bar:nth-child(5) { height: 16px; animation-delay: 0.15s; }

@keyframes eq {
  0% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.3); }
}

.embed-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4px;
}

.embed-title {
  color: #e8e8e8;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.embed-artist {
  color: #b5bac1;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.embed-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-time {
  font-size: 0.68rem;
  color: #6b6b80;
  font-variant-numeric: tabular-nums;
  min-width: 3em;
}

.progress-time:last-child { text-align: right; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: #3b3d44;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 38%;
  background: var(--primary);
  border-radius: 2px;
  animation: progress-slide 3s ease-in-out infinite;
}

@keyframes progress-slide {
  0% { width: 18%; }
  50% { width: 52%; }
  100% { width: 18%; }
}

.embed-actions {
  display: flex;
  gap: 8px;
}

.embed-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #3b3d44;
  color: #b5bac1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.embed-btn:hover {
  background: #4e5058;
  color: #e8e8e8;
  transform: scale(1.08);
}

.embed-btn:active {
  transform: scale(0.93);
}

.embed-btn.is-playing {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.35);
}

/* ---- Reveal (scroll) ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--enter-ease),
              transform 600ms var(--enter-ease);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--enter-ease),
              transform 500ms var(--enter-ease);
}

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

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }

/* ---- Sections ---- */

section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 10px auto 0;
}

/* ---- Features ---- */

.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s var(--enter-ease),
              box-shadow 0.25s var(--enter-ease),
              transform 0.25s var(--enter-ease);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Commands ---- */

.section-commands {
  background: var(--surface);
}

.commands-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.commands-table th {
  text-align: left;
  padding: 14px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.commands-table td {
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.commands-table tr:last-child td { border-bottom: none; }

.commands-table tr:hover td { color: var(--text); }

.commands-table code {
  background: rgba(79, 70, 229, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--primary);
  font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  white-space: nowrap;
}

.commands-table td:first-child { white-space: nowrap; }

/* ---- CTA ---- */

.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.cta-content p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

.cta .btn-primary {
  position: relative;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-inner .logo { font-size: 1.1rem; }

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

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

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-tagline { margin: 0 auto 36px; }

  .hero-buttons { justify-content: center; }

  .stats-bar { justify-content: center; }

  .hero-visual { order: -1; }

  .embed-mockup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .page-loaded .hero-visual {
    animation-name: fadeInUp;
  }
}

@media (max-width: 768px) {
  .hero { padding: 50px 0; }

  section { padding: 50px 0; }

  .section-header { margin-bottom: 36px; }

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

  .stats-bar { gap: 28px; }

  .stat-number { font-size: 1.3rem; }

  header nav a:not(.btn-nav) { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .btn-lg { width: 100%; justify-content: center; }

  .commands-table td,
  .commands-table th { padding: 10px 14px; }

  .commands-table code { font-size: 0.75rem; padding: 2px 8px; }
}

/* ---- Focus ---- */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero-wordmark,
  .hero-tagline,
  .hero-buttons,
  .hero-visual,
  .stats-bar {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal,
  .reveal > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-loaded .hero-visal {
    animation: none;
  }

  .status-dot::after { animation: none; display: none; }

  .embed-btn.is-playing { box-shadow: none; }
}
