/* ==============================
   AlgoSurf Marketing Site
   Design tokens from dashboard.html & investor-presentation.html
   ============================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-body: #06070c;
  --bg-card: #0a0e17;
  --bg-input: #0d1017;
  --border: #1a1e2e;
  --text-primary: #e8e9ed;
  --text-secondary: #c8cad0;
  --text-muted: #999;
  --text-dim: #555;
  --accent: #ffeb3b;
  --teal: #26a69a;
  --red: #ef5350;
  --blue: #64b5f6;
  --purple: #ab47bc;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-body);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: .2s; }
a:hover { opacity: 0.85; }

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: 20px; }
h4 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

.accent { color: var(--accent); }
.teal { color: var(--teal); }
.mono { font-family: var(--font-mono); }
.lead { font-size: 18px; color: var(--text-muted); max-width: 640px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-card); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 7, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo:hover { opacity: 1; color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 20px !important;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,235,59,0.12), rgba(255,235,59,0.06));
  border: 1px solid rgba(255,235,59,0.3);
  color: var(--accent) !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.5px;
}
.nav-cta:hover {
  background: rgba(255,235,59,0.15);
  border-color: rgba(255,235,59,0.5);
  box-shadow: 0 0 20px rgba(255,235,59,0.1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 2px rgba(38,166,154,0.3); }
  50% { box-shadow: 0 0 10px rgba(38,166,154,0.8); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,235,59,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(38,166,154,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin: 0 auto 40px; }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,235,59,0.15), rgba(255,235,59,0.08));
  border: 1px solid rgba(255,235,59,0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: .3s;
}
.btn-primary:hover {
  background: rgba(255,235,59,0.18);
  border-color: rgba(255,235,59,0.7);
  box-shadow: 0 0 30px rgba(255,235,59,0.15);
  color: var(--accent);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: .3s;
}
.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text-primary);
}

/* ── Stats Strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat-item {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: .3s;
}
.card:hover {
  border-color: rgba(255,235,59,0.2);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(255,235,59,0.08);
  border: 1px solid rgba(255,235,59,0.15);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg-body);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Pricing Cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: .3s;
}
.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-body);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.pricing-tier {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pricing-amount {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-amount span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 12px 0 24px;
  min-height: 40px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(26,30,46,0.5);
}
.pricing-features li::before {
  content: '✓ ';
  color: var(--teal);
  font-weight: 700;
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: .3s;
  text-align: center;
}
.btn-pricing:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pricing-card.featured .btn-pricing {
  background: linear-gradient(135deg, rgba(255,235,59,0.12), rgba(255,235,59,0.06));
  border-color: rgba(255,235,59,0.3);
  color: var(--accent);
}

/* ── Flow / Pipeline ── */
.flow {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
}
.flow-step h4 { color: var(--text-primary); text-transform: none; font-size: 14px; letter-spacing: 0; }
.flow-step p { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.flow-arrow {
  color: var(--accent);
  font-size: 24px;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list { max-width: 700px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Profile / About ── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.profile-stat .stat-value { font-size: 22px; }

.quote-block {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-card) 100%);
}

/* ── Roadmap ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-body);
}
.timeline-item.future::before {
  background: var(--border);
}
.timeline-item h3 { font-size: 16px; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

/* ── Pill / Tag ── */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.pill-gold { background: rgba(255,235,59,0.12); color: var(--accent); border: 1px solid rgba(255,235,59,0.25); }
.pill-teal { background: rgba(38,166,154,0.12); color: var(--teal); border: 1px solid rgba(38,166,154,0.25); }
.pill-blue { background: rgba(100,181,246,0.12); color: var(--blue); border: 1px solid rgba(100,181,246,0.25); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-brand p { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.footer-col h4 { margin-bottom: 16px; color: var(--text-muted); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,7,12,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }

  .hero { min-height: auto; padding: 120px 24px 60px; }
  .stats-strip { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
}

/* ── Fade In Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
