/* ============================================================
   KELLY LAB — APPROACH PAGE STYLES
   css/approach.css
   ============================================================ */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0 4rem;
}

/* ── KELLY CRITERION EXPLAINER ──────────────────────────── */
#kelly-criterion { padding: 7rem 4rem; position: relative; }

.criterion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1200px;
}

.criterion-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.criterion-left p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1.25rem; }
.criterion-left p strong { color: var(--text-primary); font-weight: 500; }

.formula-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
}

.formula-card::before {
  content: 'KELLY CRITERION';
  position: absolute;
  top: -0.55rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  background: var(--bg-surface);
  color: var(--cyan-glow);
  padding: 0 0.5rem;
}

.formula-display {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 2rem;
}

.formula-display .fvar { color: var(--cyan-glow); }

.formula-table { width: 100%; border-collapse: collapse; }
.formula-table tr { border-top: 1px solid var(--border-subtle); }
.formula-table tr:first-child { border-top: 1px solid rgba(0, 212, 255, 0.2); }

.formula-table td {
  padding: 0.7rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.formula-table td:first-child { color: var(--cyan-glow); width: 2.5rem; font-weight: 500; }
.formula-table td:last-child  { color: var(--text-secondary); }

.insight-box {
  border-left: 2px solid var(--blue-electric);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(26, 95, 255, 0.04);
}

.insight-box h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.insight-box p  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ── RISK BEFORE RETURN ─────────────────────────────────── */
#risk-philosophy { background: var(--bg-light); padding: 7rem 4rem; position: relative; }
#risk-philosophy .section-label { color: var(--blue-core); }
#risk-philosophy .section-label::before { background: var(--blue-core); }

.risk-layout { max-width: 1200px; }

.risk-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 5rem;
  align-items: start;
}

.risk-header h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.8rem); font-weight: 800; color: var(--text-dark); line-height: 1.1; letter-spacing: -0.02em; }
.risk-header p  { font-size: 0.95rem; color: #3A4A62; line-height: 1.9; padding-top: 0.5rem; }

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(10, 13, 20, 0.12);
}

.contrast-col { padding: 2.5rem; }
.contrast-col:first-child { border-right: 1px solid rgba(10, 13, 20, 0.12); background: rgba(10, 13, 20, 0.03); }

.contrast-col-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(10, 13, 20, 0.1);
}

.contrast-col:first-child .contrast-col-label { color: #8A9BB5; }
.contrast-col:last-child .contrast-col-label  { color: var(--blue-core); }

.contrast-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.1rem; }

.contrast-item-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 0.55rem; flex-shrink: 0; }
.contrast-col:first-child .contrast-item-dot { background: #8A9BB5; }
.contrast-col:last-child .contrast-item-dot  { background: var(--blue-core); }

.contrast-item p { font-size: 0.88rem; line-height: 1.7; }
.contrast-col:first-child .contrast-item p { color: #6B7A96; }
.contrast-col:last-child .contrast-item p  { color: #2A3A52; }

/* ── AUTOMATION AS DISCIPLINE ───────────────────────────── */
#automation { padding: 7rem 4rem; position: relative; }

#automation::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.automation-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: start;
  max-width: 1200px;
}

.automation-left h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.automation-left p  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1.25rem; }
.automation-left p strong { color: var(--text-primary); font-weight: 500; }

.bias-list { list-style: none; margin-top: 2rem; }

.bias-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bias-list li:last-child { border-bottom: none; }

.bias-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-glow);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  display: inline-block;
  margin-top: 0.2rem;
  text-align: center;
}

.bias-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.bias-text strong { color: var(--text-primary); font-weight: 500; display: block; margin-bottom: 0.2rem; font-size: 0.9rem; }

.exec-infographic { display: flex; flex-direction: column; gap: 0; }

.exec-infographic-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-glow);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.exec-flow-step { display: flex; align-items: stretch; gap: 1.25rem; position: relative; }

.exec-flow-left { display: flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; }

.exec-flow-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.exec-flow-icon svg { width: 18px; height: 18px; }

.exec-flow-line { width: 1px; flex: 1; min-height: 20px; margin: 4px 0; }

.exec-flow-body { padding: 0 0 1.75rem 0; flex: 1; }
.exec-flow-step:last-child .exec-flow-body { padding-bottom: 0; }

.exec-flow-label { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; line-height: 1.3; }
.exec-flow-desc  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

.exec-flow-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.icon-blue  { background: rgba(26, 95, 255, 0.15);  border: 1px solid rgba(26, 95, 255, 0.35); }
.icon-cyan  { background: rgba(0, 212, 255, 0.12);  border: 1px solid rgba(0, 212, 255, 0.3); }
.icon-green { background: rgba(100, 210, 140, 0.12); border: 1px solid rgba(100, 210, 140, 0.3); }
.icon-amber { background: rgba(255, 190, 50, 0.12); border: 1px solid rgba(255, 190, 50, 0.3); }
.icon-red   { background: rgba(255, 100, 100, 0.12); border: 1px solid rgba(255, 100, 100, 0.3); }

.line-blue  { background: linear-gradient(180deg, rgba(26,95,255,0.4), rgba(0,212,255,0.2)); }
.line-cyan  { background: linear-gradient(180deg, rgba(0,212,255,0.4), rgba(100,210,140,0.2)); }
.line-green { background: linear-gradient(180deg, rgba(100,210,140,0.4), rgba(255,190,50,0.2)); }
.line-amber { background: linear-gradient(180deg, rgba(255,190,50,0.4), rgba(255,100,100,0.2)); }

.badge-blue  { background: rgba(26,95,255,0.12);   color: #7EAAFF; }
.badge-cyan  { background: rgba(0,212,255,0.1);    color: var(--cyan-glow); }
.badge-green { background: rgba(100,210,140,0.12); color: #7ED4A0; }
.badge-amber { background: rgba(255,190,50,0.1);   color: #FFD580; }
.badge-red   { background: rgba(255,100,100,0.1);  color: #FF9090; }

/* ── RESEARCH LOOP ──────────────────────────────────────── */
#research-loop {
  padding: 7rem 4rem;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#research-loop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(26, 95, 255, 0.07), transparent);
  pointer-events: none;
}

.loop-header { max-width: 700px; margin-bottom: 5rem; }
.loop-header h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.loop-header p  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; }

.loop-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1200px;
  position: relative;
}

.loop-step-v { padding: 0 1.25rem; position: relative; z-index: 1; }
.loop-step-v:last-child { padding-right: 0; }

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-glow);
  margin-bottom: 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}

.loop-step-v:hover .step-circle { background: rgba(0, 212, 255, 0.1); box-shadow: 0 0 20px rgba(0, 212, 255, 0.25); }

.step-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; line-height: 1.3; }
.step-desc  { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }

/* ── DIFFERENTIATORS ────────────────────────────────────── */
#differentiators { background: var(--bg-light); padding: 7rem 4rem; }
#differentiators .section-label { color: var(--blue-core); }
#differentiators .section-label::before { background: var(--blue-core); }

.diff-header { margin-bottom: 4rem; max-width: 600px; }
.diff-header h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.8rem); font-weight: 800; color: var(--text-dark); line-height: 1.1; letter-spacing: -0.02em; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1200px;
  background: rgba(10, 13, 20, 0.1);
}

.diff-card { background: var(--bg-light); padding: 2.5rem; transition: background 0.3s; }
.diff-card:hover { background: #fff; }

.diff-number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; color: rgba(26, 95, 255, 0.12); line-height: 1; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.diff-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.diff-card p  { font-size: 0.88rem; color: #3A4A62; line-height: 1.8; }

/* ── CTA BAND ───────────────────────────────────────────── */
#approach-cta {
  padding: 6rem 4rem;
  background: linear-gradient(135deg, var(--bg-deep) 0%, rgba(13, 27, 42, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

#approach-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 70% 50%, rgba(0, 212, 255, 0.05), transparent);
  pointer-events: none;
}

.cta-inner {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-text h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.cta-text p  { font-size: 0.95rem; color: var(--text-secondary); max-width: 480px; line-height: 1.8; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.reveal-delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .criterion-layout,
  .automation-layout { grid-template-columns: 1fr; gap: 3rem; }
  .risk-header { grid-template-columns: 1fr; gap: 2rem; }
  .loop-steps  { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .diff-grid   { grid-template-columns: 1fr 1fr; }
  .cta-inner   { grid-template-columns: 1fr; }
  .section-divider { margin: 0 2rem; }
}

@media (max-width: 768px) {
  .loop-steps    { grid-template-columns: 1fr; }
  .diff-grid     { grid-template-columns: 1fr; }
  .contrast-grid { grid-template-columns: 1fr; }
  .contrast-col:first-child { border-right: none; border-bottom: 1px solid rgba(10,13,20,0.12); }
  .section-divider { margin: 0 1.5rem; }
}
