/* PeerVega home: the approved Orbit hero and the Flight profile below it.
   Ported from design-previews/space/assets/home-flight.css; selectors map the design's elements to block markup. */

/* Hero (approved) */
.hero { position: relative; max-width: var(--page); margin: 0 auto; padding: 120px 0 110px; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; }
.hero-orbit { position: absolute; inset: 0 -14% 0 18%; width: 96%; height: 100%; z-index: -1; overflow: visible; }
.hero-orbit .orbit-line { fill: none; stroke: url(#orbitStroke); stroke-width: 1.5; }
.hero-orbit .orbit-line.faint { stroke: rgba(255,255,255,.07); stroke-width: 1; }
[dir="rtl"] .hero-orbit { inset: 0 18% 0 -14%; transform: scaleX(-1); }
.hero .hero-title { font: 600 clamp(3rem, 1.2rem + 5.6vw, 6.4rem)/.98 var(--pv-display); letter-spacing: -.035em; margin: 18px 0 26px; max-width: 900px; }
:lang(ar) .hero .hero-title { line-height: 1.18; }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { list-style: none; padding: 0; display: flex; gap: 48px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--glass-line); max-width: 640px; font-size: 14px; color: var(--muted); }
.hero-stats strong { display: block; font: 600 28px var(--pv-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.hero .hero-note { align-self: flex-start; margin-top: 16px; }

/* The flight: one trajectory under every stage */
.flight { position: relative; }
.trajectory { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.traj-ghost { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.25; stroke-dasharray: 2 7; }
.traj-lit { fill: none; stroke: url(#trajStroke); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pv-blue-lift) 70%, transparent)); }
.vega { will-change: transform; }
.vega-layer { z-index: 4; }
.stage { position: relative; z-index: 1; max-width: var(--page); margin-inline: auto; padding-block: var(--space-stage) 0; }
.stage-head { display: grid; gap: 22px; margin-block-end: clamp(3rem, 2rem + 3vw, 5rem); max-width: min(820px, 74%); }

/* Stage nodes: the trajectory threads through every one. Outside the Flight group they stay hidden. */
.node { display: none; }
.flight .node {
  display: block; position: absolute; width: 16px; height: 16px; border-radius: 50%; translate: -50% -50%;
  background: var(--pv-navy-950); border: 1.5px solid color-mix(in srgb, var(--pv-blue-lift) 70%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pv-navy-950) 80%, transparent);
  transition: background .5s var(--pv-ease), border-color .5s, box-shadow .6s var(--pv-ease);
  z-index: 3;
}
[dir="rtl"] .flight .node { translate: 50% -50%; }
.flight .node-ghost { opacity: 0; }
.flight .node.is-reached { background: var(--pv-star); border-color: var(--pv-star); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pv-navy-950) 80%, transparent), 0 0 24px 4px color-mix(in srgb, var(--pv-blue-lift) 80%, transparent); }

/* HUD: section wayfinding on wide screens */
.hud { position: fixed; inset-inline-start: 28px; top: 50%; translate: 0 -50%; z-index: 20; opacity: 0; transition: opacity .4s; pointer-events: none; }
.hud.is-visible { opacity: 1; pointer-events: auto; }
.hud ol { list-style: none; padding: 0; display: grid; gap: 4px; border-inline-start: 1px solid var(--glass-line); }
.hud a {
  display: block; padding: 7px 14px; font: 500 13px/1 var(--pv-display); color: var(--faint); text-decoration: none;
  margin-inline-start: -1px; border-inline-start: 1px solid transparent; transition: color .3s, border-color .3s;
}
.hud a:hover { color: var(--text); }
.hud a[aria-current="true"] { color: var(--text); border-color: var(--pv-blue-lift); }

/* Launch: the problem, two reports */
.launch { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block-start: clamp(2rem, 1rem + 2vw, 3.5rem); }
.flight .launch > .node { inset-inline-start: -28px; top: calc(clamp(2rem, 1rem + 2vw, 3.5rem) + 34px); }
.launch-copy { display: grid; gap: 24px; }
.reports { position: relative; min-height: 440px; }
.report {
  position: absolute; width: min(400px, 88%); padding: 26px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-deep);
}
.report-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 15px var(--pv-display); color: var(--muted); }
.report dl { display: grid; margin-block: 18px 16px; }
.report dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; border-top: 1px solid var(--glass-line); }
.report dt { font-size: 15px; color: var(--muted); }
.report dd { font: 600 22px var(--pv-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.report-foot { font-size: 14px; color: var(--faint); }
.report-old { inset-inline-start: 0; top: 0; rotate: -4deg; opacity: .55; filter: saturate(.3); }
[dir="rtl"] .report-old { rotate: 4deg; }
.report-old .report-foot { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--pv-star-warm) 60%, transparent); }
.report-new {
  inset-inline-end: 0; top: 110px; background: var(--glass-strong); border-color: var(--glass-line-strong);
  box-shadow: var(--shadow-deep), 0 0 0 1px color-mix(in srgb, var(--pv-blue-lift) 20%, transparent) inset;
}
.report-new dd { color: var(--text); }
.report-new .report-foot { color: var(--pv-blue-lift); }
.report-bars { display: block; width: 100%; height: 56px; margin-block-end: 14px; }
.report-bars rect { fill: color-mix(in srgb, var(--pv-blue-lift) 28%, transparent); }
.report-bars rect.now { fill: var(--pv-blue-lift); }
[dir="rtl"] .report-bars { transform: scaleX(-1); }

/* Services climb toward the inline end */
.svc-climb { display: grid; gap: 22px; }
.svc {
  --step: 0;
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 280px; gap: 24px 32px; align-items: start;
  width: min(1000px, 100%); margin-inline-start: calc(var(--step) * 6%);
  padding: 30px 32px; border-radius: var(--radius-lg); border: 1px solid var(--glass-line);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-deep);
  transition: border-color .4s, translate .5s var(--pv-ease);
}
.svc:nth-child(2) { --step: 1; }
.svc:nth-child(3) { --step: 2; }
.svc:nth-child(4) { --step: 3; }
.svc:hover { border-color: var(--glass-line-strong); translate: 0 -3px; }
.flight .svc > .node { inset-inline-start: 0; top: 50%; }
.svc-lead { padding: 40px 40px 36px; background: linear-gradient(150deg, color-mix(in srgb, var(--pv-blue) 42%, transparent), var(--glass) 62%); border-color: color-mix(in srgb, var(--pv-blue-lift) 34%, transparent); }
.glyph { width: 52px; height: 52px; fill: none; stroke: var(--pv-star); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.glyph .spark { fill: var(--pv-blue-lift); stroke: none; }
.glyph .spark-dash { fill: none; stroke: var(--pv-blue-lift); stroke-dasharray: 2 3; }
.svc-body { display: grid; gap: 14px; justify-items: start; }
.svc .svc-line { font: 600 clamp(1.4rem, 1.1rem + .9vw, 1.85rem)/1.15 var(--pv-display); letter-spacing: -.022em; text-wrap: balance; }
.svc-lead .svc-line { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.svc p { color: var(--muted); line-height: 1.6; max-width: 60ch; }
:lang(ar) .svc p, :lang(ar) .svc .svc-line { line-height: 1.6; }
.chips { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.chips li { font: 500 12px/1 var(--pv-display); padding: 7px 10px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); }
.text-link a { display: inline-flex; gap: 8px; align-items: center; font: 500 15px var(--pv-display); color: var(--pv-blue-lift); text-decoration: none; }
.text-link a::after { content: ""; width: 18px; height: 1px; background: currentColor; transform-origin: left; transition: transform .3s var(--pv-ease); }
[dir="rtl"] .text-link a::after { transform-origin: right; }
.text-link a:hover::after { transform: scaleX(1.7); }

.demand, .svc-proof { display: grid; gap: 0; align-content: start; padding: 20px; border-radius: var(--radius-md); background: rgba(0, 8, 24, .55); border: 1px solid var(--glass-line); }
.demand figcaption, .svc-proof figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 13px var(--pv-display); color: var(--faint); margin-block-end: 14px; }
.svc-proof .tag { font-size: 11px; padding: 5px 7px; }
.svc-proof ol { list-style: none; padding: 0; display: grid; }
.batch li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--glass-line); font-size: 14px; color: var(--muted); }
.batch li b { font: 600 14px var(--pv-display); color: var(--text); font-variant-numeric: tabular-nums; }
.batch li::before { content: ""; width: 8px; height: 8px; margin-block-start: 6px; border-radius: 50%; background: color-mix(in srgb, var(--pv-blue-lift) 55%, transparent); flex: none; }
.batch li span { flex: 1; }
.batch li.is-live::before { background: var(--pv-star-warm); }
.batch li.is-live { color: var(--text); }
.fixes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-block: 10px; border-top: 1px solid var(--glass-line); font-size: 14px; line-height: 1.35; color: var(--muted); }
.fixes li b { font: 600 13px var(--pv-display); color: var(--text); white-space: nowrap; }
.fixes li::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 4px; background: linear-gradient(var(--pv-blue-lift), var(--pv-blue-lift)) no-repeat 0 0 / calc(var(--share) * 100%) 100%, rgba(255,255,255,.06); }
[dir="rtl"] .fixes li::after { background-position: 100% 0; }
.answer .ask { justify-self: end; max-width: 90%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: rgba(255,255,255,.08); font-size: 14px; }
[dir="rtl"] .answer .ask { border-radius: 12px 12px 12px 4px; }
.answer .reply { margin-block-start: 10px; font-size: 14px; line-height: 1.55; color: var(--text); }
.answer .cite { display: flex; gap: 8px; align-items: center; margin-block-start: 12px; font-size: 12.5px; color: var(--faint); }
.answer .cite b { font: 500 12.5px var(--pv-display); color: var(--text); padding: 5px 9px; border-radius: 6px; background: var(--pv-blue); }
.queries { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.queries li { font: 500 13px/1.2 var(--pv-display); padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); text-align: center; color: var(--text); }
.demand-lines { display: block; width: 100%; height: 44px; }
.demand-lines path { fill: none; stroke: color-mix(in srgb, var(--pv-blue-lift) 70%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.target { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px; border-radius: 10px; background: var(--pv-blue); border: 1px solid color-mix(in srgb, var(--pv-blue-lift) 60%, transparent); box-shadow: 0 10px 22px -12px rgba(0, 4, 14, .8); }
.target span { font: 600 16px var(--pv-display); }
.target small { font-size: 12.5px; color: rgba(255,255,255,.75); }

/* Tool console */
.console {
  position: relative; border-radius: 28px; border: 1px solid var(--glass-line-strong);
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-deep);
}
.flight .n82 { inset-inline-start: 72%; top: 0; }
.flight .node-out { inset-inline-end: -28px; top: 100%; translate: 50% -50%; }
[dir="rtl"] .flight .node-out { translate: -50% -50%; }
.flight .n-auto { inset-inline-start: calc(.925 * 100cqw); top: calc(.252 * 100cqw / 3); }
.flight .n-cycle-out { inset-inline-end: -28px; top: calc(.34 * 100cqw / 3); translate: 50% -50%; }
[dir="rtl"] .flight .n-cycle-out { translate: -50% -50%; }
.flight .tools > .node-ghost { top: 0; }
.console-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--glass-line); overflow-x: auto; scrollbar-width: none; }
.console-tabs button {
  flex: 1 0 auto; font: 500 15px/1 var(--pv-display); color: var(--muted); background: none; cursor: pointer;
  padding: 16px 18px; border: 0; border-radius: 14px; transition: color .25s, background .25s;
}
.console-tabs button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.console-tabs button[aria-selected="true"] { color: #fff; background: var(--pv-blue); box-shadow: 0 8px 18px -10px rgba(0, 4, 14, .8); }
.console-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.console-panel[hidden] { display: none; }
.tool-inputs { display: grid; gap: 22px; align-content: start; padding: 40px; border-inline-end: 1px solid var(--glass-line); }
.tool-question { font: 600 1.5rem/1.2 var(--pv-display); letter-spacing: -.02em; text-wrap: balance; }
.field { display: grid; gap: 10px; border: 0; padding: 0; min-width: 0; }
.field-label { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding: 0; }
.field-label output { font: 600 15px var(--pv-display); color: var(--text); font-variant-numeric: tabular-nums; }
.field input[type="number"], .field input[type="text"], .field textarea {
  width: 100%; font: 500 17px/1.4 var(--pv-display); color: var(--text); background: rgba(0, 8, 24, .6);
  border: 1px solid var(--glass-line); border-radius: 12px; padding: 13px 14px; font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:hover, .field textarea:hover { border-color: var(--glass-line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pv-blue-lift); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pv-blue-lift) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--pv-star-warm); }
.field-error { font-size: 14px; color: var(--pv-star-warm); }
.field input[type="range"] { width: 100%; accent-color: var(--pv-blue-lift); height: 28px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 8, 24, .6); border: 1px solid var(--glass-line); }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font: 500 14px var(--pv-display); color: var(--muted); transition: background .2s, color .2s; }
.segmented input:checked + span { background: rgba(255,255,255,.1); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--pv-blue-lift); outline-offset: 1px; }
.tool-inputs .btn { justify-self: start; }

.tool-result { display: grid; gap: 18px; align-content: start; padding: 40px; }
.result-label { font: 500 15px var(--pv-display); color: var(--muted); }
.result-big { font: 600 clamp(3rem, 2rem + 3vw, 4.8rem)/1 var(--pv-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.result-big + .result-label { margin-block-start: -10px; }
.fine { font-size: 13px; color: var(--faint); line-height: 1.5; }
.btn-carry { justify-self: start; }
.bars { list-style: none; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 15px; }
.bar-name { color: var(--muted); }
.bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: rgba(238, 242, 251, .35); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .8s var(--pv-ease); }
[dir="rtl"] .bar i { transform-origin: right; }
.bars .is-us .bar i { background: var(--pv-blue-lift); }
.bars .is-us .bar-name { color: var(--text); font-weight: 600; }
.bar-val { font: 500 14px var(--pv-display); font-variant-numeric: tabular-nums; color: var(--muted); text-align: end; min-width: 120px; }
.rev-chart { width: 100%; height: 170px; overflow: visible; }
.rev-chart .grid { stroke: rgba(255,255,255,.07); fill: none; }
.rev-chart .curve { fill: none; stroke-width: 2; stroke-linecap: round; transition: d .7s var(--pv-ease); }
.c-con { stroke: rgba(238, 242, 251, .3); }
.c-amb { stroke: rgba(238, 242, 251, .3); stroke-dasharray: 4 6; }
.c-exp { stroke: var(--pv-blue-lift); stroke-width: 2.5; }
[dir="rtl"] .rev-chart { transform: scaleX(-1); }
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scenarios div { padding-block-start: 12px; border-top: 1px solid var(--glass-line); }
.scenarios .is-us { border-color: var(--pv-blue-lift); }
.scenarios dt { font-size: 14px; color: var(--muted); }
.scenarios dd { font: 600 20px var(--pv-display); font-variant-numeric: tabular-nums; margin-block-start: 4px; }
.serp { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--radius-md); background: rgba(0, 8, 24, .65); border: 1px solid var(--glass-line); min-height: 250px; align-content: start; }
.serp-url { font-size: 13px; color: var(--faint); }
.serp-title { font: 500 20px/1.3 var(--pv-display); color: #9fb0ff; }
.serp-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.ai-copy { margin-block-start: 12px; padding-block-start: 14px; border-top: 1px solid var(--glass-line); line-height: 1.7; white-space: pre-line; }
.ai-copy.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: text-bottom; background: var(--pv-blue-lift); animation: pv-caret 1s steps(2) infinite; }
@keyframes pv-caret { 50% { opacity: 0; } }

/* Results: proof (placeholder, tagged) */
.results .stage-head { justify-items: start; }
.flightlog {
  position: relative; padding: 40px; border-radius: 28px; border: 1px solid var(--glass-line);
  background: linear-gradient(170deg, color-mix(in srgb, var(--pv-blue) 28%, transparent), var(--glass) 55%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-deep);
}
.case-head { display: flex; align-items: end; gap: 28px; flex-wrap: wrap; }
.case-num { font: 600 clamp(4rem, 2.4rem + 4.6vw, 6.4rem)/.9 var(--pv-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.case-what { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 44ch; padding-block-end: 6px; }
.chart-wrap { position: relative; margin-block-start: 56px; }
.case-chart { display: block; width: 100%; height: clamp(200px, 22vw, 320px); }
.case-chart path { vector-effect: non-scaling-stroke; }
.case-chart .grid { stroke: rgba(255,255,255,.06); fill: none; }
.case-chart .area { fill: color-mix(in srgb, var(--pv-blue-lift) 14%, transparent); }
.line-traffic { fill: none; stroke: rgba(238, 242, 251, .45); stroke-width: 1.5; stroke-dasharray: 3 6; }
.line-revenue { fill: none; stroke: var(--pv-star); stroke-width: 2.5; stroke-linecap: round; }
[dir="rtl"] .case-chart { transform: scaleX(-1); }
.marks { list-style: none; padding: 0; position: absolute; inset: 0; }
.marks li { position: absolute; inset-inline-start: var(--mx); top: var(--my); width: 0; height: 0; }
.marks li::before { content: ""; position: absolute; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--pv-navy-950); border: 2px solid var(--pv-star); }
[dir="rtl"] .marks li::before { translate: 50% -50%; }
.marks li.is-end::before { background: var(--pv-star-warm); border-color: var(--pv-star-warm); }
.marks span { position: absolute; bottom: 14px; inset-inline-start: 0; translate: -50% 0; white-space: nowrap; font: 500 13px var(--pv-display); color: var(--text); padding: 6px 10px; border-radius: 8px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
[dir="rtl"] .marks span { translate: 50% 0; }
.marks li.is-end span, [dir="rtl"] .marks li.is-end span { inset-inline-start: auto; inset-inline-end: 0; translate: 0; }
.marks-caption { display: none; list-style: none; padding: 0; font-size: 14px; color: var(--muted); }
.marks-caption li { display: flex; gap: 10px; align-items: center; }
.marks-caption li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--pv-star); }
.marks-caption li:last-child::before { background: var(--pv-star-warm); border-color: var(--pv-star-warm); }
.legend { display: flex; gap: 22px; margin-block-start: 18px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-inline-end: 8px; vertical-align: middle; background: var(--pv-star); }
.legend .lg-traffic::before { background: repeating-linear-gradient(90deg, rgba(238,242,251,.5) 0 3px, transparent 3px 7px); }
.mission-log { width: 100%; border-collapse: collapse; margin-block-start: 40px; font-size: 15px; }
.mission-log th, .mission-log td { text-align: start; padding-block: 18px; padding-inline: 0 16px; border-bottom: 1px solid var(--glass-line); vertical-align: baseline; }
.mission-log thead th { font: 500 13px var(--pv-display); color: var(--faint); padding-block: 0 12px; }
.mission-log tbody th { font: 500 15px var(--pv-display); color: var(--pv-blue-lift); }
.mission-log td { color: var(--muted); }
.mission-log td strong { font: 600 26px var(--pv-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
.voices { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-block: clamp(5rem, 3rem + 5vw, 8rem) 36px; align-items: start; }
.voice { display: grid; gap: 18px; padding-block-start: 22px; border-top: 1px solid var(--glass-line); }
.voice .voice-quote { margin: 0; padding: 0; border: 0; }
.voice .voice-quote p { font: 400 1.25rem/1.45 var(--pv-display); letter-spacing: -.01em; }
.voice-lead { border-top-color: var(--pv-blue-lift); }
.voice-lead .voice-quote p { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.2; letter-spacing: -.022em; text-wrap: balance; }
:lang(ar) .voice .voice-quote p { line-height: 1.7; }
.voice-cap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }

/* Process: one orbit, four waypoints */
.cycle { position: relative; container-type: inline-size; }
.cycle-orbit { display: block; width: 100%; height: auto; overflow: visible; }
[dir="rtl"] .cycle-orbit { transform: scaleX(-1); }
.cycle-line { fill: none; stroke: color-mix(in srgb, var(--pv-blue-lift) 55%, transparent); stroke-width: 1.5; }
.wp { fill: var(--pv-navy-900); stroke: var(--pv-blue-lift); stroke-width: 1.5; }
.waypoints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-block-start: 48px; }
.waypoints > .waypoint { display: grid; gap: 10px; align-content: start; padding-block-start: 20px; border-top: 1px solid var(--glass-line); animation: pv-waypoint 20s linear infinite; }
.waypoints > .waypoint:nth-child(1) { --x: .075; --y: .748; }
.waypoints > .waypoint:nth-child(2) { --x: .479; --y: .181; animation-delay: 5s; }
.waypoints > .waypoint:nth-child(3) { --x: .925; --y: .252; animation-delay: 10s; }
.waypoints > .waypoint:nth-child(4) { --x: .521; --y: .819; animation-delay: 15s; }
@keyframes pv-waypoint { 0%, 24% { border-top-color: var(--pv-blue-lift); opacity: 1; } 26%, 100% { border-top-color: var(--glass-line); opacity: .55; } }
.waypoints h3 {
  position: absolute; inset-inline-start: calc(var(--x) * 100cqw); top: calc(var(--y) * 100cqw / 3);
  font: 600 15px var(--pv-display); color: var(--text); padding: 6px 10px; border-radius: 8px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); translate: -50% -150%; white-space: nowrap;
}
[dir="rtl"] .waypoints h3 { translate: 50% -150%; }
.waypoints > .waypoint:nth-child(3) h3 { translate: -50% 70%; }
[dir="rtl"] .waypoints > .waypoint:nth-child(3) h3 { translate: 50% 70%; }
.waypoints .wp-head { font: 600 1.35rem/1.2 var(--pv-display); letter-spacing: -.02em; }
.waypoints p:not(.wp-head) { color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--glass-line); }
.faq details:last-child { border-bottom: 1px solid var(--glass-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding-block: 22px; font: 500 1.15rem/1.35 var(--pv-display); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: rotate .4s var(--pv-ease);
  background: linear-gradient(var(--pv-blue-lift), var(--pv-blue-lift)) center / 100% 1.5px no-repeat, linear-gradient(var(--pv-blue-lift), var(--pv-blue-lift)) center / 1.5px 100% no-repeat;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--pv-blue-lift); }
.faq details p { padding-block-end: 24px; color: var(--muted); line-height: 1.65; max-width: 60ch; }

/* Book: orbit insertion */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block-end: clamp(4rem, 3rem + 3vw, 6rem); }
.book-copy { display: grid; gap: 24px; }
.book-copy .hero-actions { margin-top: 8px; }
.dock { position: relative; display: grid; place-items: center; min-height: 520px; }
.dock-orbit { position: absolute; inset: -10% -14%; width: 128%; height: 120%; overflow: visible; opacity: .55; transition: opacity 1.2s var(--pv-ease); }
[dir="rtl"] .dock-orbit { transform: scaleX(-1); }
.dock-ring { fill: none; stroke: url(#dockStroke); stroke-width: 1.5; }
.dock-ring.faint { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.book.is-docked .dock-orbit { opacity: 1; }
.dock-card {
  position: relative; width: min(400px, 100%); padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line-strong); background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-deep);
}
.flight .dock-card > .node { inset-inline-end: 32px; inset-inline-start: auto; top: 0; translate: 50% -50%; }
[dir="rtl"] .flight .dock-card > .node { translate: -50% -50%; }
.dock-card .dock-title { font: 600 1.35rem/1.25 var(--pv-display); letter-spacing: -.015em; }
.dock-card ul { list-style: none; padding: 0; display: grid; gap: 0; margin-block-start: 14px; }
.dock-card li { position: relative; padding-block: 14px; padding-inline-start: 28px; border-top: 1px solid var(--glass-line); font: 500 1.05rem/1.4 var(--pv-display); }
.dock-card li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 19px; width: 12px; height: 12px; background: var(--pv-blue-lift);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.carry { margin-block-start: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--text); background: color-mix(in srgb, var(--pv-blue) 40%, transparent); border: 1px solid color-mix(in srgb, var(--pv-blue-lift) 40%, transparent); }

/* Responsive */
@media (max-width: 1340px) {
  .hero, .stage { margin-inline: 52px; }
}
@media (max-width: 1100px) {
  .launch, .book, .faq { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr 1fr; }
  .voice-lead { grid-column: 1 / -1; }
  .console-panel { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 56px minmax(0, 1fr); width: 100%; }
  .svc .demand, .svc .svc-proof { grid-column: 2; }
  .stage-head { max-width: none; }
  .flight .n82 { inset-inline-start: auto; inset-inline-end: -28px; translate: 50% -50%; }
  [dir="rtl"] .flight .n82 { translate: -50% -50%; }
  .tool-inputs { border-inline-end: 0; border-bottom: 1px solid var(--glass-line); }
}
@media (max-width: 900px) {
  .hero, .stage { margin-inline: var(--gutter); }
  .hero { padding-top: 80px; }
  .hero-orbit { inset: 0 -40% 0 -10%; width: 150%; opacity: .7; }
  [dir="rtl"] .hero-orbit { inset: 0 -10% 0 -40%; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  /* The trajectory runs down the inline-start gutter on small screens */
  .stage { padding-inline-start: 22px; }
  .flight .svc > .node, .flight .dock-card > .node { inset-inline-start: -22px; }
  .flight .launch > .node { inset-inline-start: 0; }
  .svc, .svc-lead { margin-inline-start: 0; width: 100%; grid-template-columns: 1fr; padding: 26px 22px; }
  .svc .demand, .svc .svc-proof { grid-column: auto; }
  .flight .svc > .node { top: 40px; }
  .flight :is(.node.n82, .node.node-out, .node.n-auto, .node.n-cycle-out), .flight .dock-card > .node { inset-inline-end: auto; inset-inline-start: -22px; translate: -50% -50%; }
  [dir="rtl"] .flight :is(.node.n82, .node.node-out, .node.n-auto, .node.n-cycle-out), [dir="rtl"] .flight .dock-card > .node { translate: 50% -50%; }
  .flight .stage > .node.n82 { inset-inline-start: 0; }
  .flight .n-auto { top: 0; }
  .flight .n-cycle-out { top: 60px; }
  .waypoints > .waypoint:nth-child(n) h3, [dir="rtl"] .waypoints > .waypoint:nth-child(n) h3 { translate: none; }
  .flight .dock-card > .node { top: 28px; }
  .reports { min-height: 0; display: grid; gap: 14px; }
  .report { position: relative; width: 100%; inset: auto; top: auto; }
  .report-old { rotate: -2deg; }
  .tool-inputs, .tool-result { padding: 26px 22px; }
  .bars li { grid-template-columns: 1fr auto; }
  .bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .bar-val { min-width: 0; }
  .flightlog { padding: 26px 22px; }
  .marks span { display: none; }
  .marks-caption { display: grid; gap: 8px; margin-block-start: 18px; }
  .mission-log thead { display: none; }
  .mission-log tr { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 6px; padding-block: 16px; border-bottom: 1px solid var(--glass-line); }
  .mission-log th, .mission-log tbody th, .mission-log td { padding: 0; border: 0; font: 400 14px var(--pv-body); color: var(--faint); }
  .mission-log td:nth-child(3) { order: -1; flex-basis: 100%; color: var(--muted); font-size: 15px; }
  .mission-log tbody th::after, .mission-log td:nth-child(2)::after { content: " ·"; }
  .voices { grid-template-columns: 1fr; gap: 28px; }
  .cycle-orbit { display: none; }
  .waypoints { grid-template-columns: 1fr; gap: 0; margin-block-start: 0; }
  .waypoints > .waypoint { animation: none; opacity: 1; padding-block: 22px; }
  .waypoints h3 { position: static; translate: none; justify-self: start; }
  .dock { min-height: 420px; place-items: center start; }
  .dock-orbit { inset: 0 -30%; width: 160%; height: 100%; }
}
@media (max-width: 1599px) { .hud { display: none; } }
@media (max-width: 480px) {
  .result-big { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .waypoints > .waypoint { opacity: 1; }
}

/* Signed numbers (+212%, 3.4×) keep their LTR order inside Arabic */
[dir="rtl"] :is(.hero-stats strong, .report dd) { direction: ltr; text-align: right; }
[dir="rtl"] :is(.case-num, .mission-log td strong) { direction: ltr; unicode-bidi: isolate; }
