:root {
  --bg: #060913;
  --bg-elev: #0d1224;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(125, 211, 252, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent-1: #38bdf8;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --accent-lime: #b8ff3c;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Aurora Mesh Background */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 92vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 45% at 18% 18%, rgba(56, 189, 248, 0.22), transparent 68%),
    radial-gradient(ellipse 46% 42% at 84% 22%, rgba(168, 85, 247, 0.22), transparent 68%),
    radial-gradient(ellipse 42% 38% at 54% 62%, rgba(236, 72, 153, 0.14), transparent 72%);
  filter: blur(16px);
}

a {
  color: var(--accent-1);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 9, 19, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 52%, #ec4899 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  white-space: nowrap;
}

/* Hero & Interactive Workspace */
.hero {
  padding: 40px 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.grad-text {
  background: linear-gradient(110deg, #38bdf8 0%, #c084fc 48%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 560px;
}

/* Upload Dropzone Card */
.dropzone {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1.5px dashed rgba(125, 211, 252, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14), 0 20px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.dropzone h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.dropzone p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #cbd5e1;
}
.chip.is-highlight {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-row .btn-primary {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

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

.btn-primary {
  color: #060913;
  background: linear-gradient(120deg, #38bdf8 0%, #c084fc 55%, #f472b6 100%);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.42);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.status-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  display: none;
  text-align: left;
}
.status-banner.is-visible {
  display: block;
}
.status-banner.is-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fecaca;
}
.status-banner.is-success {
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #bbf7d0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Spotify-Style Interactive Story Theater */
.theater-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-stage {
  position: relative;
  width: 100%;
  max-width: 396px;
  aspect-ratio: 9 / 15.2;
  min-height: 580px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: background 0.35s ease, color 0.35s ease;
}

.story-stage[data-theme="aurora"] {
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.36), transparent 52%),
    radial-gradient(circle at 86% 42%, rgba(168, 85, 247, 0.34), transparent 52%),
    radial-gradient(circle at 22% 88%, rgba(236, 72, 153, 0.28), transparent 52%),
    linear-gradient(175deg, #070a16 0%, #0e1329 100%);
  --st-ink: #f8fafc;
  --st-muted: #94a3b8;
  --st-card: rgba(255, 255, 255, 0.08);
  --st-border: rgba(255, 255, 255, 0.15);
  --st-accent: #38bdf8;
  --st-accent2: #c084fc;
}

.story-stage[data-theme="acid"] {
  background:
    radial-gradient(circle at 15% 15%, rgba(184, 255, 60, 0.26), transparent 48%),
    radial-gradient(circle at 88% 45%, rgba(255, 90, 121, 0.38), transparent 52%),
    radial-gradient(circle at 25% 90%, rgba(34, 211, 238, 0.32), transparent 52%),
    linear-gradient(175deg, #14072e 0%, #260a47 100%);
  --st-ink: #ffffff;
  --st-muted: #e9d5ff;
  --st-card: rgba(255, 255, 255, 0.1);
  --st-border: rgba(184, 255, 60, 0.36);
  --st-accent: #b8ff3c;
  --st-accent2: #ff5a79;
}

.story-stage[data-theme="editorial"] {
  background:
    radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.15), transparent 50%),
    radial-gradient(circle at 88% 55%, rgba(224, 90, 71, 0.15), transparent 50%),
    linear-gradient(175deg, #f8f3e9 0%, #efe6d5 100%);
  --st-ink: #141726;
  --st-muted: #575b72;
  --st-card: rgba(20, 23, 38, 0.055);
  --st-border: rgba(20, 23, 38, 0.15);
  --st-accent: #2563eb;
  --st-accent2: #e05a47;
}

.story-progress {
  display: flex;
  gap: 5px;
  padding: 16px 16px 10px;
  position: relative;
  z-index: 4;
}

.prog-seg {
  flex: 1;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
  cursor: pointer;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: var(--st-accent);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.prog-seg.is-done .prog-fill {
  width: 100%;
}
.prog-seg.is-active .prog-fill {
  width: 100%;
  box-shadow: 0 0 12px var(--st-accent);
}

.story-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 18px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--st-muted);
  position: relative;
  z-index: 4;
}

.story-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--st-card);
  border: 1px solid var(--st-border);
  color: var(--st-ink);
  letter-spacing: 0.03em;
}

.story-slide-body {
  flex: 1;
  padding: 14px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
  color: var(--st-ink);
  animation: slideEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideEnter {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-kicker {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-accent);
  margin-bottom: 10px;
}

.slide-hero-num {
  font-family: var(--font-display);
  font-size: 3.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--st-ink);
  margin: 0 0 8px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.slide-sub {
  font-size: 0.92rem;
  color: var(--st-muted);
  margin: 0 0 18px;
}

.mini-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.mini-tile {
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--st-card);
  border: 1px solid var(--st-border);
}

.mini-tile .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 4px;
}

.mini-tile .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--st-ink);
}

/* 24h & 12m Pure CSS/SVG Charts inside Story */
.bar-chart-24 {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  height: 128px;
  padding: 14px 12px 8px;
  border-radius: 18px;
  background: var(--st-card);
  border: 1px solid var(--st-border);
}

.bar-24 {
  border-radius: 4px 4px 2px 2px;
  background: rgba(148, 163, 184, 0.35);
  min-height: 5px;
  transition: height 0.35s ease;
}
.bar-24.is-hot {
  background: var(--st-accent2);
}
.bar-24.is-peak {
  background: var(--st-accent);
  box-shadow: 0 0 14px var(--st-accent);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--st-muted);
  margin-top: 6px;
}

.topic-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
}

.topic-track {
  height: 9px;
  border-radius: 99px;
  background: var(--st-card);
  overflow: hidden;
}

.topic-fill {
  height: 100%;
  border-radius: 99px;
}

.kw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.kw-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--st-card);
  border: 1px solid var(--st-border);
  color: var(--st-ink);
}

.aura-orb {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 0 64px rgba(168, 85, 247, 0.5);
  animation: auraFloat 4.5s ease-in-out infinite;
}

@keyframes auraFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.aura-orb::after {
  content: "✦";
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
}

.story-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 16px;
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--st-border);
}

.story-nav-btn {
  background: var(--st-card);
  border: 1px solid var(--st-border);
  color: var(--st-ink);
  border-radius: 10px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.story-nav-btn:hover {
  filter: brightness(1.15);
}

/* Controls below Story Theater */
.studio-controls {
  width: 100%;
  max-width: 396px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pill-btn {
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.14s ease;
}

.pill-btn.is-active,
.pill-btn:hover {
  color: var(--text);
  border-color: var(--accent-1);
  background: rgba(56, 189, 248, 0.16);
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Full Dashboard Breakdown Section */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.dash-card .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-card .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin: 6px 0 4px;
}

.dash-card .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Steps & Comparison Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.callout-warn {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.34);
  color: #fed7aa;
  font-size: 0.93rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-display);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

td {
  color: #cbd5e1;
}
tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-1);
  font-size: 1.3rem;
  font-family: var(--font-mono);
}
.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.93rem;
}

/* Prose Articles (Guide / Privacy / Terms) */
.prose {
  max-width: 780px;
  padding: 44px 0 64px;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 34px 0 12px;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 24px 0 8px;
}

.prose p,
.prose li {
  color: #cbd5e1;
  font-size: 0.98rem;
}

.prose ol,
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

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

.disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  max-width: 820px;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links .hide-mobile {
    display: none;
  }
}

@media (max-width: 520px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .export-actions {
    grid-template-columns: 1fr;
  }
  .privacy-pill {
    display: none;
  }
}
