/* ===================== HOMEPAGE ===================== */

/* ---- HERO shell ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 30%, transparent, var(--bg) 92%); }
.hero__inner { position: relative; z-index: 2; }

/* show one variant at a time */
.hero--a, .hero--b { display: none; }
body[data-hero="a"] .hero--c, body[data-hero="b"] .hero--c { display: none; }
body[data-hero="a"] .hero--a { display: block; }
body[data-hero="b"] .hero--b { display: block; }

/* Variant C — layered split */
.hero--c { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-block: clamp(64px, 11vw, 150px); }
.hero__copy h1 { margin-top: 18px; }
.hero__trust { display: flex; flex-direction: column; gap: 12px; }
.hero__trust .mono { font-size: 12px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }
.hero__trust-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Variant A — flow-led (centered copy + big horizontal flow) */
.hero--a { padding-block: clamp(56px, 8vw, 110px); }
.hero__copy--center { max-width: 880px; margin-inline: auto; }

/* Variant B — network-led */
.hero--b { padding-block: clamp(72px, 12vw, 170px); max-width: 940px; }

/* ---- FLOW diagram ---- */
.pipe-card { background: linear-gradient(180deg, var(--surface-2), var(--navy));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); }
.pipe-card__head { display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--text-3); padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.pipe-card__live { display: inline-flex; align-items: center; gap: 7px; color: var(--success); }
.blip { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: blip 1.8s infinite; }
@keyframes blip { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 70%{box-shadow:0 0 0 7px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: flex; align-items: center; gap: 14px; position: relative; }
.flow__node { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--blue-hi); }
.flow__label { font-weight: 500; font-size: 15px; }
.flow__sub { font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* vertical flow (variant C) */
.flow--v li { padding: 11px 6px; }
.flow--v li::before { content: ""; position: absolute; left: 16.5px; top: -10px; height: 12px; width: 1.5px;
  background: linear-gradient(var(--blue), var(--purple)); }
.flow--v li:first-child::before { display: none; }
.flow--v li.lit .flow__node { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent;
  box-shadow: 0 0 22px -4px var(--glow-blue); }

/* horizontal flow (variant A) */
.flow--h { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.flow--h li { flex-direction: column; text-align: center; gap: 10px; padding: 22px 14px; min-width: 132px;
  background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line);
  border-radius: var(--r); margin: 6px; transition: .25s; }
.flow--h li .flow__node { width: 40px; height: 40px; }
.flow--h li.lit { border-color: var(--blue); box-shadow: 0 0 30px -10px var(--glow-blue); transform: translateY(-4px); }
.flow--h li.lit .flow__node { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; border-color: transparent; }
.flow--h .flow__sub { display: none; }

/* strip flow (variant B) */
.flow--strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flow--strip li { padding: 8px 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 100px; }
.flow--strip .flow__node { width: 22px; height: 22px; font-size: 10px; border-radius: 50%; }
.flow--strip .flow__sub { display: none; }
.flow--strip li.lit { border-color: var(--purple); color: var(--text); }
.flow--strip li.lit .flow__node { background: linear-gradient(180deg, var(--purple), #6d28d9); color: #fff; border-color: transparent; }

@media (max-width: 920px) { .hero--c { grid-template-columns: 1fr; gap: 40px; } }

/* ---- HERO switcher ---- */
.hero-switch { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--navy) 88%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-switch__lbl { font-size: 10px; letter-spacing: .16em; color: var(--text-3); padding: 0 8px 0 6px; }
.hero-switch button { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); background: transparent; border: 0;
  padding: 7px 11px; border-radius: 100px; transition: .15s; }
.hero-switch button:hover { color: var(--text); }
.hero-switch button.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; }
@media (max-width: 600px) { .hero-switch__lbl { display: none; } .hero-switch button { padding: 7px 9px; } }

/* ---- LOGO strip ---- */
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-family: var(--mono);
  font-size: 13px; letter-spacing: .12em; color: var(--text-3); }
.logos__row .dot-sep { color: var(--line-2); }

/* ---- EQUATION ---- */
.equation { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--surface), var(--navy));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.eq-term { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 16px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r); }
.eq-term .eq-ico { grid-row: 1 / 3; font-size: 20px; color: var(--blue-hi); }
.eq-term b { font-family: var(--display); font-size: 17px; }
.eq-term i { font-style: normal; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.eq-term--ai { border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.06); }
.eq-term--ai .eq-ico { color: var(--purple-hi); }
.eq-op { text-align: center; font-family: var(--display); font-size: 18px; color: var(--text-3); line-height: 1; }
.eq-op--eq { color: var(--blue-hi); }
.eq-result { text-align: center; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  padding: 16px; border-radius: var(--r); background: linear-gradient(100deg, rgba(59,130,246,.16), rgba(139,92,246,.16));
  border: 1px solid var(--line-2); color: var(--text); }
.eq-result--product { background: linear-gradient(100deg, var(--blue), var(--purple)); border-color: transparent; color: #fff; box-shadow: 0 14px 34px -14px var(--glow-purple); }

/* ---- WHAT grid ---- */
.whatgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .whatgrid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- SHOWCASE cards ---- */
.show-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.show-card__viz { position: relative; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 18px; min-height: 220px; }
.show-card__body { padding: 22px 24px 24px; }
.show-card__industry { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
.show-card h3 { font-size: 21px; margin: 8px 0 14px; }
.show-card__metrics { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.show-metric .v { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.show-metric .v.up { color: var(--success); } .show-metric .v.warn { color: var(--warning); }
.show-metric .k { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.show-card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--blue-hi); font-weight: 500; }
.show-card:hover .show-card__cta .arr { transform: translateX(3px); }

/* mini dashboard pieces */
.mini { font-family: var(--mono); }
.mini-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-3); margin-bottom: 12px; }
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--blue), rgba(37,99,235,.35)); border-radius: 3px 3px 0 0; min-height: 6px; }
.bars .bar.alt { background: linear-gradient(180deg, var(--purple), rgba(139,92,246,.3)); }
.gauge { display: grid; place-items: center; }
.ring-label { font-family: var(--display); font-size: 26px; font-weight: 600; }

/* ---- TIMELINE ---- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.tl-step { padding: 0 18px; position: relative; }
.tl-step::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 1.5px; background: var(--line-2); }
.tl-step:first-child::before { left: 50%; } .tl-step:last-child::before { right: 50%; }
.tl-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 18px; background: var(--navy); border: 1.5px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--blue-hi); }
.tl-step.hot .tl-dot { border-color: var(--blue); background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 0 22px -4px var(--glow-blue); }
.tl-card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-align: center; }
.tl-card h3 { font-size: 17px; margin-bottom: 8px; }
.tl-card p { font-size: 13.5px; margin: 0; }
.tl-card .ph { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .1em; display: block; margin-bottom: 6px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; gap: 24px 0; } .tl-step::before { display: none; } }
@media (max-width: 460px) { .timeline { grid-template-columns: 1fr; } }

/* ---- QUOTES ---- */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote__mark { font-family: var(--display); font-size: 40px; line-height: .6; color: var(--line-2); }
.quote p { font-size: 16px; color: var(--text); margin: 0; line-height: 1.55; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); flex: none; }
.quote__by b { font-size: 14px; font-weight: 600; display: block; }
.quote__by span { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.quote--ph { border-style: dashed; }
.quote--ph .quote__av { background: var(--surface-3); }

/* ---- CTA banner ---- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: linear-gradient(140deg, #0c1530, #0a0f1f 60%, #140c2a); padding: clamp(48px, 7vw, 92px) var(--pad); }
.cta-banner__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.cta-banner__in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }

/* ---- OS HERO (centered) ---- */
.hero-os { max-width: 940px; margin: 0 auto; text-align: center; }
.hero-os h1 { font-size: clamp(36px, 5.6vw, 70px); }
.hero-trust { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-trust .mono { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.hero-trust__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; }

/* ---- execution loop numbered list ---- */
.loopli { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--text); background: linear-gradient(180deg, var(--surface), var(--navy)); }
.loopli:last-child { border-bottom: 0; }
.loopli span { font-family: var(--mono); font-size: 12px; color: var(--blue-hi); width: 22px; flex: none; }

/* ============================================================
   FOUNDRY PIPELINE — spark → production (/journey)
   ============================================================ */
/* vertical pipeline rail inside the .exec card */
.jrail { display: flex; flex-direction: column; gap: 0; }
.jstage { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center;
  gap: 16px; padding-bottom: 22px; }
.jstage--last { padding-bottom: 0; }
/* connector line down to the next stage */
.jstage::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: -2px; width: 2px;
  background: var(--line-2); z-index: 0; }
.jstage--last::before { display: none; }
.jstage__num { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border: 1px solid transparent;
  box-shadow: 0 8px 20px -8px var(--glow-blue); }
.jstage__body { display: flex; flex-direction: column; gap: 2px; }
.jstage__body b { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.jstage__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-3); }

/* journey stage cards */
.jcard__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-hi); margin-bottom: 6px; }
.jcard__out { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.jcard__out li { position: relative; padding-left: 20px; font-size: 13px; color: var(--text-2); }
.jcard__out li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue); }
