/* ==========================================================================
   BluestarAI — "The Signal" design layer (r90)
   Loads after brand.css on marketing pages only (base.html). App pages
   (app_base.html) never load it.

   Brand tokens (official guidelines): Space Blue #3148B9 · Orange #F24C03
   (sparingly — it means "ready to buy") · Dark Blue #0B1828 · Light #F5F7FC
   · Blue Black #020409 · Grey #232323. Raleway headlines, Montserrat body.
   ========================================================================== */

:root {
  --light: #F5F7FC;
  --deep: #020409;
  --signal-line: rgba(255, 255, 255, 0.10);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sg-max: 1240px;
}

/* ---------- Global refinements (all marketing pages) -------------------- */
/* Brand-only accent: the old gradient passed through an off-palette pink. */
.grad-text {
  background: linear-gradient(100deg, #FF5C10 0%, #F24C03 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { background: rgba(2, 4, 9, 0.84); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.btn { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, border-color .2s; }
.btn-primary:hover { transform: translateY(-1px); }
::selection { background: rgba(49, 72, 185, 0.85); color: #fff; }

/* Signal label: monospaced, uppercase — used for data, stages and captions */
.sg-k {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  display: inline-flex; align-items: center; gap: 10px;
}
.sg-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(242, 76, 3, .8); }
.sg-light .sg-k, .sg-white .sg-k { color: #5A6478; }
.sg-k--plain::before { display: none; }

.sg-wrap { max-width: var(--sg-max); margin: 0 auto; padding: 0 32px; }
.sg-h { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.032em; line-height: 1.02; }
.sg-h--xl { font-size: clamp(42px, 5.4vw, 80px); }
.sg-h--l { font-size: clamp(36px, 5vw, 72px); }
.sg-h--m { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; }
.sg-dim { color: rgba(255, 255, 255, 0.42); }
.sg-light .sg-dim, .sg-white .sg-dim { color: #7A8397; }
.sg-p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.70); max-width: 560px; }
.sg-light .sg-p, .sg-white .sg-p { color: #4A5568; }

.sg-dark { background: var(--deep); color: #fff; position: relative; overflow: hidden; overflow: clip; }
.sg-navy { background: var(--dark-blue); color: #fff; position: relative; overflow: hidden; overflow: clip; }
.sg-light { background: var(--light); color: var(--ink); position: relative; }
.sg-white { background: #fff; color: var(--ink); position: relative; }
.sg-pad { padding: 140px 0; }
.sg-pad-s { padding: 96px 0; }

/* Horizon: the glowing planet rim from the brand motion film */
.sg-horizon {
  position: absolute; left: 50%; bottom: -1px; width: 180vw; height: 90vw; max-height: 1800px;
  transform: translate(-50%, 86%); border-radius: 50%;
  background: radial-gradient(closest-side, #050a18 96%, transparent 100%);
  box-shadow: 0 -2px 0 rgba(150, 175, 255, 0.85), 0 -10px 40px rgba(49, 72, 185, 0.65), 0 -40px 160px rgba(49, 72, 185, 0.35);
  pointer-events: none;
}

/* Reveal on scroll (progressive enhancement: only when JS is on) */
.js [data-sg-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-sg-reveal].is-in { opacity: 1; transform: none; }
.js [data-sg-reveal="2"] { transition-delay: .08s; }
.js [data-sg-reveal="3"] { transition-delay: .16s; }
.js [data-sg-reveal="4"] { transition-delay: .24s; }

/* ---------- 01 · Hero ---------------------------------------------------- */
.sg-hero { min-height: min(100vh, 980px); margin-top: -73px; padding: 168px 0 0; display: flex; flex-direction: column; }
.sg-scene::before { /* vertical light beam behind the star */
  content: ""; position: absolute; top: -40%; bottom: 10%; left: 50%; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(160, 185, 255, .9) 30%, rgba(160, 185, 255, .9) 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(49, 72, 185, .55); opacity: .55; pointer-events: none;
}
.sg-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; flex: 1; }
.sg-hero h1 { margin-top: 26px; }
.sg-hero .sg-p { margin-top: 28px; font-size: 18.5px; }
.sg-hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.sg-facts { display: flex; gap: 0; margin-top: 56px; border-top: 1px solid var(--signal-line); max-width: 600px; }
.sg-fact { flex: 1; padding: 18px 20px 0 0; }
.sg-fact + .sg-fact { padding-left: 20px; border-left: 1px solid var(--signal-line); }
.sg-fact b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.sg-fact span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .55); }

.sg-scene { position: relative; height: min(72vh, 720px); min-height: 440px; margin-right: -12vw; }
.sg-scene .signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.sg-scene-poster { position: absolute; inset: 8% 4%; width: 92%; height: 84%; object-fit: contain; transition: opacity .8s; filter: drop-shadow(0 30px 60px rgba(49, 72, 185, .35)); }
.sg-scene.is-live .sg-scene-poster { opacity: 0; }
.sg-scene-cap { position: absolute; right: 13vw; bottom: 6%; z-index: 2; }

/* Proof-of-product: the real Signal Radar rising out of the horizon */
.sg-evidence { position: relative; z-index: 3; margin-top: 30px; padding-bottom: 120px; }
.sg-device {
  position: relative; margin: 0 auto; max-width: 1080px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -20px 120px rgba(49, 72, 185, .35), 0 40px 120px rgba(0, 0, 0, .6);
  transform: perspective(1600px) rotateX(calc(14deg * (1 - var(--lift, 0)))) translateY(calc(40px * (1 - var(--lift, 0))));
  transform-origin: 50% 100%;
  background: #fff;
}
.sg-device-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #EEF1F8; border-bottom: 1px solid rgba(10, 15, 28, .08); }
.sg-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CDD3E0; }
.sg-device-bar span { margin-left: 14px; font: 500 11.5px var(--mono); letter-spacing: .06em; color: #6B7488; }
.sg-device img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 900; object-fit: cover; object-position: top; }
.sg-device-tag { position: absolute; top: 54px; right: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 24, 40, .86); color: #fff; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 02 · Statement ----------------------------------------------- */
.sg-statement { padding: 150px 0 130px; }
.sg-statement .sg-h { max-width: 1100px; }
.sg-gaps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 84px; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-gap { padding: 30px 32px 0 0; }
.sg-gap + .sg-gap { padding-left: 32px; border-left: 1px solid rgba(10, 15, 28, .12); }
.sg-gap b { display: block; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.sg-gap h3 { margin-top: 14px; font-size: 22px; letter-spacing: -.015em; }
.sg-gap p { margin-top: 10px; color: #4A5568; font-size: 15px; line-height: 1.6; }

/* ---------- 03 · System (sticky stages) ---------------------------------- */
.sg-system-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.sg-system { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; margin-top: 90px; }
.sg-orbit-col { position: relative; }
.sg-orbit { position: sticky; top: 120px; aspect-ratio: 1; max-width: 480px; }
.sg-orbit svg { width: 100%; height: 100%; overflow: visible; }
.sg-orbit .ring { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.sg-orbit .arc { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; stroke-linecap: round; transition: stroke .6s, filter .6s; }
.sg-orbit .arc.on { stroke: #6F86F0; filter: drop-shadow(0 0 8px rgba(49, 72, 185, .9)); }
.sg-orbit .arc.hot.on { stroke: var(--orange); filter: drop-shadow(0 0 10px rgba(242, 76, 3, .9)); }
.sg-orbit .node { fill: var(--deep); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; transition: all .6s; }
.sg-orbit .node.on { fill: #fff; stroke: #fff; }
.sg-orbit-core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.sg-orbit-core > div { width: 100%; }
.sg-orbit-core img { width: 26%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(49, 72, 185, .6)); }
.sg-orbit-core b { display: block; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.sg-stage { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .32; transition: opacity .6s; }
.sg-stage.on { opacity: 1; }
.sg-stage .num { font: 500 13px var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.sg-stage h3 { margin-top: 14px; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.03em; }
.sg-stage p { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .7); max-width: 520px; }
.sg-stage ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sg-stage li { font: 500 12px var(--mono); letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); }

/* ---------- 04 · Score explorer ------------------------------------------ */
.sg-score { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-top: 70px; }
.sg-hand { position: relative; }
.sg-hand img { width: 100%; height: auto; display: block; transform: translate3d(0, calc(var(--par, 0) * -30px), 0); }
.sg-hand-score {
  position: absolute; left: 19.96%; top: 21.29%; width: 36.8%; aspect-ratio: 1; display: grid; place-items: center;
  transform: translate(-50%, -68%) translate3d(0, calc(var(--par, 0) * -30px), 0);
  color: #fff; text-align: center; pointer-events: none;
}
.sg-hand-score b { display: block; font: 600 clamp(28px, 3.6vw, 52px)/1 var(--font-head); letter-spacing: -.03em; }
.sg-hand-score span { display: block; margin-top: 4px; font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

.sg-explorer { background: #fff; border: 1px solid rgba(10, 15, 28, .08); border-radius: 22px; box-shadow: 0 30px 80px rgba(11, 24, 40, .08); overflow: hidden; }
.sg-tabs { display: flex; border-bottom: 1px solid rgba(10, 15, 28, .08); }
.sg-tab { flex: 1; padding: 16px 14px; background: none; border: 0; cursor: pointer; text-align: left; font: 600 13.5px var(--font-body); color: #6B7488; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.sg-tab small { display: block; margin-top: 3px; font: 500 11px var(--mono); letter-spacing: .06em; color: #6B7488; }
.sg-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--space-blue); }
.sg-tab:focus-visible { outline: 2px solid var(--space-blue); outline-offset: -2px; }
.sg-panel { padding: 26px 28px 28px; }
.sg-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sg-total { font: 600 64px/1 var(--font-head); letter-spacing: -.04em; color: var(--ink); }
.sg-total small { font-size: 18px; color: #6B7488; letter-spacing: 0; }
.sg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: 600 12px var(--font-body); background: #EEF1FA; color: var(--space-blue); }
.sg-chip.hot { background: rgba(242, 76, 3, .1); color: var(--orange-ink); }
.sg-pillars { margin-top: 24px; display: grid; gap: 14px; }
.sg-pillar { display: grid; grid-template-columns: 150px 1fr 54px; gap: 14px; align-items: center; font-size: 13.5px; }
.sg-pillar span { color: #4A5568; }
.sg-pillar b { text-align: right; font: 600 13px var(--mono); color: var(--ink); }
.sg-bar { height: 8px; border-radius: 99px; background: #EEF1F8; overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--space-blue); transition: width .9s var(--ease-out); }
.sg-bar.hot i { background: var(--orange); }
.sg-why { margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(10, 15, 28, .14); font-size: 14px; line-height: 1.6; color: #4A5568; }
.sg-why b { color: var(--ink); }
.sg-note { margin-top: 14px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6B7488; }

/* ---------- 05 · Digital Twin -------------------------------------------- */
.sg-twin { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sg-verdicts { display: flex; gap: 10px; margin-top: 34px; }
.sg-verdict { padding: 12px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); font: 600 15px var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .45); }
.sg-verdict.go { color: #fff; background: rgba(49, 72, 185, .35); border-color: rgba(111, 134, 240, .7); }
.sg-fan { position: relative; padding: 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255, 255, 255, .1); }
.sg-fan svg { width: 100%; height: auto; display: block; }
.sg-fan .band { fill: rgba(49, 72, 185, .28); }
.sg-fan .med { fill: none; stroke: #8EA2FF; stroke-width: 2.5; }
.sg-fan .p90 { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-dasharray: 4 5; }
.sg-fan .p10 { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.6; stroke-dasharray: 4 5; }
.sg-fan .ax { stroke: rgba(255, 255, 255, .1); }
.sg-fan text { font: 500 11px var(--mono); fill: rgba(255, 255, 255, .55); letter-spacing: .06em; }
.sg-fan-legend { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.sg-fan-legend div { font-size: 13px; color: rgba(255, 255, 255, .7); }
.sg-fan-legend b { display: block; font: 600 26px var(--font-head); color: #fff; letter-spacing: -.02em; }

/* ---------- 06 · Capabilities -------------------------------------------- */
.sg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 64px; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-split > div { padding: 40px 48px 0 0; }
.sg-split > div + div { padding-left: 48px; border-left: 1px solid rgba(10, 15, 28, .12); }
.sg-split h3 { font-size: 26px; letter-spacing: -.02em; }
.sg-split p { margin-top: 14px; color: #4A5568; font-size: 15.5px; line-height: 1.7; }
.sg-shot { margin-top: 64px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(10, 15, 28, .08); box-shadow: 0 40px 100px rgba(11, 24, 40, .14); background: #fff; }
.sg-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top; }
.sg-cap { margin-top: 16px; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6B7488; }

/* ---------- 07 · Conversation layer -------------------------------------- */
.sg-channels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
.sg-channel { position: relative; padding: 36px 36px 8px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sg-channel + .sg-channel { padding-left: 36px; }
.sg-channel::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--orange); }
.sg-channel + .sg-channel::before { left: 36px; background: #6F86F0; }
.sg-channel .bsi { width: 30px; height: 30px; color: #fff; }
.sg-channel h3 { margin-top: 22px; font-size: 26px; letter-spacing: -.02em; }
.sg-channel p { margin-top: 12px; color: rgba(255, 255, 255, .68); font-size: 15px; line-height: 1.7; }
.sg-recap { margin-top: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.sg-recap p { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 760px; }
.sg-link { color: #fff; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.sg-link svg { transition: transform .25s var(--ease-out); }
.sg-link:hover svg { transform: translateX(4px); }
.sg-light .sg-link, .sg-white .sg-link { color: var(--space-blue); }

/* ---------- 08 · Use cases (tabs) ---------------------------------------- */
.sg-uses { display: grid; grid-template-columns: 380px 1fr; gap: 60px; margin-top: 64px; align-items: start; }
.sg-use-list { display: flex; flex-direction: column; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-use-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 4px; background: none; border: 0; border-bottom: 1px solid rgba(10, 15, 28, .12); cursor: pointer; text-align: left; font: 600 18px var(--font-head); letter-spacing: -.01em; color: #6B7488; transition: color .2s, padding .3s var(--ease-out); }
.sg-use-btn span { font: 500 11.5px var(--mono); letter-spacing: .1em; }
.sg-use-btn[aria-selected="true"] { color: var(--ink); padding-left: 14px; }
.sg-use-btn[aria-selected="true"] span { color: var(--orange); }
.sg-use-btn:focus-visible { outline: 2px solid var(--space-blue); outline-offset: 2px; }
.sg-use-panel { position: relative; min-height: 340px; padding: 48px; border-radius: 24px; background: var(--dark-blue); color: #fff; overflow: hidden; }
.sg-use-panel h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; max-width: 520px; }
.sg-use-panel p { margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.7; max-width: 520px; }
.sg-use-panel .sg-use-art { position: absolute; right: -120px; top: 50%; width: 460px; height: auto; transform: translateY(-50%) rotate(-8deg); opacity: .09; pointer-events: none; }
.sg-use-panel[hidden] { display: none; }

/* ---------- 09 · Tour + access ------------------------------------------- */
.sg-video { margin-top: 56px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.sg-video video { display: block; width: 100%; height: auto; }
.sg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; counter-reset: s; }
.sg-step { position: relative; padding: 0 36px 0 0; }
.sg-step + .sg-step { padding-left: 36px; }
.sg-step-dot { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sg-step-dot i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--space-blue); background: #fff; flex: none; }
.sg-step:first-child .sg-step-dot i { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(242, 76, 3, .14); }
.sg-step-dot::after { content: ""; flex: 1; height: 1px; background: rgba(10, 15, 28, .14); }
.sg-step:last-child .sg-step-dot::after { background: linear-gradient(90deg, rgba(10, 15, 28, .14), transparent); }
.sg-step h3 { font-size: 24px; letter-spacing: -.02em; }
.sg-step p { margin-top: 12px; color: #4A5568; font-size: 15px; line-height: 1.7; }
.sg-step ul { margin: 18px 0 0; padding: 0; list-style: none; }
.sg-step li { position: relative; padding-left: 20px; margin-top: 8px; font-size: 14px; color: #232323; }
.sg-step li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--space-blue); }
.sg-access-foot { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-access-foot p { color: #4A5568; font-size: 14.5px; }

/* ---------- 10 · Team, trust, FAQ, close --------------------------------- */
.sg-team-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.sg-trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.sg-frameworks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sg-frameworks span { padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(10, 15, 28, .1); font: 600 12.5px var(--mono); letter-spacing: .04em; color: var(--dark-blue); }
.sg-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-docs li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; border-bottom: 1px solid rgba(10, 15, 28, .12); color: var(--ink); font-weight: 600; font-size: 15.5px; transition: padding .3s var(--ease-out), color .2s; }
.sg-docs li a:hover { padding-left: 10px; color: var(--space-blue); }
.sg-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.sg-faq .faq { margin-top: 0; }

.sg-close { padding: 150px 0 0; text-align: center; }
.sg-close .sg-h { max-width: 980px; margin: 22px auto 0; }
.sg-close .sg-p { margin: 26px auto 0; text-align: center; }
.sg-close .sg-hero-actions { justify-content: center; }
.sg-wordmark { display: block; width: min(1180px, 92%); margin: 110px auto 0; padding-bottom: 56px; height: auto; }
.sg-deeper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 90px auto 0; max-width: 1080px; text-align: left; border-top: 1px solid rgba(10, 15, 28, .12); }
.sg-deeper a { display: block; padding: 26px 28px 26px 0; color: var(--ink); }
.sg-deeper a + a { padding-left: 28px; border-left: 1px solid rgba(10, 15, 28, .12); }
.sg-deeper b { display: block; font: 600 19px var(--font-head); letter-spacing: -.01em; }
.sg-deeper span { display: block; margin-top: 6px; font-size: 14px; color: #4A5568; }
.sg-deeper a:hover b { color: var(--space-blue); }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .sg-hero-grid { grid-template-columns: 1fr; }
  .sg-scene { margin: 10px -32px 0; height: 420px; min-height: 0; }
  .sg-scene-cap { right: 32px; }
  .sg-system { grid-template-columns: 1fr; gap: 20px; }
  .sg-orbit { position: relative; top: 0; max-width: 320px; margin: 0 auto; }
  .sg-stage { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .sg-score, .sg-twin, .sg-trust, .sg-faq { grid-template-columns: 1fr; gap: 50px; }
  .sg-uses { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .sg-wrap { padding: 0 22px; }
  .sg-pad { padding: 100px 0; }
  .sg-hero { padding-top: 110px; min-height: 0; }
  .sg-scene { height: 340px; }
  .sg-facts { flex-direction: column; }
  .sg-fact + .sg-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--signal-line); padding-top: 14px; margin-top: 14px; }
  .sg-fact { padding-top: 14px; }
  .sg-device { border-radius: 12px; transform: none; }
  .sg-gaps, .sg-split, .sg-channels, .sg-steps, .sg-deeper { grid-template-columns: 1fr; }
  .sg-gap + .sg-gap, .sg-split > div + div, .sg-channel + .sg-channel, .sg-step + .sg-step, .sg-deeper a + a { padding-left: 0; border-left: 0; }
  .sg-gap, .sg-split > div, .sg-step, .sg-deeper a { padding-right: 0; padding-bottom: 28px; }
  .sg-channel + .sg-channel::before { left: 0; }
  .sg-pillar { grid-template-columns: 110px 1fr 48px; font-size: 12.5px; }
  .sg-use-panel { padding: 32px 26px; min-height: 0; }
  .sg-use-panel .sg-use-art { display: none; }
  .sg-tab { padding: 14px 10px; font-size: 12.5px; }
  .sg-total { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-sg-reveal] { opacity: 1; transform: none; transition: none; }
  .sg-device, .sg-hand img, .sg-hand-score { transform: none !important; }
  .sg-bar i, .sg-stage, .sg-use-btn { transition: none; }
}

/* ==========================================================================
   Inner pages — shared components restyled into the Signal language (r90b)
   Applies to every template that extends base.html. Class names unchanged.
   ========================================================================== */

/* Second clause of a headline reads dimmer, never off-palette colour */
.grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: rgba(255, 255, 255, .46); }
.section:not(.section-dark) .grad-text, .card .grad-text { color: #7A8397; }

/* Eyebrows + hero badges become signal labels */
.eyebrow, .hero-badge {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: #5A6478; gap: 10px;
}
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(242, 76, 3, .7); }
.section-dark .eyebrow, .hero .eyebrow, .plt-hero .eyebrow, .legal-hero .eyebrow, .article-hero .eyebrow, .cta-band .eyebrow { color: rgba(255, 255, 255, .56); }
.section-dark .eyebrow::before, .hero .eyebrow::before, .cta-band .eyebrow::before { background: var(--orange); }
.hero-badge { border: 0; background: none; padding: 0; color: rgba(255, 255, 255, .56); }

/* Type scale */
.h-display { font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.034em; line-height: 1.02; }
.h-1 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.h-2 { letter-spacing: -0.02em; }
.hero .lead, .plt-hero .lead, .legal-hero .lead, .article-hero .lead { color: rgba(255, 255, 255, .72); }

/* Heroes: deep field, brand star, glowing horizon */
.hero, .plt-hero, .legal-hero, .article-hero {
  background: radial-gradient(900px 520px at 82% 30%, rgba(49, 72, 185, .30), transparent 65%), var(--deep);
  overflow: hidden; overflow: clip; isolation: isolate;
}
.hero::after, .plt-hero::after, .legal-hero::after, .article-hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 170vw; height: 80vw; max-height: 1600px;
  transform: translate(-50%, 92%); border-radius: 50%; pointer-events: none; z-index: -1;
  box-shadow: 0 -2px 0 rgba(150, 175, 255, .7), 0 -10px 40px rgba(49, 72, 185, .55), 0 -40px 140px rgba(49, 72, 185, .28);
}
/* Text-only heroes get the 3D star as their visual */
.hero:not(.sg-hero) > .wrap { position: relative; z-index: 1; }
.hero:not(.sg-hero)::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: max(-140px, calc(50vw - 820px)); top: 50%; width: min(40vw, 580px); aspect-ratio: 1200 / 952;
  transform: translateY(-50%);
  background: url("../img/signal/star-scene.webp") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  opacity: .95;
}
.hero:not(.sg-hero) .h-display { max-width: 580px; }
.hero:not(.sg-hero) .lead { max-width: 560px; }
.hero:not(.sg-hero):has(.hero-grid, .plt-hero-grid, figure, .hero-visual, .dlx-console)::before { display: none; } /* heroes with their own visual keep it */

/* Sections */
.section { padding: 120px 0; }
.section-soft, .section-tint { background: var(--light); }
.section-dark { background: var(--deep); position: relative; }
.section-dark + .section-dark { border-top: 1px solid rgba(255, 255, 255, .06); }

/* Cards: hairlines over shadows; a blue edge on hover */
.card, .plt-phase, .team-card, .feature-visual {
  border-radius: 20px; border: 1px solid rgba(10, 15, 28, .09); box-shadow: none;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
a.card:hover, .card:hover, .plt-phase:hover {
  border-color: rgba(49, 72, 185, .35); transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(11, 24, 40, .08);
}
.card-dark { border-radius: 20px; background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); transition: border-color .3s; }
.card-dark:hover { border-color: rgba(111, 134, 240, .5); }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; font: 600 13px var(--mono); letter-spacing: .04em; }
.icon-blue { background: rgba(49, 72, 185, .08); }
.icon-orange { background: rgba(242, 76, 3, .08); color: var(--orange-ink); }
.card h3 { letter-spacing: -.015em; }

/* Product screenshots */
.shot-frame, figure.plt-fig { border-radius: 20px; }

/* CTA band: the closing moment on every inner page */
.cta-band {
  background: radial-gradient(700px 420px at 85% 50%, rgba(49, 72, 185, .35), transparent 70%), var(--deep);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; padding: 84px 72px;
  isolation: isolate;
}
.cta-band::after {
  right: -40px; bottom: auto; top: 50%; width: 420px; height: 300px; transform: translateY(-50%) rotate(-6deg);
  background: url("../img/signal/star-scene.webp") center / contain no-repeat; opacity: .9; z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, transparent 100%);
}
.cta-band .h-1 { max-width: 620px; }

/* FAQ */
.faq-item { border-radius: 16px; border-color: rgba(10, 15, 28, .09); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(49, 72, 185, .35); }
.faq-item summary { font-size: 16.5px; letter-spacing: -.01em; }

/* Steps on dark: a monospaced counter */
.step::before { font-family: var(--mono); font-weight: 500; font-size: 12px; }

@media (max-width: 1020px) {
  .hero:not(.sg-hero)::before { width: 70vw; right: -20vw; top: auto; bottom: -40px; transform: rotate(-6deg); opacity: .35; }
  .cta-band::after { opacity: .25; }
  .section { padding: 84px 0; }
}
@media (max-width: 640px) {
  .cta-band { padding: 48px 26px; border-radius: 22px; }
}
.aurora-canvas { opacity: .22; mix-blend-mode: screen; }
.hero-orb { opacity: .18; }
.res-feature-aside {
  background: radial-gradient(closest-side, rgba(49, 72, 185, .35), transparent), var(--deep);
  position: relative; overflow: hidden;
}
.res-feature-aside::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none;
  background: url("../img/signal/star-scene.webp") center / 120% auto no-repeat; opacity: .55;
}
.res-feature-aside > * { position: relative; }
