/* drivenbydata.ai — Dark Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg:       #060a12;
  --bg2:      #0c1220;
  --bg3:      #111b2e;
  --border:   #1a2d47;
  --border2:  #243d5c;
  --cyan:     #00c8ff;
  --cyan-dim: rgba(0, 200, 255, 0.08);
  --cyan-glow:rgba(0, 200, 255, 0.25);
  --gold:     #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.10);
  --green:    #10b981;
  --red:      #ef4444;
  --text:     #e2eaf5;
  --text2:    #7a93b4;
  --text3:    #3d526e;
  --mono:     'JetBrains Mono', 'Courier New', monospace;
  --sans:     'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.nav-price {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: var(--gold-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: var(--cyan-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--cyan); }
.hero h1 .accent-gold { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── How-to Guide ──────────────────────────────────────────────────── */
.howto {
  max-width: 680px;
  margin: 0 auto 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.howto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background: var(--bg3);
}

.howto-header:hover { background: var(--border); }

.howto-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

.howto-chevron { color: var(--text3); transition: transform 0.2s; font-size: 1.1rem; }
.howto.open .howto-chevron { transform: rotate(180deg); }

.howto-body {
  display: none;
  padding: 1.25rem 1.5rem;
}
.howto.open .howto-body { display: block; }

.howto-steps { list-style: none; }
.howto-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text2);
}
.howto-steps li:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  margin-top: 1px;
}

/* ── Upload Zone ───────────────────────────────────────────────────── */
.upload-section {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  padding: 0 0;
}

.dropzone {
  border: 2px dashed var(--border2);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  background: var(--bg2);
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: grayscale(0.5);
}

.dropzone-text {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 0.4rem;
}

.dropzone-hint {
  font-size: 0.82rem;
  color: var(--text3);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-selected {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg3);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.file-selected.visible { display: flex; }

/* ── CTA Button ────────────────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #0099cc, #00c8ff);
  color: #000;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.3);
  max-width: 680px;
  margin: 0 auto 1rem;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 200, 255, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--bg3);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-secondary:hover { background: var(--border); text-decoration: none; }

/* ── Privacy note ──────────────────────────────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text3);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.privacy-note .lock { color: var(--green); margin-right: 0.3rem; }

/* ── Stat Cards ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  container-type: inline-size;
}

.stat-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
  background: var(--cyan-dim);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.stat-sub {
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 0.3rem;
  opacity: 0.6;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1rem, 11cqi, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.stat-value.money { color: var(--cyan); }
.stat-value.gold  { color: var(--gold); }

/* ── Insight Card ──────────────────────────────────────────────────── */
.insight-card {
  max-width: 680px;
  margin: 0 auto 2rem;
  background: var(--gold-dim);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 1.75rem;
}

.insight-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.insight-text .highlight {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 700;
}

/* ── What's in the report ──────────────────────────────────────────── */
.report-contents {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.report-contents h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}

.report-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
}

.report-items li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text2);
  padding: 0.5rem 0.75rem;
  background: var(--bg2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.report-items li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Processing Page ───────────────────────────────────────────────── */
.processing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.spinner {
  width: 72px;
  height: 72px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px var(--cyan-glow);
}

.processing-stage {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
  transition: opacity 0.3s;
}

.progress-track {
  width: 320px;
  max-width: 90vw;
  height: 4px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0099cc, var(--cyan));
  border-radius: 4px;
  width: 5%;
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.8s ease;
}

.processing-note {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 2rem;
}

/* ── Success Page ──────────────────────────────────────────────────── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* ── Error Page ────────────────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.error-box {
  max-width: 500px;
  background: var(--bg2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 2rem;
}

/* ── Page container ────────────────────────────────────────────────── */
.page { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text3);
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-cyan    { color: var(--cyan); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-muted   { color: var(--text2); }
.mono         { font-family: var(--mono); }
.mt-1         { margin-top: 0.5rem; }
.mt-2         { margin-top: 1rem; }
.mt-3         { margin-top: 1.5rem; }
.mb-2         { margin-bottom: 1rem; }
.mb-4         { margin-bottom: 2rem; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--cyan); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px var(--cyan); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }

/* ── Trust Strip ───────────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
}

/* ── How It Works ──────────────────────────────────────────────────── */
.hiw-section {
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  text-align: center;
  margin-bottom: 1.25rem;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hiw-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.hiw-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.5;
  margin-bottom: 0.65rem;
}

.hiw-step strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.hiw-step p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

/* ── Stripe note ───────────────────────────────────────────────────── */
.stripe-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text3);
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* ── Chart Preview (teaser page) ───────────────────────────────────── */
.chart-preview {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.chart-preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.chart-preview-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 200, 255, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.chart-preview-hint {
  font-size: 0.72rem;
  color: var(--text3);
  font-family: var(--mono);
}

.chart-preview-frame {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.08);
}

.teaser-chart-img {
  width: 100%;
  display: block;
  border-radius: 13px;
}

.chart-preview-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── CTA block (teaser page) ───────────────────────────────────────── */
.cta-block {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.cta-context {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text3);
  margin: 0.75rem 0;
}

.cta-guarantee {
  font-size: 0.76rem;
  color: var(--text3);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.cta-guarantee a {
  color: var(--text2);
}

/* ── Legal Pages ───────────────────────────────────────────────────── */
.legal-page {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  max-width: 680px;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
}

.legal-section ul li {
  font-size: 0.88rem;
  color: var(--text2);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  line-height: 1.5;
}

.legal-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text3);
  font-size: 0.8rem;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2rem; }
  .nav { padding: 1rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .report-items { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .trust-strip { gap: 0.4rem; }
  .howto, .upload-section, .btn-primary, .insight-card,
  .report-contents, .stats-grid, .privacy-note,
  .chart-preview, .cta-block { padding-left: 1.25rem; padding-right: 1.25rem; }
}
