/* =========================================================
   LitigaZero — Landing Page styles
   ========================================================= */

:root {
  --navy-950:   #070E1A;
  --navy-900:   #0A1628;
  --navy-700:   #16263F;
  --indigo-600: #3B4FE0;
  --indigo-400: #7B8FF5;
  --slate-50:   #F8FAFC;
  --slate-200:  #E5E9F0;
  --slate-400:  #97A1B5;
  --slate-500:  #6B7689;
  --slate-900:  #0E1726;
  --white:      #FFFFFF;
  --glass:      rgba(255,255,255,0.07);

  --container: 1200px;
  --radius-card: 16px;
  --radius-btn: 6px;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ---------- section base ---------- */
section { position: relative; }
.section--dark  { background: var(--navy-950); color: rgba(255,255,255,0.85); }
.section--light { background: var(--white); color: var(--slate-900); }

/* .section--dark + .section--dark — no double dark seams (intentionally empty) */

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow--dark  { color: var(--indigo-400); }
.eyebrow--light { color: var(--indigo-600); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}
.h2--dark { color: var(--white); }

.muted { color: var(--slate-400); }
.section--light .muted { color: var(--slate-500); }

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 60ch;
  color: var(--slate-500);
}
.lede--dark { color: rgba(255,255,255,0.65); }

.section__head { margin-bottom: 64px; }
@media (max-width: 720px) { .section__head { margin-bottom: 40px; } }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--indigo-600);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 18px -8px rgba(59,79,224,0.5);
}
.btn--primary:hover {
  background: #2f41c4;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(59,79,224,0.7);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}
.link-quiet { font-size: 0.92rem; opacity: 0.85; }
.link-quiet:hover { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}
.nav.is-scrolled {
  background: rgba(10,22,40,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  color: var(--white);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand__mark { display: inline-flex; color: var(--white); }
.brand__word { font-size: 1.05rem; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  transition: color 160ms ease;
}
.nav__links a:hover { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: 18px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta .link-quiet { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 200px 0 140px;
  background: var(--navy-950);
}
.hero__gradient {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(59,79,224,0.35) 0%, rgba(59,79,224,0) 60%),
    radial-gradient(40% 35% at 20% 75%, rgba(123,143,245,0.18) 0%, rgba(123,143,245,0) 70%),
    radial-gradient(50% 45% at 80% 25%, rgba(59,79,224,0.18) 0%, rgba(59,79,224,0) 70%);
  filter: blur(8px);
  animation: heroPulse 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroPulse {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.85; }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.02); opacity: 0.9; }
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 220px;
  background:
    linear-gradient(to top, rgba(255,255,255,0.04), transparent),
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 820px;
  text-align: center;
  color: var(--white);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero__sub {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero__ctas { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.hero__foot { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

/* ---------- CONTEXTO / metrics ---------- */
.context { padding: 130px 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.metric {
  padding: 44px 28px;
  border-right: 1px solid var(--slate-200);
}
.metric:last-child { border-right: none; }
.metric__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--slate-900);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.metric__label {
  display: block;
  font-size: 0.92rem;
  color: var(--slate-500);
  max-width: 22ch;
  line-height: 1.4;
}
.context__body {
  margin: 56px auto 0;
  max-width: 68ch;
  font-size: 1.06rem;
  color: var(--slate-500);
}

@media (max-width: 920px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--slate-200); }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--slate-200); }
  .metric:last-child { border-bottom: none; }
}

/* ---------- LAYERS (sticky scroll-driven) ---------- */
.layers { padding: 0; }
.layers__sticky-wrap { position: relative; }
.layers__scroll { height: 500vh; }
.layers__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.layers__grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 50px;
  align-items: center;
  width: 100%;
  padding-top: 30px;
  padding-left: max(32px, 5%);
  padding-right: max(32px, 5%);
}
.layers__copy { max-width: 520px; }
.layers__copy .eyebrow { margin-bottom: 8px; }
.layers__copy .h2 { margin-bottom: 12px; }
.layers__copy .lede { margin-bottom: 24px; }



/* ---------- PILLS + TOOLTIP ---------- */

/* outer wrapper — left-aligns the pills stack within the copy column */
.pills-layout {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.pills-wrapper {
  position: relative;
  width: 340px;
}

/* legacy floating tooltip — replaced by inline pill body */
.pill-tooltip { display: none !important; }

.pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pill {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(18, 24, 56, 0.85);
  opacity: 0.45;
  width: 100%;
  overflow: hidden;
  transition: opacity 320ms ease, background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.pill.is-open {
  opacity: 1;
  background: rgba(99, 120, 250, 0.22);
  border-color: rgba(99, 120, 250, 0.55);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7);
}

.pill__head {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 22px;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
  transition: padding 320ms cubic-bezier(0.22,1,0.36,1);
}

.pill.is-open .pill__head {
  padding: 15px 22px;
}

.pill__head:focus-visible {
  outline: 2px solid rgba(99,120,250,0.8);
  outline-offset: 2px;
  border-radius: 22px;
}

.pill__name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
}

.pill.is-open .pill__name { color: var(--white); }

.pill__btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  transition: border-color 280ms ease, color 280ms ease, background 280ms ease, transform 320ms cubic-bezier(0.22,1,0.36,1);
}

.pill.is-open .pill__btn {
  border-color: rgba(99, 120, 250, 0.8);
  color: var(--white);
  background: rgba(99, 120, 250, 0.35);
  transform: rotate(45deg);
}

/* expandable body — grid-template-rows trick requires a single direct child */
.pill__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 440ms cubic-bezier(0.22,1,0.36,1);
}
.pill__body-inner { min-height: 0; overflow: hidden; }
.pill.is-open .pill__body { grid-template-rows: 1fr; }

.pill__body-label,
.pill__body-title,
.pill__body-desc { padding-left: 22px; padding-right: 22px; }

.pill__body-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--indigo-400);
  margin: 4px 0 8px;
}
.pill__body-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pill__body-desc {
  margin: 0;
  padding-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

@media (max-height: 900px) and (min-width: 921px) {
  .layers__grid { padding-top: 25px !important; }
  .layers__copy .lede { margin-bottom: 16px !important; }
  .pill { padding: 8px 14px !important; }
}

@media (max-height: 800px) and (min-width: 921px) {
  .layers__grid { padding-top: 15px !important; }
  .layers__copy .eyebrow { margin-bottom: 6px !important; }
  .layers__copy .h2 { margin-bottom: 8px !important; }
  .layers__copy .lede { margin-bottom: 10px !important; }
  .pill-tooltip { padding: 14px 16px !important; }
  .pill-tooltip__title { font-size: 0.92rem !important; }
  .pill-tooltip__desc { font-size: 0.8rem !important; }
  .pill { padding: 10px 16px !important; }
  .pills { gap: 10px !important; }
  .pills-wrapper { min-height: 230px !important; }
  .layers__stage { height: 580px !important; }
  .iso { transform: rotateX(55deg) rotateZ(45deg) scale(0.88) !important; }
}

@media (max-height: 680px) and (min-width: 921px) {
  .layers__grid { padding-top: 5px !important; }
  .layers__copy .eyebrow { margin-bottom: 4px !important; }
  .layers__copy .h2 { margin-bottom: 6px !important; font-size: 2.2rem !important; }
  .layers__copy .lede { margin-bottom: 6px !important; font-size: 1rem !important; }
  .pill-tooltip { padding: 12px 14px !important; }
  .pill-tooltip__title { font-size: 0.86rem !important; margin-bottom: 6px !important; }
  .pill-tooltip__desc { font-size: 0.78rem !important; }
  .pill { padding: 8px 14px !important; }
  .pills { gap: 8px !important; }
  .pills-wrapper { min-height: 200px !important; width: 250px !important; }
  .layers__stage { height: 480px !important; }
  .iso { transform: rotateX(55deg) rotateZ(45deg) scale(0.72) !important; }
}

/* ---------- ISO STAGE ---------- */
.layers__stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 60vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.iso {
  position: relative;
  width: clamp(280px, 38vw, 560px);
  height: clamp(280px, 38vw, 560px);
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateX(55deg) rotateZ(45deg);
  transition: filter 500ms ease;
}

/* Adaptive scale per monitor width — keeps the isometric stack on-screen */
@media (max-width: 1400px) and (min-width: 1201px) {
  .iso { transform: rotateX(55deg) rotateZ(45deg) scale(0.85); }
}
@media (max-width: 1200px) and (min-width: 1025px) {
  .iso { transform: rotateX(55deg) rotateZ(45deg) scale(0.72); }
}
@media (max-width: 1024px) and (min-width: 921px) {
  .iso { transform: rotateX(55deg) rotateZ(45deg) scale(0.58); }
}
/* faint floor disc under the stack */
.iso::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(123,143,245,0.22), transparent 65%);
  transform: translateZ(-70px);
  filter: blur(18px);
  pointer-events: none;
}
.iso__grid {
  position: absolute;
  inset: -60px;
  background:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(closest-side, black 55%, transparent 100%);
  transform: translateZ(-40px);
  transition: opacity 500ms ease;
}

/* ---------- SLAB ---------- */
.slab {
  position: absolute;
  inset: 30px;
  border-radius: 20px;
  padding: 22px 26px;
  color: var(--white);
  /* JS sets translateZ and opacity per phase; CSS owns the easing */
  opacity: 0;
  transform: translateZ(420px);
  will-change: transform, opacity;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);

  /* visible glass body — stands out against the dark background */
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.35);

  /* thickness shadow + drop shadow + simulated bottom edge */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 8px 0 -2px rgba(255,255,255,0.04),
    0 9px 0 -2px rgba(255,255,255,0.10),
    0 24px 48px -20px rgba(0,0,0,0.7);

  backdrop-filter: blur(8px);
}

/* engraved layer name at the top of the plate */
.slab__engrave {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.55);
  transition: opacity 320ms ease;
}

/* corner brackets — blueprint marks */
.slab::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  transition: opacity 320ms ease;
  background:
    linear-gradient(to right, rgba(255,255,255,0.40), transparent 14px) top left/16px 1px no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,0.40), transparent 14px) top left/1px 16px no-repeat,
    linear-gradient(to left, rgba(255,255,255,0.40), transparent 14px) top right/16px 1px no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,0.40), transparent 14px) top right/1px 16px no-repeat,
    linear-gradient(to right, rgba(255,255,255,0.40), transparent 14px) bottom left/16px 1px no-repeat,
    linear-gradient(to top, rgba(255,255,255,0.40), transparent 14px) bottom left/1px 16px no-repeat,
    linear-gradient(to left, rgba(255,255,255,0.40), transparent 14px) bottom right/16px 1px no-repeat,
    linear-gradient(to top, rgba(255,255,255,0.40), transparent 14px) bottom right/1px 16px no-repeat;
}

/* ---------- SLAB 3 — FLOATING TAGS ABOVE SURFACE ---------- */
.slab__minis {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  transform: translateZ(8px);
}
.mini {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(59,79,224,0.20);
  border: 1px solid #3B4FE0;
  border-radius: 4px;
  padding: 3px 8px;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.slab--3.is-tagged .mini { opacity: 1; }
.slab--3.is-tagged .mini[data-mini="0"] { transition-delay: 0ms; }
.slab--3.is-tagged .mini[data-mini="1"] { transition-delay: 100ms; }
.slab--3.is-tagged .mini[data-mini="2"] { transition-delay: 200ms; }

/* ---------- SLAB 4 — LZ MONOGRAM ---------- */
.slab__monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(255,255,255,0.65);
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
  text-transform: uppercase;
}
.slab--4.is-mono .slab__monogram { opacity: 1; }

/* ---------- PROGRESS DOTS ---------- */
.layers__progress {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.layers__progress span {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: width 0.3s ease, background 280ms ease;
}
.layers__progress span.is-on {
  width: 48px;
  background: #3B4FE0;
}

/* ---------- MOBILE FALLBACK ---------- */
@media (max-width: 920px) {
  .layers__scroll { display: none; }
  .layers__sticky { position: relative; height: auto; padding: 100px 0; }
  .layers__grid { grid-template-columns: 1fr; gap: 40px; }
  .layers__stage { display: none; }
  .pills-layout { justify-content: flex-start; }
  .pill-tooltip {
    position: static;
    width: auto;
    margin-bottom: 16px;
    pointer-events: auto;
    box-shadow: none;
  }
  .pills-wrapper { width: 100%; min-height: 0; }
  .pill { opacity: 1; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .slab,
  .mini,
  .slab__monogram,
  .pill-tooltip,
  .pill,
  .iso__grid { transition: none !important; }
}

/* ---------- AGENTS ---------- */
.agents { padding: 140px 0; }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px)  { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .agent-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.section--dark .card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo-600);
  box-shadow: 0 18px 40px -28px rgba(15,23,42,0.25);
}
.section--dark .card:hover {
  box-shadow: 0 18px 40px -28px rgba(59,79,224,0.5);
}

.agent { display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.agent__icon {
  width: 36px; height: 36px;
  color: var(--indigo-600);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(59,79,224,0.08);
  border-radius: 8px;
}
.agent__icon svg { width: 22px; height: 22px; }
.agent__layer {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
}
.agent__name {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--slate-900);
}
.agent__body { font-size: 0.94rem; line-height: 1.5; color: var(--slate-500); }
.agent__more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--indigo-600);
}

.agent--feature {
  border-color: var(--indigo-600);
  background:
    linear-gradient(180deg, rgba(59,79,224,0.05), rgba(59,79,224,0)) ,
    var(--white);
  box-shadow: 0 0 0 1px rgba(59,79,224,0.18), 0 24px 60px -36px rgba(59,79,224,0.45);
}
.agent--feature .agent__icon { background: rgba(59,79,224,0.14); }

/* ---------- DEEPAUDIT ---------- */
.deepaudit {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}
.deepaudit__particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.deepaudit__particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(123,143,245,0.5);
  border-radius: 50%;
  animation: floatY 14s ease-in-out infinite;
}
.deepaudit__particles span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.deepaudit__particles span:nth-child(2) { top: 30%; left: 22%; animation-delay: 2s; }
.deepaudit__particles span:nth-child(3) { top: 70%; left: 14%; animation-delay: 4s; width: 3px; height: 3px; }
.deepaudit__particles span:nth-child(4) { top: 18%; left: 60%; animation-delay: 1s; }
.deepaudit__particles span:nth-child(5) { top: 50%; left: 72%; animation-delay: 3s; }
.deepaudit__particles span:nth-child(6) { top: 80%; left: 85%; animation-delay: 5s; }
.deepaudit__particles span:nth-child(7) { top: 22%; left: 40%; animation-delay: 6s; }
.deepaudit__particles span:nth-child(8) { top: 58%; left: 48%; animation-delay: 7s; }
.deepaudit__particles span:nth-child(9) { top: 36%; left: 90%; animation-delay: 8s; }
.deepaudit__particles span:nth-child(10) { top: 88%; left: 30%; animation-delay: 9s; }
.deepaudit__particles span:nth-child(11) { top: 6%; left: 78%; animation-delay: 10s; }
.deepaudit__particles span:nth-child(12) { top: 64%; left: 6%; animation-delay: 11s; }

@keyframes floatY {
  0%, 100% { transform: translate3d(0,0,0); opacity: 0.4; }
  50% { transform: translate3d(20px, -40px, 0); opacity: 1; }
}

.deepaudit__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.deepaudit__text .h2 { margin-bottom: 18px; }
.deepaudit__text .lede { margin-bottom: 40px; }
.deepaudit__text .btn { margin-top: 24px; }

.caps { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.caps li { display: flex; gap: 18px; align-items: flex-start; }
.caps__icon {
  width: 36px; height: 36px;
  flex: none;
  color: var(--indigo-400);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(123,143,245,0.12);
  border-radius: 8px;
}
.caps__icon svg { width: 20px; height: 20px; }
.caps h4 {
  font-size: 1.02rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.caps p { font-size: 0.92rem; color: rgba(255,255,255,0.62); }

.deepaudit__note {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  border-left: 2px solid rgba(123,143,245,0.4);
  padding-left: 14px;
  max-width: 50ch;
}

/* forensic visual */
.deepaudit__visual { position: relative; }
.forensic {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
}
.forensic__pane {
  background: rgba(7,14,26,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  min-height: 360px;
}
.pane__head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--r { background: #FF5C5C; }
.dot--y { background: #F0B233; }
.pane__title { flex: 1; color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.pane__tag {
  font-size: 0.62rem;
  color: var(--indigo-400);
  background: rgba(123,143,245,0.12);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.pane__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
}
.pane__meta--row { grid-template-columns: 1fr 1fr; }
.pane__meta > div { display: flex; flex-direction: column; }
.pane__meta span { color: rgba(255,255,255,0.4); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pane__meta b { font-weight: 500; color: rgba(255,255,255,0.85); }
.pane__meta .hit b { color: #FF7A7A; }

.pane__doc {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0;
}
.doc-line {
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  position: relative;
}
.doc-line.short { width: 60%; }
.doc-line.hit {
  height: auto;
  padding: 4px 6px;
  font-size: 0.7rem;
  color: #FF7A7A;
  background: rgba(255,92,92,0.08);
  border-left: 2px solid #FF5C5C;
  border-radius: 0 4px 4px 0;
}

.pane__frame {
  position: relative;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  background: #0A1628;
  border: 1px solid rgba(255,255,255,0.06);
}
.frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame-fake {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.6rem;
  color: #FFFFFF;
  background: #FF3D3D;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.14em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255,61,61,0.5);
}
.frame-rec {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.65);
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.frame-rec__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF5C5C;
  box-shadow: 0 0 6px #FF5C5C;
  animation: recBlink 1.4s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.pane__verdict {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem;
  color: var(--indigo-400);
  letter-spacing: 0.04em;
}

.forensic__link {
  width: 60px; height: 100%;
  color: rgba(123,143,245,0.4);
  align-self: stretch;
}

@media (max-width: 920px) {
  .deepaudit__grid { grid-template-columns: 1fr; gap: 60px; }
  .forensic { grid-template-columns: 1fr; }
  .forensic__link { display: none; }
}

/* ---------- AUDIENCE ---------- */
.audience { padding: 140px 0; }
.audience__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.aud { padding: 44px; }
.aud__label {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--indigo-600); font-weight: 600; margin-bottom: 24px;
}
.aud__title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  margin-bottom: 16px;
}
.aud__lede {
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-bottom: 14px;
  max-width: 36ch;
}
.aud__body {
  font-size: 0.96rem;
  color: var(--slate-500);
  margin-bottom: 28px;
  max-width: 42ch;
}
.aud__agents {
  font-size: 0.84rem;
  color: var(--slate-500);
  padding-top: 18px;
  border-top: 1px solid var(--slate-200);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.aud__agents span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  color: var(--indigo-600);
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
}
@media (max-width: 760px) { .audience__grid { grid-template-columns: 1fr; } }

/* ---------- SECURITY ---------- */
.security { padding: 140px 0; background: var(--navy-950); }
.security__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sec { padding: 28px; min-height: 140px; }
.sec h4 {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.sec p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
@media (max-width: 880px) { .security__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .security__grid { grid-template-columns: 1fr; } }

/* ---------- VISION ---------- */
.vision { padding: 140px 0; }
.vision__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
}
.vision__quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 18px 0 28px;
  text-wrap: balance;
  position: relative;
}
.vision__mark {
  position: absolute;
  top: -32px; left: -8px;
  font-size: 5rem;
  color: rgba(123,143,245,0.3);
  line-height: 1;
}
.vision__cite { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

.vision__portrait { display: flex; justify-content: flex-end; }
.portrait {
  width: 280px; height: 340px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.portrait__stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(123,143,245,0.06),
    rgba(123,143,245,0.06) 6px,
    transparent 6px,
    transparent 14px
  );
}
.portrait__label {
  position: relative;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .vision__grid { grid-template-columns: 1fr; }
  .vision__portrait { justify-content: flex-start; }
}

/* ---------- CTA ---------- */
.cta {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
}
.cta__bg {
  position: absolute; inset: -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59,79,224,0.35), rgba(59,79,224,0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta__title { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 18px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { padding: 80px 0 32px; background: var(--navy-950); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__tag { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-top: 14px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a {
  display: inline-flex; width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: border-color 160ms ease, color 160ms ease;
}
.footer__social a:hover { border-color: var(--indigo-400); color: var(--white); }

.footer h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 160ms ease;
}
.footer ul a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 920px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__gradient { animation: none; }
  .deepaudit__particles span { animation: none; }
}

/* ============================================================
   TWEAKS — surface + voice variants
   ============================================================ */

/* ---- voice: serif (editorial) ---- */
body.voice--editorial {
  --font-display: "Instrument Serif", "Times New Roman", serif;
}
body.voice--editorial .h2,
body.voice--editorial .hero__title,
body.voice--editorial .agent__name,
body.voice--editorial .aud__title,
body.voice--editorial .cta__title,
body.voice--editorial .slab__brand,
body.voice--editorial .layers__copy .h2,
body.voice--editorial .brand__word {
  font-weight: 400;
  letter-spacing: -0.015em;
}
body.voice--editorial .hero__title { font-style: italic; }
body.voice--editorial .hero__title .muted { font-style: normal; }
body.voice--editorial .h2 .muted { font-style: italic; }

/* ---- voice: contemporary grotesque ---- */
body.voice--grotesque {
  --font-display: "Space Grotesk", "Inter Tight", sans-serif;
}
body.voice--grotesque .h2,
body.voice--grotesque .hero__title,
body.voice--grotesque .cta__title {
  letter-spacing: -0.04em;
}

/* ---- surface: minimal (silence the atmosphere) ---- */
body.surface--minimal .hero__gradient,
body.surface--minimal .cta__bg {
  display: none;
}
body.surface--minimal .hero__noise { opacity: 0.12; }
body.surface--minimal .hero__grid { opacity: 0.5; }
body.surface--minimal .deepaudit__particles { display: none; }
body.surface--minimal .deepaudit { background: var(--navy-950); }
body.surface--minimal .card { backdrop-filter: none; }
body.surface--minimal .section--dark .card { background: rgba(255,255,255,0.02); }
body.surface--minimal .slab { backdrop-filter: none; box-shadow: none; }
body.surface--minimal .iso__grid { display: none; }
body.surface--minimal .agent--feature { box-shadow: 0 0 0 1px var(--indigo-600); }

/* ---- surface: aurora (turn the atmosphere up) ---- */
body.surface--aurora .hero__gradient {
  background:
    radial-gradient(50% 45% at 30% 30%, var(--indigo-600) 0%, transparent 60%),
    radial-gradient(45% 40% at 75% 65%, var(--indigo-400) 0%, transparent 65%),
    radial-gradient(60% 50% at 50% 100%, color-mix(in oklab, var(--indigo-600) 70%, #ff5577 30%) 0%, transparent 70%);
  opacity: 0.55;
  filter: blur(14px);
  animation: heroPulse 11s ease-in-out infinite alternate;
}
body.surface--aurora .deepaudit {
  background:
    radial-gradient(60% 60% at 80% 20%, color-mix(in oklab, var(--indigo-600) 35%, transparent) 0%, transparent 70%),
    radial-gradient(50% 60% at 10% 90%, color-mix(in oklab, var(--indigo-400) 28%, transparent) 0%, transparent 70%),
    var(--navy-900);
}
body.surface--aurora .cta__bg {
  background:
    radial-gradient(40% 40% at 30% 30%, var(--indigo-600), transparent 70%),
    radial-gradient(40% 40% at 70% 70%, var(--indigo-400), transparent 70%);
  opacity: 0.55;
}
body.surface--aurora .slab {
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--indigo-400) 30%, transparent),
      color-mix(in oklab, var(--indigo-600) 12%, transparent) 50%,
      rgba(255,255,255,0.04));
}
body.surface--aurora .agent--feature {
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in oklab, var(--indigo-600) 10%, transparent), transparent 60%),
    var(--white);
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.twk-panel {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 2147483646;
  width: 268px;
  display: none;
  flex-direction: column;
  background: rgba(10,22,40,0.82);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 48px rgba(0,0,0,0.5);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}
.twk-panel.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.twk-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.twk-hd b {
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em;
}
.twk-x {
  appearance: none; border: 0; background: transparent;
  color: rgba(255,255,255,0.5);
  width: 24px; height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px; line-height: 1;
}
.twk-x:hover { background: rgba(255,255,255,0.08); color: white; }
.twk-body {
  padding: 6px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.twk-sect {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 6px 0 -4px;
}
.twk-row { display: flex; flex-direction: column; gap: 8px; }
.twk-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.twk-swatch {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.twk-swatch:hover { border-color: rgba(255,255,255,0.3); }
.twk-swatch.is-on {
  border-color: var(--white);
  box-shadow: 0 0 0 1px var(--white) inset;
}
.twk-swatch__inner {
  display: flex; gap: 2px;
  width: 100%; height: 100%;
  border-radius: 4px; overflow: hidden;
}
.twk-swatch__inner span { flex: 1; }

.twk-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.twk-seg button {
  appearance: none; border: 0; background: transparent;
  color: rgba(255,255,255,0.6);
  font: inherit;
  padding: 7px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  letter-spacing: -0.005em;
}
.twk-seg button:hover { color: var(--white); }
.twk-seg button.is-on {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.twk-note {
  font-size: 10.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  margin-top: -2px;
}
