/* ── Global section spacing ─────────────────────────────────────────────── */
section {
  position: relative;
}

.section-pad {
  padding: var(--space-32) 0;
}

.section-pad-sm {
  padding: var(--space-20) 0;
}

.section-pad-lg {
  padding: calc(var(--space-32) * 1.5) 0;
}

/* ── Grid utilities ─────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── #hero ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-20)) var(--space-6) var(--space-20);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradient-shift 4s ease infinite;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tertiary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-badge {
  padding: var(--space-2) var(--space-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.hero-chart-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: var(--space-16) auto 0;
}

.hero-chart-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--shadow-glow-purple);
}

.hero-chart-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.topbar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.topbar-dot:nth-child(1) { background: #ef4444; }
.topbar-dot:nth-child(2) { background: var(--yellow); }
.topbar-dot:nth-child(3) { background: var(--green); }

.topbar-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ── #revelation ────────────────────────────────────────────────────────── */
#revelation {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.revelation-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,53,255,0.08) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.revelation-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  text-align: center;
  margin-bottom: var(--space-16);
}

.revelation-statement {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-muted);
  transition: color var(--transition-slow);
}

.revelation-statement.highlight {
  font-weight: 800;
  color: var(--text-primary);
}

.revelation-statement .strike {
  text-decoration: line-through;
  opacity: 0.4;
}

.revelation-closing {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

/* ── #problem ───────────────────────────────────────────────────────────── */
#problem {
  background: var(--bg-secondary);
}

.indicator-chaos {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.chaos-bars {
  display: flex;
  gap: var(--space-1);
  align-items: flex-end;
  height: 140px;
  margin-bottom: var(--space-4);
}

.chaos-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  transition: height 0.5s ease;
}

.chaos-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chaos-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

/* ── #edge ──────────────────────────────────────────────────────────────── */
#edge {
  background: var(--bg-primary);
}

.formula-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.formula-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.formula-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.formula-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.backtest-callout {
  background: linear-gradient(135deg, var(--purple-dim), var(--cyan-dim));
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.backtest-callout__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── #features ──────────────────────────────────────────────────────────── */
#features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.feature-card--single {
  grid-column: span 2;
}

.feature-card--wide {
  grid-column: span 3;
}

.feature-screenshots-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.feature-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

/* ── #proof ─────────────────────────────────────────────────────────────── */
#proof {
  background: var(--bg-primary);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.proof-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.proof-card__caption {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
}

.proof-card__ticker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: var(--space-1);
}

.proof-card__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.proof-screenshot {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.proof-card__date {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: var(--space-2);
}

/* ── #how-it-works ──────────────────────────────────────────────────────── */
#how-it-works {
  background: var(--bg-secondary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: calc(48px + var(--space-8));
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-light), transparent);
}

.step-item__content {}

.step-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step-item__desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── #course ────────────────────────────────────────────────────────────── */
#course {
  background: var(--bg-primary);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ── #indicators ────────────────────────────────────────────────────────── */
#indicators {
  background: var(--bg-secondary);
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.indicator-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.indicator-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.indicator-feature-item::before {
  content: '→';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── #pricing ───────────────────────────────────────────────────────────── */
#pricing {
  background: var(--bg-primary);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  text-align: center;
}

/* ── #faq ───────────────────────────────────────────────────────────────── */
#faq {
  background: var(--bg-secondary);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo img { width: 28px; height: 28px; }

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--text-primary); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
