/* ============================================================
   Pythia product page — extends style.css
   ============================================================ */

/* ---------- Product hero ---------- */
.phero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(124, 108, 240, 0.12), transparent 65%),
    var(--bg);
}
.phero__grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 108, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 240, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.phero__orb {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  background: radial-gradient(circle, rgba(124, 108, 240, 0.5), transparent 65%);
  top: -140px; right: -60px;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite alternate;
}
.phero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.phero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: 600 12px var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.phero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.phero__title .grad {
  background: linear-gradient(95deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phero__tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text);
  margin-bottom: 22px;
  font-weight: 500;
}
.phero__sub { color: var(--text-dim); font-size: 17px; max-width: 540px; margin-bottom: 32px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-dim); font-size: 13.5px; }
.phero__meta strong { color: var(--text); font-family: var(--font-mono); }

/* ---------- CTEM ring (hero visual) ---------- */
.ctem-ring {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.ctem-ring__orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(124, 108, 240, 0.28);
  animation: spin 60s linear infinite;
}
.ctem-ring__orbit::after {
  content: "";
  position: absolute; inset: 34px;
  border-radius: 50%;
  border: 1px solid rgba(76, 201, 240, 0.14);
}
.ctem-ring__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(124, 108, 240, 0.22), transparent 72%);
  border: 1px solid rgba(124, 108, 240, 0.35);
}
.ctem-ring__core-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: clamp(18px, 2.4vw, 26px);
}
.ctem-ring__core-tag { font-size: 11px; color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase; }
.ctem-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 96px;
  margin: -48px 0 0 -48px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border);
  background: rgba(13, 11, 30, 0.9);
  backdrop-filter: blur(8px);
  font: 600 11.5px var(--font-display);
  color: var(--text-dim);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ctem-node span { display: block; font-size: 9px; letter-spacing: 0.12em; opacity: 0.7; margin-top: 2px; }
/* 5 nodes at 72° apart, kept inside the orbit edge */
.ctem-node--1 { transform: rotate(-90deg)  translate(168px) rotate(90deg); }
.ctem-node--2 { transform: rotate(-18deg)  translate(168px) rotate(18deg); }
.ctem-node--3 { transform: rotate(54deg)   translate(168px) rotate(-54deg); }
.ctem-node--4 { transform: rotate(126deg)  translate(168px) rotate(-126deg); }
.ctem-node--5 { transform: rotate(198deg)  translate(168px) rotate(-198deg); }
.ctem-node--active {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(124, 108, 240, 0.35), rgba(76, 201, 240, 0.2));
  box-shadow: 0 0 0 1px rgba(124, 108, 240, 0.4), 0 0 40px rgba(124, 108, 240, 0.4);
  animation: nodePulse 2.6s ease-in-out infinite;
}
@keyframes nodePulse {
  50% { box-shadow: 0 0 0 1px rgba(124, 108, 240, 0.6), 0 0 60px rgba(124, 108, 240, 0.6); }
}

/* ---------- CTEM explainer band ---------- */
.ctem-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ctem-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ctem-step:hover { transform: translateY(-5px); border-color: rgba(124, 108, 240, 0.4); }
.ctem-step--active {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(124, 108, 240, 0.14), rgba(76, 201, 240, 0.06));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.ctem-step__num {
  font: 700 13px var(--font-mono);
  color: var(--accent-2);
  margin-bottom: 10px;
}
.ctem-step__title { font-family: var(--font-display); font-size: 15.5px; margin-bottom: 8px; }
.ctem-step__desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.ctem-step__badge {
  display: inline-block;
  margin-top: 12px;
  font: 600 10px var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.35);
}

/* ---------- CTEM coverage matrix ---------- */
.cover { display: grid; gap: 14px; margin-top: 44px; }
.cover-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 24px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cover-row:hover { border-color: rgba(124, 108, 240, 0.4); transform: translateX(4px); }
.cover-row--hot {
  border-color: rgba(124, 108, 240, 0.55);
  background: linear-gradient(140deg, rgba(124, 108, 240, 0.12), rgba(76, 201, 240, 0.04));
}
.cover-row__phase .num {
  font: 700 12px var(--font-mono);
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
}
.cover-row__phase h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.cover-row__phase .goal { color: var(--text-dim); font-size: 12.5px; }
.cover-row__how p { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.cover-row__how p strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 11px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.chip--pythia { color: #b3a7f7; border-color: rgba(124, 108, 240, 0.5); background: rgba(124, 108, 240, 0.12); }
.chip--svc { color: #7fd8f7; border-color: rgba(76, 201, 240, 0.45); background: rgba(76, 201, 240, 0.1); }
.chip--roadmap { color: var(--text-dim); border-style: dashed; }

@media (max-width: 768px) {
  .cover-row { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  counter-reset: step;
}
.pipe-step {
  flex: 1 1 150px;
  position: relative;
  padding: 24px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pipe-step:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 108, 240, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.pipe-step__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.pipe-step__icon svg { width: 22px; height: 22px; }
.pipe-step__where {
  font: 600 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pipe-step__where--public { color: #febc2e; }
.pipe-step__where--local { color: var(--ok); }
.pipe-step__title { font-family: var(--font-display); font-size: 15px; margin-bottom: 7px; }
.pipe-step__desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.pipe-note {
  margin-top: 20px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-dim);
}
.pipe-note b { font-family: var(--font-mono); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot--public { background: #febc2e; }
.dot--local { background: var(--ok); }

/* ---------- Moat / feature split ---------- */
.moat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.moat-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 38px 34px;
  overflow: hidden;
}
.moat-card__glow {
  position: absolute; top: -100px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  filter: blur(80px); opacity: 0.25; pointer-events: none;
}
.moat-card__glow--a { background: radial-gradient(circle, var(--accent), transparent 70%); }
.moat-card__glow--b { background: radial-gradient(circle, var(--accent-2), transparent 70%); }
.moat-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
  margin-bottom: 20px;
}
.moat-card__icon svg { width: 26px; height: 26px; }
.moat-card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 12px; }
.moat-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.moat-card__proof {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ok);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(94, 230, 168, 0.25);
  background: rgba(94, 230, 168, 0.06);
}

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feat:hover { transform: translateY(-5px); border-color: rgba(124, 108, 240, 0.4); }
.feat__icon { color: var(--accent-2); margin-bottom: 14px; }
.feat__icon svg { width: 24px; height: 24px; }
.feat h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.feat p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- Outcome stats ---------- */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.outcome__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.outcome__label { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(124, 108, 240, 0.16), transparent 70%),
    var(--surface);
  padding: 60px 40px;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .phero__inner { grid-template-columns: 1fr; gap: 48px; }
  .ctem-band { grid-template-columns: repeat(2, 1fr); }
  .moat { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .ctem-band, .feat-grid { grid-template-columns: 1fr; }
  .ctem-ring { max-width: 320px; }
  .ctem-node { width: 78px; margin: -39px 0 0 -39px; font-size: 10px; }
  .ctem-node--1 { transform: rotate(-90deg)  translate(118px) rotate(90deg); }
  .ctem-node--2 { transform: rotate(-18deg)  translate(118px) rotate(18deg); }
  .ctem-node--3 { transform: rotate(54deg)   translate(118px) rotate(-54deg); }
  .ctem-node--4 { transform: rotate(126deg)  translate(118px) rotate(-126deg); }
  .ctem-node--5 { transform: rotate(198deg)  translate(118px) rotate(-198deg); }
}
