/* ==========================================================================
   BluestarAI — Marketing design system
   Tokens from official Brand Guidelines:
     Space Blue #3148B9 · Orange #F24C03 · Dark Blue #0B1828
     White #FFFFFF · Grey #232323 · Blue Black #020409
   Headlines: Raleway SemiBold · Subheads: Raleway Medium · Body: Montserrat
   ========================================================================== */

@font-face { font-family: 'Raleway'; src: url('/static/fonts/raleway-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/static/fonts/raleway-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/static/fonts/raleway-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/static/fonts/raleway-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --space-blue: #3148B9;
  --space-blue-deep: #24359A;
  --orange: #F24C03;
  --orange-hot: #FF5C10;
  --dark-blue: #0B1828;
  --blue-black: #020409;
  --grey: #232323;
  --white: #FFFFFF;
  --ink: #0A0F1C;
  --muted: #4A5568;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --line: rgba(10, 15, 28, 0.10);
  --line-dark: rgba(255, 255, 255, 0.12);
  --grad-1: radial-gradient(1200px 700px at 78% -10%, rgba(49, 72, 185, 0.55), transparent 60%),
            radial-gradient(900px 600px at 8% 110%, rgba(242, 76, 3, 0.16), transparent 55%),
            linear-gradient(180deg, #020409 0%, #050A18 55%, #0B1828 100%);
  --grad-2: linear-gradient(160deg, #F24C03 0%, #7A3E7E 52%, #3148B9 100%);
  --grad-text: linear-gradient(100deg, #FF5C10 0%, #C05B8F 45%, #6E86E8 100%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 8px 30px rgba(2, 4, 9, 0.08);
  --shadow-2: 0 24px 70px rgba(2, 4, 9, 0.16);
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(49, 72, 185, 0.25); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.14; letter-spacing: -0.015em; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-dark { background: var(--blue-black); color: var(--white); }
.section-soft { background: #F5F6FA; }
.section-tint { background: linear-gradient(180deg, #F5F6FA 0%, #FFFFFF 100%); }

/* Eyebrow labels — the one place accent color is allowed on type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-dark .eyebrow { color: var(--orange-hot); }
.section-dark .eyebrow::before { background: var(--orange-hot); }

.h-display { font-size: clamp(40px, 5.4vw, 68px); }
.h-1 { font-size: clamp(30px, 3.6vw, 46px); }
.h-2 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.section-dark .lead { color: var(--muted-dark); }

/* Gradient headline (hero moments on dark only, per guidelines) */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.78); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(242, 76, 3, 0.35); }
.btn-primary:hover { background: var(--orange-hot); box-shadow: 0 14px 34px rgba(242, 76, 3, 0.45); }
.btn-blue { background: var(--space-blue); color: #fff; box-shadow: 0 10px 26px rgba(49, 72, 185, 0.35); }
.btn-blue:hover { background: var(--space-blue-deep); }
.btn-ghost-dark { border-color: var(--line-dark); color: #fff; background: rgba(255,255,255,0.04); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.btn-ghost-light { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost-light:hover { border-color: rgba(10,15,28,0.3); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-1);
  color: #fff;
  padding: 120px 0 110px;
}
.hero-star {
  position: absolute; right: -140px; top: -80px; width: 640px; opacity: 0.5;
  transform: rotate(12deg); pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(49, 72, 185, 0.5));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 8px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 26px;
  background: rgba(255,255,255,0.04);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-hot); box-shadow: 0 0 12px var(--orange-hot); }
.hero p.lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.55); }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* hero product card (app preview mock) */
.hero-visual { position: relative; }
.mock {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2), 0 0 90px rgba(49, 72, 185, 0.28);
  overflow: hidden; backdrop-filter: blur(8px);
}
.mock-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.mock-bar i:first-child { background: var(--orange); }
.mock-body { padding: 20px; font-family: var(--font-body); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; }
.mock-row + .mock-row { border-top: 1px solid rgba(255,255,255,0.06); }
.mock-ava { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.mock-name { font-weight: 600; font-size: 13.5px; }
.mock-sub { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.mock-score { margin-left: auto; text-align: right; }
.mock-score b { font-family: var(--font-head); font-size: 17px; }
.mock-signal { font-size: 10.5px; color: rgba(255,255,255,0.5); }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; }
.chip-orange { background: rgba(242, 76, 3, 0.18); color: #FF9166; }
.chip-blue { background: rgba(49, 72, 185, 0.3); color: #9DB0FF; }
.mock-float {
  position: absolute; right: -18px; bottom: -24px;
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-2);
  display: flex; gap: 14px; align-items: center;
}
.mock-float b { font-family: var(--font-head); font-size: 22px; color: var(--space-blue); }
.mock-float span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------- logo strip */
.strip { border-block: 1px solid var(--line); background: #fff; padding: 26px 0; }
.strip-inner { display: flex; align-items: center; gap: 18px 46px; flex-wrap: wrap; justify-content: center; }
.strip span { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; font-size: 14px; color: #9AA3B5; text-transform: uppercase; }
.strip span a { color: inherit; text-decoration: none; transition: color .15s ease; }
.strip span a:hover { color: var(--orange); }

/* ----------------------------------------------------------------- cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-1);
}
.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 34px;
}
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 20px; font-size: 22px;
}
.icon-blue { background: rgba(49, 72, 185, 0.10); color: var(--space-blue); }
.icon-orange { background: rgba(242, 76, 3, 0.10); color: var(--orange); }
.icon-dark { background: rgba(255,255,255,0.07); color: #fff; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.section-dark .card p { color: var(--muted-dark); }

/* ------------------------------------------------------------ feature list */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 56px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); overflow: hidden; background: #fff;
}
.fv-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fv-title { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.fv-body { padding: 18px 20px; }
.scorebar { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.scorebar span:first-child { width: 130px; font-size: 12.5px; color: var(--muted); }
.bar { flex: 1; height: 8px; border-radius: 999px; background: #EDEFF5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.bar-blue i { background: var(--space-blue); }
.bar-orange i { background: var(--orange); }
.bar-purple i { background: linear-gradient(90deg, #F24C03, #3148B9); }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 40px 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); color: #fff;
}
.step::after {
  content: ""; position: absolute; left: 21.5px; top: 48px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--line-dark), transparent);
}
.step:last-child::after { display: none; }
.step h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted-dark); font-size: 14.5px; }

/* ------------------------------------------------------------- testimonials */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-mark { font-family: var(--font-head); font-size: 54px; line-height: 0.6; color: var(--orange); margin-top: 8px; }
.quote-card p { color: var(--ink); font-size: 15.5px; }
.quote-who b { font-size: 14px; }
.quote-who span { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--space-blue); box-shadow: 0 20px 60px rgba(49, 72, 185, 0.18); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--space-blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 44px; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-feats { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-feats li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.price-feats li::before { content: ""; flex: none; width: 9px; height: 5px; margin-top: 5px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg); border-radius: 1px; }
.price-feats li.no { opacity: 0.45; }
.price-feats li.no::before { content: "—"; color: #B7BFCC; }

/* -------------------------------------------------------------------- faq */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; }

/* -------------------------------------------------------------------- cta */
.video-frame { max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.10); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-1); color: #fff; border-radius: var(--radius-lg);
  padding: 72px 64px; text-align: left;
}
.cta-band .eyebrow { color: var(--orange-hot); }
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(242, 76, 3, 0.35), transparent);
  pointer-events: none;
}

/* ----------------------------------------------------------------- footer */
.footer { background: var(--blue-black); color: rgba(255,255,255,0.72); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,0.66); }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 12.5px; color: rgba(255,255,255,0.45); }
.footer-logo img { height: 26px; margin-bottom: 18px; }
.footer p { font-size: 13.5px; max-width: 320px; }

/* ----------------------------------------------------------------- misc */
.kpi-inline { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.kpi-inline b { font-family: var(--font-head); font-size: 26px; display: block; }
.kpi-inline span { font-size: 12.5px; color: var(--muted); }
.section-dark .kpi-inline span { color: var(--muted-dark); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.flash { max-width: var(--max-w); margin: 14px auto 0; padding: 0 28px; }
.flash div { border-radius: var(--radius-sm); padding: 13px 18px; font-size: 14px; font-weight: 500; }
.flash .success { background: #EAF7EE; color: #1D7A3E; border: 1px solid #BFE5CB; }
.flash .error { background: #FDEBE7; color: #B23416; border: 1px solid #F5C4B8; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row .feature-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(2,4,9,0.97); padding: 18px 28px; border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px 0; font-size: 16px; }
  .nav-burger { display: block; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 48px 28px; }
}

/* ==========================================================================
   Marketing expansion (u9) — solutions, customers, resources, faq, security,
   changelog, integrations, book, legal · nav/footer · newsletter · cookies
   ========================================================================== */

/* ---- accessibility + utilities --------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 120;
  background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.section-dark .muted { color: var(--muted-dark); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.input {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--space-blue); box-shadow: 0 0 0 3px rgba(49,72,185,0.14); }
.input-lg { padding: 14px 16px; font-size: 15px; }

.card-accent { border: 1.5px solid var(--space-blue); box-shadow: 0 16px 44px rgba(49,72,185,0.12); }
.contrib { list-style: none; }
.contrib li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contrib li:last-child { border-bottom: 0; }
.contrib li b { color: var(--space-blue); font-family: var(--font-head); }

.empty-state { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h3, .empty-state b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.empty-state p { max-width: 46ch; color: var(--muted); font-size: 14.5px; }
.empty-glyph { font-size: 30px; color: var(--orange); margin-bottom: 4px; }

/* ---- breadcrumbs ------------------------------------------------------ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: #fff; }
.crumbs-here { color: #fff; font-weight: 600; }

/* ---- resources index -------------------------------------------------- */
.res-feature { display: grid; grid-template-columns: 1.7fr 0.8fr; gap: 0; overflow: hidden; padding: 0; text-decoration: none; }
.res-feature-main { padding: 44px 44px 40px; }
.res-feature-aside {
  background: var(--grad-2); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 30px;
}
.res-glyph { font-size: 54px; line-height: 1; opacity: 0.9; }
.res-aside-k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.res-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.res-feature .res-meta { color: var(--muted); }
.res-dot { opacity: 0.5; }
.res-readmore { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--space-blue); font-size: 14.5px; }
.res-feature:hover .res-readmore { gap: 12px; }
.res-readmore svg { transition: transform .15s; }
.res-readmore svg { transform: none; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.res-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.res-title { font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.res-excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.res-date { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.res-card:hover .res-title { color: var(--space-blue); }

/* ---- article ---------------------------------------------------------- */
.article-hero { position: relative; background: var(--grad-1); color: #fff; padding: 76px 0 72px; }
.article-hero .lead { color: var(--muted-dark); }
.article-layout { display: grid; grid-template-columns: 1.7fr 0.9fr; gap: 48px; align-items: start; }
.article-body { max-width: 70ch; }
.article-body p { font-size: 16.5px; color: var(--ink); margin-bottom: 20px; }
.article-body p:first-of-type { font-size: 18px; color: var(--ink); }
.article-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.article-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.aside-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.aside-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.aside-item:last-child { border-bottom: 0; }
.aside-item b { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; }
.aside-item:hover b { color: var(--space-blue); }
.aside-item .chip { align-self: flex-start; }
.aside-item .chip-blue { background: rgba(49,72,185,0.12); color: var(--space-blue); }

/* ---- solutions -------------------------------------------------------- */
.sol-card { display: flex; flex-direction: column; }
.sol-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.sol-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); }
.sol-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg); border-radius: 1px; }
.card-dark .sol-list li { color: var(--muted-dark); }

.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.outcome { border-left: 3px solid var(--orange); padding: 4px 0 4px 18px; }
.outcome b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--space-blue); }
.outcome span { font-size: 13.5px; color: var(--muted); }

/* ---- customers -------------------------------------------------------- */
.case-list { display: flex; flex-direction: column; gap: 28px; }
.case-card { padding: 34px; }
.case-head { display: flex; align-items: center; gap: 16px; }
.case-head h3 { margin: 0; }
.case-tag { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(242,76,3,0.3); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.case-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-top: 24px; }
.case-body p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.case-body p:last-child { margin-bottom: 0; }
.case-body b { color: var(--ink); }
.case-stats { display: flex; flex-direction: column; gap: 14px; background: #F5F6FA; border-radius: var(--radius-md); padding: 22px; }
.case-stat b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--space-blue); }
.case-stat span { font-size: 12.5px; color: var(--muted); }
.case-quote { margin-top: 26px; background: #F5F6FA; border: 0; box-shadow: none; }

/* ---- faq -------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.faq-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { font-size: 14px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.faq-nav a:hover { color: var(--space-blue); font-weight: 600; }
.faq-main { display: flex; flex-direction: column; gap: 44px; }
.faq-group .h-2 { margin-top: 6px; margin-bottom: 20px; }
.faq-group .faq { max-width: none; }
.faq-cta { margin-top: 8px; }

/* ---- security --------------------------------------------------------- */
.sec-card { display: flex; flex-direction: column; }

/* ---- changelog -------------------------------------------------------- */
.changelog { display: flex; flex-direction: column; gap: 32px; position: relative; }
.cl-entry { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.cl-when { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.cl-when b { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); }
.cl-when span { font-size: 12.5px; color: var(--muted); }
.cl-what { padding: 30px; }
.cl-what .h-2 { margin: 14px 0 18px; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cl-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--muted); }
.cl-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.cl-list li b { color: var(--ink); }
.cl-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.cl-tag { font-size: 11.5px; font-weight: 600; color: var(--space-blue); background: rgba(49,72,185,0.09); border-radius: 999px; padding: 4px 11px; }

/* ---- integrations ----------------------------------------------------- */
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.integr-card { display: flex; flex-direction: column; }
.integr-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.integr-card .h-2 { margin: 12px 0 12px; font-size: 20px; }
.integr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.ig-chip { font-size: 12px; font-weight: 600; color: var(--ink); background: #F5F6FA; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: #CDE3FF; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ---- book ------------------------------------------------------------- */
.book-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: start; }
.book-form-wrap { padding: 36px; }
.book-aside { display: flex; flex-direction: column; gap: 20px; }
.book-aside .steps { margin: 0; }
.book-aside .step h3 { font-size: 15.5px; }
.book-aside .step p { font-size: 13.5px; }

/* ---- legal ------------------------------------------------------------ */
.legal-hero { position: relative; background: var(--grad-1); color: #fff; padding: 72px 0 64px; }
.legal-hero .lead { color: var(--muted-dark); font-size: 15px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { font-size: 13.5px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-nav a:hover { color: var(--space-blue); font-weight: 600; }
.legal-body { max-width: 76ch; }
.legal-body section { margin-bottom: 34px; scroll-margin-top: 92px; }
.legal-body h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.legal-body p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.legal-body p b { color: var(--ink); }
.legal-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.legal-body li { position: relative; padding-left: 22px; font-size: 15px; color: var(--muted); }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.legal-body a { color: var(--space-blue); font-weight: 600; }
.legal-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- newsletter forms ------------------------------------------------- */
.news-form { display: flex; gap: 10px; align-items: stretch; }
.news-form .input { flex: 1; }
.news-form-inline { max-width: 460px; }

/* ---- footer additions ------------------------------------------------- */
.footer-top { display: grid; grid-template-columns: 1.3fr 2.4fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { font-size: 13.5px; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; padding: 5px 0; color: rgba(255,255,255,0.66); }
.footer-col a:hover { color: #fff; }
.footer-static { display: block; font-size: 12.5px; padding: 5px 0; color: rgba(255,255,255,0.45); }
.footer-news { margin-top: 20px; }
.footer-news-lbl { display: block; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; letter-spacing: 0.02em; }
.footer-news-row { display: flex; gap: 8px; max-width: 360px; }
.footer-news-input { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 13.5px; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); border-radius: 999px; padding: 10px 16px; }
.footer-news-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-news-input:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: #fff; }

/* ---- cookie consent --------------------------------------------------- */
.cookie { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; width: min(680px, calc(100% - 32px)); }
.cookie-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: var(--blue-black); color: rgba(255,255,255,0.82);
  border: 1px solid var(--line-dark); border-radius: var(--radius-md);
  padding: 18px 22px; box-shadow: var(--shadow-2);
}
.cookie-inner p { font-size: 13px; max-width: 400px; }
.cookie-inner b { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 1020px) {
  .res-grid, .integr-grid, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .res-feature { grid-template-columns: 1fr; }
  .res-feature-aside { padding: 24px; flex-direction: row; justify-content: flex-start; }
  .article-layout, .faq-layout, .legal-layout, .book-grid, .cl-entry { grid-template-columns: 1fr; gap: 32px; }
  .article-aside, .faq-nav, .legal-nav, .cl-when { position: static; }
  .faq-nav, .legal-nav { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
  .faq-nav a, .legal-nav a { border-bottom: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .res-grid, .integr-grid, .outcome-grid, .field-row, .price-grid { grid-template-columns: 1fr; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 8px 13px; font-size: 12.5px; }
  .case-card, .cl-what, .book-form-wrap, .res-feature-main { padding: 24px; }
  .outcome b { font-size: 28px; }
  .news-form { flex-direction: column; }
  .footer-cols { gap: 20px; }
  .cookie { bottom: 12px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* ---- a11y: focus + reduced motion (marketing) ---- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .nav-links a:focus-visible, .footer a:focus-visible, .faq-item summary:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- inline SVG icon system (font-independent) ------------------------- */
.bsi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.icon-badge .bsi { width: 24px; height: 24px; vertical-align: 0; }
.empty-glyph .bsi,
.res-glyph .bsi { width: 1em; height: 1em; display: block; }
.btn .bsi { width: 15px; height: 15px; vertical-align: -2px; }

/* ---- Legal document tables (DPA / subprocessors / compliance) ---------- */
.table-wrap { overflow-x: auto; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  text-align: left; font-family: var(--font-head, inherit); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); background: rgba(10, 15, 28, 0.03);
  padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table code { font-size: 12.5px; }

/* ---- Team / leadership ------------------------------------------------ */
.team-leads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.team-photo { position: relative; aspect-ratio: 1 / 1; background: #F5F6FA; overflow: hidden; }
.team-leads .team-photo { aspect-ratio: 4 / 5; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-body { padding: 18px 20px 22px; }
.team-name { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.2; }
.team-role { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--space-blue); margin-top: 6px; }
.team-card.lead .team-role { color: var(--orange); }
.team-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--orange); color: #fff; font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(242, 76, 3, 0.35);
}
.section-dark .team-card,
.section-soft .team-card { background: #fff; }
.section-dark .team-card { background: rgba(255, 255, 255, 0.05); border-color: var(--line-dark); }
.section-dark .team-name { color: #fff; }
.section-dark .team-photo { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 1020px) {
  .team-leads { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-leads, .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile optimization pass (r18)
   Fixes found by the mobile audit (dev/tools/mobile_audit.py):
     * footer legal row forced a 648px page width -> horizontal scroll on every
       marketing page
     * nav logo collapsed to ~10px on small phones (flex-shrink)
     * footer link tap targets were only ~18px tall
   ========================================================================== */

/* --- Global safety net: never let one stray element scroll the whole page.
       `clip` (not `hidden`) keeps position:sticky nav + smooth scrolling. --- */
body { overflow-x: clip; }

/* --- Nav: logo must keep its aspect; controls shrink, not vanish --- */
.nav-logo { flex: 0 0 auto; }
.nav-logo img { width: auto; }

@media (max-width: 480px) {
  .nav .wrap { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-logo img { height: 24px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 7px 11px; font-size: 12px; }
  .nav-burger { padding: 7px; }
}

/* --- Footer: legal links wrap, and grid/flex children may shrink --- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-top > *, .footer-cols > *, .footer-col, .footer-brand { min-width: 0; }
.footer-news-row { max-width: 100%; }
.footer p, .footer-brand p { max-width: 100%; }

@media (max-width: 640px) {
  .footer { padding: 54px 0 26px; }
  .footer-bottom { gap: 8px 14px; }
  .footer-cols { gap: 20px 16px; }
  /* thumb-friendly tap targets for link lists */
  .footer-col a, .footer-legal a { padding: 9px 0; }
  .footer-legal a { min-height: 40px; display: inline-flex; align-items: center; }
  .footer-static { padding: 8px 0; }
}

/* --- Mobile nav: fold "Sign in" into the burger menu on tiny phones so the
       logo + primary CTA always fit (prevents the 320px nav overflow). --- */
.nav-signin-mobile { display: none; }

@media (max-width: 480px) {
  .nav-cta .btn-ghost-dark { display: none; }
  .nav-links .nav-signin-mobile { display: block; }
}

/* --- Long button labels must wrap on narrow screens (e.g. "Talk to us about
       a connector" — .btn is nowrap by default). --- */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* --- Grid/flex children may shrink below their content min-width --- */
.book-grid > *, .res-feature > *, .integr-grid > *, .res-grid > *,
.outcome-grid > *, .price-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }

/* ==========================================================================
   Mobile optimization pass (r19)
   Residual defect from the mobile audit (dev/tools/mobile_audit.py):
     * on /customers at 320px the `.case-tag` ("Latest win") could neither
       shrink nor wrap inside the non-wrapping `.case-head` flex row, so the
       tag spilled 11px past the viewport and forced the whole page to 331px
       (horizontal scroll — the last remaining one on the site).
   ========================================================================== */
@media (max-width: 640px) {
  .case-head { flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
  .case-head h3 { min-width: 0; }
  .case-tag { margin-left: 0; }
}

/* --- r19b: tap-target polish for marketing pages ------------------------- */
/* Inline policy links shown as list items (e.g. "Reviewable paperwork" on the
   home page) were only ~18px tall; give them a real touch row. */
@media (max-width: 640px) {
  .sol-list a { display: inline-block; padding: 5px 0; }
}
/* Consent / option checkboxes were rendering at the UA default 13px. */
input[type="checkbox"], input[type="radio"] { min-width: 18px; min-height: 18px; }

/* ==========================================================================
   Premium 3D enhancement layer (r20)
   Pure CSS 3D + small self-hosted canvas. No external libraries (CSP-safe),
   no added network assets. Brand tokens only. All effects are additive:
   the page is complete and readable if this block never runs.

   C1 .scene-3d / .tilt-3d / .float-chip / .hero-orb / .scan-line
   C2 .section-aurora / .aurora-canvas
   C3 .orb-wrap / .orb-center / .orb-legend
   C4 .card3d
   C5 .nav-logo[data-3d-logo]
   ========================================================================== */

/* ---------- C1: hero depth scene ----------------------------------------- */
.scene-3d { perspective: 1400px; perspective-origin: 50% 42%; }
.tilt-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -11deg));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.tilt-3d .mock {
  transform: translateZ(0);
  box-shadow: var(--shadow-2),
              0 60px 120px -34px rgba(49, 72, 185, .55),
              0 0 90px rgba(49, 72, 185, .26);
}
.tilt-3d .mock-float { transform: translateZ(46px); }

.hero-orb {
  position: absolute;
  top: -16%; right: -10%;
  width: 420px; height: 420px;
  max-width: 78%; max-height: 78%;
  border-radius: 50%;
  background: var(--grad-2);
  filter: blur(48px);
  opacity: .42;
  mix-blend-mode: screen;
  transform: translateZ(-110px);
  pointer-events: none;
}
.scan-line {
  position: absolute; left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-hot), transparent);
  opacity: .55;
  transform: translateZ(30px);
  pointer-events: none;
  animation: bsi-scan 4.5s linear infinite;
}
@keyframes bsi-scan { 0% { top: 12%; } 100% { top: 88%; } }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -18px rgba(2, 4, 9, .8);
  font: 600 12.5px/1.2 var(--font-body);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}
.float-chip small { display: block; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, .6); }
.float-chip .ic {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff;
}
.fc-1 { top: -22px; right: -18px; transform: translateZ(90px); }
.fc-2 { bottom: -26px; left: -22px; transform: translateZ(140px); }
.fc-3 { top: 46%; right: -30px; transform: translateZ(60px); }

/* ---------- C2: brand aurora band ---------------------------------------- */
.section-aurora { position: relative; overflow: hidden; }
.aurora-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .50;
  pointer-events: none;
}
.section-aurora > .wrap { position: relative; z-index: 1; }
/* Keep the aurora canvas beneath content even when a band has no .wrap child
   (e.g. the standalone .cta-band reused on /pricing). */
.section-aurora > .aurora-canvas { z-index: 0; }
.section-aurora > *:not(.aurora-canvas) { position: relative; z-index: 1; }

/* ---------- C3: Bluestar Score data-orb ---------------------------------- */
.score-orb-block {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 44px;
}
.orb-wrap { position: relative; width: 300px; height: 300px; max-width: 100%; }
.orb-wrap canvas { display: block; width: 100%; height: 100%; }
.orb-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  pointer-events: none;
}
.orb-center b {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 52px; line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.orb-center span {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.orb-legend { display: grid; gap: 14px; max-width: 560px; }
.orb-legend .lg { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.orb-legend .lg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }

/* ---------- C4: scroll-driven depth cards -------------------------------- */
.js .card3d {
  transform: rotateX(12deg) translateY(22px);
  opacity: 0;
  transform-origin: 50% 100%;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease;
}
.js .card3d.in { transform: none; opacity: 1; }

/* ---------- C5: nav logomark pointer-parallax ---------------------------- */
/* Restraint by design: <=5px translate, <=6deg rotate. Reads as "alive"
   without ever looking loose or off-grid. Motion is driven by JS only, so
   no-hover / no-JS / reduced-motion clients keep a perfectly static mark. */
.nav-logo[data-3d-logo] {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}
.nav-logo[data-3d-logo] img {
  transition: filter .45s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 2px 6px rgba(2, 4, 9, .55));
}
/* Active state adds a soft brand glow so the mark reads as lifted off the bar. */
.nav-logo[data-3d-logo].logo-active img {
  filter: drop-shadow(0 7px 16px rgba(49, 72, 185, .55))
          drop-shadow(0 0 20px rgba(242, 76, 3, .26));
}

/* ---------- Responsive + motion safety ----------------------------------- */
@media (max-width: 900px) {
  .scene-3d { perspective: none; }
  .tilt-3d { transform: none; }
  .float-chip { display: none; }
  .hero-orb { width: 300px; height: 300px; filter: blur(40px); }
  .scan-line { display: none; }
  .score-orb-block { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
  .orb-wrap { width: 260px; height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt-3d { transform: none !important; transition: none; }
  .scan-line { animation: none; }
  .js .card3d { transform: none; opacity: 1; transition: none; }
  .nav-logo[data-3d-logo] { transform: none !important; will-change: auto; }
  .nav-logo[data-3d-logo].logo-active img {
    filter: drop-shadow(0 2px 6px rgba(2, 4, 9, .55));
  }
}
