/* ============================================================
   GraceX — light enterprise design system (wide)
   ============================================================ */
:root {
  /* ---- v3 · rich blue enterprise theme, warm-neutral base ---- */
  --violet:        #1F57DB;   /* deeper, richer enterprise blue */
  --violet-bright: #4A7DF0;
  --violet-deep:   #163FB0;
  --violet-soft:   #A6BFF0;
  --violet-wash:   #E7EDFB;

  --warm:          #EE8A3E;   /* secondary warm accent (amber) — used sparingly */
  --warm-deep:     #E0742A;
  --warm-soft:     #FBE6D2;

  --ink:    #0E1A30;          /* deep navy: dark moments (CTA) */
  --ink-2:  #16243F;
  --ink-3:  #20304E;

  --white:  #FFFFFF;
  --paper:  #EEEDE9;          /* warmer neutral page base */
  --band:   #F4F3EF;          /* investor strip — a hair lighter than the page */
  --soft:   #E6E4DD;          /* warm tinted sections */
  --line:   #DEDBD3;
  --line-2: #CDC9BF;

  --text:   #121A2A;          /* deep navy near-black */
  --muted:  #515B70;
  --muted-2:#828BA0;

  --radius:   16px;
  --radius-sm:11px;
  --radius-lg:22px;

  --maxw: 1320px;
  --pad: 2.5rem;
  /* stronger, soft, blue-tinted depth */
  --shadow-xs: 0 1px 2px rgba(17,28,55,.08);
  --shadow-sm: 0 2px 10px rgba(17,28,55,.10), 0 1px 3px rgba(17,28,55,.06);
  --shadow-md: 0 16px 40px rgba(17,28,55,.14);
  --shadow-lg: 0 36px 80px rgba(17,28,55,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  /* layered warm + cool wash over the base for depth & warmth (not flat) */
  background:
    radial-gradient(1200px 760px at 88% -8%, rgba(238,138,62,.12), transparent 55%),
    radial-gradient(1100px 820px at 6% 4%, rgba(31,87,219,.055), transparent 55%),
    var(--paper);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Glean-style: elegant serif display headings + clean sans for UI/cards */
h1, h2, h3, h4, h5 { color: var(--text); }
h1, h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.9rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
h3, h4, h5 { font-family: "Inter", sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.grad {
  background: linear-gradient(100deg, var(--violet-bright) 0%, var(--violet) 60%, var(--violet-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted-2); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .96rem;
  padding: .72rem 1.35rem; border-radius: 999px;   /* pill */
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { padding: .92rem 1.7rem; font-size: 1rem; }
.btn-primary { color: #fff; background: var(--violet); box-shadow: 0 1px 2px rgba(20,35,70,.12); }
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); background: rgba(0,0,0,.02); }
.btn-ghost-light { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn-ghost-light:hover { border-color: var(--text); }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(236,238,242,.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .9rem var(--pad);
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: "Inter"; font-size: 1.24rem; letter-spacing: -0.02em; color: var(--text); font-weight: 700; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-link-plain { font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-link-plain:hover { color: var(--text); }
.nav-toggle { display: none; }

/* ===================== HERO (dark, left-aligned) ===================== */
/* ===================== HERO (Glean-style, centered, light) ===================== */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: max(800px, 98vh);
  padding: 10.5rem 0 0; text-align: center;
  background:
    radial-gradient(1000px 560px at 50% -6%, #fff 0%, transparent 66%),
    radial-gradient(680px 520px at 20% 14%, rgba(31,87,219,.11) 0%, transparent 60%),
    radial-gradient(620px 480px at 82% 16%, rgba(238,138,62,.10) 0%, transparent 60%),
    var(--paper);
}
/* tool tiles ringed around the headline — drift on the inner tile,
   hover-lift + centering on the wrapper, so they never conflict */
.hero-apps { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* faint "synapse" connector canvas (behind the tiles and the text) */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.app {
  position: absolute; z-index: 1; width: var(--s, 54px); height: var(--s, 54px);
  transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px)));
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  animation: appIn .6s var(--ease) backwards;
}
.app .tile {
  width: 100%; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 26%;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(20,35,70,.10), 0 1px 3px rgba(20,35,70,.08);
  animation: drift var(--d, 8s) ease-in-out infinite;
  transition: box-shadow .3s var(--ease);
  will-change: transform;
}
.app .tile svg { width: 58%; height: 58%; display: block; }
.app:hover { transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px) - 8px)) scale(1.09); z-index: 4; }
.app:hover .tile { box-shadow: 0 22px 46px rgba(20,35,70,.22), 0 3px 8px rgba(20,35,70,.12); }
@keyframes appIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero-inner {
  position: relative; z-index: 2; width: 100%; flex: 1;
  display: flex; align-items: center; justify-content: center;
  max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--pad);
}
.hero-copy { max-width: 760px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  padding: .42rem .9rem .42rem .75rem; border-radius: 999px; margin-bottom: 1.8rem;
}
.hero-pill svg { width: 17px; height: 17px; color: var(--violet); }
.hero h1 { margin-bottom: 1.3rem; color: var(--text); font-size: clamp(2.5rem, 4.9vw, 4rem); line-height: 1.04; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 47rem; margin: 0 auto 2rem; line-height: 1.5; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ===================== BACKED BY (investor strip) ===================== */
/* full-bleed investor strip — a hair lighter than the page (causa-prima style) */
.backed {
  position: relative; z-index: 2; width: 100%; max-width: none;
  margin: 7.5rem 0 0; padding: 2rem 0 2.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  background: var(--band);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.backed-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
/* rolling investor marquee — spans the full width */
.marquee { position: relative; width: 100%; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--band), rgba(244,243,239,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--band), rgba(244,243,239,0)); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.backed .vc {
  display: inline-flex; align-items: center; margin: 0 2.9rem; white-space: nowrap;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--muted);
}
.backed .vc img { height: 30px; width: auto; max-width: 160px; object-fit: contain; display: block; opacity: .62; mix-blend-mode: multiply; }
.backed .vc img.vc-solid { mix-blend-mode: normal; filter: brightness(0); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; transform: none; } }

/* ===================== SECTIONS ===================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 7.5rem var(--pad); }
.section-soft { max-width: none; margin: 0; padding-left: 0; padding-right: 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-soft > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
/* "dark" section becomes a warm tinted panel in the Glean theme */
.section-dark {
  max-width: none; margin: 0; color: var(--text); padding-left: 0; padding-right: 0;
  background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.section-head { max-width: 60rem; margin: 0 auto 3.8rem; text-align: center; }
.section-head h2 { margin-bottom: 1.1rem; }
.on-dark { color: var(--text); }
.lede { font-size: 1.2rem; color: var(--muted); line-height: 1.5; max-width: 46rem; margin: 0 auto; }
.on-dark-sub { color: var(--muted); }

/* ===================== PROBLEM CARDS ===================== */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.prob-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 2.1rem; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.prob-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.prob-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--violet);
  background: var(--violet-wash); border: 1px solid var(--line-2);
}
.prob-ic svg { width: 23px; height: 23px; }
.prob-card h3 { font-size: 1.3rem; }
.prob-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.4rem; min-height: 3.1rem; }

/* visual band — scattered tool tiles */
.prob-apps { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.prob-apps .mini {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  display: grid; place-items: center;
}
.prob-apps .mini svg { width: 60%; height: 60%; display: block; }
.prob-apps .mini-more { font-size: .82rem; font-weight: 700; color: var(--muted-2); background: var(--soft); }

/* visual band — compliance badges */
.prob-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.prob-badges span {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  padding: .4rem .7rem .4rem .45rem; border-radius: 9px;
  color: var(--text); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.prob-badges .euf { width: 18px; height: 18px; flex: none; display: block; border-radius: 4px; }

.prob-list { list-style: none; display: grid; gap: 1rem; margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prob-list li { display: flex; gap: .8rem; align-items: center; color: var(--text); font-size: 1.02rem; }
.prob-list .li-ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: var(--violet);
  background: var(--soft); border: 1px solid var(--line);
}
.prob-list .li-ic svg { width: 16px; height: 16px; }

/* ===================== METRICS BAND ===================== */
.metrics { background: var(--ink); color: #fff; }
.metrics-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3.4rem var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.metric { text-align: center; padding: 0 1rem; border-right: 1px solid rgba(255,255,255,.08); }
.metric:last-child { border-right: none; }
.metric-n { font-family: "Inter"; font-size: 3.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: .6rem; background: linear-gradient(180deg,#fff,#c9c2e6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-l { font-size: .94rem; color: #a39dba; }

/* ===================== PILLARS ===================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.3rem 2.1rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pillar-ic {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 1.3rem;
  display: grid; place-items: center; color: var(--violet);
  background: var(--violet-wash); border: 1px solid var(--line-2);
}
.pillar-ic svg { width: 25px; height: 25px; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--muted); font-size: 1.03rem; }
.pillar-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1.4rem; }
.pillar-meta .chip {
  font-size: .82rem; font-weight: 600; color: var(--violet-deep);
  background: var(--violet-wash); border: 1px solid var(--line-2);
  padding: .34rem .7rem; border-radius: 999px;
}

/* ===================== PRODUCT ===================== */
.product { display: grid; grid-template-columns: .78fr 1.22fr; gap: 2.2rem; align-items: center; }
.product-tabs { display: flex; flex-direction: column; gap: .7rem; }
.ptab {
  text-align: left; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.3rem; cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
  border-left: 3px solid transparent;
}
.ptab b { display: block; font-family: "Inter"; font-size: 1.1rem; color: var(--text); margin-bottom: .14rem; }
.ptab span { font-size: .92rem; color: var(--muted); }
.ptab:hover { border-color: var(--line-2); }
.ptab.active { border-color: var(--line-2); border-left-color: var(--violet); background: #fff; box-shadow: var(--shadow-sm); }
.product-stage {
  position: relative; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line-2); padding: 12px; box-shadow: var(--shadow-lg);
}
.shot { display: none; }
.shot.active { display: block; animation: shotIn .45s var(--ease); }
.shot img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }

/* ===================== HOW / FLOW ===================== */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.flow-step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.flow-step:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.flow-tag { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--violet); margin-bottom: .65rem; }
.flow-step h4 { color: var(--text); margin-bottom: .45rem; font-size: 1.05rem; }
.flow-step p { color: var(--muted); font-size: .92rem; }
.flow-step code { display: inline-block; margin-top: .2rem; font-size: .8rem; background: var(--violet-wash); color: var(--violet-deep); padding: .12rem .45rem; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.flow-arrow { display: grid; place-items: center; color: var(--violet); font-size: 1.4rem; opacity: .55; }
.flow-legend { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; font-size: .88rem; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-clear { background: #34d399; }
.lg-mask { background: var(--violet-soft); }
.lg-enc { background: var(--violet); }

/* ===================== USE CASES ===================== */
.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.uc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.uc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.uc-ic {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: 11px; color: var(--violet);
  background: var(--violet-wash); border: 1px solid var(--line-2);
}
.uc-ic svg { width: 21px; height: 21px; }
.uc h4 { margin-bottom: .4rem; }
.uc p { color: var(--muted); font-size: .96rem; }
.uc-more { background: var(--ink); border-color: transparent; }
.uc-more h4 { color: #fff; }
.uc-more p { color: #b3acce; }
.uc-more .uc-ic { color: var(--violet-soft); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* ===================== WHY ===================== */
.why-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }
.why-copy { position: sticky; top: 6rem; }
.why-copy .lede { margin: 0 0 1.8rem; max-width: none; }
.why-copy h2 { text-align: left; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.why-item:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.why-item h4 { margin-bottom: .35rem; }
.why-item h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: .55rem; background: var(--violet); }
.why-item p { color: var(--muted); font-size: .98rem; }

/* ===================== CTA ===================== */
.cta {
  margin: 5.5rem var(--pad); border-radius: 32px; overflow: hidden; position: relative;
  background:
    radial-gradient(700px 420px at 16% 4%, rgba(124,92,246,.85) 0%, transparent 60%),
    radial-gradient(680px 460px at 90% 98%, rgba(31,87,219,.72) 0%, transparent 60%),
    linear-gradient(120deg, #6d6cf0, #3b74e6);
}
.cta-inner { max-width: 720px; margin: 0 auto; padding: 5.5rem 1.5rem; text-align: center; }
.cta .on-dark { color: #fff; }
.cta h2 { margin-bottom: .9rem; }
.cta .lede { margin: 0 auto 2rem; color: rgba(255,255,255,.78); }
.cta-form { display: flex; gap: .6rem; justify-content: center; max-width: 480px; margin: 0 auto .8rem; flex-wrap: wrap; }
.cta-form input { flex: 1; min-width: 220px; padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; font-family: inherit; }
.cta-form input::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.13); }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #f0ede5; }
.cta-note { font-size: .9rem; color: rgba(255,255,255,.7); text-align: center; margin: .9rem auto 0; min-height: 1.2em; }
.cta-legal { font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.55); text-align: center; max-width: 480px; margin: .2rem auto 0; }
.cta-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.cta-legal a:hover { color: #fff; }

/* ===================== FOOTER ===================== */
/* light warm footer — fits the Glean theme */
.footer { background: var(--soft); color: var(--muted); padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.footer-inner .brand-name { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { font-size: .92rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-base { max-width: var(--maxw); margin: 1.4rem auto 0; padding: 0 var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .82rem; color: var(--muted-2); }
.footer-company, .footer-copy { color: var(--muted-2); }

/* Fallback: nasconde il Legal Footer di iubenda se lo stub JS nell'head non
   dovesse bastare (es. cambio interno del widget). Privacy e Cookie Policy
   sono linkate in .footer-links. */
#iub-legal-footer { display: none !important; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== KEYFRAMES ===================== */
@keyframes shotIn { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: none; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  :root { --pad: 1.6rem; }
  .hero { min-height: clamp(520px, 80vh, 720px); padding: 7rem 0 0; }
  .hero-apps { display: none; }
  .backed { margin-top: 4.5rem; }
  .why-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .why-copy { position: static; }
  .product { grid-template-columns: 1fr; }
  .product-tabs { flex-direction: row; overflow-x: auto; }
  .ptab { min-width: 220px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .metrics-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .metric { border-right: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  h1 { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .hero-sub { font-size: 1.08rem; }
  .nav-inner { flex-wrap: wrap; gap: 0; }
  .brand { order: 1; }
  .nav-toggle { order: 2; }
  .nav-links { order: 3; }
  .nav-cta { order: 4; }
  .nav.open { background: rgba(255,255,255,.98); backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); }
  .nav.open .brand-name { color: var(--ink); }
  .nav.open .nav-links a, .nav.open .nav-link-plain { color: var(--muted); }
  .nav-links, .nav-cta { display: none; flex-basis: 100%; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .nav.open .nav-cta { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-bottom: .3rem; }
  .nav.open .nav-cta .btn { flex: 1; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; padding: 6px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .prob-grid, .pillars, .footer-cols, .why-list { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .hero { min-height: clamp(440px, 74vh, 620px); padding-top: 6.5rem; }
  .hero-logo { width: 48px; height: 48px; }
  .hero-sub { margin-bottom: 1.6rem; }
  .uc-feature .feature-copy h3 { font-size: 1.5rem; }
  .backed { gap: 1.2rem; margin-top: 3.5rem; padding-bottom: 2.5rem; }
  .backed-logos { gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== VERSION TOGGLE ===================== */
.ver-toggle {
  position: fixed; bottom: 18px; right: 18px; z-index: 200;
  display: inline-flex; gap: 2px; padding: 4px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  font-family: "Inter", sans-serif;
}
.ver-toggle a {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: .34rem .8rem; border-radius: 999px; line-height: 1.4;
  transition: background .2s, color .2s;
}
.ver-toggle a:hover { color: var(--text); }
.ver-toggle a.active { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .ver-toggle { bottom: 12px; right: 12px; } }

/* hero centered logo + AI-model logo chips */
.hero-logo { width: 56px; height: 56px; margin: 0 auto 1.2rem; display: block; filter: drop-shadow(0 6px 16px rgba(37,99,235,.22)); }
.pillar-meta .chip.chip-logo { display: inline-flex; align-items: center; gap: .42rem; background: #fff; border: 1px solid var(--line); color: var(--text); padding: .32rem .72rem .32rem .5rem; }
.pillar-meta .chip-logo svg { width: 16px; height: 16px; display: block; flex: none; }
@media (max-width: 1180px) { .hero-apps { display: none; } }

/* ===================== v3 · IMAGERY & DEPTH ===================== */
/* browser-framed product visuals */
.browser { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transition: opacity .6s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.browser:hover { transform: translateY(-6px); box-shadow: 0 50px 100px rgba(17,28,55,.26); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: linear-gradient(180deg,#f6f8fb,#eef1f6); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd5e2; flex: none; }
.browser-url { margin-left: 12px; font-family: "Inter", sans-serif; font-weight: 500; font-size: .72rem; font-style: normal; color: var(--muted-2); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: .28rem .7rem; }
.browser img { width: 100%; height: auto; display: block; aspect-ratio: 2940 / 1749; object-fit: cover; }

/* showcase (large product visual under the hero) */
.showcase { position: relative; max-width: var(--maxw); margin: 0 auto; padding: .5rem var(--pad) 5.5rem; }
.showcase-inner { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; }
.showcase-glow { position: absolute; left: 5%; right: 5%; top: -5%; bottom: 12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(540px 320px at 26% 8%, rgba(31,87,219,.22), transparent 62%),
    radial-gradient(520px 320px at 80% 38%, rgba(238,138,62,.17), transparent 62%);
  filter: blur(28px); }

/* product tab stage rendered as a browser frame */
.product-stage { padding: 0; overflow: hidden; transition: opacity .6s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.product-stage:hover { transform: translateY(-4px); box-shadow: 0 44px 90px rgba(17,28,55,.24); }
.product-stage .shot img { border: 0; border-radius: 0; }

/* use-case feature row (copy + framed product image) */
.uc-feature { display: grid; grid-template-columns: 1fr 1.12fr; gap: 3.2rem; align-items: center; margin-top: 4.5rem; }
.uc-feature .feature-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: .8rem; }
.uc-feature .feature-copy h3 { font-size: 1.85rem; margin-bottom: .9rem; }
.uc-feature .feature-copy p { color: var(--muted); margin-bottom: 1.5rem; max-width: 31rem; }

@media (max-width: 860px) {
  .uc-feature { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3rem; }
  .showcase { padding-bottom: 3.5rem; }
}

/* ===================== USE-CASE TABS (blockbrain-style) ===================== */
.uc-tabs {
  display: flex; gap: .5rem; max-width: 940px; margin: 0 auto 1.6rem; padding: .35rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  justify-content: center; flex-wrap: nowrap;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .5rem .95rem .5rem .5rem; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-family: "Inter", sans-serif;
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.uc-tab .ti {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--text); flex: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.uc-tab .ti svg { width: 18px; height: 18px; }
.uc-tab:hover { color: var(--text); background: #fff; border-color: var(--line); }
.uc-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }
.uc-tab.active .ti { background: #fff; color: var(--ink); }

.uc-stage {
  position: relative; max-width: 1080px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-lg);
}
.uc-panel { display: grid; grid-template-columns: 1fr 1.12fr; }
.uc-panel.swap { animation: ucIn .5s var(--ease); }
@keyframes ucIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.uc-info { padding: clamp(1.8rem, 3.1vw, 3.1rem); display: flex; flex-direction: column; }
.uc-info .feature-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: .85rem; }
.uc-info h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 1rem; color: var(--text); }
.uc-info p { color: var(--muted); margin-bottom: 1.5rem; max-width: 32rem; line-height: 1.55; }
.uc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.9rem; }
.uc-chips span { font-size: .82rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; }
.uc-info .btn { align-self: flex-start; margin-top: auto; }

.uc-visual {
  position: relative; padding: clamp(1.4rem, 2.6vw, 2.3rem); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .85rem; justify-content: center;
  background:
    radial-gradient(440px 300px at 72% 16%, rgba(31,87,219,.12), transparent 62%),
    radial-gradient(380px 260px at 26% 92%, rgba(238,138,62,.11), transparent 60%),
    linear-gradient(180deg, #f5f7fc, #eceff6);
}

/* mock UI cards */
.mk { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.05rem; box-shadow: 0 12px 34px rgba(20,35,70,.09); animation: mkIn .55s var(--ease) backwards; }
.mk:nth-child(2) { animation-delay: .07s; } .mk:nth-child(3) { animation-delay: .14s; } .mk:nth-child(4) { animation-delay: .21s; }
@keyframes mkIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.mk-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.mk-t { font-weight: 700; font-size: .9rem; color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
.mk-t svg { width: 16px; height: 16px; }
.mk-cap { font-size: .72rem; font-weight: 600; color: var(--muted-2); letter-spacing: .02em; }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .46rem 0; font-size: .84rem; color: var(--muted); }
.mk-row + .mk-row { border-top: 1px solid var(--line); }
.mk-row .l { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.mk-row .l b { color: var(--text); font-weight: 600; }
.mk-row .sub { color: var(--muted-2); font-size: .76rem; }
.mk-pct { display: inline-flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; font-size: .8rem; flex: none; }
.dot-done { width: 18px; height: 18px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; flex: none; }
.dot-done svg { width: 11px; height: 11px; color: #fff; }
.dot-wait { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d4dbe8; border-top-color: var(--violet); flex: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 7px; border-radius: 999px; background: #e7ebf3; overflow: hidden; flex: 1; min-width: 60px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), #5b8cff); animation: barfill 1.1s var(--ease) forwards; }
@keyframes barfill { from { width: 0; } }
.ext { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: .56rem; font-weight: 800; flex: none; letter-spacing: .02em; }
.tag { font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); flex: none; }
.tag.ok { background: rgba(22,163,74,.1); color: #15803d; border-color: rgba(22,163,74,.22); }
.tag.go { background: rgba(31,87,219,.1); color: var(--violet); border-color: rgba(31,87,219,.2); }
.mk-big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.mk-stat { display: flex; align-items: baseline; gap: .6rem; }
.mk-quote { font-size: .9rem; color: var(--text); line-height: 1.5; }
.mk-quote .hl { background: rgba(31,87,219,.12); border-radius: 4px; padding: 0 .15em; }

/* document-scan card (legal) */
.doc-scan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1rem; display: grid; place-items: center; gap: .3rem; box-shadow: 0 12px 34px rgba(20,35,70,.09); overflow: hidden; min-height: 150px; animation: mkIn .55s var(--ease) backwards; }
.doc-scan .bk { position: absolute; width: 26px; height: 26px; border: 2px solid var(--violet); border-radius: 3px; }
.doc-scan .bk.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.doc-scan .bk.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.doc-scan .bk.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.doc-scan .bk.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.doc-scan .glyph { width: 34px; height: 42px; color: var(--muted-2); }
.doc-scan .dt { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.doc-scan .ds { font-size: .78rem; color: var(--muted); }
.doc-scan .scanline { position: absolute; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--violet), transparent); box-shadow: 0 0 14px 2px rgba(31,87,219,.5); animation: scan 2.6s var(--ease) infinite; }
@keyframes scan { 0% { top: 18%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 82%; opacity: 0; } }
.uc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; align-items: start; }

@media (max-width: 860px) {
  .uc-tabs { justify-content: flex-start; }
  .uc-panel { grid-template-columns: 1fr; }
  .uc-visual { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .uc-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mk, .doc-scan, .uc-panel.swap { animation: none; }
  .bar i { animation: none; width: var(--w, 100%); }
  .doc-scan .scanline, .dot-wait { animation: none; }
}

/* ===================== INTEGRATIONS (blockbrain-style) ===================== */
.int-eyebrow { display: block; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .05em; color: var(--muted-2); margin-bottom: .8rem; }
/* ---- integrations: pillar cards ---- */
.int-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem);
  max-width: 1080px; margin: 0 auto;
}
.int-pillar {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.7rem, 2.5vw, 2.2rem); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.int-pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.ip-ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: var(--violet);
  background: var(--violet-wash); border: 1px solid var(--line-2);
  margin-bottom: 1.25rem;
}
.ip-ic svg { width: 24px; height: 24px; display: block; }
.int-pillar h3 { font-size: 1.16rem; line-height: 1.25; margin-bottom: .55rem; }
.int-pillar p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
@media (max-width: 860px) { .int-pillars { grid-template-columns: 1fr; gap: 1rem; } }

/* ---- capabilities: bento ---- */
.int-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.35rem);
  max-width: 1120px; margin: 0 auto;
}
.bt {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  min-height: 340px;
}
.bt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.bt-a { grid-column: span 2; }
.bt-b { grid-column: span 1; }
.bt-c { grid-column: span 1; }
.bt-d { grid-column: span 2; }
.bt-copy { padding: clamp(1.5rem, 2.3vw, 2rem) clamp(1.5rem, 2.3vw, 2rem) 1.2rem; }
.bt-copy h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.4; font-weight: 500;
  color: var(--muted); letter-spacing: -.01em;
}
.bt-lead { color: var(--text); font-weight: 700; }
.bt-viz { position: relative; flex: 1; overflow: hidden; }

/* A · ask field */
.bt-viz-ask {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  background:
    radial-gradient(90% 120% at 18% 100%, rgba(255,138,76,.28), transparent 55%),
    radial-gradient(90% 130% at 82% 100%, rgba(31,87,219,.3), transparent 58%),
    radial-gradient(70% 90% at 50% 115%, rgba(214,120,220,.24), transparent 62%),
    linear-gradient(180deg, #fdfcfa 0%, #f6f3ee 100%);
  padding: 1.6rem 2rem;
}
.bt-blob {
  position: absolute; left: 50%; bottom: -34%; width: 88%; height: 105%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 26% 72%, rgba(255,138,76,.6), transparent 68%),
    radial-gradient(closest-side at 64% 58%, rgba(31,87,219,.55), transparent 68%),
    radial-gradient(closest-side at 46% 88%, rgba(214,120,220,.5), transparent 70%);
  filter: blur(16px); opacity: .95;
  animation: btBlob 9s var(--ease) infinite alternate;
}
@keyframes btBlob {
  0%   { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-52%) scale(1.08); }
}
.bt-askbar {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 999px;
  padding: .85rem 1rem; box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bt-blob { transition: opacity .4s var(--ease); }
.bt-a:hover .bt-blob { opacity: 1; }
.bt-a:hover .bt-askbar { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* data streams: source dots flow into the ask bar */
.bt-stream {
  --dx: 0px; --dy: 0px;
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  opacity: 0; pointer-events: none; z-index: 0;
  animation: btStream 5.6s ease-in-out infinite;
}
.bs1 { background: #EA4335; left: 11%;  top: 16%;    --dx: 190px;  --dy: 110px; animation-delay: .3s; }
.bs2 { background: #4285F4; right: 9%;  top: 12%;    --dx: -175px; --dy: 120px; animation-delay: 1.7s; }
.bs3 { background: #34A853; left: 15%;  bottom: 12%; --dx: 165px;  --dy: -45px; animation-delay: 3.1s; }
.bs4 { background: #F5A623; right: 13%; bottom: 16%; --dx: -155px; --dy: -55px; animation-delay: 4.5s; }
@keyframes btStream {
  0%   { transform: translate(0,0) scale(.5); opacity: 0; }
  8%   { opacity: .9; }
  46%  { transform: translate(var(--dx), var(--dy)) scale(1.05); opacity: .9; }
  56%  { transform: translate(var(--dx), var(--dy)) scale(.35); opacity: 0; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.35); opacity: 0; }
}
.bt-plus {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 400;
  color: var(--muted); background: var(--soft);
}
.bt-askph { flex: 1; min-width: 0; color: var(--muted-2); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  vertical-align: -.15em; background: var(--violet);
  animation: btCaret 1s step-end infinite;
}
@keyframes btCaret { 50% { opacity: 0; } }
.bt-mic {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--ink); display: flex; align-items: center; justify-content: center; gap: 2px;
}
.bt-mic i {
  width: 2px; border-radius: 2px; background: #fff; opacity: .92;
  animation: btWave 1.1s var(--ease) infinite;
}
.bt-mic i:nth-child(1) { height: 7px;  animation-delay: 0s; }
.bt-mic i:nth-child(2) { height: 13px; animation-delay: .12s; }
.bt-mic i:nth-child(3) { height: 17px; animation-delay: .24s; }
.bt-mic i:nth-child(4) { height: 11px; animation-delay: .36s; }
.bt-mic i:nth-child(5) { height: 6px;  animation-delay: .48s; }
@keyframes btWave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* B · agent steps */
.bt-steps {
  display: flex; flex-direction: column; gap: 0;
  background:
    radial-gradient(130% 110% at 100% 115%, rgba(52,211,153,.2), transparent 58%),
    radial-gradient(120% 100% at 0% 110%, rgba(31,87,219,.14), transparent 60%),
    linear-gradient(180deg, #fdfcfa, #f5f3ee);
  padding: 1.3rem 1.3rem 1.5rem; justify-content: center;
}
.bt-step {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 12px;
  padding: .7rem .8rem; box-shadow: var(--shadow-sm);
}
.bt-step-n {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  color: var(--violet); background: var(--violet-wash);
}
.bt-step-tx { display: flex; flex-direction: column; line-height: 1.25; }
.bt-step-tx b { font-size: .86rem; color: var(--text); }
.bt-step-tx small { font-size: .74rem; color: var(--muted-2); }
.bt-step-link { position: relative; width: 2px; height: 16px; margin: 0 auto; background: var(--line-2); }
.bt-step-link::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 7px; height: 7px;
  margin-left: -3.5px; border-radius: 50%; background: var(--violet); opacity: 0;
}

/* C · answer card */
.bt-answer {
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 1.4rem 1.7rem;
  background:
    radial-gradient(120% 120% at 50% 120%, rgba(31,87,219,.22), transparent 62%),
    radial-gradient(90% 90% at 8% 108%, rgba(166,191,240,.35), transparent 60%),
    linear-gradient(180deg, #fdfcfa, #f4f3ef);
}
.bt-ans-card {
  width: 100%; display: flex; flex-direction: column; gap: .7rem;
  background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 16px;
  padding: 1.2rem 1.25rem; box-shadow: var(--shadow-md);
}
.bt-ans-q { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.bt-ans-line { height: 8px; border-radius: 4px; background: var(--soft); width: 100%; }
.bt-ans-line.short { width: 62%; }
.bt-ans-chip {
  align-self: flex-start; margin-top: .3rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--violet);
  background: var(--violet-wash); border-radius: 999px; padding: .38rem .75rem;
}
.bt-ans-chip svg { width: 13px; height: 13px; }

/* D · logo row */
.bt-logos {
  display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(.9rem, 1.8vw, 1.5rem);
  min-height: 150px;
  background:
    radial-gradient(120% 150% at 85% -20%, rgba(214,120,220,.24), transparent 58%),
    radial-gradient(130% 140% at 20% 130%, rgba(31,87,219,.3), transparent 60%),
    linear-gradient(120deg, #fdfcfa, #f2f0ea);
  padding: 1.6rem 0 1.9rem 2rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 99%);
          mask-image: linear-gradient(90deg, #000 82%, transparent 99%);
}
.bt-logo {
  width: 68px; height: 68px; flex: none; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}
.bt-logo:nth-child(even) { transform: translateY(10px); }
.bt-logo:hover { transform: translateY(-4px); }
.bt-logo:nth-child(even):hover { transform: translateY(4px); }
.bt-logo svg { width: 52%; height: 52%; display: block; }

/* ---- bento: entrance + ambient animation ---- */
.int-bento .bt.reveal { opacity: 0; transform: none; }
.int-bento .bt.reveal.in { opacity: 1; animation: btTileIn .65s var(--ease) backwards; }
.int-bento .bt.reveal.in:nth-child(2) { animation-delay: .12s; }
.int-bento .bt.reveal.in:nth-child(3) { animation-delay: .2s; }
.int-bento .bt.reveal.in:nth-child(4) { animation-delay: .28s; }
@keyframes btTileIn {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* agent steps cascade in, then the pipeline "runs" on a loop:
   step 1 → dot travels → step 2 → dot → step 3, pause, repeat */
.bt.in .bt-steps .bt-step:nth-child(1) {
  animation: btStepIn .5s var(--ease) backwards .5s,
             btRunStep 6.9s var(--ease) 1.8s infinite;
}
.bt.in .bt-steps .bt-step:nth-child(3) {
  animation: btStepIn .5s var(--ease) backwards .75s,
             btRunStep 6.9s var(--ease) 4.1s infinite;
}
.bt.in .bt-steps .bt-step:nth-child(5) {
  animation: btStepIn .5s var(--ease) backwards 1s,
             btRunStep 6.9s var(--ease) 6.4s infinite;
}
.bt.in .bt-steps .bt-step:nth-child(1) .bt-step-n { animation: btRunNum 6.9s var(--ease) 1.8s infinite; }
.bt.in .bt-steps .bt-step:nth-child(3) .bt-step-n { animation: btRunNum 6.9s var(--ease) 4.1s infinite; }
.bt.in .bt-steps .bt-step:nth-child(5) .bt-step-n { animation: btRunNum 6.9s var(--ease) 6.4s infinite; }
.bt.in .bt-steps .bt-step-link { transform-origin: top; animation: btLinkIn .35s var(--ease) backwards; }
.bt.in .bt-steps .bt-step-link:nth-child(2) { animation-delay: .68s; }
.bt.in .bt-steps .bt-step-link:nth-child(4) { animation-delay: .93s; }
.bt.in .bt-steps .bt-step-link:nth-child(2)::after { animation: btRunDot 6.9s linear 3.5s infinite; }
.bt.in .bt-steps .bt-step-link:nth-child(4)::after { animation: btRunDot 6.9s linear 5.8s infinite; }
@keyframes btStepIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes btLinkIn { from { transform: scaleY(0); } }
@keyframes btRunStep {
  0%, 33%, 100% { border-color: rgba(255,255,255,.7); box-shadow: var(--shadow-sm); transform: translateX(0); }
  5%, 24% { border-color: var(--violet-soft); box-shadow: 0 0 0 4px rgba(31,87,219,.13), var(--shadow-md); transform: translateX(4px); }
}
@keyframes btRunNum {
  0%, 33%, 100% { background: var(--violet-wash); color: var(--violet); }
  5%, 24% { background: var(--violet); color: #fff; }
}
@keyframes btRunDot {
  0% { top: -10%; opacity: 0; }
  1.5% { opacity: 1; }
  7% { top: 96%; opacity: 1; }
  9% { opacity: 0; }
  100% { top: 96%; opacity: 0; }
}

/* answer card: rise, shimmer lines, chip pop */
.bt.in .bt-ans-card { animation: btStepIn .55s var(--ease) backwards .4s; }
.bt-ans-line { position: relative; overflow: hidden; }
.bt.in .bt-ans-line::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: btShimmer 2.8s var(--ease) 1.1s infinite;
}
.bt.in .bt-ans-line.short::after { animation-delay: 1.35s; }
@keyframes btShimmer { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.bt.in .bt-ans-chip { animation: btChipIn .45s var(--ease) backwards 1s; }
@keyframes btChipIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* logo chips: staggered entrance, then a gentle bob */
.bt.in .bt-logo { animation: btLogoIn .5s var(--ease) backwards; }
.bt.in .bt-logo:nth-child(1) { animation-delay: .45s; }
.bt.in .bt-logo:nth-child(2) { animation-delay: .52s; }
.bt.in .bt-logo:nth-child(3) { animation-delay: .59s; }
.bt.in .bt-logo:nth-child(4) { animation-delay: .66s; }
.bt.in .bt-logo:nth-child(5) { animation-delay: .73s; }
.bt.in .bt-logo:nth-child(6) { animation-delay: .8s; }
.bt.in .bt-logo:nth-child(7) { animation-delay: .87s; }
.bt.in .bt-logo:nth-child(8) { animation-delay: .94s; }
@keyframes btLogoIn { from { opacity: 0; transform: translateY(18px) scale(.75); } }
/* data-hop wave: a pulse travels across the tools, left to right */
.bt-logo svg { animation: btHop 4.8s ease-in-out infinite; }
.bt-logo:nth-child(1) svg { animation-delay: 0s; }
.bt-logo:nth-child(2) svg { animation-delay: .33s; }
.bt-logo:nth-child(3) svg { animation-delay: .66s; }
.bt-logo:nth-child(4) svg { animation-delay: .99s; }
.bt-logo:nth-child(5) svg { animation-delay: 1.32s; }
.bt-logo:nth-child(6) svg { animation-delay: 1.65s; }
.bt-logo:nth-child(7) svg { animation-delay: 1.98s; }
.bt-logo:nth-child(8) svg { animation-delay: 2.31s; }
@keyframes btHop {
  0%, 16%, 100% { transform: translateY(0) scale(1); filter: none; }
  6%  { transform: translateY(-7px) scale(1.14); filter: drop-shadow(0 5px 9px rgba(31,87,219,.45)); }
  12% { transform: translateY(1.5px) scale(1); filter: none; }
}

/* ---- pillars: entrance + hover life ---- */
.int-pillars .int-pillar.reveal { opacity: 0; transform: none; }
.int-pillars .int-pillar.reveal.in { opacity: 1; animation: btTileIn .6s var(--ease) backwards; }
.int-pillars .int-pillar.reveal.in:nth-child(2) { animation-delay: .12s; }
.int-pillars .int-pillar.reveal.in:nth-child(3) { animation-delay: .24s; }
.int-pillar { position: relative; overflow: hidden; }
.int-pillar::before {
  content: ''; position: absolute; top: -46%; left: -28%; width: 78%; height: 82%;
  background: radial-gradient(closest-side, rgba(31,87,219,.1), transparent 72%);
  pointer-events: none; transition: opacity .35s var(--ease); opacity: .8;
}
.int-pillar:hover::before { opacity: 1; }
.int-pillar::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet-bright), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.int-pillar:hover::after { transform: scaleX(1); }
.ip-ic { transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.int-pillar:hover .ip-ic { transform: scale(1.08) rotate(-4deg); background: var(--violet); border-color: var(--violet); color: #fff; }
.int-pillar.in .ip-ic { animation: ipPop .5s var(--ease) backwards; }
.int-pillars .int-pillar.in:nth-child(1) .ip-ic { animation-delay: .25s; }
.int-pillars .int-pillar.in:nth-child(2) .ip-ic { animation-delay: .37s; }
.int-pillars .int-pillar.in:nth-child(3) .ip-ic { animation-delay: .49s; }
@keyframes ipPop { from { opacity: 0; transform: scale(.6); } }

/* tablet: even 2×2 grid so tall tiles never get cramped */
@media (max-width: 1080px) and (min-width: 861px) {
  .int-bento { grid-template-columns: 1fr 1fr; }
  .bt-a, .bt-b, .bt-c, .bt-d { grid-column: span 1; }
  .bt { min-height: 320px; }
}
@media (max-width: 860px) {
  .int-bento { grid-template-columns: 1fr; }
  .bt-a, .bt-b, .bt-c, .bt-d { grid-column: span 1; }
  .bt { min-height: 0; }
  .bt-viz-ask { min-height: 185px; }
  .bt-logos { min-height: 128px; padding-left: 1.3rem; }
  .bt-logo { width: 56px; height: 56px; }
  .int-bento .bt.reveal.in,
  .int-pillars .int-pillar.reveal.in { animation-delay: 0s; }
  .bt.in .bt-logo { animation-delay: .25s !important; }
}
/* small screens: let the headings wrap naturally */
@media (max-width: 720px) {
  #capabilities .section-head h2 br,
  #integrations .section-head h2 br { display: none; }
}
@media (max-width: 860px) {
  .bs1 { --dx: 120px; --dy: 70px; }
  .bs2 { --dx: -110px; --dy: 75px; }
  .bs3 { --dx: 100px; --dy: -30px; }
  .bs4 { --dx: -95px; --dy: -35px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-blob, .bt-caret, .bt-mic i, .bt-logo svg, .bt-stream,
  .int-bento .bt.reveal.in, .int-pillars .int-pillar.reveal.in,
  .bt.in .bt-steps .bt-step, .bt.in .bt-steps .bt-step-link,
  .bt.in .bt-steps .bt-step .bt-step-n, .bt.in .bt-steps .bt-step-link::after,
  .bt.in .bt-ans-card, .bt.in .bt-ans-line::after, .bt.in .bt-ans-chip,
  .bt.in .bt-logo, .int-pillar.in .ip-ic { animation: none; }
  .int-bento .bt.reveal, .int-pillars .int-pillar.reveal { opacity: 1; }
}

/* ===================== ASK CONSOLE (Glean-style) ===================== */
.ask-card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.2rem, 4vw, 3rem);
}
.prob-note { max-width: 44rem; margin: 1.1rem auto 0; text-align: center; color: var(--muted-2); font-size: 1rem; line-height: 1.6; }
.ask-bg {
  position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 440px at 20% 28%, rgba(31,87,219,.92), transparent 58%),
    radial-gradient(700px 540px at 82% 74%, rgba(124,92,246,.78), transparent 60%),
    radial-gradient(560px 460px at 94% 14%, rgba(236,72,153,.55), transparent 60%),
    radial-gradient(520px 420px at 58% 104%, rgba(238,138,62,.45), transparent 60%),
    linear-gradient(118deg, #7c5cf6, #3b6fe0);
  filter: blur(6px) saturate(122%);
}
.ask-inner { position: relative; z-index: 1; width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; gap: clamp(1.3rem, 2.6vw, 2rem); }
.ask-head { text-align: center; }
.ask-head h2 { color: #fff; text-shadow: 0 2px 24px rgba(10,20,50,.28); }
.ask-head .muted { color: rgba(255,255,255,.82); }
.ask-box { width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 34px 80px rgba(15,25,60,.36); padding: .5rem .5rem .85rem; }
.ask-row { display: flex; align-items: center; gap: .85rem; padding: .75rem .95rem; }
.ask-plus { font-size: 1.5rem; color: var(--muted-2); font-weight: 300; line-height: 1; flex: none; }
.ask-q { flex: 1; min-width: 0; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.ask-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--violet); margin-left: 2px; flex: none; animation: caret 1.05s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask-tools { display: flex; align-items: center; gap: .8rem; flex: none; }
.ask-filter { width: 21px; height: 21px; color: var(--muted-2); }
.ask-mic { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.ask-mic svg { width: 19px; height: 19px; color: #fff; }
.ask-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 .55rem; }
.ask-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--muted); background: #f5f6f8; border: 1px solid var(--line); border-radius: 999px; padding: .36rem .72rem; }
.ask-chip svg { width: 15px; height: 15px; display: block; flex: none; }
@media (max-width: 720px) {
  .ask-card { min-height: 0; border-radius: 22px; }
  .ask-row { gap: .55rem; padding: .65rem .7rem; }
  .ask-q { font-size: .95rem; }
  .ask-mic { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ask-caret { animation: none; } }

/* ===================== PRIVACY & COMPLIANCE (dark/night) ===================== */
/* one continuous navy backdrop behind both privacy sections — no seam */
.night-block {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 560px at 50% 0%, rgba(79,131,242,.20), transparent 56%),
    radial-gradient(760px 520px at 92% 100%, rgba(37,99,235,.16), transparent 56%),
    linear-gradient(178deg, #16223C 0%, #101c34 52%, #0F1A30 100%);
  border-top: 1px solid #20304e; border-bottom: 1px solid #20304e;
}
.section-night {
  position: relative; max-width: none; margin: 0; padding-left: 0; padding-right: 0;
  background: transparent; border: none;
}
.section-night > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }
.on-night { color: #fff; }
.sec-soft { color: #8fa6d6; }
.on-night-sub { color: rgba(214,224,245,.74); }
.on-night-sub em { color: #fff; font-style: normal; font-weight: 600; }
.sec-eyebrow { display: block; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: #7d92c4; margin-bottom: .8rem; }
.sec-cta { display: flex; gap: .8rem; justify-content: center; margin-top: 1.7rem; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f8; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost-night { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-night:hover { border-color: #fff; background: rgba(255,255,255,.07); }

/* animated shield centerpiece */
.shield-stage { position: relative; width: clamp(220px, 26vw, 310px); height: clamp(220px, 26vw, 310px); margin: clamp(1rem, 3vw, 2.2rem) auto 0; display: grid; place-items: center; }
.sh-ring { position: absolute; width: 58%; height: 58%; border-radius: 50%; border: 1px solid rgba(120,150,255,.45); opacity: 0; animation: shPing 3.4s var(--ease) infinite; }
.sh-ring.r2 { animation-delay: 1.13s; }
.sh-ring.r3 { animation-delay: 2.26s; }
@keyframes shPing { 0% { transform: scale(.55); opacity: .6; } 70% { opacity: 0; } 100% { transform: scale(2.5); opacity: 0; } }
.sh-conic { position: absolute; inset: 9%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(124,154,255,.65) 78%, rgba(167,191,240,.2) 90%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%);
  opacity: .75; animation: shSpin 9s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
.sh-glow { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(74,125,240,.55), rgba(31,87,219,.12) 55%, transparent 72%); filter: blur(10px); animation: shGlow 4.6s ease-in-out infinite; }
@keyframes shGlow { 0%, 100% { opacity: .5; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.06); } }
.shield-svg { position: relative; z-index: 1; width: 48%; height: auto; filter: drop-shadow(0 24px 46px rgba(0,0,0,.55)); animation: shFloat 6s ease-in-out infinite; }
@keyframes shFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.shield-check { stroke-dasharray: 92; stroke-dashoffset: 92; }
.shield-stage.in .shield-check { animation: shDraw 1.1s var(--ease) .35s forwards; }
@keyframes shDraw { to { stroke-dashoffset: 0; } }

/* key features row */
.sec-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.6vw, 2.2rem); max-width: 1000px; margin: clamp(2.4rem, 4.5vw, 3.4rem) auto 0; }
.sec-feat2 { text-align: center; }
.sec-feat2 .fic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto .95rem; color: #9fb4e0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.sec-feat2 .fic svg { width: 23px; height: 23px; }
.sec-feat2:hover .fic { transform: translateY(-3px); border-color: rgba(120,150,255,.5); }
.sec-feat2 h4 { color: #fff; font-size: 1.04rem; margin-bottom: .35rem; }
.sec-feat2 p { color: rgba(206,217,240,.62); font-size: .9rem; line-height: 1.5; max-width: 16rem; margin: 0 auto; }

.sec-research {
  position: relative; max-width: 50rem; margin: clamp(3rem, 5vw, 4.5rem) auto 0;
  padding: 2.1rem 2.2rem; text-align: center; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(74,125,240,.14), rgba(255,255,255,.02));
}
.sec-research::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--violet-bright), #7c5cf6, transparent); }
.sr-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fb4e0; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .34rem .75rem; margin-bottom: 1.1rem; }
.sr-tag i { width: 14px; height: 14px; display: block; }
.sr-tag svg { width: 100%; height: 100%; display: block; }
.sr-head { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .7rem; }
.sec-research p { color: rgba(214,224,245,.74); font-size: 1rem; line-height: 1.6; max-width: 40rem; margin: 0 auto; }

@media (max-width: 900px) { .sec-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sec-feats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .sh-ring, .sh-conic, .sh-glow, .shield-svg { animation: none; }
  .shield-check { stroke-dashoffset: 0; }
}

/* ===================== EFFICIENCY (Glean-style) ===================== */
.eff-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.eff-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: .9rem; }
.eff-copy h2 { margin-bottom: 1.1rem; }
.eff-copy .lede { margin: 0 0 2rem; max-width: 32rem; }
.eff-cards { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.eff-aura {
  position: absolute; inset: -10% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(380px 300px at 76% 16%, rgba(74,125,240,.32), transparent 62%),
    radial-gradient(360px 320px at 28% 96%, rgba(124,92,246,.24), transparent 62%);
  filter: blur(12px);
}
.eff-card {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eff-ic { display: block; width: 24px; height: 24px; color: var(--muted-2); margin-bottom: 1rem; }
.eff-ic svg { width: 100%; height: 100%; display: block; }
.eff-row { display: flex; gap: 1.3rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid var(--line); }
.eff-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted-2); font-size: .95rem; padding-top: .12rem; flex: none; }
.eff-txt h4 { font-size: 1.12rem; margin-bottom: .2rem; }
.eff-txt p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 860px) { .eff-wrap { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ===================== MASKING FLOW (navy, animated) ===================== */
/* seamless join between the two navy sections */
.section-night-lead { border-bottom: none; }
.section-night-join { border-top: none; padding-top: 0; }
.section-night-join .section-head { margin-top: 0; }

/* animated mask transform chip */
.mask-demo { display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 2vw, 1.2rem); margin: -1rem auto 3.2rem; flex-wrap: wrap; }
.mask-chip { display: inline-flex; align-items: center; gap: .55rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(.85rem, 2vw, 1rem); padding: .6rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.m-dot-clear { background: #34d399; box-shadow: 0 0 9px #34d399; }
.m-dot-enc { background: var(--violet-bright); box-shadow: 0 0 9px var(--violet-bright); }
.mask-chip { min-width: 9rem; justify-content: center; transition: opacity .5s var(--ease), border-color .5s var(--ease); }
.mask-clear, .mask-tok { opacity: .4; }
.mask-demo:not(.demo-masked) .mask-clear { opacity: 1; border-color: rgba(52,211,153,.5); }
.mask-demo.demo-masked .mask-tok { opacity: 1; border-color: rgba(74,125,240,.55); }
.mc-text, .mt-text { white-space: nowrap; }
.mask-go { position: relative; display: inline-flex; align-items: center; color: rgba(255,255,255,.55); }
.mask-go > svg { width: 40px; height: 16px; }
.mask-lock { position: absolute; left: 50%; top: -16px; width: 18px; height: 18px; color: #9fb4e0; opacity: 0; transform: translate(-50%, 4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mask-lock svg { width: 100%; height: 100%; }
.mask-demo.demo-masked .mask-lock { opacity: 1; transform: translate(-50%, 0); }

/* flow steps on navy */
#how .flow { align-items: stretch; }
#how .flow-step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 1.3rem 1.2rem 1.4rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
#how .flow-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fc, var(--violet)); }
#how .flow-step:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); box-shadow: 0 22px 44px rgba(0,0,0,.4); }
#how .flow-tag { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.62); }
#how .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fc, var(--violet)); box-shadow: 0 0 8px var(--fc, var(--violet)); flex: none; }
#how .flow-step h4 { color: #fff; }
#how .flow-step p { color: rgba(206,217,240,.64); }
#how .flow-step code { display: inline-block; margin-top: .7rem; background: rgba(120,150,230,.16); color: #cfe0ff; border: 1px solid rgba(255,255,255,.1); }

/* animated pulse travelling along the connectors */
#how .flow-arrow { position: relative; opacity: 1; }
.flow-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(120,150,255,.85); opacity: 0; animation: flowPulse 2.4s var(--ease) infinite; }
@keyframes flowPulse { 0% { opacity: 0; transform: translateX(-18px) scale(.5); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(18px) scale(.5); } }
.flow > .flow-arrow:nth-of-type(2) .flow-pulse { animation-delay: 0s; }
.flow > .flow-arrow:nth-of-type(4) .flow-pulse { animation-delay: .45s; }
.flow > .flow-arrow:nth-of-type(6) .flow-pulse { animation-delay: .9s; }

#how .flow-legend { color: rgba(214,224,245,.72); margin-top: 2.8rem; }
.lg-mask { background: var(--violet-soft); }
.lg-enc { background: var(--violet-bright); }

@media (max-width: 1080px) { #how .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .flow-pulse { animation: none; }
  .mask-clear, .mask-tok { opacity: 1; transition: none; }
  .mask-lock { transition: none; }
}

/* tighten gap above the use-cases section a touch */
#usecases { padding-top: 5.5rem; }

/* ===================== PRIVACY SECTION — layout toggle + bento (view B) ===================== */
.sec-toggle { display: flex; width: fit-content; gap: 4px; padding: 4px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.sec-tg { border: none; background: transparent; color: rgba(214,224,245,.7); font-family: inherit; font-weight: 600; font-size: .88rem; padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.sec-tg:hover { color: #fff; }
.sec-tg.active { background: #fff; color: var(--ink); }
.sec-view[hidden] { display: none; }

/* Grid view — Glean-style split (left copy + CTA, right cards) */
.sec-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; max-width: 1100px; margin: 0 auto; }
.sec-split-copy .split-shield { position: relative; width: clamp(86px, 9vw, 108px); height: clamp(86px, 9vw, 108px); display: grid; place-items: center; margin-bottom: 1.4rem; }
.bh-glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(74,125,240,.6), transparent 68%); filter: blur(9px); animation: shGlow 4.6s ease-in-out infinite; }
.bh-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(124,154,255,.6) 82%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); animation: shSpin 9s linear infinite; }
.bh-svg { position: relative; z-index: 1; width: 56%; height: auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); animation: shFloat 6s ease-in-out infinite; }
.bh-check { stroke-dasharray: 92; stroke-dashoffset: 92; }
.sec-split-copy.in .bh-check { animation: shDraw 1.1s var(--ease) .4s forwards; }
.sec-split-copy .sr-tag { margin-bottom: 1.1rem; }
.sec-split-copy h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1rem; }
.sec-split-copy p { color: rgba(214,224,245,.74); font-size: 1.05rem; line-height: 1.6; max-width: 32rem; margin-bottom: 1.9rem; }

.sec-split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.85rem, 1.5vw, 1.2rem); }
.bento-feat { display: flex; flex-direction: column; padding: clamp(1.3rem, 2vw, 1.7rem); border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.bento-feat:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(120,150,255,.4); }
.bf-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #9fb4e0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem; }
.bf-ic svg { width: 22px; height: 22px; }
.bento-feat h4 { color: #fff; font-size: 1.04rem; margin-bottom: .35rem; }
.bento-feat p { color: rgba(206,217,240,.62); font-size: .9rem; line-height: 1.5; }

@media (max-width: 860px) {
  .sec-split { grid-template-columns: 1fr; gap: 2.4rem; }
  .sec-split-copy p { max-width: none; }
}
@media (max-width: 460px) { .sec-split-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .bh-glow, .bh-ring, .bh-svg { animation: none; }
  .bh-check { stroke-dashoffset: 0; }
}

/* hero subhead: forced even break on desktop only */
.sub-break { display: inline; }
@media (max-width: 720px) { .sub-break { display: none; } }
