/* Product panels on the right of the two-column page heroes (Enterprise: Fleet View; Synthetic data: the gates). */
.hero-split { display: grid; grid-template-columns: 1.02fr 1fr; gap: 52px; align-items: center; }
.hero-split h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.ui { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(17,24,39,0.94), rgba(13,21,36,0.94)); box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(79,70,229,0.08); }
.ui::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); background: radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0,212,255,0.08), transparent 70%); }
.ui-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--navy-card); }
.ui-bar .dots { display: flex; gap: 6px; }
.ui-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-dim); }
.ui-bar span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-bar span svg { width: 12px; height: 12px; color: var(--green); flex: none; }
.ui-bar > b { font: 600 0.62rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(16,217,140,0.45); border-radius: 999px; padding: 0.1rem 0.5rem; }
.ui-body { padding: 16px; display: grid; gap: 12px; }
.chip { flex: none; font: 600 0.66rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(251,191,36,0.5); border-radius: 999px; padding: 0.18rem 0.6rem; }
.chip.ok { color: var(--green); border-color: rgba(16,217,140,0.5); }

/* Fleet View panel */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgba(8,12,20,0.55); }
.kpis small { display: block; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }
.kpis b { display: block; font: 700 1.25rem var(--font-display); letter-spacing: -0.02em; margin-top: 2px; }
.kpis b.sm { font-size: 0.92rem; margin: 6px 0 3px; }
.kpis b em { font-style: normal; font-size: 0.72rem; color: var(--slate); font-weight: 500; }
.kpis span { font-size: 0.66rem; color: var(--slate); }
.amb { color: var(--amber); }
.grn { color: var(--green); }
.fleet-tbl { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.fleet-tbl th { text-align: left; font: 600 0.6rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); padding: 0 8px 6px; }
.fleet-tbl td { padding: 7px 8px; border-top: 1px solid rgba(58,69,88,0.4); color: #C9D4F2; font-family: var(--font-mono); font-size: 0.7rem; }
.fleet-tbl td:first-child { font-family: var(--font-body); font-size: 0.76rem; color: var(--white); }
.fleet-tbl tr.wait td { background: rgba(251,191,36,0.05); }
.v { display: inline-block; padding: 0.06rem 0.45rem; border-radius: 5px; border: 1px solid var(--line); color: var(--slate); white-space: nowrap; }
.v.live { color: var(--green); border-color: rgba(16,217,140,0.4); }
.v.pend { color: var(--amber); border-color: rgba(251,191,36,0.45); }
.ev { display: block; width: 74px; height: 6px; border-radius: 6px; background: rgba(58,69,88,0.6); overflow: hidden; }
.ev i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green), #34E3A5); transition: width 1.2s cubic-bezier(.3,.7,.2,1) 0.5s; }
.fleet-ui.in .ev i { width: var(--w); }
.decision { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(251,191,36,0.4); background: rgba(251,191,36,0.06); border-radius: 12px; padding: 10px 12px; }
.decision > div { flex: 1; min-width: 0; }
.decision b { display: block; font: 600 0.82rem var(--font-display); }
.decision small { color: var(--slate); font-size: 0.72rem; }
.pulse-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(251,191,36,0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
.lin { display: flex; align-items: center; gap: 6px; font-size: 0.64rem; color: var(--slate); }
.lin span { border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.5rem; background: rgba(8,12,20,0.55); white-space: nowrap; }
.lin span.g { color: var(--amber); border-color: rgba(251,191,36,0.45); }
.lin i { flex: 1; height: 1px; min-width: 6px; background: linear-gradient(90deg, var(--indigo-light), var(--cyan)); opacity: 0.6; }

/* Synthetic data panel */
.syn-flow { display: grid; grid-template-columns: 1fr 74px 1fr; gap: 8px; align-items: center; }
.tblock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(8,12,20,0.55); }
.tblock .th { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 9px; border-bottom: 1px solid var(--line); font: 600 0.72rem var(--font-display); }
.tblock .th em { font: 500 0.58rem var(--font-body); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim); }
.tblock.real .th em { color: var(--red); }
.tblock.synth .th em { color: var(--green); }
.tblock .r { display: grid; grid-template-columns: 1.5fr 0.6fr 0.7fr 0.6fr; gap: 4px; padding: 5px 9px; font-size: 0.66rem; color: #C9D4F2; border-top: 1px solid rgba(58,69,88,0.3); }
.tblock .th + .r { border-top: 0; }
.tblock .r code { font-size: 0.64rem; color: var(--slate); }
.tblock.real .r { filter: blur(0.6px); opacity: 0.75; }
.tblock.synth .r { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.4s; }
.syn-ui.in .tblock.synth .r { opacity: 1; transform: none; }
.syn-ui.in .tblock.synth .r:nth-child(2) { transition-delay: 0.9s; }
.syn-ui.in .tblock.synth .r:nth-child(3) { transition-delay: 1.1s; }
.syn-ui.in .tblock.synth .r:nth-child(4) { transition-delay: 1.3s; }
.syn-ui.in .tblock.synth .r:nth-child(5) { transition-delay: 1.5s; }
.tblock.synth .r code { color: var(--cyan); }
.engine { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 120px; }
.engine .ring { position: absolute; top: 18px; left: 50%; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; border: 1.5px dashed rgba(0,212,255,0.55); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.engine b { position: absolute; top: 36px; left: 0; right: 0; font: 700 0.72rem var(--font-display); color: var(--cyan); }
.engine small { position: relative; margin-top: 62px; font-size: 0.56rem; line-height: 1.3; color: var(--slate); }
.meters { display: grid; gap: 7px; }
.m { display: grid; grid-template-columns: 88px 1fr 62px; gap: 10px; align-items: center; font-size: 0.7rem; }
.m span { color: var(--slate); font-family: var(--font-mono); font-size: 0.66rem; }
.m b { text-align: right; font: 600 0.7rem var(--font-mono); color: var(--white); }
.bar { position: relative; height: 7px; border-radius: 7px; background: rgba(58,69,88,0.6); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--indigo-light), var(--cyan) 70%, var(--green)); transition: width 1.3s cubic-bezier(.3,.7,.2,1); }
.syn-ui.in .bar i { width: var(--w); }
.syn-ui.in .m:nth-child(2) .bar i { transition-delay: 0.15s; }
.syn-ui.in .m:nth-child(3) .bar i { transition-delay: 0.3s; }
.syn-ui.in .m:nth-child(4) .bar i { transition-delay: 0.45s; }
.syn-ui.in .m:nth-child(5) .bar i { transition-delay: 0.6s; }
.bar s { position: absolute; top: -3px; bottom: -3px; left: var(--at); width: 2px; border-radius: 2px; background: var(--amber); text-decoration: none; }
.verdict { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(16,217,140,0.4); background: rgba(16,217,140,0.06); border-radius: 12px; padding: 10px 12px; }
.verdict > div { flex: 1; min-width: 0; }
.verdict b { display: block; font: 600 0.82rem var(--font-display); }
.verdict small { color: var(--slate); font-size: 0.72rem; }
.verdict .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(16,217,140,0.15); color: var(--green); font-weight: 700; }

/* Release panel (Platform) */
.rel-ui ~ .rail-wrap, .hero-split + .rail-wrap { margin-top: 44px; }
.rel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rel-head small { display: block; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }
.rel-head b { display: block; font: 700 1.3rem var(--font-mono); letter-spacing: -0.01em; color: var(--white); }
.rel-head span { font-size: 0.7rem; color: var(--slate); }
.pins { display: grid; gap: 6px; }
.pins div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,12,20,0.55); font-size: 0.7rem; }
.pins span { color: var(--slate); }
.pins code { font-size: 0.68rem; color: #C9D4F2; white-space: nowrap; }
.pins div:nth-child(1) code { color: var(--cyan); }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.checks li { position: relative; padding-left: 22px; font-size: 0.72rem; color: var(--slate); opacity: 0.35; transition: opacity 0.4s, color 0.4s; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; font-size: 0.6rem; color: var(--slate-dim); border: 1px solid var(--line); transition: all 0.4s; }
.rel-ui.in .checks li { opacity: 1; color: #C9D4F2; }
.rel-ui.in .checks li::before { color: var(--green); border-color: rgba(16,217,140,0.5); background: rgba(16,217,140,0.12); }
.rel-ui.in .checks li:nth-child(1), .rel-ui.in .checks li:nth-child(1)::before { transition-delay: 0.4s; }
.rel-ui.in .checks li:nth-child(2), .rel-ui.in .checks li:nth-child(2)::before { transition-delay: 0.8s; }
.rel-ui.in .checks li:nth-child(3), .rel-ui.in .checks li:nth-child(3)::before { transition-delay: 1.2s; }
.rel-ui.in .checks li:nth-child(4), .rel-ui.in .checks li:nth-child(4)::before { transition-delay: 1.6s; }
.envs { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.env-node { flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; background: rgba(8,12,20,0.55); text-align: center; }
.env-node b { display: block; font: 600 0.8rem var(--font-display); }
.env-node small { font-size: 0.62rem; color: var(--slate); font-family: var(--font-mono); }
.env-node.on { border-color: rgba(0,212,255,0.55); box-shadow: 0 0 18px rgba(0,212,255,0.18); }
.env-node.on small { color: var(--cyan); }
.env-node.gate { border-color: rgba(251,191,36,0.45); }
.env-node.gate small { color: var(--amber); font-family: var(--font-body); }
.envs .wire { position: relative; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--slate-dim), rgba(0,212,255,0.5)); }
.envs .pkt { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pkt 2.6s ease-in-out infinite; }
.envs .wire + .env-node + .wire .pkt { animation-delay: 1.3s; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes pkt { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

@media (max-width: 1080px) { .hero-split { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .fleet-tbl th:nth-child(2), .fleet-tbl td:nth-child(2) { display: none; }
  .lin { flex-wrap: wrap; }
  .lin i { display: none; }
  .syn-flow { grid-template-columns: 1fr; }
  .engine { min-height: 96px; }
  .m { grid-template-columns: 80px 1fr 56px; }
  .checks { grid-template-columns: 1fr; }
  .pins code { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ev i, .bar i, .tblock.synth .r { transition: none; }
  .engine .ring, .pulse-dot, .envs .pkt { animation: none; }
  .checks li, .checks li::before { transition: none; }
}

/* ── landing hero, second pass ── */
.hero.home .container { grid-template-columns: 1.08fr 1fr; align-items: start; }   /* top-aligned: the text starts under the header, not centred on the taller visual */
.hero.home h1 { font-size: clamp(2.1rem, 3.3vw, 2.85rem); max-width: 600px; }
.hero.home .pill b { white-space: nowrap; flex: none; }
@media (max-width: 560px) { .hero.home .pill-more { display: none; } }   /* one line on phones */
@media (min-width: 640px) { .hero.home h1 .grad { white-space: nowrap; } }   /* "released like software." stays one line where it fits */
.machine-wrap { position: relative; margin: 6px 0 150px; }
.machine-wrap::before { content: ""; position: absolute; inset: -12% -8% -14% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 55% 45%, rgba(79,70,229,0.28), rgba(0,212,255,0.08) 55%, transparent 75%); filter: blur(10px); }
.machine-wrap .machine { position: relative; }
.dag .step .st { fill: none; stroke: var(--slate-dim); stroke-width: 1.4; transition: fill 0.3s, stroke 0.3s; }
.dag .step.run .st { fill: var(--cyan); stroke: var(--cyan); animation: st-pulse 1s ease-in-out infinite; }
.dag .step.ok .st { fill: var(--green); stroke: var(--green); }
.dag .step.gate .st { stroke: var(--amber); }
.dag .step.gate.run .st { fill: var(--amber); stroke: var(--amber); }
@keyframes st-pulse { 50% { opacity: 0.35; } }
.dag .step text { font-size: 11px; }

.float { position: absolute; z-index: 3; border-radius: 14px; border: 1px solid var(--line); background: rgba(13,21,36,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.float small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim); }
.score-card { left: 14px; top: calc(100% - 18px); width: 214px; padding: 10px 12px; }   /* below the window, left of the approval: the score, then the decision */
.score-card > div:first-of-type { display: flex; align-items: baseline; gap: 6px; margin: 3px 0 7px; }
.score-card b { font: 700 1.5rem var(--font-display); letter-spacing: -0.02em; }
.score-card span { font-size: 0.72rem; color: var(--slate); }
.score-card em { margin-left: auto; font-style: normal; font-size: 0.66rem; color: var(--green); }
.gates-row { display: flex; gap: 4px; flex-wrap: wrap; }
.gates-row i { font-style: normal; font-size: 0.6rem; color: var(--green); border: 1px solid rgba(16,217,140,0.4); border-radius: 999px; padding: 0.05rem 0.36rem; }
.approve-card { right: 14px; top: calc(100% - 18px); width: 248px;   /* below the window, touching its edge: the steps and the log stay visible */ padding: 11px 13px; border-color: rgba(251,191,36,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(251,191,36,0.12); }
.approve-card .who { display: flex; align-items: center; gap: 9px; }
.approve-card .who > div { flex: 1; }
.approve-card .who b { display: block; font: 600 0.8rem var(--font-display); }
.approve-card .who small { text-transform: none; letter-spacing: 0; font-size: 0.66rem; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 0.66rem var(--font-display); color: #fff; background: linear-gradient(135deg, #B45309, #FBBF24); }
.approve-card .state { font: 600 0.6rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.approve-card .state::before { content: "waiting"; }
.approve-card p { margin: 7px 0 8px; font-size: 0.74rem; color: #C9D4F2; }
.approve-card p b { color: var(--white); }
.btns { display: flex; gap: 6px; }
.btns span { flex: 1; text-align: center; font: 600 0.72rem var(--font-display); padding: 0.4rem 0; border-radius: 8px; border: 1px solid var(--line); color: var(--slate); }
.btns .yes { background: var(--indigo); border-color: var(--indigo); color: #fff; transition: background 0.3s, box-shadow 0.3s; }
.approve-card .reason { display: block; max-height: 0; overflow: hidden; margin-top: 0; text-transform: none; letter-spacing: 0; font-size: 0.68rem; color: var(--slate); font-style: italic; transition: max-height 0.4s, margin 0.4s; }
.machine-wrap.scored .score-card, .machine-wrap.asking .approve-card, .machine-wrap.approved .approve-card { opacity: 1; transform: none; }
.machine-wrap.approved .approve-card { border-color: rgba(16,217,140,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 30px rgba(16,217,140,0.12); }
.machine-wrap.approved .approve-card .state { color: var(--green); }
.machine-wrap.approved .approve-card .state::before { content: "approved"; }
.machine-wrap.approved .btns .yes { background: var(--green); border-color: var(--green); color: var(--navy); box-shadow: 0 0 16px rgba(16,217,140,0.45); }
.machine-wrap.approved .btns .no { opacity: 0.4; }
.machine-wrap.approved .approve-card .reason { max-height: 3em; margin-top: 8px; }
.machine-wrap.asking .btns .yes { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 4px rgba(79,70,229,0.35); } }

@media (min-width: 1081px) and (max-width: 1240px) { .score-card { display: none; } }
@media (max-width: 1080px) { .hero.home .container { grid-template-columns: 1fr; } .approve-card { right: 12px; } }
@media (max-width: 560px) { .score-card { display: none; } .machine-wrap { margin: 8px 0 176px; } .approve-card { left: 8px; right: 8px; width: auto; top: calc(100% + 12px); } }
@media (prefers-reduced-motion: reduce) { .float { transition: none; } .dag .step.run .st, .machine-wrap.asking .btns .yes { animation: none; } }

/* AI build assistance panel: an agent's tool calls, each with its data class */
.ai-ui .ask { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(8,12,20,0.55); }
.ai-ui .ask .who { font: 600 0.6rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0,212,255,0.4); border-radius: 999px; padding: 0.12rem 0.5rem; margin-top: 2px; }
.ai-ui .ask p { font-size: 0.8rem; color: #C9D4F2; line-height: 1.5; }
.ai-ui .ask code { font-size: 0.74rem; color: var(--white); }
.calls { display: grid; gap: 6px; }
.call { display: grid; grid-template-columns: 132px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(58,69,88,0.5); background: rgba(8,12,20,0.4); font-size: 0.72rem; color: #C9D4F2; opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.call code { font-size: 0.7rem; color: var(--cyan); }
.call span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call b { font: 600 0.58rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-dim); }
.call.no { border-color: rgba(248,113,113,0.45); background: rgba(248,113,113,0.06); }
.call.no code, .call.no b { color: var(--red); }
.ai-ui.in .call { opacity: 1; transform: none; }
.ai-ui.in .call:nth-child(2) { transition-delay: 0.25s; }
.ai-ui.in .call:nth-child(3) { transition-delay: 0.5s; }
.ai-ui.in .call:nth-child(4) { transition-delay: 0.75s; }
.ai-ui.in .call:nth-child(5) { transition-delay: 1s; }
.ai-ui.in .call:nth-child(6) { transition-delay: 1.25s; }
.verdict.wait { border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.06); }
.verdict.wait .tick { background: rgba(251,191,36,0.15); color: var(--amber); }
@media (max-width: 560px) { .call { grid-template-columns: 1fr auto; } .call span { grid-column: 1 / -1; grid-row: 2; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .call { transition: none; } }
