/* ============ Design tokens ============ */
:root {
  --purple: #514FEE;
  --purple-10: rgba(81, 79, 238, .1);
  --purple-5:  rgba(81, 79, 238, .05);
  --midnight: #070628;
  --midnight-60: rgba(7, 6, 40, .6);
  --midnight-40: rgba(7, 6, 40, .4);
  --midnight-10: rgba(7, 6, 40, .1);
  --midnight-7:  rgba(7, 6, 40, .07);
  --off-white: #F7F7FF;
  --off-white-70: rgba(247, 247, 255, .7);
  --off-white-40: rgba(247, 247, 255, .4);
  --off-white-10: rgba(247, 247, 255, .1);
  --mint: #A8FFE5;
  --white: #FFFFFF;

  --radius-m: 24px;
  --radius-l: 32px;
  --radius-round: 9999px;

  --max-w: 1152px;
  --nav-h: 64px;
  --header-pad: 1rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--midnight);
  font-size: 1.125rem;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
::selection { background: var(--mint); color: var(--midnight); }

h1, h2, h3 { font-weight: 450; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.5rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; }
h3 { font-size: 1.25rem; line-height: 30px; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 8rem 0; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0; transform: translateY(34px) scale(.985); filter: blur(7px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; } .reveal.d5 { transition-delay: .45s; }

/* ============ Eyebrow badge ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--purple-5); color: var(--purple);
  border: 1px solid var(--purple-10);
  font-size: .875rem; font-weight: 500; line-height: 1;
  padding: .5rem .95rem; border-radius: var(--radius-round);
  width: fit-content;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow--dark { background: var(--off-white-10); color: var(--mint); border-color: rgba(168,255,229,.15); }

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius-round);
  font-size: 1rem; font-weight: 500; line-height: 1;
  padding: 1rem 1.7rem;
  cursor: pointer; border: none;
  transition: background .25s, color .25s, transform .25s var(--ease-out), box-shadow .25s;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--purple); color: var(--off-white); box-shadow: 0 8px 24px rgba(81,79,238,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #423fd8; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(81,79,238,.45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-white { background: var(--white); color: var(--midnight); box-shadow: 0 1px 3px rgba(7,6,40,.12), inset 0 0 0 1px var(--midnight-7); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(7,6,40,.14), inset 0 0 0 1px var(--midnight-10); }
.btn-white--purple { color: var(--purple); }
.btn-ghost-dark { background: var(--off-white-10); color: var(--off-white); box-shadow: inset 0 0 0 1px rgba(247,247,255,.14); }
.btn-ghost-dark:hover { background: rgba(247,247,255,.18); transform: translateY(-2px); }
.btn-sm { padding: .72rem 1.3rem; font-size: .9rem; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Header (floating pill) ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 999;
  padding: var(--header-pad) 1.25rem 0;
  transition: transform .4s var(--ease-out);
}
.nav-bar {
  max-width: 1240px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 .55rem 0 1.4rem;
  border-radius: var(--radius-round);
  transition: background .35s, box-shadow .35s, color .35s;
}
.site-header.at-top .nav-bar {
  color: var(--off-white);
  background: rgba(12, 10, 60, .32);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(247,247,255,.14), 0 8px 32px rgba(7,6,40,.25);
}
.site-header.scrolled .nav-bar {
  color: var(--midnight);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(7,6,40,.08), 0 12px 40px rgba(7,6,40,.12);
}
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.logo-img { height: 28px; width: auto; display: none; }
.site-header.at-top .logo-img--light { display: block; }
.site-header.scrolled .logo-img--dark { display: block; }
.footer-brand .logo-img--dark { display: block; }

.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .35rem;
  font-size: .875rem; font-weight: 500; line-height: 22px;
  padding: .55rem .85rem; border-radius: var(--radius-round);
  transition: background .2s;
  cursor: pointer; background: none; border: none; font-family: inherit; color: inherit;
}
.nav-link:hover { background: rgba(127,127,180,.16); }
.nav-link .chev { transition: transform .25s var(--ease-out); }
.nav-item:hover .chev { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: .4rem; }
.nav-cta .signin { font-size: .875rem; font-weight: 500; padding: .55rem .9rem; border-radius: var(--radius-round); transition: background .2s; }
.nav-cta .signin:hover { background: rgba(127,127,180,.16); }

/* Dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(10px) scale(.98);
  background: var(--white); color: var(--midnight);
  border-radius: 22px; box-shadow: 0 24px 64px rgba(7,6,40,.18), 0 0 0 1px var(--midnight-7);
  padding: .75rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  min-width: 300px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.dropdown.wide { min-width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; }
.dd-group-title { font-size: .72rem; font-weight: 500; color: var(--midnight-40); padding: .6rem .75rem .2rem; text-transform: uppercase; letter-spacing: .07em; }
.dd-item { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .75rem; border-radius: 14px; transition: background .15s; }
.dd-item:hover { background: var(--off-white); }
.dd-item .t { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.dd-item .s { font-size: .8rem; color: var(--midnight-60); line-height: 1.35; }
.dd-col { display: flex; flex-direction: column; }

.hamburger { display: none; background: none; border: none; color: inherit; cursor: pointer; padding: .5rem; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 998; background: var(--off-white); color: var(--midnight);
  padding: calc(var(--nav-h) + 4rem) 2rem 2rem; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .9rem 0; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--midnight-7); }

/* ============ Hero ============ */
.home-hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 5.5rem;
  padding: calc(var(--nav-h) + 7rem) 2rem 4rem;
  background: linear-gradient(180deg,
    #070628 0%, #09083a 6%, #0d0c52 12%, #141173 18%, #1b1894 24%,
    #2623b8 32%, #3a38d6 40%, #5552ea 50%, #6f6df5 62%,
    #9a99f8 74%, #c2c1fb 84%, #e3e3fd 93%, #f7f7fe 100%);
}
/* aurora blobs */
.aurora { position: absolute; inset: 0; pointer-events: none; }
/* soft ambient glows: pre-faded radial-gradients (no filter: blur / mix-blend, which tanked FPS) */
.blob { position: absolute; border-radius: 50%; will-change: transform; pointer-events: none; }
.blob.b1 {
  width: 620px; height: 620px; top: -16%; left: 2%;
  background: radial-gradient(circle, rgba(168,255,229,.24), transparent 70%);
  animation: drift1 16s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 780px; height: 780px; top: -8%; right: -12%;
  background: radial-gradient(circle, rgba(111,109,245,.38), transparent 70%);
  animation: drift2 20s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 460px; height: 460px; top: 24%; left: 36%;
  background: radial-gradient(circle, rgba(168,255,229,.12), transparent 70%);
  animation: drift1 24s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(70px, 50px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-90px, 60px) scale(.94); } }
/* faint grid lines */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(247,247,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,247,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
}

.hero-header { text-align: center; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.75rem; align-items: center; position: relative; z-index: 1; will-change: transform, opacity; }
.hero-header h1 { color: var(--off-white); text-wrap: balance; }
.hero-header h1 .w {
  display: inline-block; opacity: 0;
  transform: translateY(34px); filter: blur(10px);
  animation: heroWord 1.1s var(--ease-out) forwards;
}
@keyframes heroWord { to { opacity: 1; transform: none; filter: none; } }
.hero-header p {
  color: var(--off-white-70); max-width: 620px; margin: 0 auto; font-size: 1.125rem;
  opacity: 0; animation: heroFade 1.1s var(--ease-out) .55s forwards;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; margin-top: .5rem;
  opacity: 0; animation: heroFade 1.1s var(--ease-out) .75s forwards;
}
@keyframes heroFade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* rotating hero word */
.rotator-wrap { display: inline-block; white-space: nowrap; text-align: left; transition: width .5s var(--ease-out); }
.rotator {
  display: inline-block; color: var(--purple);
  background: var(--off-white);
  padding: 0 .18em; border-radius: .12em;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), filter .45s var(--ease-out);
}
.rotator.out { opacity: 0; transform: translateY(-28px) rotateX(55deg); filter: blur(6px); }
.rotator.prep { transition: none; opacity: 0; transform: translateY(28px) rotateX(-55deg); filter: blur(6px); }

/* platform trust strip */
.platforms { padding: 3rem 0 0; }
.trusted { text-align: center; }
.trusted .cap { font-size: 1.05rem; font-weight: 500; color: rgba(7,6,40,.8); letter-spacing: -0.01em; }
.logo-marquee {
  overflow: hidden;
  width: min(1280px, 94vw);
  margin: 2.25rem 0 0 calc(50% - min(640px, 47vw));
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  will-change: transform;
  animation: logo-marquee 45s linear infinite;
  animation-delay: 1s;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.plogo {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 0 1.6rem;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(7,6,40,.85); white-space: nowrap;
}
.plogo svg { width: 26px; height: 26px; flex: none; }
.trusted .sub { margin-top: 2rem; font-size: .95rem; color: var(--midnight-60); }

/* ============ Why section ============ */
.why { text-align: center; }
.why .inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.why h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); line-height: 1.3; text-wrap: balance; }
.why h2 .accent { color: var(--purple); }

/* ============ Data unification ============ */
.data-unif { padding-top: 2rem; }
.data-unif .head { text-align: center; max-width: 680px; margin: 0 auto 4rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.unif-diagram {
  max-width: 980px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-l);
  box-shadow: inset 0 0 0 1px var(--midnight-7), 0 24px 64px rgba(7,6,40,.06);
  padding: 3rem 2.5rem;
}
.unif-diagram svg { width: 100%; height: auto; }
.flow-line { stroke-dasharray: 6 8; animation: flow 1.3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.pulse-node { animation: pulseNode 2.6s ease-in-out infinite; transform-origin: 470px 200px; }
@keyframes pulseNode { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.out-glow { transform-box: fill-box; transform-origin: center; animation: outPulse 3.2s ease-in-out infinite; }
.out-glow.g2 { animation-delay: .53s; }
.out-glow.g3 { animation-delay: 1.06s; }
.out-glow.g4 { animation-delay: 1.6s; }
.out-glow.g5 { animation-delay: 2.13s; }
.out-glow.g6 { animation-delay: 2.66s; }
@keyframes outPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ============ Operating system / use-case cards ============ */
.os .head { text-align: center; max-width: 720px; margin: 0 auto 4rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.os .head p { color: var(--midnight-60); max-width: 620px; }
.os h2 .line2 { display: block; color: var(--midnight-40); }
/* services carousel (single horizontal scroll-snap row) */
.os-carousel { position: relative; }
.card-grid {
  display: flex; gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: .5rem .3rem 1.4rem; scroll-padding-left: .3rem;
  scrollbar-width: none;
}
.card-grid::-webkit-scrollbar { display: none; }
.card-grid > .uc-card { flex: 0 0 clamp(240px, 30%, 344px); scroll-snap-align: start; }
.cc-arrow {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--white); color: var(--midnight);
  box-shadow: 0 6px 18px rgba(7,6,40,.16), inset 0 0 0 1px var(--midnight-10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 4;
  transition: transform .2s var(--ease-out), box-shadow .2s, color .2s, opacity .2s;
}
.cc-arrow:hover { transform: translateY(-50%) scale(1.07); box-shadow: 0 10px 26px rgba(7,6,40,.22), inset 0 0 0 1px var(--purple-10); color: var(--purple); }
.cc-arrow[hidden] { display: none; }
.cc-prev { left: -14px; }
.cc-next { right: -14px; }
@media (hover: none) { .cc-arrow { display: none; } }

/* anchor buttons land at the section start, clear of the fixed header */
#os, #pricing, #community, #blog, #faq { scroll-margin-top: calc(var(--nav-h) + 1.75rem); }
.uc-card {
  position: relative;
  background: var(--white); border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--midnight-7);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .4s var(--ease-out), box-shadow .4s;
  overflow: hidden;
  color: inherit; text-decoration: none;
}
.uc-visual {
  height: 96px; border-radius: 16px; margin-bottom: .9rem;
  background: linear-gradient(160deg, rgba(81,79,238,.07), rgba(168,255,229,.12));
  box-shadow: inset 0 0 0 1px var(--midnight-7);
  overflow: hidden; position: relative;
}
.uc-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease-out); }
.uc-card:hover .uc-visual svg { transform: scale(1.04); }
.uc-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px 200px at 50% -20%, rgba(81,79,238,.08), transparent 70%);
  pointer-events: none;
}
.uc-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--midnight-10), 0 28px 56px rgba(7,6,40,.12); }
.uc-card:hover::before { opacity: 1; }
.uc-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--purple-5); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  transition: background .35s, color .35s, transform .45s var(--ease-out);
}
.uc-card:hover .uc-icon { background: var(--purple); color: var(--off-white); transform: scale(1.06) rotate(-5deg); }
.uc-card .cat { font-size: .8rem; font-weight: 500; color: var(--purple); }
.uc-card p { font-size: 1rem; line-height: 26px; color: var(--midnight-60); }
.uc-card .more-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 500; color: var(--purple);
  margin-top: .4rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.uc-card:hover .more-link { opacity: 1; transform: none; }
.os-cta { text-align: center; margin-top: 3.5rem; }

/* ============ Outcomes (dark) ============ */
.outcomes-wrap { padding: 6rem 0; }
.outcomes-wrap > .container { max-width: 1280px; }
.outcomes {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(81,79,238,.35), transparent 60%),
    radial-gradient(500px 300px at -5% 110%, rgba(168,255,229,.08), transparent 60%),
    var(--midnight);
  border-radius: var(--radius-l);
  color: var(--off-white);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(247,247,255,.08);
}
.outcomes .content {
  padding: 3rem 3.6rem 0;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.outcomes .left { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.outcomes h2 { max-width: 620px; text-wrap: balance; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.outcomes .left p { color: var(--off-white-70); max-width: 520px; font-size: 1.05rem; }
.globe-wrap { position: relative; height: 260px; }
.globe-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.outcomes .stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
  padding: 2.4rem 3.6rem 3rem;
  border-top: 1px solid var(--off-white-10); margin-top: 2.4rem;
}
.stat .num { font-size: 3.4rem; font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; color: var(--mint); }
.stat .lbl { color: var(--off-white-70); font-size: .95rem; margin-top: .55rem; line-height: 1.5; }

/* ============ Testimonial ============ */
.testimonial { text-align: center; position: relative; }
.testimonial .inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.25rem; align-items: center; }
.testimonial .cust-logo { font-size: 1rem; font-weight: 600; letter-spacing: .28em; color: var(--midnight-40); }
.testimonial blockquote { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.38; letter-spacing: -0.02em; font-weight: 450; text-wrap: balance; }
.testimonial .who { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.testimonial .avatar-img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px var(--white), 0 6px 16px rgba(7,6,40,.16); }
.who .name { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.who .role { color: var(--midnight-60); font-size: .9rem; line-height: 1.4; }

/* rotating quote cube */
.quote-cube { position: relative; width: 100%; perspective: 1400px; }
.quote-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 2rem; align-items: center; justify-content: flex-start;
  opacity: 0; transform: rotateY(85deg) translateZ(120px);
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out);
  pointer-events: none; backface-visibility: hidden;
}
.quote-slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.quote-slide.exit { transform: rotateY(-85deg) translateZ(120px); }
.cube-dots { display: flex; gap: .55rem; justify-content: center; }
.cube-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--midnight-10); cursor: pointer;
  transition: background .3s, transform .3s;
}
.cube-dots button.active { background: var(--purple); transform: scale(1.3); }

/* ============ Community banner ============ */
.community { padding: 2rem 0 8rem; }
.community .banner {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(168,255,229,.25), transparent 55%),
    var(--purple);
  border-radius: var(--radius-l);
  color: var(--off-white);
  padding: 4.5rem 4rem;
  position: relative; overflow: hidden;
  min-height: 400px;
  display: flex; align-items: center;
  box-shadow: 0 32px 80px rgba(81,79,238,.3);
}
.community .content { max-width: 520px; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; position: relative; z-index: 1; }
.community h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); text-wrap: balance; }
.community p { color: rgba(247,247,255,.82); font-size: 1.05rem; }
.community .imgs { position: absolute; right: 3.5rem; top: 0; bottom: 0; width: 440px; pointer-events: none; }
.comm-img {
  position: absolute; width: 220px; aspect-ratio: 8/9; border-radius: var(--radius-m);
  box-shadow: 0 28px 56px rgba(7,6,40,.4);
  overflow: hidden;
}
.comm-img.left  { left: 0; bottom: -30px; transform: rotate(-4deg); background: linear-gradient(160deg, #2623b8, #070628); animation: bobL 7s ease-in-out infinite; }
.comm-img.right { right: 0; top: 4px; transform: rotate(6deg); background: linear-gradient(200deg, #6f6df5, #141173); animation: bobR 9s ease-in-out infinite; }
@keyframes bobL { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-5.5deg) translateY(-10px); } }
@keyframes bobR { 0%,100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(7.5deg) translateY(-12px); } }
.comm-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130px 100px at 60% 32%, rgba(168,255,229,.4), transparent 70%);
}
.comm-img .chip {
  position: absolute; bottom: .9rem; left: .9rem; z-index: 1;
  background: rgba(7,6,40,.55); backdrop-filter: blur(8px);
  border-radius: var(--radius-round); padding: .32rem .8rem;
  font-size: .68rem; font-weight: 500; color: var(--off-white);
}
.comm-img .faces { position: absolute; top: 1rem; left: 1rem; display: flex; }
.comm-img .faces img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(247,247,255,.8); }
.comm-img .faces img + img { margin-left: -10px; }

/* ============ FAQs ============ */
.faqs .grid { display: grid; grid-template-columns: minmax(auto, 480px) 1fr; gap: 5rem; align-items: start; }
.faqs .left { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; position: sticky; top: calc(var(--nav-h) + 3.5rem); }
.faqs .left p { color: var(--midnight-60); font-size: 1.05rem; max-width: 380px; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--midnight-7);
  overflow: hidden;
  transition: box-shadow .3s;
}
.faq-item:hover { box-shadow: inset 0 0 0 1px var(--midnight-10), 0 8px 24px rgba(7,6,40,.06); }
.faq-item.open { box-shadow: inset 0 0 0 1px var(--midnight-10), 0 12px 32px rgba(7,6,40,.08); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 500; color: var(--midnight);
  padding: 1.4rem 1.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  letter-spacing: -0.01em;
}
.faq-icon { flex: none; width: 20px; height: 20px; position: relative; transition: transform .4s var(--ease-out); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--midnight-60); border-radius: 2px;
  transition: transform .4s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-icon::after  { width: 2px; height: 14px; top: 3px; left: 9px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq-a p { padding: 0 1.6rem 1.5rem; color: var(--midnight-60); font-size: 1rem; line-height: 27px; }

/* ============ CTA ============ */
.cta { text-align: center; padding-bottom: 9rem; position: relative; }
.cta .inner { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; position: relative; }
.cta h2 { max-width: 620px; text-wrap: balance; }
.cta h2.cta-oneline { max-width: none; white-space: nowrap; text-wrap: nowrap; font-size: clamp(1.02rem, 4.55vw, 2.6rem); letter-spacing: -0.02em; }
.cta p { color: var(--midnight-60); max-width: 620px; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -20%; transform: translateX(-50%);
  width: 900px; height: 380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(81,79,238,.14), transparent);
}

/* ============ Footer ============ */
.site-footer {
  padding-top: 6rem;
  background: linear-gradient(#f7f7ff, #f3f2ff 35%, #ecebff 65%, #e6e4ff);
  overflow: hidden;
}
.footer-main { display: flex; flex-wrap: nowrap; gap: 3rem; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; min-width: 180px; }
.footer-brand .cap { font-size: .875rem; color: var(--midnight-60); max-width: 220px; line-height: 1.55; }
.footer-nav { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 2rem; flex: 1; }
.f-group { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.f-group .t { font-size: .8rem; font-weight: 500; color: var(--midnight-40); margin-bottom: .35rem; }
.f-group a { font-size: .9rem; font-weight: 450; white-space: nowrap; transition: opacity .2s; }
.f-group a:hover { opacity: .6; }
.footer-compliance { display: flex; gap: 1.35rem; margin-top: 1rem; }
.comp-badge {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.comp-badge svg {
  width: 38px; height: 38px; display: block;
  filter: drop-shadow(0 3px 8px rgba(7,6,40,.14));
  transition: transform .35s var(--ease-out);
}
.comp-badge:hover svg { transform: translateY(-2px) scale(1.06); }
.comp-badge em {
  font-style: normal; font-size: .6rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--midnight-40); white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid var(--midnight-10);
  margin-top: 4.5rem; padding: 2rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-size: .875rem; color: var(--midnight-60);
}
.ai-summary { display: flex; align-items: center; gap: .75rem; }
.ai-summary a { color: var(--midnight); font-weight: 500; transition: opacity .2s; }
.ai-summary a:hover { opacity: .6; }
.social { display: flex; gap: 1rem; }
.social a { color: var(--midnight); opacity: .85; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: .5; transform: translateY(-2px); }
.footer-wordmark {
  font-size: clamp(2.6rem, 10.5vw, 9.5rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: .78;
  white-space: nowrap;
  text-align: center; color: rgba(81,79,238,.13);
  opacity: 1;
  user-select: none; margin-top: 2rem;
  transform: translateY(8%);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .outcomes .content { grid-template-columns: 1fr; padding: 3.5rem 2.5rem 0; }
  .outcomes .stats { padding: 2.5rem; gap: 2rem; }
  .footer-main, .footer-nav { flex-wrap: wrap; }
  .community .imgs { display: none; }
  .faqs .grid { grid-template-columns: 1fr; gap: 3rem; }
  .faqs .left { position: static; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .signin { display: none; }
  .hamburger { display: block; }
  section { padding: 5rem 0; }
  .home-hero { gap: 4rem; padding-inline: 1.25rem; }
  .card-grid { grid-template-columns: 1fr; }
  .outcomes .stats { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; margin-inline: auto; }
  .hero-buttons .btn { width: 100%; }
  .community .banner { padding: 2.5rem; }
  .unif-diagram { padding: 1.5rem 1rem; }
  .globe-wrap { height: 280px; }
  .plogo { font-size: 1rem; padding: 0 1.1rem; }
  .plogo svg { width: 21px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ Subpages ============ */
.page-hero { padding: calc(var(--nav-h) + 7rem) 0 4rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); text-wrap: balance; }
.page-hero .sub { color: var(--midnight-60); max-width: 640px; margin: 1.25rem auto 0; font-size: 1.1rem; }
.page-hero .cat-chip { margin-bottom: 1.25rem; }
.cat-chip { display: inline-flex; background: var(--purple-5); border: 1px solid var(--purple-10); color: var(--purple); font-size: .8rem; font-weight: 500; padding: .35rem .85rem; border-radius: var(--radius-round); }
.article-meta { display: flex; gap: .75rem; align-items: center; justify-content: center; margin-top: 1.75rem; font-size: .9rem; color: var(--midnight-60); }
.article-meta img { width: 36px; height: 36px; border-radius: 50%; }
.article-meta b { color: var(--midnight); font-weight: 500; }
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--midnight-40); }

.prose { max-width: 1040px; margin: 0 auto; padding-bottom: 6rem; }
.prose h2 { font-size: 1.65rem; line-height: 1.3; margin: 2.6rem 0 .9rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.22rem; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: rgba(7,6,40,.78); font-size: 1.04rem; line-height: 1.75; }
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--purple); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose strong { font-weight: 550; color: var(--midnight); }
.prose blockquote { border-left: 3px solid var(--purple); padding: .3rem 0 .3rem 1.3rem; margin: 1.6rem 0; color: var(--midnight); font-weight: 450; font-size: 1.1rem; }
.prose .tldr { background: var(--white); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--midnight-7); padding: 1.6rem 1.8rem; margin: 0 0 2.25rem; }
.prose .tldr .t { font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: var(--purple); margin-bottom: .6rem; }
.prose .tldr p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3rem 0 1.8rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--midnight-10); color: rgba(7,6,40,.8); vertical-align: top; }
.prose th { color: var(--midnight); font-weight: 550; }
.prose .sources { font-size: .86rem; color: var(--midnight-60); }
.prose .sources li { font-size: .86rem; }
.prose .updated { font-size: .9rem; color: var(--midnight-40); margin-bottom: 2rem; }
.article-faq .faq-item { margin-bottom: .75rem; }
.article-cta { background: radial-gradient(600px 260px at 90% -20%, rgba(168,255,229,.22), transparent 55%), var(--midnight); border-radius: var(--radius-m); color: var(--off-white); padding: 2.4rem 2.6rem; margin: 3rem 0 0; }
.article-cta h3 { color: var(--off-white); margin-bottom: .5rem; }
.article-cta p { color: var(--off-white-70); margin-bottom: 1.4rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-bottom: 7rem; }
.post-card { background: var(--white); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--midnight-7); padding: 1.9rem; display: flex; flex-direction: column; gap: .8rem; transition: transform .35s var(--ease-out), box-shadow .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--midnight-10), 0 24px 48px rgba(7,6,40,.1); }
.post-card .pc-cat { font-size: .78rem; font-weight: 550; color: var(--purple); }
.post-card h3 { font-size: 1.26rem; line-height: 1.32; letter-spacing: -0.02em; }
.post-card p { font-size: .95rem; line-height: 1.6; color: var(--midnight-60); flex: 1; }
.post-card .pc-meta { font-size: .82rem; color: var(--midnight-40); }
.post-card.featured { grid-column: span 3; display: block; background: radial-gradient(700px 300px at 90% -20%, rgba(168,255,229,.2), transparent 55%), var(--midnight); box-shadow: none; padding: 3rem; }
.post-card.featured > div { max-width: 760px; }
.post-card.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--off-white); }
.post-card.featured p { color: var(--off-white-70); }
.post-card.featured .pc-cat { color: var(--mint); }
.post-card.featured .pc-meta { color: var(--off-white-40); }
.post-card.featured .fc-visual { border-radius: 18px; background: rgba(247,247,255,.06); box-shadow: inset 0 0 0 1px rgba(247,247,255,.1); min-height: 220px; display: flex; align-items: center; justify-content: center; }
.legal-page .prose h2 { font-size: 1.35rem; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .post-card.featured { grid-column: span 2; grid-template-columns: 1fr; padding: 2rem; }
  .post-card { padding: 1.4rem; }
  .post-card h3 { font-size: 1.1rem; }
  .post-card p { font-size: .9rem; }
}
@media (max-width: 480px) {
  .post-card.featured .fc-visual { display: none; }
  .post-card h3 { font-size: 1.02rem; }
}

.prose pre { background: var(--midnight); color: var(--off-white); border-radius: 14px; padding: 1.2rem 1.4rem; overflow-x: auto; font-size: .88rem; line-height: 1.6; margin: 1.3rem 0 1.8rem; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--midnight-7); padding: .1em .4em; border-radius: 6px; font-size: .9em; color: var(--midnight); }

/* homepage blog teaser */
.blog-teaser .head { text-align: center; max-width: 720px; margin: 0 auto 4rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.blog-teaser .head p { color: var(--midnight-60); max-width: 620px; }
.blog-teaser .blog-grid { padding-bottom: 0; }
.blog-teaser .more-cta { text-align: center; margin-top: 3.5rem; }

/* big stat callout */
.stat-callout {
  display: flex; align-items: center; gap: 1.6rem;
  background: var(--white); border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px var(--midnight-7);
  padding: 1.7rem 2rem; margin: 2.1rem 0;
}
.stat-callout .n {
  font-size: 3.1rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--purple); line-height: 1; flex: none;
}
.stat-callout .d { color: var(--midnight-60); font-size: .98rem; line-height: 1.55; }
@media (max-width: 640px) {
  .stat-callout { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.4rem 1.5rem; }
}

/* era timeline */
.era-timeline {
  margin: 2.4rem 0; padding-left: 1.9rem;
  border-left: 2px solid var(--purple-10);
  display: flex; flex-direction: column; gap: 2rem;
}
.era { position: relative; }
.era::before {
  content: ""; position: absolute; left: calc(-1.9rem - 7px); top: .3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 4px var(--purple-10);
}
.era-year { font-size: .85rem; font-weight: 600; color: var(--purple); letter-spacing: .05em; margin-bottom: .3rem; }
.era-body h4 { font-size: 1.1rem; letter-spacing: -0.01em; margin: 0 0 .35rem; }
.era-body p { margin: 0; font-size: .98rem; }

/* ============ Pricing ============ */
.pricing .head { text-align: center; max-width: 720px; margin: 0 auto 4rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.pricing .head p { color: var(--midnight-60); max-width: 640px; }
.pricing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.pricing-steps { display: flex; flex-direction: column; gap: 1.6rem; }
.pstep { display: flex; gap: 1.1rem; align-items: flex-start; }
.pnum { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: var(--off-white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; margin-top: 2px; }
.pstep h4 { font-size: 1.08rem; margin-bottom: .3rem; letter-spacing: -0.01em; }
.pstep p { font-size: .95rem; color: var(--midnight-60); line-height: 1.55; }
.plan-card {
  background: radial-gradient(600px 260px at 90% -20%, rgba(168,255,229,.16), transparent 55%), var(--midnight);
  color: var(--off-white); border-radius: var(--radius-l); padding: 2.6rem;
  box-shadow: inset 0 0 0 1px rgba(247,247,255,.08), 0 32px 80px rgba(7,6,40,.3);
}
.plan-tag { font-size: .78rem; font-weight: 600; color: var(--mint); letter-spacing: .07em; text-transform: uppercase; }
.plan-price { margin: 1rem 0 .3rem; display: flex; align-items: baseline; gap: .5rem; }
.plan-price .amount { font-size: 3.4rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { color: var(--off-white-70); font-size: 1.1rem; }
.plan-note { color: var(--off-white-40); font-size: .85rem; margin-bottom: 1.7rem; }
.plan-feats { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.9rem; }
.plan-feats li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: var(--off-white-70); line-height: 1.5; }
.plan-feats li svg { flex: none; width: 18px; height: 18px; color: var(--mint); margin-top: 1px; }
.plan-card .btn { width: 100%; }
/* animated single-step cycler (mobile only, toggled by JS via .is-cycling) */
.pricing-steps.is-cycling { position: relative; overflow: hidden; transition: height .45s var(--ease-out); }
.pricing-steps.is-cycling .pstep { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); pointer-events: none; }
.pricing-steps.is-cycling .pstep.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.step-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: var(--midnight-10); cursor: pointer; transition: background .3s, transform .3s; }
.step-dots button.on { background: var(--purple); transform: scale(1.3); }
@media (max-width: 820px) {
  .pricing-inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 480px; }
}

/* ============ Reviews (upgraded) ============ */
.review-lead { max-width: 840px; margin: 0 auto 4.5rem; text-align: center; display: flex; flex-direction: column; gap: 1.75rem; align-items: center; }
.review-lead .qmark { font-size: 4rem; line-height: .5; color: var(--purple); opacity: .25; height: 2rem; }
.review-lead blockquote { font-size: clamp(1.4rem, 2.7vw, 2.05rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 450; text-wrap: balance; color: var(--midnight); }
.review-lead .who { display: flex; gap: .85rem; align-items: center; }
.review-lead .avatar-img { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 3px var(--white), 0 6px 16px rgba(7,6,40,.16); }
.review-lead .name { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.review-lead .role { color: var(--midnight-60); font-size: .9rem; line-height: 1.35; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { position: relative; overflow: hidden; background: var(--white); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--midnight-7); padding: 1.9rem 1.75rem; display: flex; flex-direction: column; gap: 1.3rem; transition: transform .3s var(--ease-out), box-shadow .3s; }
.review-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--mint)); opacity: .85; }
.review-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--purple-10), 0 18px 40px rgba(7,6,40,.09); }
.review-card .stars { display: none; }
.review-card blockquote { font-size: 1.04rem; line-height: 1.55; color: var(--midnight); font-weight: 450; letter-spacing: -0.01em; flex: 1; }
.review-card .who { display: flex; gap: .7rem; align-items: center; }
.review-card .avatar-img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(7,6,40,.14); }
.review-card .name { font-weight: 550; font-size: .92rem; line-height: 1.3; color: var(--midnight); }
.review-card .role { color: var(--midnight-60); font-size: .8rem; line-height: 1.35; }

/* ============ Briefing (upgraded, centered + form) ============ */
.community .banner { min-height: auto; justify-content: center; text-align: center; padding: 4.5rem 3rem; }
.community .content { max-width: 640px; margin: 0 auto; align-items: center; }
.briefing-form { display: flex; gap: .6rem; width: 100%; max-width: 480px; margin-top: .4rem; }
.briefing-form input { flex: 1; min-width: 0; padding: .95rem 1.35rem; border-radius: var(--radius-round); border: none; font-family: inherit; font-size: 1rem; background: rgba(247,247,255,.14); color: var(--off-white); outline: none; box-shadow: inset 0 0 0 1px rgba(247,247,255,.22); transition: background .2s, box-shadow .2s; }
.briefing-form input::placeholder { color: rgba(247,247,255,.55); }
.briefing-form input:focus { background: rgba(247,247,255,.2); box-shadow: inset 0 0 0 1px rgba(247,247,255,.5); }
.briefing-form .btn { flex: none; }
.briefing-note { font-size: .82rem; color: rgba(247,247,255,.6); margin-top: .3rem; }
.briefing-thanks { color: var(--off-white); font-weight: 500; font-size: 1.05rem; margin-top: .4rem; }
@media (max-width: 640px) {
  .briefing-form { flex-direction: column; align-items: stretch; }
  .briefing-form .btn { width: 100%; }
}

/* founder lead without avatar */
.review-lead .who--noimg { flex-direction: column; gap: .2rem; text-align: center; }

/* reviews showcase carousel */
.reviews-marquee { overflow: hidden; margin-top: .5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.reviews-track { display: flex; gap: 1.5rem; width: max-content; animation: reviews-scroll 60s linear infinite; will-change: transform; }
.reviews-track:hover { animation-play-state: running; }
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reviews-track .review-card { width: 360px; flex: none; }

/* blog teaser read-more */
.blog-more { text-align: center; margin-top: 3rem; }

/* ============ Service pages ============ */
.svc-actions { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.svc-actions .ghost { font-weight: 500; color: var(--purple); display: inline-flex; align-items: center; gap: .4rem; }
.svc-actions .ghost:hover { text-decoration: underline; }
.page-hero .sub + .svc-actions { margin-top: 2rem; }
.svc-callout { background: linear-gradient(160deg, var(--purple-5), rgba(168,255,229,.16)); border: 1px solid var(--purple-10); border-radius: var(--radius-m); padding: 1.7rem 1.9rem; margin: 2.4rem 0; }
.svc-callout .big { font-size: 2.1rem; font-weight: 600; color: var(--purple); letter-spacing: -0.02em; display: block; line-height: 1.1; }
.svc-callout p { margin: .45rem 0 0 !important; color: var(--midnight-70) !important; }
.prose ul.svc-deliverables { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.6rem; }
.prose ul.svc-deliverables li { position: relative; padding-left: 1.9rem; margin: 0; }
.prose ul.svc-deliverables li::before {
  content: ""; position: absolute; left: 0; top: .28rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5L20 6'/></svg>") center/12px no-repeat;
}
.svc-related { border-top: 1px solid var(--midnight-10); margin-top: 3.5rem; padding-top: 2.5rem; }
.svc-related > h2 { margin-top: 0 !important; }
.svc-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.svc-related-grid a { display: block; padding: 1.1rem 1.2rem; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--midnight-10); text-decoration: none; color: inherit; transition: transform .3s var(--ease-out), box-shadow .3s; }
.svc-related-grid a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--midnight-10), 0 14px 30px rgba(7,6,40,.09); }
.svc-related-grid .rc-cat { font-size: .74rem; font-weight: 500; color: var(--purple); }
.svc-related-grid .rc-t { font-weight: 500; margin-top: .25rem; font-size: .98rem; color: var(--midnight); }
@media (max-width: 760px) {
  .prose ul.svc-deliverables { grid-template-columns: 1fr; }
  .svc-related-grid { grid-template-columns: 1fr; }
}

/* ============ Mobile optimisation (iOS ≤640px) ============ */
@media (max-width: 640px) {

  /* ---- Contain horizontal scroll (up/down only, no sideways pan on iOS) ---- */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* ---- Layout width / rhythm ---- */
  .container { padding: 0 1.1rem; }
  section { padding: 3rem 0; }

  /* ---- Global type scale (tighter for phones) ---- */
  h1 { font-size: clamp(1.72rem, 7.4vw, 2.2rem); line-height: 1.12; }
  h2 { font-size: clamp(1.38rem, 5.8vw, 1.72rem); }
  h3 { font-size: 1.05rem; }
  body { font-size: .95rem; line-height: 1.55; }

  /* ---- Hero ---- */
  .home-hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2.75rem; }
  .hero-header h1 { line-height: 1.1; }
  .hero-header p { font-size: .86rem; line-height: 1.5; }

  /* ---- Why statement (shrink the wall of text) ---- */
  .why h2 { font-size: 1.22rem; line-height: 1.42; }
  .why .inner { gap: 1rem; }

  /* ---- Header / nav ---- */
  .nav-cta .btn-sm { display: none; }
  .hamburger {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: .55rem; margin-right: -.15rem;
  }
  .site-header { padding-top: calc(var(--header-pad) + env(safe-area-inset-top)); }
  .btn, .nav-link, .signin, .mobile-menu a, .hamburger { -webkit-tap-highlight-color: transparent; }
  .mobile-menu {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
  }

  /* ---- Big display numbers ---- */
  .stat .num, .plan-price .amount { font-size: 2.2rem; }
  .stat .lbl { font-size: .82rem; }

  /* ---- Data-unification diagram ---- */
  .unif-diagram { padding: 1.1rem .75rem; border-radius: var(--radius-m); }
  .unif-diagram svg { width: 100%; }
  .data-unif .head { margin-bottom: 1.75rem; gap: .75rem; }

  /* ---- Service / use-case cards (carousel, compact) ---- */
  .card-grid { gap: .8rem; }
  .card-grid > .uc-card { flex-basis: 78%; }
  .uc-card { padding: .95rem .9rem 1.05rem; gap: .3rem; border-radius: 20px; }
  .uc-visual { height: 62px; margin-bottom: .55rem; border-radius: 12px; }
  .uc-card .cat { font-size: .66rem; }
  .uc-card h3 { font-size: .9rem; line-height: 1.22; }
  .uc-card p { font-size: .78rem; line-height: 1.38; }
  .uc-card .more-link { display: none; }

  /* ---- Outcomes / statistics card (shrunk, like the diagram) ---- */
  .outcomes-wrap { padding: 2.5rem 0; }
  .outcomes h2 { font-size: 1.45rem; }
  .outcomes .left p { font-size: .9rem; }
  .outcomes .content { padding: 1.6rem 1.25rem 0; gap: 1.35rem; }
  .outcomes .stats { padding: 1.4rem 1.25rem 1.6rem; gap: 1.1rem; margin-top: 1.4rem; }
  .outcomes .stat .num { font-size: 1.85rem; }
  .outcomes .stat .lbl { font-size: .78rem; }
  .globe-wrap { height: 148px; }

  /* ---- Pricing / monthly plan (compact + polished) ---- */
  .pricing .head { margin-bottom: 2rem; }
  .pricing-inner { gap: 1.6rem; }
  .pricing-steps { gap: 1rem; }
  .pstep { gap: .75rem; }
  .pnum { width: 30px; height: 30px; font-size: .82rem; }
  .pstep h4 { font-size: 1rem; }
  .pstep p { font-size: .86rem; line-height: 1.5; }
  .plan-card { padding: 1.6rem 1.4rem; border-radius: var(--radius-m); }
  .plan-tag { font-size: .72rem; }
  .plan-price { margin: .8rem 0 .25rem; }
  .plan-price .per { font-size: 1rem; }
  .plan-note { font-size: .8rem; margin-bottom: 1.3rem; }
  .plan-feats { gap: .6rem; margin-bottom: 1.5rem; }
  .plan-feats li { font-size: .86rem; }

  /* ---- Reviews ---- */
  .review-lead { margin-bottom: 3rem; gap: 1.25rem; }
  .review-lead blockquote { font-size: 1.08rem; line-height: 1.45; }
  .review-lead .qmark { font-size: 2.6rem; }
  .reviews-track { gap: .8rem; }
  .reviews-track .review-card { width: 78vw; max-width: 288px; }
  .review-card { padding: 1.4rem 1.3rem 1.35rem; gap: .7rem; }
  .review-card blockquote { font-size: .92rem; }

  /* ---- Briefing card (compact, mobile-friendly) ---- */
  .community { padding: 1.5rem 0 3.5rem; }
  .community .banner { padding: 2.1rem 1.4rem; border-radius: var(--radius-m); }
  .community .content { gap: 1rem; }
  .community h2 { font-size: 1.35rem; line-height: 1.25; }
  .community p { font-size: .9rem; }
  .briefing-form { margin-top: .5rem; }
  .briefing-form input { padding: .8rem 1.1rem; }
  .briefing-note { font-size: .76rem; }

  /* ---- Blog teaser (only 2 articles + read more) ---- */
  .blog-teaser .head { margin-bottom: 2.25rem; }
  .blog-teaser .blog-grid .post-card:nth-child(3) { display: none; }
  .blog-more { margin-top: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: .7rem; padding-bottom: 0; }
  .post-card { padding: 1rem; gap: .45rem; }
  .post-card h3 { font-size: .92rem; line-height: 1.25; }
  .post-card p { font-size: .78rem; line-height: 1.4; }
  .post-card .pc-cat { font-size: .64rem; }
  .post-card .pc-meta { font-size: .7rem; }
  .post-card.featured { grid-column: 1 / -1; padding: 1.5rem; }
  .post-card.featured h3 { font-size: 1.2rem; }

  /* ---- FAQ ---- */
  .faqs .grid { gap: 1.5rem; }
  .faq-q { padding: 1.05rem 1.1rem; gap: 1rem; font-size: .94rem; }
  .faq-a p { padding: 0 1.1rem 1.2rem; font-size: .92rem; }

  /* ---- CTA ---- */
  .cta { padding-bottom: 4rem; }

  /* ---- Footer (compact + tidy) ---- */
  .site-footer { padding-top: 3rem; }
  .footer-main { flex-direction: column; gap: 1.75rem; }
  .footer-brand { min-width: 0; gap: 1rem; }
  .footer-brand .cap { font-size: .82rem; max-width: 320px; }
  .footer-compliance { gap: 1rem; margin-top: .35rem; }
  .comp-badge svg { width: 32px; height: 32px; }
  .comp-badge em { font-size: .56rem; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem 1rem; flex: none; }
  .f-group { gap: .35rem; }
  .f-group .t { font-size: .72rem; margin-bottom: .2rem; }
  .f-group a { white-space: normal; font-size: .82rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .8rem; margin-top: 2rem; padding: 1.4rem 0; font-size: .8rem; }
  .ai-summary { flex-wrap: wrap; row-gap: .4rem; gap: .6rem; }
  .footer-wordmark { font-size: 2.6rem; margin-top: .5rem; }

  /* ---- Subpages: hero ---- */
  .page-hero { padding: calc(var(--nav-h) + 2.25rem) 0 2rem; }
  .page-hero h1 { font-size: clamp(1.65rem, 7vw, 2.05rem); line-height: 1.12; }
  .page-hero .sub { font-size: .98rem; }
  .article-meta { flex-wrap: wrap; row-gap: .35rem; }
  .article-meta .dot-sep { display: none; }

  /* ---- Subpages: prose (smaller body text) ---- */
  .prose p, .prose li { font-size: .95rem; line-height: 1.65; }
  .prose h2 { font-size: 1.38rem; margin-top: 2.1rem; }
  .prose h3 { font-size: 1.08rem; }
  .prose blockquote { font-size: 1rem; }
  .prose .tldr { padding: 1.3rem 1.4rem; }

  /* ---- Subpages: prose table (horizontal-overflow fix) ---- */
  .prose table {
    display: block; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .prose table thead, .prose table tbody, .prose table tr { width: max-content; min-width: 100%; }
  .prose th, .prose td { white-space: normal; min-width: 9rem; }

  /* ---- Subpages: article CTA + service callout ---- */
  .article-cta { padding: 1.8rem 1.5rem; }
  .svc-callout { padding: 1.35rem 1.4rem; }
  .svc-callout .big { font-size: 1.85rem; }

  /* ---- Service hero CTA row (collapse to single column) ---- */
  .svc-actions { flex-direction: column; gap: .75rem; }
  .svc-actions .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 400px) {
  .hero-header h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
  .page-hero h1 { font-size: clamp(1.55rem, 7.4vw, 1.95rem); }
  .uc-card h3 { font-size: .86rem; }
  .uc-card p { font-size: .75rem; }
}
