/* Compound Pulse homepage — command-centre styling, same language as the Automation Lab (lab.css).
   Scoped to .home-page; the site header/footer come from umbrella.css + experience.css. */

.home-page {
  --h-bg: #040807;
  --h-bg-2: #071010;
  --h-panel: rgba(9, 19, 18, 0.78);
  --h-panel-2: rgba(14, 27, 26, 0.92);
  --h-line: rgba(140, 225, 235, 0.13);
  --h-line-2: rgba(140, 225, 235, 0.24);
  --h-text: #eef5f2;
  --h-soft: #c9d6d1;
  --h-muted: #9aada7;
  --cyan: #3fe0ff;
  --lime: #c8ff5b;
  --amber: #ffd166;
  --hud: 'Orbitron', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --metal: linear-gradient(180deg, #ffffff 0%, #dbe6e2 40%, #8f9f9a 54%, #f3f8f6 100%);
  --lime-cyan: linear-gradient(90deg, #d6ff7d 0%, #c8ff5b 30%, #3fe0ff 100%);
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(63, 224, 255, 0.1), transparent 70%),
    radial-gradient(700px 480px at 8% 18%, rgba(200, 255, 91, 0.06), transparent 70%),
    var(--h-bg);
  color: var(--h-text);
  font-family: Inter, system-ui, sans-serif;
}
.home-page .header { background: transparent; border-bottom-color: var(--h-line); }
.home-page .header-cta { border-color: rgba(200, 255, 91, 0.45); color: var(--lime); }
.home-page .header-cta:hover { border-color: var(--lime); box-shadow: 0 0 18px rgba(200, 255, 91, 0.25); }
.home-page .footer { border-top-color: var(--h-line); }
.home { overflow-x: clip; }
.home :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.home a { color: inherit; }

.home-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 11px/1 var(--hud); letter-spacing: 0.22em; color: var(--cyan); }
.home-kicker span { width: 22px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad { background: var(--lime-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(63, 224, 255, 0.22)); }

/* ---------------------------------------------------------------- buttons */
.home-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 12px; font: 700 15px/1 Inter, sans-serif; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.home-btn.primary { background: linear-gradient(180deg, #e2ff9a 0%, var(--lime) 55%, #a8e03a 100%); color: #08100a; box-shadow: 0 0 0 1px rgba(200, 255, 91, 0.6), 0 10px 34px rgba(200, 255, 91, 0.28); }
.home-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(200, 255, 91, 0.9), 0 14px 42px rgba(200, 255, 91, 0.4); }
.home-btn.ghost { border: 1px solid var(--h-line-2); color: var(--h-text); background: rgba(255, 255, 255, 0.02); }
.home-btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(63, 224, 255, 0.2); }
.home-btn.small { padding: 12px 18px; font-size: 14px; }
.home-link { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--h-text); border-bottom: 1px solid rgba(63, 224, 255, 0.45); padding-bottom: 3px; }
.home-link:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- hero */
.hp-hero { max-width: 1280px; margin: 0 auto; padding: 44px 32px 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 52px; align-items: start; }
.hp-hero h1 { margin: 0; font: 800 clamp(38px, 4.1vw, 58px)/1.04 Inter, sans-serif; letter-spacing: -0.035em; }
.hp-hero h1 .metal, .hp-hero h1 .grad { display: block; }
.hp-hero h1 .grad { margin-top: 6px; }
.hp-lede { margin: 20px 0 0; max-width: 620px; font-size: 17.5px; line-height: 1.6; color: var(--h-soft); }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.hp-actions.center { justify-content: center; }
.hp-for { margin: 26px 0 0; max-width: 560px; font-size: 14px; color: var(--h-muted); }

/* the command-centre simulation */
.hud { position: relative; margin: 0; padding: 22px; border-radius: 22px; border: 1px solid var(--h-line-2); background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 38%), var(--h-panel-2); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(63, 224, 255, 0.05) inset, 0 0 60px rgba(63, 224, 255, 0.07); overflow: hidden; }
.hud::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px); pointer-events: none; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-title { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--hud); letter-spacing: 0.2em; color: var(--h-text); }
.hud-led { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: hud-blink 1.6s ease-in-out infinite; }
.hud-pill { font: 700 10px/1 var(--hud); letter-spacing: 0.18em; color: var(--amber); border: 1px solid rgba(255, 209, 102, 0.45); padding: 6px 9px; border-radius: 999px; }
.hud-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.hud-stats div { padding: 12px; border-radius: 12px; border: 1px solid var(--h-line); background: rgba(4, 10, 10, 0.6); min-width: 0; }
.hud-stats span { display: block; font-size: 11px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-stats b { display: block; margin-top: 6px; font: 700 24px/1 var(--hud); color: var(--cyan); text-shadow: 0 0 16px rgba(63, 224, 255, 0.45); font-variant-numeric: tabular-nums; }
.hud-stats div:nth-child(3) b { color: var(--lime); text-shadow: 0 0 16px rgba(200, 255, 91, 0.45); }
.hud-wave { display: block; width: 100%; height: 46px; margin: 12px 0 4px; }
.hud-wave path { fill: none; stroke: var(--cyan); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(63, 224, 255, 0.7)); }
.hud-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 250px; align-content: start; }
.hud-feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--h-line); background: rgba(4, 10, 10, 0.55); animation: feed-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hud-feed li:first-child { border-color: rgba(63, 224, 255, 0.4); box-shadow: 0 0 24px rgba(63, 224, 255, 0.12); }
.feed-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(63, 224, 255, 0.1); color: var(--cyan); }
.feed-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed-main { min-width: 0; }
.feed-main strong { display: block; font-size: 14px; font-weight: 600; color: var(--h-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-main small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-chip { font: 700 9.5px/1 var(--hud); letter-spacing: 0.14em; padding: 6px 8px; border-radius: 999px; white-space: nowrap; color: var(--lime); border: 1px solid rgba(200, 255, 91, 0.4); background: rgba(200, 255, 91, 0.06); }
.feed-chip.cyan { color: var(--cyan); border-color: rgba(63, 224, 255, 0.4); background: rgba(63, 224, 255, 0.06); }
.feed-chip.amber { color: var(--amber); border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.06); }
.hud figcaption { margin-top: 14px; font-size: 12px; color: var(--h-muted); }

/* ---------------------------------------------------------------- stack strip */
.stack { max-width: 1280px; margin: 10px auto 0; padding: 26px 32px; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center; }
.stack-label { margin: 0; font: 700 10px/1 var(--hud); letter-spacing: 0.22em; color: var(--h-muted); }
.stack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.stack-list li { font: 700 17px/1.2 Inter, sans-serif; letter-spacing: -0.01em; color: #dfe9e5; opacity: 0.88; }
.stack-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11.5px; color: var(--h-muted); opacity: 0.8; }

/* ---------------------------------------------------------------- sections */
.home-section { max-width: 1280px; margin: 0 auto; padding: 96px 32px 10px; scroll-margin-top: 20px; }
.home-section h2, .home-final h2 { margin: 0; max-width: 900px; font: 800 clamp(32px, 4vw, 52px)/1.06 Inter, sans-serif; letter-spacing: -0.03em; color: var(--h-text); }
.section-lede { margin: 18px 0 0; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--h-soft); }
.section-more { margin: 28px 0 0; }
.section-more a { font-weight: 700; color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(63, 224, 255, 0.35); }

.module-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module { position: relative; padding: 24px; border-radius: 18px; border: 1px solid var(--h-line); background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%), var(--h-panel); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.module:hover { border-color: rgba(63, 224, 255, 0.45); box-shadow: 0 0 34px rgba(63, 224, 255, 0.12); transform: translateY(-3px); }
.module-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(63, 224, 255, 0.09); border: 1px solid rgba(63, 224, 255, 0.28); box-shadow: 0 0 20px rgba(63, 224, 255, 0.12); }
.module-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module h3 { margin: 18px 0 6px; font: 700 15px/1.2 var(--hud); letter-spacing: 0.06em; text-transform: uppercase; color: var(--h-text); }
.module > p { margin: 0; font-size: 16px; font-weight: 600; color: var(--lime); }
.module ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.module li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.45; color: var(--h-soft); }
.module li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* the journey */
.flow { position: relative; list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 21px; height: 2px; background: linear-gradient(90deg, rgba(63, 224, 255, 0.15), rgba(200, 255, 91, 0.15)); }
.flow::after { content: ""; position: absolute; left: 4%; top: 18px; width: 90px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, #fff, var(--cyan) 45%, transparent); filter: blur(1px); opacity: 0; }
.flow.live::after { animation: flow-run 6.4s linear infinite; }
.flow li { position: relative; padding-top: 58px; text-align: center; }
.flow li b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--hud); color: var(--h-muted); background: var(--h-bg-2); border: 1px solid var(--h-line-2); transition: color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.flow.live li b { animation: node-glow 6.4s linear infinite; }
.flow li strong { display: block; font-size: 15px; font-weight: 700; color: var(--h-text); line-height: 1.3; }
.flow li small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--h-muted); line-height: 1.4; }
.flow.live li:nth-child(1) b { animation-delay: 0s; } .flow.live li:nth-child(2) b { animation-delay: 0.8s; }
.flow.live li:nth-child(3) b { animation-delay: 1.6s; } .flow.live li:nth-child(4) b { animation-delay: 2.4s; }
.flow.live li:nth-child(5) b { animation-delay: 3.2s; } .flow.live li:nth-child(6) b { animation-delay: 4s; }
.flow.live li:nth-child(7) b { animation-delay: 4.8s; } .flow.live li:nth-child(8) b { animation-delay: 5.6s; }

/* steps */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 28px; border-radius: 18px; border: 1px solid var(--h-line); background: var(--h-panel); }
.step b { font: 800 34px/1 var(--hud); background: var(--lime-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 14px 0 8px; font: 700 20px/1.2 Inter, sans-serif; color: var(--h-text); }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--h-soft); }

/* services */
.service-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; border: 1px solid var(--h-line); background: var(--h-panel); }
.service.featured { border-color: rgba(200, 255, 91, 0.45); box-shadow: 0 0 40px rgba(200, 255, 91, 0.08); }
.service h3 { margin: 0; font: 700 18px/1.25 Inter, sans-serif; color: var(--h-text); }
.service-sub { margin: 4px 0 0; font: 700 10px/1.3 var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.price { margin: 18px 0 12px; font-size: 14px; color: var(--h-muted); }
.price span { font: 700 30px/1 var(--mono); color: var(--h-text); letter-spacing: -0.02em; margin-right: 4px; }
.service > p:last-child, .service-cta p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--h-soft); }
.service-cta { background: linear-gradient(135deg, rgba(200, 255, 91, 0.08), rgba(63, 224, 255, 0.05)), var(--h-panel); border-color: var(--h-line-2); gap: 14px; }
.service-cta .home-btn { align-self: flex-start; margin-top: auto; }

/* proof */
.hp-proof-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proof { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 18px; border: 1px solid var(--h-line); background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%), var(--h-panel); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.proof:hover { border-color: rgba(63, 224, 255, 0.5); box-shadow: 0 0 34px rgba(63, 224, 255, 0.14); transform: translateY(-3px); }
.proof-kicker { font: 700 10px/1 var(--hud); letter-spacing: 0.2em; color: var(--lime); }
.proof h3 { margin: 0; font: 700 21px/1.2 Inter, sans-serif; color: var(--h-text); }
.proof p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--h-soft); }
.proof-go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--cyan); }

/* faq */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-panel); padding: 0 22px; }
.faq details[open] { border-color: var(--h-line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 0; font-size: 17px; font-weight: 700; color: var(--h-text); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 18px/1 var(--hud); color: var(--cyan); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--h-soft); }

/* final band */
.home-final { max-width: 1100px; margin: 110px auto 0; padding: 64px 32px; text-align: center; border-radius: 28px; border: 1px solid var(--h-line-2); background: radial-gradient(600px 260px at 50% 0%, rgba(63, 224, 255, 0.14), transparent 70%), var(--h-panel-2); }
.home-final h2 { margin: 0 auto; }
.home-final h2 span { display: block; }
.home-final > p { margin: 18px auto 0; max-width: 620px; font-size: 18px; color: var(--h-soft); }

/* also from */
.also { max-width: 1280px; margin: 90px auto 40px; padding: 0 32px; }
.also-title { margin: 0 0 16px; font: 700 10px/1 var(--hud); letter-spacing: 0.22em; color: var(--h-muted); }
.also-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.also-grid a { display: block; padding: 18px; border-radius: 14px; border: 1px solid var(--h-line); text-decoration: none; transition: border-color 0.2s; }
.also-grid a:hover { border-color: var(--h-line-2); }
.also-grid strong { display: block; font-size: 14.5px; color: var(--h-text); }
.also-grid span { display: block; margin-top: 6px; font-size: 13px; color: var(--h-muted); line-height: 1.45; }

/* ---------------------------------------------------------------- motion */
/* Hidden only once home.js has started (body.js): without the script, everything stays visible. */
.home-page.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.home-page.js .reveal.in { opacity: 1; transform: none; }
@keyframes hud-blink { 50% { opacity: 0.35; } }
@keyframes feed-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes flow-run { 0% { left: 2%; opacity: 0; } 4% { opacity: 1; } 92% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
@keyframes node-glow { 0%, 9% { color: #08100a; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 22px rgba(200, 255, 91, 0.75); } 16%, 100% { color: var(--h-muted); background: var(--h-bg-2); border-color: var(--h-line-2); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .home-page.js .reveal { opacity: 1; transform: none; transition: none; }
  .hud-led, .flow.live::after, .flow.live li b, .hud-feed li { animation: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .module-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hp-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 30px; }
  .flow::before, .flow::after { display: none; }
}
@media (max-width: 760px) {
  .hp-hero { padding: 26px 22px 30px; }
  .hp-hero h1 { font-size: clamp(34px, 9.4vw, 46px); }
  .hp-lede { font-size: 16.5px; margin-top: 18px; }
  .hp-actions { gap: 16px; margin-top: 22px; }
  .home-btn { width: 100%; justify-content: center; }
  .hp-actions .home-link { margin: 4px auto 0; }
  .hp-for { margin-top: 18px; }
  .hud { padding: 16px; }
  .hud-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-feed { min-height: 0; }
  .stack, .home-section, .also { padding-left: 22px; padding-right: 22px; }
  .stack { grid-template-columns: 1fr; }
  .stack-list li { font-size: 15px; }
  .home-section { padding-top: 70px; }
  .module-grid, .service-grid, .steps, .hp-proof-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-grid { grid-template-columns: 1fr; }
  .home-final { margin: 80px 16px 0; padding: 44px 22px; }
}
