/* SpaceXTech — shared service-page styles (services hub + service pages) */

/* Hero illustration frame */
.svc-illus { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 28px); }
.svc-illus svg.art { width: 100%; height: auto; }
.svc-illus .hp-float { position: absolute; }
.svc-illus .hp-float.f1 { top: -20px; left: -20px; }
.svc-illus .hp-float.f2 { bottom: -22px; right: -18px; }
@media (max-width: 640px) { .svc-illus .hp-float.f1 { left: -6px; } .svc-illus .hp-float.f2 { right: -6px; } }

/* Deliverables + facts layout */
.deliver-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (max-width: 900px) { .deliver-grid { grid-template-columns: 1fr; } }
.facts-card { background: var(--dark); color: var(--dark-muted); border-color: var(--dark); }
.facts-card h3 { color: #fff; }
.facts-card dl { margin: 0; display: grid; gap: 18px; }
.facts-card dt { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #a5b4fc; }
.facts-card dt svg { width: 16px; height: 16px; }
.facts-card dd { margin: 4px 0 0; color: #e6e9f5; font-size: 0.98rem; }

/* Two-column section head + content */
.svc-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .svc-split { grid-template-columns: 1fr; } }
.svc-split .sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .svc-split .sticky { position: static; } }

/* Related service cards */
.related-card { display: flex; gap: 16px; align-items: flex-start; }
.related-card .icon-badge { margin: 0; }
.related-card h4 { margin-bottom: 4px; }
.related-card p { font-size: 0.92rem; }

/* ---------- Hub: stage → service guide ---------- */
.guide { display: grid; gap: 12px; }
.guide-row { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); color: inherit; }
.guide-row:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateX(4px); color: inherit; }
.guide-row .q { font-weight: 600; color: var(--ink); }
.guide-row .q small { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.guide-row .arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.guide-row .arrow svg { width: 18px; height: 18px; }
.guide-row .a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand-ink); }
.guide-row .a .icon-badge { margin: 0; }
@media (max-width: 720px) { .guide-row { grid-template-columns: 1fr; gap: 10px; } .guide-row .arrow { transform: rotate(90deg); width: 30px; height: 30px; } }

/* Hub: engagement models */
.model-card { display: flex; flex-direction: column; }
.model-card .price-note { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: 6px 0 14px; }
.model-card .check-list { margin-top: 18px; }
.model-card.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.model-card .tag { align-self: flex-start; }

/* Hub: service bento card details */
.svc-card ul { list-style: none; margin: 16px 0 0; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.svc-card ul li { display: flex; gap: 8px; align-items: flex-start; }
.svc-card ul li svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 4px; }

/* ---------- Strategy: roadmap / value pools ---------- */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 4px; border-radius: 4px; background: var(--grad); opacity: 0.35; }
.roadmap .horizon { position: relative; padding-top: 52px; }
.roadmap .horizon::before { content: ""; position: absolute; top: 12px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12); }
.roadmap .horizon:nth-child(2)::before { border-color: var(--brand-3); }
.roadmap .horizon:nth-child(3)::before { border-color: var(--brand-2); }
.roadmap .horizon .card { height: 100%; }
.roadmap .horizon h4 { margin-bottom: 4px; }
.roadmap .horizon .when { font-size: 0.8rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; }
.roadmap .horizon ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 0.92rem; }
.roadmap .horizon li { display: flex; gap: 8px; }
.roadmap .horizon li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { left: 10px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .roadmap .horizon { padding-top: 0; padding-left: 44px; }
  .roadmap .horizon::before { top: 18px; left: 0; }
}

.house { display: grid; gap: 10px; }
.house-row { border-radius: var(--radius-sm); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.house-row h4 { margin: 0; }
.house-row .tag-row { gap: 6px; }
.house-row.r1 { background: var(--grad); color: #fff; }
.house-row.r1 h4 { color: #fff; }
.house-row.r1 .tag { background: rgba(255, 255, 255, 0.18); color: #fff; }
.house-row.r2 { background: var(--brand-soft); }
.house-row.r3 { background: #f1e9ff; }
.house-row.r4 { background: #e3f8fb; }
.house-row.r5 { background: var(--soft); border: 1px dashed var(--line-2); }

/* ---------- Prioritization matrix ---------- */
.matrix-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: stretch; }
@media (max-width: 960px) { .matrix-wrap { grid-template-columns: 1fr; } }
.matrix-card { padding: clamp(16px, 2vw, 24px); }
.matrix-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.matrix-toolbar .tabs { margin: 0; }
.matrix-stage { position: relative; aspect-ratio: 1.25 / 1; border-radius: var(--radius-sm); background: var(--soft); overflow: hidden; touch-action: manipulation; }
@media (max-width: 560px) { .matrix-stage { aspect-ratio: 1 / 1; } }
.matrix-stage .quad { position: absolute; width: 50%; height: 50%; padding: 12px 14px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); }
.matrix-stage .quad.q-tl { left: 0; top: 0; }
.matrix-stage .quad.q-tr { right: 0; top: 0; text-align: right; background: rgba(79, 70, 229, 0.06); color: var(--brand); }
.matrix-stage .quad.q-bl { left: 0; bottom: 0; display: flex; align-items: flex-end; }
.matrix-stage .quad.q-br { right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: flex-end; }
.matrix-stage .axis-v, .matrix-stage .axis-h { position: absolute; background: var(--line-2); }
.matrix-stage .axis-v { left: 50%; top: 0; bottom: 0; width: 1px; }
.matrix-stage .axis-h { top: 50%; left: 0; right: 0; height: 1px; }
.matrix-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 10px; gap: 8px; }
.mx-bubble {
  position: absolute; transform: translate(-50%, -50%) scale(0); border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer; padding: 0; box-shadow: 0 6px 16px -6px rgba(20, 24, 60, 0.45);
  transition: transform 0.6s var(--ease), opacity 0.35s, box-shadow 0.25s; opacity: 0.88;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.78rem; font-family: var(--font-display);
}
.matrix-card.is-in .mx-bubble { transform: translate(-50%, -50%) scale(1); }
.mx-bubble:hover, .mx-bubble:focus-visible, .mx-bubble.is-active { opacity: 1; box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.22), 0 10px 22px -8px rgba(20, 24, 60, 0.5); z-index: 3; outline: none; }
.matrix-card.is-in .mx-bubble.is-active { transform: translate(-50%, -50%) scale(1.12); }
.mx-bubble.is-dim { opacity: 0.12; pointer-events: none; }
.mx-bubble.growth { background: #7c3aed; }
.mx-bubble.efficiency { background: #06b6d4; }
.mx-bubble.both { background: #4f46e5; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mx-detail { display: flex; flex-direction: column; }
.mx-detail .placeholder { color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mx-detail .placeholder svg { width: 40px; height: 40px; color: var(--brand); }
.mx-detail h3 { margin: 10px 0 8px; }
.mx-scores { display: grid; gap: 10px; margin: 18px 0; }
.mx-score { font-size: 0.85rem; }
.mx-score .lbl { display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.mx-score .bar { height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.mx-score .bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width 0.6s var(--ease); }
.mx-detail .wave { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.92rem; color: var(--ink-2); }

.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: m; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } }
.method .card { position: relative; }
.method .card .n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; display: block; }

/* ---------- Operating model: squad diagram ---------- */
.squad-diagram { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 14px; align-items: stretch; position: relative; }
@media (max-width: 900px) { .squad-diagram { grid-template-columns: 1fr; } }
.sq-col { border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sq-col > h4 { margin: 0 0 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; }
.sq-col > h4 svg { width: 18px; height: 18px; }
.sq-col.biz { background: #f1e9ff; }
.sq-col.biz > h4 { color: var(--brand-3); }
.sq-col.hub { background: var(--brand-soft); }
.sq-col.hub > h4 { color: var(--brand-ink); }
.sq-col.infra { background: #e3f8fb; }
.sq-col.infra > h4 { color: #0e7490; }
.sq-box { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; border: 1px solid rgba(10, 15, 31, 0.06); box-shadow: var(--shadow-sm); }
.sq-box b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 4px; }
.sq-box small { color: var(--muted); font-size: 0.85rem; line-height: 1.45; display: block; }
.sq-people { display: flex; gap: 4px; margin-top: 10px; }
.sq-people i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); opacity: 0.85; display: block; position: relative; }
.sq-people i::after { content: ""; position: absolute; inset: 6px 7px 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.sq-people i.po { background: var(--ink); }
.sq-squads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .sq-squads { grid-template-columns: 1fr; } }
.sq-link { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sq-link svg { width: 100%; max-width: 80px; height: 14px; }
.sq-link .line { stroke: var(--brand); stroke-width: 2; }
.sq-connector { display: none; }
@media (min-width: 901px) {
  .sq-connector { display: block; position: absolute; top: 50%; width: 14px; height: 2px; background: var(--brand); z-index: 2; }
  .sq-connector.c1 { left: calc((100% - 28px) * 0.2778); }
  .sq-connector.c2 { left: calc((100% - 28px) * 0.7222 + 14px); }
}
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1020px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .roles { grid-template-columns: 1fr; } }
.role-card { text-align: left; }
.role-card .avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--brand); }
.role-card .avatar svg { width: 26px; height: 26px; }

.rhythm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .rhythm { grid-template-columns: 1fr; } }
.rhythm .beat { border-radius: var(--radius-sm); padding: 16px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.rhythm .beat .freq { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #67e8f9; }
.rhythm .beat h4 { margin: 6px 0 4px; font-size: 1rem; }
.rhythm .beat p { font-size: 0.88rem; margin: 0; }

/* Vertical roadmap variant (used beside other content) */
.roadmap.vertical { grid-template-columns: 1fr; }
.roadmap.vertical::before { left: 10px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
.roadmap.vertical .horizon { padding-top: 0; padding-left: 44px; }
.roadmap.vertical .horizon::before { top: 18px; left: 0; }
.mx-bubble { aspect-ratio: 1 / 1; height: auto; }
@media (max-width: 640px) {
  .svc-card.span-6 { grid-template-columns: 1fr !important; gap: 12px !important; }
  .mx-bubble { font-size: 0.68rem; }
}
