/* SpaceXTech — design system
   Light, airy base · deep navy text · indigo→cyan accent · soft motion */

:root {
  --ink: #0a0f1f;
  --ink-2: #1b2238;
  --muted: #5b6478;
  --muted-2: #8a93a6;
  --line: #e6e8f0;
  --line-2: #d8dcea;
  --bg: #fafbfe;
  --surface: #ffffff;
  --soft: #f2f4fb;
  --soft-2: #eaedfa;

  --brand: #4f46e5;
  --brand-ink: #3730a3;
  --brand-2: #06b6d4;
  --brand-3: #7c3aed;
  --brand-soft: #eef0ff;
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f3ecff 50%, #e6f9fc 100%);

  --dark: #070b18;
  --dark-2: #0f1528;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-muted: #a3acc2;

  --ok: #10b981;
  --warn: #f59e0b;
  --risk: #ef4444;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 31, 0.06), 0 1px 1px rgba(10, 15, 31, 0.04);
  --shadow: 0 10px 30px -12px rgba(20, 24, 60, 0.18), 0 2px 6px rgba(20, 24, 60, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 90, 0.28), 0 8px 20px -8px rgba(30, 27, 90, 0.12);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.45); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(79, 70, 229, 0.18); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: calc(var(--section-y) * 0.6) 0; }
.section-soft { background: var(--soft); }
.section-tint { background: var(--grad-soft); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.28rem); color: var(--muted); line-height: 1.6; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 15, 31, 0.5); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(79, 70, 229, 0.55); background: var(--brand-ink); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.7); }
.btn-grad:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(79, 70, 229, 0.75); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--brand-ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 251, 254, 0.78);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 15, 31, 0.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--soft-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
  .mobile-nav .btn-row { margin-top: 28px; flex-direction: column; }
  .mobile-nav .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) { .header-cta .btn-primary { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #c7c4ff; top: -160px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: #b9f0f7; bottom: -160px; right: 22%; animation-delay: -6s; }
.blob-3 { width: 360px; height: 360px; background: #e5d4ff; top: 10%; left: -160px; animation-delay: -11s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, 30px) scale(1.08); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; color: var(--muted); font-size: 0.92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--ok); }
.hero-visual { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2); margin-bottom: 24px;
}
.pill b { background: var(--grad); color: #fff; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Inner page hero */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero .lead { margin-bottom: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--muted-2); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding: 26px 0; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.trust-items { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); align-items: center; justify-content: center; }
.trust-items span { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); font-size: 1rem; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; }
.trust-items svg { width: 20px; height: 20px; color: var(--brand); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card h3, .card h4 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; }
.card .link-arrow { margin-top: 18px; }
.card-flat { box-shadow: none; background: var(--soft); border-color: transparent; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 20px; flex: none;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.grad { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.6); }
.icon-badge.cyan { background: #e3f8fb; color: #0891b2; }
.icon-badge.violet { background: #f1e9ff; color: var(--brand-3); }
.icon-badge.sm { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 14px; }
.icon-badge.sm svg { width: 20px; height: 20px; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--soft-2); color: var(--ink-2); }
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag.ok { background: #e7f8f1; color: #047857; }
.tag.warn { background: #fff4e0; color: #b45309; }
.tag.risk { background: #feecec; color: #b91c1c; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 1020px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; } }
.service-card { display: flex; flex-direction: column; min-height: 100%; }
.service-card .meta { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.service-card .num { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 700; color: var(--line-2); font-size: 1.1rem; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.check-list.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .check-list.two { grid-template-columns: 1fr; } }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--soft-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 9; }
.media-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
  font-size: 0.9rem; color: var(--ink-2);
}
.media-badge .icon-badge { margin: 0; width: 40px; height: 40px; border-radius: 12px; }
.media-badge b { display: block; color: var(--ink); font-family: var(--font-display); }

/* ---------- Dark section ---------- */
.dark { background: var(--dark); color: var(--dark-muted); position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark p { color: var(--dark-muted); }
.dark .eyebrow { color: #a5b4fc; }
.dark .card { background: var(--dark-2); border-color: var(--dark-line); box-shadow: none; }
.dark .card p { color: var(--dark-muted); }
.dark .tag { background: rgba(255, 255, 255, 0.08); color: #dfe4f5; }
.dark-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 65%); top: -300px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.dark-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 70%);
}

/* ---------- Stage flow (AI Factory) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; counter-reset: stage; }
.flow-step { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dark .flow-step { background: var(--dark-2); border-color: var(--dark-line); }
.flow-step .n { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; font-size: 0.95rem; }
.flow-step h4 { margin-bottom: 6px; }
.flow-step p { font-size: 0.92rem; margin-bottom: 12px; }
.flow-step .gate { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; color: var(--ok); }
.dark .flow-step .gate { color: #6ee7b7; }
.flow-step .gate svg { width: 14px; height: 14px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -12px; width: 10px; height: 10px; z-index: 2;
  border-top: 2px solid var(--brand-2); border-right: 2px solid var(--brand-2); transform: rotate(45deg);
}
@media (max-width: 1020px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -12px; right: 50%; transform: translateX(50%) rotate(135deg); }
}

/* Numbered steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-family: var(--font-display); }
.step h4 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* Timeline row (3-up journey) */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.journey::before { content: ""; position: absolute; top: 33px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
.journey .card { z-index: 1; }
.journey .dot { width: 66px; height: 66px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.journey .dot svg { width: 28px; height: 28px; color: var(--brand); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .journey::before { display: none; } }

/* Stats (framework facts only — never invented client metrics) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--surface); padding: 28px 24px; }
.fact .v { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.fact .l { color: var(--muted); font-size: 0.92rem; }
.dark .facts { background: var(--dark-line); border-color: var(--dark-line); }
.dark .fact { background: var(--dark-2); }
.dark .fact .v { color: #fff; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Industry chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 0.95rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.chip:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.chip .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.chip .ic svg { width: 18px; height: 18px; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 0.92rem; cursor: pointer; color: var(--ink-2); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { border-color: var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp 0.45s var(--ease); }

/* Accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform 0.25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-display); color: var(--ink); background: var(--soft); font-weight: 600; font-size: 0.88rem; }
.table tr:last-child td { border-bottom: 0; }

/* Illustrative example card */
.example { border: 1px dashed var(--line-2); background: var(--surface); }
.example .tag { margin-bottom: 14px; }
.example dl { margin: 16px 0 0; display: grid; gap: 12px; }
.example dt { font-weight: 700; color: var(--ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.example dd { margin: 2px 0 0; color: var(--muted); }

/* CTA banner */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); overflow: hidden;
  background: var(--dark); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(124, 58, 237, 0.55), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(6, 182, 212, 0.35), transparent 60%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #c9cfe2; margin: 0; }
.cta-banner .btn-row { justify-content: flex-end; }
@media (max-width: 900px) { .cta-banner { grid-template-columns: 1fr; } .cta-banner .btn-row { justify-content: flex-start; } }

/* Callout / note */
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-size: 0.95rem; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14); }
.form-status { font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 80px 0 32px; position: relative; overflow: hidden; }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #a5b4fc; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"] { transform: scale(0.96); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes flowdash { to { stroke-dashoffset: -40; } }
.float { animation: floaty 6s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; }
.float.d3 { animation-delay: -4s; }
.draw path, .draw line, .draw polyline, .draw circle.ring { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.draw.is-in path, .draw.is-in line, .draw.is-in polyline, .draw.is-in circle.ring { animation: dash 1.8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
.flow-line { stroke-dasharray: 6 8; animation: flowdash 1.6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .draw path, .draw line, .draw polyline, .draw circle.ring { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.gap-lg { gap: clamp(24px, 3vw, 40px); }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 48px 0; }
.max-640 { max-width: 640px; }
.w-full { width: 100%; }

/* ---------- Hero product panel (illustrative UI) ---------- */
.hero-panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 20px; }
.hp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hp-dots { display: flex; gap: 6px; }
.hp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.hp-title { font-size: 0.8rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.hp-title svg { width: 18px; height: 18px; }
.hp-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.hp-stage { font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.hp-stage .bar { height: 6px; border-radius: 6px; background: var(--soft-2); margin-top: 6px; overflow: hidden; }
.hp-stage .bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.4s var(--ease); }
.is-in .hp-stage .bar span { width: var(--w, 100%); }
.hp-rows { display: grid; gap: 8px; margin-bottom: 16px; }
.hp-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 0.82rem; }
.hp-row b { color: var(--ink); font-weight: 600; display: block; font-size: 0.85rem; }
.hp-row small { color: var(--muted); }
.hp-row .tag { font-size: 0.7rem; padding: 3px 8px; }
.hp-chart { border-radius: 14px; background: var(--soft); padding: 12px 14px 8px; }
.hp-chart-h { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.hp-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 0.82rem; z-index: 2; }
.hp-float b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 0.9rem; }
.hp-float small { color: var(--muted); }
.hp-float .icon-badge { margin: 0; width: 36px; height: 36px; border-radius: 11px; }
.hp-float .icon-badge svg { width: 18px; height: 18px; }
.hp-float.f1 { top: -22px; left: -34px; }
.hp-float.f2 { bottom: -26px; right: -26px; }
.bubble { transform-origin: center; transform-box: fill-box; transform: scale(0); transition: transform 0.9s var(--ease); }
.is-in .bubble { transform: scale(1); }
@media (max-width: 640px) { .hp-float.f1 { left: -8px; top: -30px; } .hp-float.f2 { right: -6px; } }

/* Problem cards */
.problem-card .icon-badge { background: #fff1f1; color: #e11d48; }
.problem-card .fix { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 0.9rem; color: var(--ink-2); display: flex; gap: 8px; }
.problem-card .fix svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }

/* Pillars (framework) */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.service-wide { display: grid !important; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 640px) { .service-wide { grid-template-columns: 1fr; gap: 12px; } }

main { overflow-x: clip; }

/* ---------- Brand lockup: Space X Technologies ---------- */
.brand { gap: 11px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.025em; color: var(--ink); }
.brand-sub { font-family: var(--font-body); font-weight: 600; font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; padding-left: 1px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--dark-muted); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark { transition: transform 0.4s var(--ease); border-radius: 10px; }

/* ---------- Wordmark logo (Space X Technologies, Loop e) ---------- */
.brand-logo { display: block; height: 56px; width: auto; }
.site-footer .brand-logo { height: 64px; }
.brand:hover .brand-logo { opacity: 0.85; }
@media (max-width: 480px) { .brand-logo { height: 48px; } }
