/* ===========================
   SIDESTACK — Theme CSS
   =========================== */

:root {
  --bg: #0a1628;
  --bg-2: #0f2040;
  --bg-card: #132444;
  --fg: #e8eaf0;
  --fg-muted: #8899b4;
  --accent: #b8ff57;
  --accent-dim: rgba(184, 255, 87, 0.12);
  --accent-2: #4f9cf5;
  --border: rgba(255,255,255,0.08);
  --step-active: #b8ff57;
  --step-pending: #2a4060;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner { max-width: 1200px; margin: 0 auto; }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* HERO */
.hero {
  padding: 80px 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(184, 255, 87, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* AGENT LOOP VISUAL */
.agent-loop {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.loop-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  transition: border-color 0.3s ease;
}
.loop-step.active { border-color: var(--accent); }
.loop-step .step-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 12px;
}
.loop-step .step-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.loop-step .step-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.loop-step .step-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.loop-step.active .step-progress {
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  animation: progressPulse 2s ease-in-out infinite;
}
@keyframes progressPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.loop-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 0 auto;
}

/* THE AGENT SECTION */
.theagent { padding: 100px 40px; background: var(--bg-2); }
.theagent-inner { max-width: 1200px; margin: 0 auto; }
.ta-header { text-align: center; margin-bottom: 64px; }
.ta-tag, .hiw-tag, .biz-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(184, 255, 87, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ta-header h2, .hiw-header h2, .biz-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.ta-sub { color: var(--fg-muted); max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }
.ta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.ta-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.ta-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}
.ta-card p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.65; }

/* HOW IT WORKS */
.howitworks { padding: 100px 40px; }
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.hiw-header { text-align: center; margin-bottom: 72px; }
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}
.step-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}
.step-body p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.7; max-width: 560px; }

/* BUSINESSES */
.businesses { padding: 100px 40px; background: var(--bg-2); }
.biz-inner { max-width: 1200px; margin: 0 auto; }
.biz-header { text-align: center; margin-bottom: 64px; }
.biz-sub { color: var(--fg-muted); max-width: 520px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }
.biz-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.biz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.biz-card-primary {
  border-color: rgba(184, 255, 87, 0.3);
  background: linear-gradient(135deg, #132444 0%, #1a2e1a 100%);
}
.biz-card-label {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(184, 255, 87, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.biz-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}
.biz-card p { color: var(--fg-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 24px; }
.biz-metrics { display: flex; gap: 28px; }
.biz-metric { display: flex; flex-direction: column; gap: 3px; }
.metric-val {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.metric-label { font-size: 0.75rem; color: var(--fg-muted); }

/* CLOSING */
.closing { padding: 100px 40px; }
.closing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.closing-statement h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.closing-big {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}
.closing-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.closing-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* FOOTER */
.footer { padding: 48px 40px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { color: var(--fg-muted); font-size: 0.88rem; }
.footer-note { color: var(--fg-muted); font-size: 0.88rem; font-style: italic; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .ta-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hiw-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .step-num { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 24px 80px; }
  .theagent, .howitworks, .businesses, .closing { padding: 72px 24px; }
  .nav { padding: 16px 24px; }
}