@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #0b0b0c;
  --surface: #17181a;
  --surface-hover: #1f2022;
  --border: #232427;
  --green: #1db954;
  --green-bright: #35e67d;
  --text: #f5f5f0;
  --text-muted: #8a8d91;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
}

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

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; gap: 10px; }
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.eq {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  margin-bottom: 28px;
}
.eq span {
  width: 5px;
  border-radius: 3px;
  background: var(--green);
  animation: bounce 1.1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 14px; animation-delay: -1.0s; }
.eq span:nth-child(2) { height: 28px; animation-delay: -0.8s; }
.eq span:nth-child(3) { height: 40px; animation-delay: -0.6s; }
.eq span:nth-child(4) { height: 20px; animation-delay: -0.4s; }
.eq span:nth-child(5) { height: 32px; animation-delay: -0.2s; }
.eq span:nth-child(6) { height: 12px; animation-delay: 0s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq span { animation: none; }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #06110a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
}

.price-note {
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.steps h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 32px;
  text-align: center;
}
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.step .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--green);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Sample stats strip ---------- */
.sample {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.sample h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.sample > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
}
.sample-card .n {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 500;
}
.sample-card .l {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.demo-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

.inline-link {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
}
.inline-link:hover { color: var(--green-bright); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  margin-bottom: 20px;
}
.tab-btn {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { border-color: var(--green); color: var(--text); }
.tab-btn.active { background: var(--green); color: #06110a; border-color: var(--green); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.demo-chart-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.demo-drill-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.demo-drill-bar.visible { display: flex; }
.demo-drill-bar .demo-reset-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.demo-drill-bar .demo-reset-btn:hover { border-color: var(--green); }

.chart-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.demo-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
}
.demo-chart-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
}
.demo-chart-wrap {
  position: relative;
  height: 200px;
}
/* ---------- How-to section ---------- */
.howto {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.howto h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  text-align: center;
}
.howto-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
  max-width: 460px;
  margin: 0 auto 32px;
}
.howto-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.howto-list .step {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px;
}
.howto-list .step .num {
  grid-column: 1;
  grid-row: 1;
}
.howto-list .step h3 {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
  align-self: start;
}
.howto-list .step p {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
}

.howto-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer .links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
footer .links a:hover { color: var(--text); }
footer .copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #4a4c4f;
}

/* ---------- Upload page ---------- */
.upload-page {
  padding: 70px 0 90px;
  max-width: 520px;
}
.upload-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.upload-page > .wrap > p, .upload-page-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 6px;
}

.field-checkbox {
  margin-bottom: 28px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--green);
  text-decoration: underline;
}
.checkbox-label a:hover { color: var(--green-bright); }

input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}
input[type="email"]:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  background: var(--surface);
  transition: border-color 0.15s ease;
}
.file-drop:hover { border-color: var(--green); }
.file-drop input[type="file"] {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

.error-box {
  background: rgba(219, 68, 55, 0.1);
  border: 1px solid rgba(219, 68, 55, 0.4);
  color: #ff8a80;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
}
.confirm-box .eq { margin-bottom: 20px; }
.confirm-box h1 { font-size: 1.5rem; margin-bottom: 10px; }
.confirm-box p { color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .step-list, .sample-grid { grid-template-columns: 1fr 1fr; }
  .chart-preview { grid-template-columns: 1fr; }
  .howto-list .step {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
  }
  .howto-list .step .num { grid-column: 1; grid-row: 1; }
  .howto-list .step h3 { grid-column: 1; grid-row: 2; }
  .howto-list .step p { grid-column: 1; grid-row: 3; align-self: start; }
}