/* ==========================================================================
   Concepts.io — /ecosystem
   ========================================================================== */

/* ---------- Hero ---------- */
.ehero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 96px)) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 78% 40%, rgba(0, 113, 227, 0.08), transparent 70%),
    var(--paper);
}
.ehero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.ehero-copy { display: flex; flex-direction: column; gap: 28px; }
.ehero-title { font-size: clamp(52px, 8.4vw, 140px); }
.ehero-title em { color: var(--accent); }
.ehero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.orbit {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: end;
  container-type: inline-size;
}
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit-ring-dash { stroke-dasharray: 2 8; stroke: rgba(0, 113, 227, 0.35); }
.orbit-cross { stroke: var(--line); stroke-width: 1; fill: none; }
.orbit-ticks line { stroke: var(--line-strong); stroke-width: 1; }
.orbit-spin, .orbit-spin-rev { transform-origin: 300px 300px; }
.orbit-pulse { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }
.orbit-pulse-dim { opacity: .6; }
.orbit-pulse-warm { fill: var(--warm); filter: drop-shadow(0 0 8px var(--warm)); }
html.reduced .orbit-spin, html.no-anim .orbit-spin { animation: none; }
.orbit-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.orbit-core b { font-size: clamp(22px, 5cqw, 34px); font-weight: 500; letter-spacing: -0.04em; }
.orbit-core .mono { font-size: 10px; color: var(--fg-muted); }
.orbit-node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(41.667cqw) rotate(calc(var(--a) * -1));
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  text-align: center;
  white-space: nowrap;
  transition: box-shadow .4s, background-color .4s;
}
.orbit-node .mono { font-size: 10px; color: var(--accent); }
.orbit-node b { font-size: clamp(15px, 3cqw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.orbit-node i { font-style: normal; font-size: 12px; color: var(--fg-muted); }
.orbit-node:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 0 40px rgba(0, 113, 227, 0.25); background: rgba(255, 255, 255, 0.95); }

.estats {
  margin-top: clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.estat { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.estat + .estat { padding-left: 24px; border-left: 1px solid var(--line); }
.estat b { font-size: clamp(40px, 4.6vw, 72px); font-weight: 400; letter-spacing: -0.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.estat > span { color: var(--fg-muted); font-size: 14px; }

@media (max-width: 1000px) {
  .ehero-grid { grid-template-columns: 1fr; }
  .orbit { justify-self: center; max-width: 520px; margin-top: 24px; }
}
@media (max-width: 700px) {
  .estats { grid-template-columns: 1fr 1fr; }
  .estat, .estat + .estat { padding: 24px 16px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .estat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .orbit-node {
    padding: 8px 10px; white-space: normal; max-width: 92px; line-height: 1.1;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(38cqw) rotate(calc(var(--a) * -1));
  }
  .orbit-node b { font-size: 13px; }
  .orbit-node i { display: none; }
}

/* ---------- Growth curve ---------- */
.curve-sec { background: var(--paper-2); border-top: 1px solid var(--line); }
.curve-copy { display: flex; flex-direction: column; gap: 20px; justify-self: end; max-width: 58ch; }
.curve {
  position: relative;
  height: clamp(500px, 44vw, 580px);
}
.curve-svg { position: absolute; left: 0; top: 0; width: 100%; height: 66%; overflow: visible; }
.curve-grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.curve-path-bg { stroke: var(--line-strong); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.curve-path { stroke: var(--accent); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 10px rgba(0, 113, 227, 0.5)); }
.walls { position: absolute; inset: 0; }
.wall {
  position: absolute;
  left: var(--x); top: calc(var(--y) * 0.66);
  width: min(250px, 20vw);
  padding: 22px 0 0 18px;
  border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 8px;
}
.wall-pin {
  position: absolute; left: -7px; top: -7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgba(0, 113, 227, 0.1);
}
.wall .mono { color: var(--accent); font-size: 11px; }
.wall h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.wall p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.curve-note {
  margin-top: clamp(32px, 4vw, 56px);
  padding: 28px 32px;
  border-radius: var(--radius);
  background: rgba(0, 113, 227, 0.05);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.18);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--fg-soft);
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 900px) {
  .curve { height: auto; }
  .curve-svg { display: none; }
  .walls { position: static; display: flex; flex-direction: column; gap: 28px; padding-left: 8px; }
  .wall { position: relative; left: auto; top: auto; width: auto; }
  .curve-copy { justify-self: start; }
}

/* ---------- Journey ---------- */
.jtabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.jtab {
  position: relative;
  text-align: left;
  padding: 22px 20px 26px 0;
  font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg-muted);
  display: flex; flex-direction: column; gap: 8px;
  transition: color .4s;
}
.jtab .mono { font-size: 11px; }
.jtab:hover, .jtab.is-active { color: var(--ink); }
.jtab.is-active .mono { color: var(--accent); }
.jtab-bar {
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.jtab.is-active .jtab-bar { transform: scaleX(1); }
.jtabs.is-auto .jtab.is-active .jtab-bar { transform: scaleX(0); animation: jfill var(--jdur, 6s) linear forwards; }
@keyframes jfill { to { transform: scaleX(1); } }

.jpanels { position: relative; margin-top: 16px; }
.jpanel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 380px;
}
.jpanel[hidden] { display: none; }
.jpanel-big {
  font-size: clamp(96px, 13vw, 220px);
  font-weight: 400; letter-spacing: -0.07em; line-height: .8;
  color: rgba(11, 12, 14, 0.08);
}
.jpanel-body { display: flex; flex-direction: column; gap: 18px; }
.jpanel-body > .mono { color: var(--accent); }
.jpanel-body .h3 { font-size: clamp(26px, 2.6vw, 40px); max-width: 24ch; }
.jpanel-issue { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.jpanel-issue .mono { color: var(--fg-muted); font-size: 11px; }
.jpanel-issue p { color: var(--fg-soft); max-width: 52ch; }
.jpanel-pillar {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  isolation: isolate;
}
.jpanel-pillar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.jpanel-pillar:hover::before { transform: translateY(0); }
.jpanel-pillar .mono { font-size: 11px; opacity: .75; }
.jpanel-pillar b { font-size: clamp(30px, 3vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.jpanel-pillar i { font-style: normal; font-size: 28px; align-self: flex-end; transition: transform .5s var(--ease-out); }
.jpanel-pillar:hover i { transform: translateX(6px); }
.journey-note { margin-top: 28px; color: var(--fg-muted); font-size: 11px; line-height: 1.7; max-width: 80ch; }
@media (max-width: 1000px) {
  .jtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jpanel { grid-template-columns: 1fr; }
  .jpanel-big { font-size: 80px; }
}

/* ---------- Pillars ---------- */
.pillars { position: relative; border-top: 1px solid var(--line); }
.pnav {
  position: sticky; top: calc(var(--nav-h) + 12px);
  z-index: 50;
  width: max-content; max-width: calc(100% - 32px);
  margin: 24px auto 0;
  display: flex; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  overflow-x: auto;
  scrollbar-width: none;
}
.pnav::-webkit-scrollbar { display: none; }
.pnav a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-soft);
  white-space: nowrap;
  transition: color .35s;
}
.pnav a span { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); transition: color .35s; }
.pnav-name { font-style: normal; font-family: inherit; }
.pnav a.is-active { color: var(--accent-ink); }
.pnav a.is-active span { color: var(--accent-ink); }
.pnav-bar {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: transform .6s var(--ease-out), width .6s var(--ease-out);
}
.pillar { padding: clamp(80px, 11vw, 160px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.pillar:nth-child(odd of .pillar) { background: var(--paper-2); }
.pillar-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.pillar-side {
  position: sticky; top: calc(var(--nav-h) + 96px);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.pillar-num {
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 400; letter-spacing: -0.075em; line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin-bottom: 12px;
}
.pillar-side .h1 sup { font-size: .3em; vertical-align: super; color: var(--fg-muted); }
sup.sup-s, .pillar-side .h1 sup.sup-s { font-size: .6em; line-height: 0; vertical-align: super; color: inherit; }
.pillar-tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--fg-soft); max-width: 22ch; }
.pillar-side .btn { margin-top: 12px; }
.pillar-main { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.pillar-lede { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: -0.025em; }
.pillar-aside {
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(232, 89, 12, 0.06); box-shadow: inset 0 0 0 1px rgba(232, 89, 12, 0.22);
  display: flex; flex-direction: column; gap: 8px;
}
.pillar-aside .mono { color: var(--warm); font-size: 11px; }
.pillar-aside p { color: var(--fg-soft); font-size: 15px; }
.pillar-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.pillar-cols h3, .offers-label { color: var(--fg-muted); font-weight: 400; font-size: 11px; margin-bottom: 16px; }
.offers-label { margin-bottom: -24px; }
.ticks { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ticks li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft); font-size: 16px; line-height: 1.45;
}
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 20px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.offers { display: grid; gap: 12px; }
.offers-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(11, 12, 14, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; isolation: isolate;
  transition: box-shadow .4s;
}
.offer::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0, 113, 227, 0.12), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.offer:hover::before { opacity: 1; }
.offer:hover { box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.3); }
.offer .mono { color: var(--accent); font-size: 10px; }
.offer b { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.offer p { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.pillar-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.pillar-proof div { display: flex; flex-direction: column; gap: 8px; }
.pillar-proof b { font-size: clamp(48px, 5vw, 80px); font-weight: 400; letter-spacing: -0.055em; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.pillar-proof div > span { color: var(--fg-muted); font-size: 14px; max-width: 32ch; }
.youif {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
}
.youif .mono { font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.youif p { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 1000px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-side { position: static; }
  .offers-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .offers-2, .pillar-proof { grid-template-columns: 1fr; }
  .pnav { top: calc(var(--nav-h) + 6px); }
  .pnav a { padding: 8px 12px; font-size: 13px; }
}

/* ---------- Flow ---------- */
.flow-sec { border-top: 1px solid var(--line); }
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.flow-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 44px; height: 1px;
  background: var(--line-strong);
}
.flow-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--accent); }
.flow-node {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.flow-node .mono {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px; color: var(--accent);
  transition: box-shadow .5s, background-color .5s, color .5s;
}
.flow-node.is-lit .mono { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.1), 0 0 40px rgba(0, 113, 227, 0.35); }
.flow-node b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-top: 8px; }
.flow-node p { color: var(--fg-muted); font-size: 14px; }

.matrix { border-top: 1px solid var(--line); }
.matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2.2fr) minmax(0, 5fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  position: relative;
  transition: padding-left .5s var(--ease-out), background-color .4s;
}
.matrix-head { padding: 16px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
a.matrix-row span:first-child { font-size: 19px; letter-spacing: -0.02em; line-height: 1.35; }
a.matrix-row b { font-weight: 500; font-size: 19px; color: var(--accent); }
a.matrix-row span:last-child { color: var(--fg-muted); font-size: 15px; }
a.matrix-row:hover { padding-left: 16px; background: rgba(11, 12, 14, 0.03); }
@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow-line { display: none; }
  .matrix-head { display: none; }
  .matrix-row { grid-template-columns: 1fr; gap: 8px; }
  a.matrix-row b { order: -1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
}

/* ---------- Getting started + CTA (bone sheet) ---------- */
.start-wrap { padding-top: 24px; }
.start { will-change: clip-path; }
.start-title { font-size: clamp(56px, 9vw, 150px); }
.start-title em, .today .h1 em { color: var(--accent-bright); }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
}
.step-num { font-size: 72px; font-weight: 400; letter-spacing: -0.06em; line-height: .9; color: rgba(255, 255, 255, 0.16); margin-bottom: auto; }
.step h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.step p { color: var(--fg-soft); font-size: 16px; }
.today { margin-top: clamp(96px, 12vw, 180px); display: flex; flex-direction: column; gap: 20px; }
.today .h1 { max-width: 14ch; }
.today-grid {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.today-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden; isolation: isolate;
}
.today-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  clip-path: circle(0% at 100% 0%);
  transition: clip-path .8s var(--ease-in-out);
}
.today-card:hover::before { clip-path: circle(150% at 100% 0%); }
.today-card:hover { color: var(--accent-ink); }
.today-card .mono { font-size: 11px; opacity: .6; }
.today-card b { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.today-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 16px;
  transition: transform .6s var(--ease-out);
}
.today-card:hover .today-arrow { transform: rotate(45deg); }
.today-alt { margin-top: 16px; color: var(--fg-soft); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .today-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-card { min-height: 160px; }
}
