/* ============================================================
   HELIOS RE — COMPONENTS
   ============================================================ */

/* ---------- Heading-level fixes (semantic hierarchy, size unchanged) ----------
   These components were previously set a level lower than correct document
   structure allows (e.g. h2 followed directly by h4). The tag was promoted
   in the markup; these rules keep the previous visual size. */
.flow-col h3{ font-size:var(--step-1); }
.pillar-card h3{ font-size:var(--step-1); }
.team-card h3{ font-size:var(--step-1); }
.process-step h3{ font-size:var(--step-1); text-align:center; }
.solution-head h3{ font-size:var(--step-1); margin:0; }
.pipeline-step h3{ color:var(--white); font-family:var(--font-head); margin-block:.4em; font-size:.95rem; }
.dash-head h2{ margin-top:.4em; font-size:var(--step-2); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:.9em 1.6em; border-radius:var(--radius-s);
  font-family:var(--font-head); font-weight:600; font-size:var(--step--1);
  letter-spacing:.01em; white-space:nowrap;
  transition:background var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
  border:1px solid transparent;
}
.btn svg{ width:16px; height:16px; transition:transform var(--dur-s) var(--ease); }
.btn:hover svg{ transform:translateX(3px); }
.btn-primary{ background:var(--olive-600); color:var(--white); }
.btn-primary:hover{ background:var(--olive-700); }
.btn-outline{ background:transparent; color:var(--ink-900); border-color:var(--stone-300); }
.btn-outline:hover{ border-color:var(--ink-900); }
.btn-outline-invert{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.4); }
.btn-outline-invert:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-ghost{ color:var(--olive-700); padding-inline:0; }
.btn-ghost svg{ width:14px; height:14px; }
.btn-block{ width:100%; }
.btn-sm{ padding:.55em 1.2em; font-size:.82rem; }
.btn-sm svg{ width:14px; height:14px; }

/* ---------- Legal pages masthead ---------- */
.legal-mark{ font-family:var(--font-head); font-weight:800; font-size:var(--step-3); letter-spacing:-0.01em; margin-bottom:var(--space-4); }
.legal-mark .helios{ color:var(--olive-600); }
.legal-mark .re{ color:var(--ink-900); }

/* Correct heading level (h2/h3) while preserving the previous h3/h4 visual size */
.legal-h2{ font-size:var(--step-2); }
.legal-h3{ font-size:var(--step-1); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:900;
  background:rgba(251,250,247,.86);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; min-height:82px; gap:var(--space-2); }
.brand{ display:flex; align-items:center; min-width:0; flex:none; transition:transform .2s ease; }
.brand:hover{ transform:scale(1.05); }
.mark-lockup{ width:128px; height:50px; flex:none; image-rendering:-webkit-optimize-contrast; }

.nav-main{ display:flex; align-items:center; gap:var(--space-5); }
.nav-links{ display:flex; align-items:center; gap:var(--space-4); }
.nav-links a{
  font-family:var(--font-head); font-weight:600; font-size:.92rem;
  color:var(--stone-700); position:relative; padding:.3em 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--olive-600); transition:width var(--dur-s) var(--ease);
}
.nav-links a:hover,.nav-links a[aria-current="page"]{ color:var(--ink-900); }
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:var(--space-3); }
.nav-links-cta{ display:none; }

.nav-portal-btn{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  height:38px; padding-inline:14px; border-radius:var(--radius-s);
  border:1px solid var(--stone-300); background:transparent;
  font-family:var(--font-head); font-weight:800; font-size:.86rem; letter-spacing:-0.01em; white-space:nowrap;
  transition:border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.nav-portal-btn .helios{ color:var(--olive-600); }
.nav-portal-btn .rate{ color:var(--ink-900); }
.nav-portal-btn:hover{ border-color:var(--olive-600); background:var(--olive-50); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:26px; padding:.4em;
}
.nav-toggle span{ display:block; width:100%; height:2px; background:var(--ink-900); transition:transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink-900); color:var(--stone-300); padding-block:var(--space-6) var(--space-4); }
.footer-top{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:var(--space-4); padding-bottom:var(--space-5); border-bottom:1px solid var(--line-dark); }
.footer-brand p{ margin-top:var(--space-2); color:var(--stone-300); max-width:34ch; font-size:var(--step--1); }
.footer-col h5{ font-family:var(--font-head); color:var(--white); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:var(--space-2); }
.footer-col li{ margin-bottom:.55em; }
.footer-col a{ font-size:.92rem; color:var(--stone-300); transition:color var(--dur-s) var(--ease); }
.footer-col a:hover{ color:var(--olive-300); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; padding-top:var(--space-3); font-size:.82rem; color:var(--stone-500); }
.footer-social{ display:flex; gap:.8em; }
.footer-social a{ width:34px; height:34px; border:1px solid var(--line-dark); border-radius:100px; display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ border-color:var(--olive-400); }
.footer-social svg{ width:16px; height:16px; }

/* ---------- Cards ---------- */
.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:var(--space-4); transition:border-color var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.card:hover{ border-color:var(--olive-300); box-shadow:var(--shadow-m); transform:translateY(-3px); }
.card .icon-tile{ width:46px; height:46px; border-radius:var(--radius-m); background:var(--olive-50); display:flex; align-items:center; justify-content:center; margin-bottom:var(--space-3); }
.card .icon-tile svg{ width:22px; height:22px; color:var(--olive-600); }
.card h3{ margin-bottom:.5em; font-size:var(--step-1); }
.card p{ color:var(--stone-500); font-size:var(--step--1); }

.pillar-card{ padding:var(--space-4); border-top:2px solid var(--olive-600); background:var(--cream-050); }
.pillar-card .num{ font-family:var(--font-mono); color:var(--olive-500); font-size:.8rem; letter-spacing:.1em; }

/* ---------- Stats strip ---------- */
.stats-strip{ background:var(--ink-900); color:var(--white); }
.stats-strip .grid{ grid-template-columns:repeat(5,1fr); text-align:center; padding-block:var(--space-4); gap:var(--space-2); }
.stats-strip .grid.cols-6{ grid-template-columns:repeat(6,1fr); }
.stat-figure{ font-family:var(--font-head); font-weight:800; font-size:var(--step-3); color:var(--olive-300); }
.stat-label{ font-size:.8rem; color:var(--stone-300); text-transform:uppercase; letter-spacing:.08em; margin-top:.3em; }

/* ---------- Pill / process steps ---------- */
.process-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-3); counter-reset:step; }
.process-step{ position:relative; }
.process-step .step-icon{ width:52px; height:52px; border-radius:100px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; margin:0 auto var(--space-2); background:var(--white); }
.process-step .step-icon svg{ width:22px; height:22px; color:var(--olive-600); }
.process-connector{ position:absolute; top:26px; left:calc(50% + 26px); width:calc(100% + var(--space-3) - 52px); box-sizing:border-box; padding-inline:6px; transform:translateY(-50%); display:flex; align-items:center; }
.process-connector-line{ flex:1; height:1px; background:repeating-linear-gradient(90deg,var(--stone-300) 0 6px, transparent 6px 12px); }
.process-connector-arrow{ flex:none; width:20px; height:20px; border-radius:50%; border:1px solid var(--olive-300); display:flex; align-items:center; justify-content:center; color:var(--olive-600); background:var(--olive-50); margin-inline:4px; }
.process-connector-arrow svg{ width:11px; height:11px; }
.process-step:last-child .process-connector{ display:none; }

/* ---------- Traditional vs Parametric flow ---------- */
.flow-compare{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-5); }
.flow-col{ display:flex; flex-direction:column; }
.flow-col h4{ margin-bottom:var(--space-3); }
.flow-col.traditional h4{ color:var(--stone-500); }
.flow-col.parametric h4{ color:var(--olive-600); }
.flow-chain{ display:flex; flex-direction:column; gap:0; }
.flow-node{
  display:flex; align-items:center; gap:.8em;
  padding:.9em 1.1em; border:1px solid var(--line); border-radius:var(--radius-m);
  background:var(--white); font-family:var(--font-head); font-weight:600; font-size:.92rem;
  opacity:0; transform:translateX(-10px);
  transition:opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), background var(--dur-m) var(--ease);
}
.flow-node .n{ font-family:var(--font-mono); font-size:.72rem; color:var(--stone-500); width:1.4em; }
.flow-node.active{ border-color:var(--olive-500); background:var(--olive-50); }
.flow-node.is-in{ opacity:1; transform:none; }
.flow-arrow{ display:flex; justify-content:center; padding-block:.3em; color:var(--stone-300); }
.flow-arrow svg{ width:16px; height:16px; }
.traditional .flow-node.active{ border-color:var(--stone-300); background:var(--cream-100); }

/* Result callout — emphasised, pinned to the bottom of each column so both
   align regardless of how many chain steps precede them. The description
   reserves a fixed two-line height so the headline itself lines up exactly
   between columns, whatever the text length. */
.flow-result{
  margin-top:auto; padding-top:var(--space-3);
  border-top:2px solid var(--stone-300);
}
.flow-result-top{ display:flex; align-items:center; gap:.7em; margin-bottom:.6em; }
.flow-result-icon{
  flex:none; width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--white); border:1px solid var(--line); color:var(--stone-500);
}
.flow-result-icon svg{ width:19px; height:19px; }
.flow-result strong{ font-family:var(--font-head); font-weight:800; font-size:var(--step-1); color:var(--ink-900); }
.flow-result-badge{ font-family:var(--font-mono); font-size:.66rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:#fff; background:var(--olive-600); padding:.3em .6em; border-radius:100px; }
.flow-result-bar{ display:block; width:100%; height:7px; border-radius:4px; background:var(--stone-100); overflow:hidden; margin-bottom:.6em; }
.flow-result-bar-fill{ display:block; height:100%; border-radius:4px; background:var(--stone-400); }
.parametric .flow-result-bar{ background:var(--olive-100); }
.parametric .flow-result-bar-fill{ background:var(--olive-600); }
.flow-result p{ margin:0; font-size:.84rem; color:var(--stone-500); min-height:2.6em; }
.parametric .flow-result{ border-top-color:var(--olive-500); }
.parametric .flow-result-icon{ background:var(--olive-600); border-color:var(--olive-600); color:#fff; }
.parametric .flow-result strong{ color:var(--olive-700); }

/* ---------- Risk category tabs / grid ---------- */
.risk-tabs-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--space-3); margin-top:var(--space-5); margin-bottom:var(--space-4); }
.risk-tabs-row .risk-tabs{ margin-bottom:0; }
.risk-tabs{ display:flex; flex-wrap:wrap; gap:.6em; margin-bottom:var(--space-4); }
.risk-tab{
  padding:.6em 1.1em; border:1px solid var(--line); border-radius:100px;
  font-family:var(--font-head); font-weight:600; font-size:.85rem; color:var(--stone-500);
  transition:all var(--dur-s) var(--ease);
}
.risk-tab[aria-selected="true"]{ background:var(--ink-900); color:var(--white); border-color:var(--ink-900); }
.risk-panel{ display:none; }
.risk-panel.is-active{ display:block; }
.risk-chip-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:.7em; }
.risk-chip{
  display:flex; align-items:center; gap:.6em; padding:.85em 1em;
  border:1px solid var(--line); border-radius:var(--radius-m); font-size:.9rem; background:var(--white);
}
.risk-chip svg{ width:16px; height:16px; color:var(--olive-600); flex:none; }

/* ---------- Table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-m); }
table.data-table{ width:100%; font-size:.9rem; }
.data-table th{
  text-align:left; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--stone-500); font-weight:600; padding:.9em 1em; border-bottom:1px solid var(--line); background:var(--cream-050);
}
.data-table td{ padding:.9em 1em; border-bottom:1px solid var(--line); vertical-align:middle; }
.data-table tr:last-child td{ border-bottom:0; }
.data-table tr:hover td{ background:var(--olive-50); }

/* ---------- Solutions cards ---------- */
.solution-card{ border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; }
.solution-head{ padding:var(--space-3) var(--space-4); background:var(--ink-900); color:var(--white); display:flex; align-items:center; gap:.8em; }
.solution-head svg{ width:22px; height:22px; color:var(--olive-300); }
.solution-body{ padding:var(--space-4); display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
.solution-field dt{ font-family:var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:var(--stone-500); font-weight:700; margin-bottom:.35em; }
.solution-field dd{ font-size:.92rem; }

/* Equal-height cards with aligned field rows across a row of solution cards */
.solution-grid{ align-items:stretch; grid-template-rows:repeat(10, auto); }
.solution-grid .solution-card{ display:grid; grid-template-rows:subgrid; }
.solution-grid.g-3 .solution-card{ grid-row:1 / span 5; }
.solution-grid.g-2 .solution-card:nth-child(1),
.solution-grid.g-2 .solution-card:nth-child(2){ grid-row:1 / span 5; }
.solution-grid.g-2 .solution-card:nth-child(3),
.solution-grid.g-2 .solution-card:nth-child(4){ grid-row:6 / span 5; }
.solution-grid .solution-body{ display:grid; grid-template-rows:subgrid; grid-row:2 / span 4; grid-template-columns:1fr; gap:var(--space-3); }
.solution-grid .solution-field{ align-self:start; }

/* ---------- Dashboard shell (Technology page) ---------- */
.dash{
  background:var(--cream-050); border:1px solid var(--line); border-radius:var(--radius-l);
  padding:var(--space-4); box-shadow:var(--shadow-s);
}
.dash-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-3); margin-bottom:var(--space-3); flex-wrap:wrap; }
.dash-head h4{ margin-bottom:.2em; }
.dash-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:var(--space-4); }
.dash-grid > *{ min-width:0; }
.panel{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); padding:var(--space-3); min-width:0; }
.panel h3, .panel h4{ font-family:var(--font-head); font-size:.95rem; margin-bottom:.9em; display:flex; align-items:center; justify-content:space-between; }
.panel .panel-sub{ font-size:.76rem; color:var(--stone-500); margin-top:-.6em; margin-bottom:.9em; }
.chart-box{ position:relative; width:100%; height:220px; }
.chart-box canvas{ position:absolute; inset:0; width:100%!important; height:100%!important; }

/* Form controls (quotation demo, contact) */
.field{ margin-bottom:var(--space-3); }
.field label{ display:block; font-family:var(--font-head); font-size:.8rem; font-weight:600; margin-bottom:.4em; color:var(--stone-700); }
.field select,.field input,.field textarea{
  width:100%; padding:.75em .9em; border:1px solid var(--stone-200); border-radius:var(--radius-s);
  background:var(--white); font-size:.92rem; transition:border-color var(--dur-s) var(--ease);
}
.field select:focus,.field input:focus,.field textarea:focus{ border-color:var(--olive-500); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3); }
.field-hint{ font-size:.76rem; color:var(--stone-500); margin-top:.35em; }

.kpi-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:.7em; margin-top:var(--space-3); }
.kpi{ border:1px solid var(--line); border-radius:var(--radius-m); padding:.9em 1em; background:var(--cream-050); min-width:0; }
.kpi .kpi-label{ font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--stone-500); }
.kpi .kpi-value{ font-family:var(--font-head); font-weight:800; font-size:var(--step-1); white-space:nowrap; margin-top:.15em; color:var(--ink-900); }
.kpi .kpi-value.accent{ color:var(--olive-600); }
.kpi .kpi-value small{ font-size:.5em; font-weight:700; color:var(--stone-500); }

.source-row{ display:flex; flex-wrap:wrap; gap:.6em; margin-top:var(--space-3); }
.source-chip{ display:flex; align-items:center; gap:.4em; font-size:.74rem; padding:.4em .7em; border:1px dashed var(--stone-300); border-radius:100px; color:var(--stone-500); }
.source-chip svg{ width:13px; height:13px; }

.tile-chip{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--font-mono); font-size:.72rem; padding:.35em .5em .35em .7em; border-radius:100px; background:var(--olive-50); border:1px solid var(--olive-300); color:var(--olive-700); }
.tile-chip button{ width:16px; height:16px; border-radius:100px; display:flex; align-items:center; justify-content:center; color:var(--olive-700); background:rgba(92,110,61,.15); font-size:.85em; line-height:1; }
.tile-chip button:hover{ background:rgba(92,110,61,.3); }

/* Correlation heatmap */
.heatmap{ display:grid; gap:3px; }
.heatmap .hm-row{ display:contents; }
.heatmap-cell{
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.68rem; border-radius:2px; color:var(--white); cursor:default;
  transition:transform var(--dur-s) var(--ease);
}
.heatmap-cell:hover{ transform:scale(1.08); outline:1px solid var(--ink-900); }
.heatmap-label{ font-family:var(--font-mono); font-size:.66rem; color:var(--stone-500); display:flex; align-items:center; }
.hm-legend{ display:flex; align-items:center; gap:.5em; font-size:.72rem; color:var(--stone-500); margin-top:.8em; }
.hm-legend .scale{ height:8px; flex:1; border-radius:4px; background:linear-gradient(90deg,#EDEFE6,#8FA46A,#3E4C2A); }

/* World tile map */
.tilemap-wrap{ position:relative; background:var(--ink-900); border-radius:var(--radius-m); overflow:hidden; }
#worldmap{ width:100%; height:auto; display:block; }
.tilemap-caption{ display:flex; justify-content:space-between; font-size:.74rem; color:var(--stone-500); padding-top:.6em; }
.map-legend-dot{ display:inline-block; width:7px; height:7px; border-radius:100px; background:var(--olive-400); margin-right:.4em; }

/* Portfolio bar list */
.bar-list{ display:flex; flex-direction:column; gap:.6em; }
.bar-item{ display:grid; grid-template-columns:120px 1fr 60px; align-items:center; gap:.7em; font-size:.84rem; }
.bar-track{ height:9px; background:var(--stone-100); border-radius:6px; overflow:hidden; }
.bar-fill{ height:100%; background:var(--olive-600); border-radius:6px; transition:width var(--dur-l) var(--ease); }

/* Recommendation card */
.reco-card{ border:1px solid var(--olive-300); background:var(--olive-50); border-radius:var(--radius-m); padding:var(--space-3); }
.reco-card .reco-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1em; margin-bottom:.6em; }
.reco-score{ font-family:var(--font-head); font-weight:800; font-size:var(--step-1); color:var(--olive-700); }
.reco-metrics{ display:grid; grid-template-columns:repeat(3,1fr); gap:.6em; margin-top:.8em; font-size:.78rem; }
.reco-metrics dt{ color:var(--stone-500); font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase; }
.reco-metrics dd{ font-family:var(--font-head); font-weight:700; }

/* ---------- Report checklist ---------- */
.report-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.65em; font-size:.86rem; color:var(--stone-700); }
.report-list li{ padding-left:1.5em; position:relative; }
.report-list li::before{ content:""; position:absolute; left:0; top:.48em; width:7px; height:7px; border-radius:50%; background:var(--olive-500); }

/* ---------- Before / after comparison ---------- */
.compare-block{ display:flex; align-items:stretch; gap:var(--space-3); flex-wrap:wrap; margin-top:var(--space-2); }
.compare-col{ flex:1; min-width:220px; border:1px solid var(--line); border-radius:var(--radius-m); padding:var(--space-3); }
.compare-col h4{ font-family:var(--font-head); font-size:.82rem; margin-bottom:.7em; }
.compare-col.after{ border-color:var(--olive-400); background:var(--olive-50); }
.compare-arrow{ flex:none; align-self:center; color:var(--stone-300); }
.compare-arrow svg{ width:22px; height:22px; }

/* ---------- Status flags ---------- */
.flag{ display:inline-flex; align-items:center; padding:.25em .65em; border-radius:100px; font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.flag-warn{ background:rgba(166,67,47,.1); color:var(--danger); }
.flag-ok{ background:var(--olive-50); color:var(--olive-700); }

/* Flow diagram data->pricing */
.pipeline{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-2); flex-wrap:wrap; }
.pipeline-step{ flex:1; min-width:130px; text-align:center; padding:var(--space-3) var(--space-2); border:1px solid var(--line-dark); border-radius:var(--radius-m); background:rgba(255,255,255,.03); }
.pipeline-step .pn{ font-family:var(--font-mono); font-size:.7rem; color:var(--olive-300); }
.pipeline-step p{ font-size:.78rem; color:var(--stone-300); }
.pipeline-arrow{ color:var(--stone-500); flex:none; }
.pipeline-arrow svg{ width:18px; height:18px; }

/* ---------- Hero ---------- */
.hero{ padding-top:var(--space-6); padding-bottom:var(--space-6); background:var(--ink-900); color:var(--white); overflow:hidden; position:relative; }
.hero .container{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-5); align-items:center; }
.hero h1{ color:var(--white); }
.hero .lede{ color:var(--stone-300); margin-top:var(--space-3); max-width:46ch; }
.hero-cta{ display:flex; gap:var(--space-3); margin-top:var(--space-4); flex-wrap:wrap; }
.hero-stats{ display:flex; gap:var(--space-4); margin-top:var(--space-5); flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:var(--font-head); font-size:var(--step-2); color:var(--olive-300); }
.hero-stats div span{ font-size:.78rem; color:var(--stone-300); text-transform:uppercase; letter-spacing:.06em; }

.page-hero{ background:var(--ink-900); color:var(--white); padding-block:var(--space-6) var(--space-5); }
.page-hero .eyebrow{ color:var(--olive-300); }
.page-hero .eyebrow::before{ background:var(--olive-300); }
.page-hero h1{ color:var(--white); margin-top:.3em; }
.page-hero .lede{ color:var(--stone-300); margin-top:var(--space-3); max-width:56ch; }
.page-hero.has-video{ position:relative; overflow:hidden; }
.page-hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(18,20,15,.55) 0%, rgba(18,20,15,.88) 100%); z-index:1; }
.page-hero.has-video .container{ position:relative; z-index:2; }

/* ---------- Platform hero (product showcase) ---------- */
.platform-hero{ background:var(--ink-900); color:var(--white); padding-block:calc(var(--space-6) + 2.5rem) 0; overflow:hidden; }
.platform-hero-head{ position:relative; max-width:60ch; margin-inline:auto; text-align:center; }
.platform-hero-badge{
  display:flex; align-items:center; justify-content:center; width:100%;
  margin-bottom:1cm; background:var(--white); padding-block:.9em; border-radius:0;
  font-family:var(--font-head); font-weight:800; font-size:1.3rem; letter-spacing:-0.01em;
  box-shadow:0 1px 2px rgba(0,0,0,.15);
  transition:box-shadow var(--dur-s) var(--ease);
}
.platform-hero-badge .helios{ color:var(--olive-600); }
.platform-hero-badge .rate{ color:var(--ink-900); }
.platform-hero-badge:hover{ box-shadow:0 4px 10px rgba(0,0,0,.2); }
.platform-hero-head .eyebrow{ justify-content:center; color:var(--olive-300); }
.platform-hero-head .eyebrow::before{ background:var(--olive-300); }
.platform-hero-head h1{ color:var(--white); margin-top:.3em; }
.platform-hero-head .accent-underline{ text-decoration:underline; text-decoration-color:var(--olive-400); text-decoration-thickness:3px; text-underline-offset:6px; }
.platform-hero-head .lede{ color:var(--stone-300); margin-top:var(--space-3); max-width:52ch; margin-inline:auto; }
.platform-hero-head .hero-cta{ justify-content:center; margin-top:var(--space-4); }

.platform-showcase{ display:flex; align-items:flex-end; justify-content:center; gap:0; margin-top:var(--space-6); padding-inline:var(--space-4); }
.app-window{ background:var(--ink-800); border:1px solid var(--line-dark); border-radius:var(--radius-l) var(--radius-l) 0 0; box-shadow:0 40px 70px -20px rgba(0,0,0,.55); overflow:hidden; flex:none; }
.app-window-bar{ display:flex; align-items:center; gap:.9em; padding:.7em 1em; background:var(--ink-700); border-bottom:1px solid var(--line-dark); }
.app-window-bar .dot{ width:8px; height:8px; border-radius:50%; background:var(--stone-500); opacity:.5; }
.app-window-title{ font-family:var(--font-mono); font-size:.68rem; color:var(--stone-300); letter-spacing:.02em; }
.app-window-body{ padding:var(--space-3); }
.app-window-center{ width:min(46vw, 560px); z-index:3; }
.app-window-center .app-window-body{ padding:var(--space-4); }
.app-window-side{ width:min(30vw, 380px); opacity:.8; transform-origin:bottom center; }
.app-window-side.left{ transform:perspective(1600px) rotateY(24deg); margin-right:-54px; z-index:1; }
.app-window-side.right{ transform:perspective(1600px) rotateY(-24deg); margin-left:-54px; z-index:1; }

.mockup-field{ margin-bottom:.7em; }
.mockup-field span{ display:block; font-size:.62rem; color:var(--stone-500); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.3em; }
.mockup-pill{ height:26px; border-radius:5px; background:rgba(255,255,255,.05); border:1px solid var(--line-dark); }
.mockup-kpi-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:.6em; margin-top:var(--space-2); }
.mockup-kpi{ border:1px solid var(--line-dark); border-radius:5px; padding:.5em .6em; }
.mockup-kpi span{ display:block; font-size:.56rem; color:var(--stone-500); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.2em; }
.mockup-kpi strong{ font-family:var(--font-head); font-size:.92rem; color:var(--olive-300); }
.mockup-tilegrid{ display:grid; grid-template-columns:repeat(10,1fr); gap:2px; border-radius:5px; overflow:hidden; margin-bottom:.8em; }
.mockup-tilegrid div{ aspect-ratio:1; background:var(--olive-800); }
.mockup-heatmap{ display:grid; grid-template-columns:repeat(5,1fr); gap:2px; margin-top:.6em; }
.mockup-heatmap div{ aspect-ratio:1; border-radius:2px; }
.mockup-table-row{ display:flex; justify-content:space-between; align-items:center; padding:.5em 0; border-bottom:1px solid var(--line-dark); font-size:.68rem; color:var(--stone-300); }
.mockup-table-row .bar{ height:5px; border-radius:3px; background:var(--olive-500); }
.mockup-bars{ display:flex; align-items:flex-end; gap:.4em; height:70px; margin-top:.8em; }
.mockup-bars div{ flex:1; background:var(--olive-600); border-radius:2px 2px 0 0; }

@media (max-width:900px){
  .app-window-side{ display:none; }
  .app-window-center{ width:100%; max-width:420px; }
}

.app-window-body.is-shot{ padding:0; overflow:hidden; }
.app-window-body.is-shot img{ display:block; width:100%; height:auto; }
.app-window-center .app-window-body.is-shot{ max-height:460px; }
.app-window-center .app-window-body.is-shot img{ object-fit:cover; object-position:top; height:460px; }
.app-window-side .app-window-body.is-shot{ max-height:360px; }
.app-window-side .app-window-body.is-shot img{ object-fit:cover; object-position:top; height:360px; }

/* ---------- Platform showcase grid (real product screenshots) ---------- */
.showcase-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
.showcase-card{ border:1px solid var(--line); border-radius:var(--radius-l); overflow:hidden; background:var(--white); transition:box-shadow var(--dur-m) var(--ease), transform var(--dur-m) var(--ease); }
.showcase-card:hover{ box-shadow:var(--shadow-m); transform:translateY(-3px); }
.showcase-card-shot{ position:relative; height:220px; overflow:hidden; border-bottom:1px solid var(--line); }
.showcase-card-shot img{ display:block; width:100%; height:100%; object-fit:cover; object-position:top; }
.showcase-card-body{ padding:var(--space-4); }
.showcase-card-body h3{ font-size:var(--step-1); margin-bottom:.4em; }
.showcase-card-body p{ color:var(--stone-500); font-size:.9rem; }

@media (max-width:700px){
  .showcase-grid{ grid-template-columns:1fr; }
}

/* ---------- Hero data visualisation ---------- */
.hero-visual{ display:flex; align-items:center; }
.signal-panel{
  width:100%; background:var(--ink-800); border:1px solid var(--line-dark); border-radius:var(--radius-l);
  padding:var(--space-4); box-shadow:var(--shadow-l);
}
.signal-head{ display:flex; justify-content:center; margin-bottom:var(--space-2); }
.signal-flow{ overflow:visible; }
.signal-label{ font-family:var(--font-mono); font-size:8px; letter-spacing:.06em; fill:var(--stone-300); }
.pulse-dot{ animation:pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot{ 0%,100%{ opacity:.5; r:4; } 50%{ opacity:1; r:6; } }
.flow-pulse{ stroke-dashoffset:0; animation:flowDash 5s linear infinite; }
@keyframes flowDash{ to{ stroke-dashoffset:-160; } }

.signal-chart{
  margin-top:var(--space-3); border-radius:var(--radius-m);
  background-color:var(--ink-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px);
  position:relative; overflow:hidden;
}
.signal-chart svg{ display:block; }
#triggerLine{ transform-box:fill-box; }
#ghiCursor{ filter:drop-shadow(0 0 3px rgba(241,244,233,.8)); }
.payout-marker{ animation:payoutPop .5s ease; }
@keyframes payoutPop{ 0%{ r:0; opacity:0; } 60%{ r:6; opacity:1; } 100%{ r:4; opacity:1; } }
.signal-year{ position:absolute; left:12px; bottom:8px; font-family:var(--font-mono); font-size:.64rem; color:var(--stone-500); letter-spacing:.05em; }
.signal-payout-flag{
  position:absolute; top:8px; right:10px; z-index:2;
  font-family:var(--font-head); font-weight:700; font-size:.66rem; letter-spacing:.02em; color:#fff;
  background:var(--danger); padding:.3em .7em; border-radius:100px;
  opacity:0; transform:translateY(-4px); transition:opacity .3s ease, transform .3s ease; pointer-events:none;
}
.signal-payout-flag.is-active{ opacity:1; transform:translateY(0); }

.signal-readout{ display:grid; grid-template-columns:repeat(3,1fr); gap:.6em; margin-top:var(--space-3); }
.signal-readout .kpi-label{ font-family:var(--font-mono); font-size:.64rem; text-transform:uppercase; letter-spacing:.05em; color:var(--stone-500); }
.signal-readout .kpi-value{ font-family:var(--font-head); font-weight:800; font-size:var(--step-1); color:var(--white); margin-top:.15em; }
.signal-readout .kpi-value.accent{ color:var(--olive-300); }
.status-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--olive-300); margin-right:.5em; animation:statusBlink 1.7s ease-in-out infinite; }
@keyframes statusBlink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--olive-600); color:var(--white); padding-block:var(--space-6); text-align:center; }
.cta-band h2{ color:var(--white); }
.cta-band .lede{ color:rgba(255,255,255,.85); margin-inline:auto; }
.cta-band .hero-cta{ justify-content:center; }
.cta-split{ display:grid; grid-template-columns:1fr 1fr; padding-block:0; border-top:1px solid rgba(255,255,255,.12); }
.cta-split > div{ padding:var(--space-5) var(--space-4); display:flex; }
.cta-split .container-narrow{ text-align:center; display:flex; flex-direction:column; align-items:center; flex:1; }
.cta-split .a{ background:var(--olive-600); color:#fff; }
.cta-split .b{ background:var(--ink-900); color:#fff; }
.cta-split h3{ color:#fff; margin-bottom:.4em; }
.cta-split p{ color:rgba(255,255,255,.8); margin-bottom:1em; font-size:.92rem; }
.cta-split .btn{ min-width:230px; margin-top:auto; }
.btn-dark{ background:var(--ink-900); color:var(--white); border-color:var(--ink-900); }
.btn-dark:hover{ background:#000; border-color:#000; }

/* ---------- Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-3); }
.team-card{ border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; }
.team-photo{ aspect-ratio:1/1; background:var(--olive-50); display:flex; align-items:center; justify-content:center; }
.team-photo span{ font-family:var(--font-head); font-weight:800; font-size:1.6rem; color:var(--olive-500); }
.team-meta{ padding:var(--space-3); }
.team-meta h4{ font-size:1rem; }
.team-meta p{ font-size:.8rem; color:var(--stone-500); }

/* ---------- Partners strip ---------- */
.partners-strip{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-5); justify-content:space-between; }
.partners-strip .partner{ font-family:var(--font-head); font-weight:800; font-size:1.1rem; color:var(--stone-300); letter-spacing:.02em; }
.partner-logo{ opacity:.92; transition:opacity var(--dur-s) var(--ease); }
.partner-logo:hover{ opacity:1; }

/* ---------- Form ---------- */
.form-note{ font-size:.8rem; color:var(--stone-500); margin-top:var(--space-3); }
.form-status{ margin-top:var(--space-3); padding:.9em 1.1em; border-radius:var(--radius-m); font-size:.88rem; display:none; }
.form-status.show{ display:block; }
.form-status.success{ background:var(--olive-50); color:var(--olive-700); border:1px solid var(--olive-300); }
.form-status.error{ background:#F7EBE8; color:var(--danger); border:1px solid #E3B8AC; }

/* ---------- Sources ---------- */
.demo-banner{ display:flex; align-items:center; gap:.8em; padding:.8em 1.1em; border-radius:var(--radius-m); background:var(--olive-50); border:1px solid var(--olive-300); color:var(--olive-700); font-size:.85rem; margin-bottom:var(--space-4); }
.demo-banner svg{ width:18px; height:18px; flex:none; }

/* ---------- Helios 5Re proactive monitoring ---------- */
.fiverecap{ max-width:1160px; margin-inline:auto; padding:var(--space-6) var(--space-4); }

.fivere-title{ font-family:var(--font-head); font-weight:800; }
.fivere-title .helios{ color:var(--olive-600); }
.fivere-title .num{ color:var(--ink-900); }
.fivere-title .sub{ color:var(--olive-400); font-weight:700; }

.fivere-wheel{
  position:relative; width:100%; max-width:1040px; margin:var(--space-6) auto 0;
  height:1080px;
}
.fivere-box{
  position:absolute; width:238px; height:280px; transform:translate(-50%,-50%);
  background:var(--cream-050); border-top:2px solid var(--olive-600);
  padding:var(--space-4); z-index:2; box-sizing:border-box;
  box-shadow:0 10px 25px -12px rgba(18,20,15,.18);
}
.fivere-box h3{
  font-family:var(--font-head); font-weight:800; font-size:var(--step-0);
  margin-bottom:.6em; letter-spacing:-0.01em;
}
.fivere-box h3 .re{ color:var(--olive-600); }
.fivere-box ul{ list-style:none; padding:0; margin:0; }
.fivere-box li{
  font-size:.86rem; color:var(--stone-700); line-height:1.5;
  padding-left:1.1em; position:relative; margin-bottom:.5em;
}
.fivere-box li::before{
  content:""; position:absolute; left:0; top:.55em; width:5px; height:5px;
  background:var(--ink-900);
}
.fivere-box li:last-child{ margin-bottom:0; }

/* Pentagon positions — order Review > Reassess > Report > React > Refine > Review */
.fivere-review   { left:calc(50% + 0px);    top:calc(50% - 340px); }
.fivere-reassess { left:calc(50% - 340px);  top:calc(50% - 60px);  }
.fivere-report   { left:calc(50% - 260px);  top:calc(50% + 340px); }
.fivere-react    { left:calc(50% + 260px);  top:calc(50% + 340px); }
.fivere-refine   { left:calc(50% + 340px);  top:calc(50% - 60px);  }

.fivere-mark{
  position:absolute; z-index:0; pointer-events:none;
  width:600px; height:600px; border:4px solid var(--olive-600);
  left:50%; top:50%; transform:translate(-50%,-50%);
}

.fivere-edge-arrow{
  position:absolute; z-index:3; width:30px; height:30px;
  transform:translate(-50%,-50%);
  background:var(--white); border-radius:50%; border:none; box-shadow:none;
  display:flex; align-items:center; justify-content:center;
}
.fivere-edge-arrow svg{ width:15px; height:15px; display:block; }

/* 5 arrows, one per pentagon connection, all reading the same way round:
   Review>Reassess (top-left corner), Reassess>Report (left mid), Report>React (bottom mid),
   React>Refine (right mid), Refine>Review (top-right corner). */
.fivere-arrow-tl { left:calc(50% - 300px); top:calc(50% - 300px); }
.fivere-arrow-tr { left:calc(50% + 300px); top:calc(50% - 300px); }
.fivere-arrow-l  { left:calc(50% - 300px); top:calc(50% + 140px); }
.fivere-arrow-b  { left:calc(50% + 0px);   top:calc(50% + 300px); }
.fivere-arrow-r  { left:calc(50% + 300px); top:calc(50% + 140px); }

@media (max-width: 860px){
  .fivere-wheel{ height:auto; max-width:480px; }
  .fivere-box{ position:static; transform:none; width:auto; margin-bottom:var(--space-3); }
  .fivere-mark, .fivere-edge-arrow{ display:none; }
}
