/* ═══════════════════════════════════════════════════════════
   MEV Home Page CSS
═══════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  background: var(--navy-deep);
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  /* boxes pattern removed — replaced by animated connected-nodes canvas */
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.hero-glow-1 {
  width: 600px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -100px; left: -100px; animation: float 8s ease-in-out infinite;
}
.hero-glow-2 {
  width: 500px; height: 300px;
  background: radial-gradient(circle, var(--steel) 0%, transparent 70%);
  bottom: -80px; right: -80px; animation: float 10s ease-in-out infinite reverse;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 120px 32px 80px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 28px; max-width: 900px;
}
.hero-badge { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 300; line-height: 0.95;
  color: var(--white); letter-spacing: -3px;
}
.hero-title-line1 {
  display: block;
  font-weight: 300;
  color: var(--white);
}
.hero-title-line2 {
  display: block;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,0.65);
  line-height: 1.6; max-width: 560px;
}
.hero-sub em { color: var(--gold); font-style: italic; }
.hero-formula {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.formula-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); opacity: 0.7;
}
.formula-eq {
  font-family: var(--font-mono); font-size: 26px;
  font-weight: 500; color: var(--gold); letter-spacing: 1px;
}
.formula-sub {
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* ── What Section ──────────────────────────────────────── */
.what-section { background: var(--white); }
.what-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.what-desc { font-size: 16px; color: var(--gray-600); line-height: 1.8; }
.what-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill {
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--light); border: 1px solid rgba(13,27,62,0.1);
}

/* Flow Diagram */
.flow-diagram {
  background: var(--off-white);
  border-radius: var(--radius-xl); padding: 32px;
  border: 1px solid var(--gray-200);
}
.flow-step {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.flow-step:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.flow-step-gold { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.flow-step-accent { border-color: var(--steel); background: rgba(46,95,163,0.04); }
.flow-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--gold); min-width: 28px;
}
.flow-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.flow-desc { font-size: 12px; color: var(--gray-600); margin-top: 2px; font-family: var(--font-mono); }
.flow-arrow {
  text-align: center; color: var(--gold); font-size: 18px;
  margin: 6px 0; opacity: 0.5;
}

/* ── Components Section ────────────────────────────────── */
.comp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.comp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.comp-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.comp-icon { font-size: 28px; margin-bottom: 16px; }
.comp-name {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; color: var(--white); margin-bottom: 8px;
}
.comp-formula {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--gold); margin-bottom: 12px; letter-spacing: 0.5px;
}
.comp-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── Stats ─────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.stat-item {
  padding: 40px 32px; text-align: center;
  background: var(--white); border-right: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--off-white); }
.stat-number {
  font-family: var(--font-display); font-size: 56px;
  font-weight: 300; color: var(--navy); line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: var(--gray-400); letter-spacing: 0.5px; }

/* ── Diapause Section ──────────────────────────────────── */
.diapause-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.kangaroo-states { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.k-state { display: flex; align-items: flex-start; gap: 14px; }
.k-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.k-dot-active  { background: var(--meze); box-shadow: 0 0 8px rgba(26,107,58,0.4); }
.k-dot-growing { background: var(--gold); box-shadow: 0 0 8px rgba(201,168,76,0.4); }
.k-dot-dormant { background: var(--gray-200); border: 2px solid var(--gray-400); }
.k-state-name  { font-size: 15px; font-weight: 700; color: var(--navy); font-family: var(--font-mono); }
.k-state-desc  { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

.phase-display {
  display: flex; gap: 12px; align-items: stretch;
  margin-bottom: 24px;
}
.phase-item {
  flex: 1; padding: 20px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-200);
  text-align: center; transition: var(--transition);
}
.phase-item:hover { border-color: var(--gold); }
.phase-active { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.phase-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.phase-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.phase-eq { font-family: var(--font-mono); font-size: 13px; color: var(--steel); margin-bottom: 8px; }
.phase-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5; }
.phase-arrow { color: var(--gold); font-size: 20px; display: flex; align-items: center; opacity: 0.5; }

.diapause-formula-box {
  background: var(--navy);
  border-radius: var(--radius-md); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.formula-line {
  font-family: var(--font-mono); font-size: 14px; color: var(--gold); font-weight: 500;
}
.formula-line.sub { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ── Implementation Section ────────────────────────────── */
.impl-card-wrap { max-width: 720px; margin: 0 auto; }
.impl-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-md); border-left: 5px solid var(--meze);
}
.impl-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.impl-card-name {
  font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--navy);
}
.impl-card-org { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.impl-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.impl-card-desc { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.impl-card-components { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.comp-tag {
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
}
.comp-tag-done    { background: rgba(26,107,58,0.08);  color: var(--meze);    border: 1px solid rgba(26,107,58,0.2); }
.comp-tag-pending { background: rgba(201,168,76,0.08); color: var(--gold-dim); border: 1px solid rgba(201,168,76,0.2); }
.impl-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CTA Section ───────────────────────────────────────── */
.cta-section { position: relative; overflow: hidden; }
/* boxes pattern removed — animated connected-nodes canvas is injected by JS */

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .what-grid, .diapause-grid { grid-template-columns: 1fr; gap: 40px; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 80px 20px 60px; }
  .comp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .phase-display { flex-direction: column; }
  .phase-arrow { transform: rotate(90deg); align-self: center; }
}
