/* =========================================================
   SYNTHORA — SaaS / Technology theme
   Palette: Night Ink · Warm White · Ember→Rose gradient · Mint
   Shared stylesheet for all pages
   ========================================================= */

@property --bg    { syntax: "<color>"; inherits: true; initial-value: #12110F; }
@property --fg    { syntax: "<color>"; inherits: true; initial-value: #F2EDE4; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: rgba(242,237,228,.64); }
@property --line  { syntax: "<color>"; inherits: true; initial-value: rgba(242,237,228,.12); }
@property --elev  { syntax: "<color>"; inherits: true; initial-value: #1B1A17; }
@property --accent-text { syntax: "<color>"; inherits: true; initial-value: #FF6A30; }

:root {
  /* Brand */
  --ink: #12110F;
  --ink-2: #1B1A17;
  --ink-3: #26241F;
  --cream: #F2EDE4;
  --paper: #FAF7F2;
  --ember: #FF5B1F;
  --ember-deep: #C43D0A;
  --ember-soft: #FFB08A;
  --mint: #7FE0C9;
  --mint-deep: #0E7560;
  --warn: #F2B544;

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: var(--font-display);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Shape (structured system) */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 144px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Theme states (body morphs between them on scroll) ---------- */
body,
body[data-theme="dark"] {
  --bg: #0B0A10;
  --fg: #FFFFFF;
  --muted: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .14);
  --elev: #16141D;
  --accent-text: #FF7A45;
  --grad: linear-gradient(95deg, #FF8A4C 0%, #FF4D8D 52%, #FFC15E 100%);
}
body[data-theme="cream"] {
  --bg: #FFF4EC;
  --fg: #0F0D14;
  --muted: rgba(15, 13, 20, .7);
  --line: rgba(15, 13, 20, .1);
  --elev: #FFFFFF;
  --accent-text: #E0430B;
  --grad: linear-gradient(95deg, #EE4A0E 0%, #D8196B 55%, #D98500 100%);
}
body[data-theme="paper"] {
  --bg: #FFFFFF;
  --fg: #0F0D14;
  --muted: rgba(15, 13, 20, .68);
  --line: rgba(15, 13, 20, .09);
  --elev: #FFF7F1;
  --accent-text: #E0430B;
  --grad: linear-gradient(95deg, #EE4A0E 0%, #D8196B 55%, #D98500 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: --bg .6s var(--ease), --fg .6s var(--ease), --muted .6s var(--ease),
              --line .6s var(--ease), --elev .6s var(--ease), --accent-text .6s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent-text); }
.h-display {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0;
}
.h-section {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; margin: 0;
}
.h-3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; margin: 0; }
.serif {
  font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: -0.04em;
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }
h1, h2, h3, h4, .brand, .stat strong, .plan__price strong, .q-metric strong, .chart__big, .conf strong, .footer__giant, .mobile-menu a.m-link { font-family: var(--font-display); }
.accent { color: var(--accent-text); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 56ch; margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ember); --btn-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn::after { /* sweep fill on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.5px;
  border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent-text); gap: 12px; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--muted); transition: color .25s, background-color .25s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__signin { font-size: 15px; color: var(--muted); padding: 0 12px; transition: color .25s; }
.nav__signin:hover { color: var(--fg); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--fg); margin: 5px auto; transition: transform .4s var(--ease), opacity .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 49; background: var(--bg);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-in-out); visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a.m-link {
  font-size: 34px; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu .m-actions { margin-top: auto; display: grid; gap: 10px; }
.mobile-menu .m-actions .btn { width: 100%; height: 52px; }

/* =========================================================
   REVEAL / TRANSITION SYSTEM
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* Curtain wipe that sits at the top of a section changing theme */
.curtain {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease);
}
.is-in > .curtain, .curtain.is-in { transform: scaleX(1); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: 152px; padding-bottom: 40px; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; margin-bottom: 32px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted);
  transition: border-color .3s;
}
.hero__badge:hover { border-color: var(--fg); color: var(--fg); }
.hero__badge b { font-weight: 500; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 12px; }

.hero__aside { padding-bottom: 12px; }
.hero__aside .lead { font-size: 17px; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px 16px; flex-wrap: wrap; }
.hero__fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero__fine .icon { width: 15px; height: 15px; color: var(--mint); }

/* Agent run console (always dark) */
.stage { margin-top: 72px; perspective: 1600px; }
.console {
  --tilt: 1;
  position: relative; border-radius: var(--r-lg); background: rgba(20, 18, 27, .92); color: #FFFFFF; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(242, 237, 228, .1);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 91, 31, .04) inset;
  transform: rotateX(calc(var(--tilt) * 16deg)) scale(calc(1 - var(--tilt) * .06));
  transform-origin: 50% 0%; will-change: transform;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; min-height: 480px; overflow: hidden;
}
.console::before { /* ember horizon glow on top edge */
  content: ""; position: absolute; inset: -1px -1px auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember) 30%, var(--ember-soft) 50%, var(--ember) 70%, transparent);
  opacity: .8;
}
.c-side { border-right: 1px solid rgba(242, 237, 228, .08); padding: 18px 14px; font-size: 13.5px; }
.c-side h6 { margin: 18px 8px 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 237, 228, .45); font-weight: 400; }
.c-side h6:first-child { margin-top: 4px; }
.c-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); color: rgba(242, 237, 228, .72); }
.c-item.is-active { background: rgba(242, 237, 228, .06); color: #F2EDE4; }
.c-item .count { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: rgba(242, 237, 228, .5); }
.c-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.c-item .dot.warn { background: var(--warn); }
.c-item .dot.idle { background: rgba(242, 237, 228, .25); }

.c-main { padding: 22px 28px; display: flex; flex-direction: column; min-width: 0; }
.c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(242, 237, 228, .08); }
.c-head small { font-family: var(--font-mono); font-size: 11.5px; color: rgba(242, 237, 228, .5); letter-spacing: .04em; }
.c-head h4 { margin: 4px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.status {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; background: rgba(127, 224, 201, .1); color: var(--mint); white-space: nowrap;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.status.is-wait { background: rgba(242, 181, 68, .12); color: var(--warn); }
.status.is-done { background: rgba(127, 224, 201, .14); color: var(--mint); }
.status.is-done i { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: rgba(242, 237, 228, .1); }
.step { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; padding: 10px 0; opacity: .32; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__mark {
  width: 23px; height: 23px; border-radius: 50%; border: 1px solid rgba(242, 237, 228, .22); background: #181714;
  display: grid; place-items: center; position: relative; z-index: 1; transition: background-color .4s, border-color .4s;
}
.step__mark svg { width: 12px; height: 12px; stroke: var(--ink); stroke-width: 2.4; fill: none; opacity: 0; transform: scale(.4); transition: all .4s var(--ease); }
.step.is-done .step__mark { background: var(--mint); border-color: var(--mint); }
.step.is-done .step__mark svg { opacity: 1; transform: none; }
.step.is-running .step__mark { border-color: var(--ember); }
.step.is-running .step__mark::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ember); animation: ring 1.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.step p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.step p span { display: block; font-size: 13px; color: rgba(242, 237, 228, .55); margin-top: 2px; }
.step code { font-family: var(--font-mono); font-size: 12.5px; background: rgba(242, 237, 228, .07); padding: 1px 6px; border-radius: 4px; }
.step time { font-family: var(--font-mono); font-size: 11.5px; color: rgba(242, 237, 228, .42); padding-top: 3px; }

.approval {
  margin-top: auto; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255, 91, 31, .07); border: 1px solid rgba(255, 91, 31, .22);
  opacity: 0; transform: translateY(10px); transition: all .6s var(--ease);
}
.approval.is-on { opacity: 1; transform: none; }
.approval.is-approved { background: rgba(127, 224, 201, .07); border-color: rgba(127, 224, 201, .25); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: #E9D8C4; color: var(--ink); }
.approval p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.approval p small { display: block; color: rgba(242, 237, 228, .55); font-size: 12.5px; }
.approval .btn { height: 36px; padding: 0 14px; font-size: 13.5px; margin-left: auto; }
.approval .btn::after { background: #F2EDE4; }
.approval .btn:hover { color: var(--ink); }

.c-panel { border-left: 1px solid rgba(242, 237, 228, .08); padding: 22px 20px; font-size: 13.5px; display: flex; flex-direction: column; gap: 22px; }
.c-panel h6 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 237, 228, .45); font-weight: 400; }
.conf { display: flex; align-items: baseline; gap: 8px; }
.conf strong { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.meter { height: 4px; border-radius: 4px; background: rgba(242, 237, 228, .08); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--ember-soft)); border-radius: inherit; transition: width 1.2s var(--ease); }
.sources li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(242, 237, 228, .09); color: rgba(242, 237, 228, .78); }
.sources { list-style: none; margin: 0; padding: 0; }
.sources .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: rgba(242, 237, 228, .45); }
.policy { padding: 12px; border-radius: var(--r-sm); background: rgba(242, 237, 228, .04); color: rgba(242, 237, 228, .7); line-height: 1.5; font-size: 13px; }
.policy b { color: #F2EDE4; font-weight: 500; }

/* =========================================================
   LOGO MARQUEE
   ========================================================= */
.logos { padding-block: 72px 24px; }
.logos p { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 72px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wordmark { font-size: 24px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 8px; opacity: .85; }
.wm-1 { font-weight: 700; letter-spacing: -0.04em; }
.wm-2 { font-family: var(--font-serif); font-style: italic; font-size: 28px; }
.wm-3 { font-family: var(--font-mono); font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
.wm-4 { font-weight: 300; letter-spacing: .18em; text-transform: uppercase; font-size: 18px; }
.wm-5 { font-weight: 600; letter-spacing: -0.02em; }
.wordmark i { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(45deg); }

/* =========================================================
   HOW IT WORKS — sticky scroll story
   ========================================================= */
.story__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 80px; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
.story__steps { display: flex; flex-direction: column; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .3; transition: opacity .6s var(--ease); }
.story__step:first-child { min-height: 58vh; justify-content: flex-start; padding-top: 12vh; }
.story__step.is-active { opacity: 1; }
.story__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.story__num::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
.story__step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 16px; }
.story__step p { color: var(--muted); margin: 0; max-width: 42ch; }
.story__step ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.story__step li { display: flex; gap: 10px; align-items: flex-start; }
.story__step li .icon { width: 18px; height: 18px; color: var(--accent-text); margin-top: 4px; }

.story__visual { position: sticky; top: 112px; height: calc(100vh - 160px); max-height: 640px; min-height: 480px; }
.panel-stack { position: relative; height: 100%; border-radius: var(--r-lg); background: #0F0E15; color: #fff; overflow: hidden; isolation: isolate; box-shadow: 0 40px 80px -40px rgba(216, 25, 107, .35); }
.panel-stack::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 91, 31, .35), rgba(255, 77, 141, .18) 45%, transparent 70%); filter: blur(40px); }
.panel {
  position: absolute; inset: 0; padding: 36px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.panel__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 237, 228, .45); margin-bottom: 18px; }

/* Panel 1 — connectors */
.hub { position: relative; flex: 1; display: grid; place-items: center; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub svg.lines path { stroke: rgba(242, 237, 228, .14); stroke-width: 1; fill: none; }
.hub svg.lines path.flow { stroke: var(--ember); stroke-dasharray: 6 180; animation: flow 2.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -186; } }
.hub__core { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 24px; background: #F2EDE4; color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(242, 237, 228, .04), 0 0 80px rgba(255, 91, 31, .35); }
.hub__core svg { width: 44px; height: 44px; }
.node {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--r-sm); background: #211F1B; border: 1px solid rgba(242, 237, 228, .1); font-size: 13.5px; white-space: nowrap;
}
.node .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.panel__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: rgba(242, 237, 228, .6); padding-top: 18px; border-top: 1px solid rgba(242, 237, 228, .08); }
.panel__foot b { color: #F2EDE4; font-weight: 500; }

/* Panel 2 — playbook */
.playbook { flex: 1; min-height: 0; background: #1B1A17; border: 1px solid rgba(242, 237, 228, .08); border-radius: var(--r); padding: 24px 26px; font-size: 15.5px; line-height: 1.75; overflow: hidden; }
.playbook h5 { margin: 0 0 14px; font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.playbook h5 small { font-family: var(--font-mono); font-size: 11.5px; color: rgba(242, 237, 228, .45); font-weight: 400; }
.playbook p { margin: 0 0 12px; color: rgba(242, 237, 228, .82); }
.hl { padding: 1px 6px; border-radius: 4px; }
.hl--rule { background: rgba(255, 91, 31, .16); color: #FFC3A6; }
.hl--src { background: rgba(127, 224, 201, .12); color: var(--mint); }
.hl--gate { background: rgba(242, 181, 68, .14); color: #F7CE7B; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: rgba(242, 237, 228, .6); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Panel 3 — approvals queue */
.queue { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.queue li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: #1B1A17; border: 1px solid rgba(242, 237, 228, .07); font-size: 14px; }
.queue li p { margin: 0; line-height: 1.35; }
.queue li p small { display: block; color: rgba(242, 237, 228, .5); font-size: 12.5px; margin-top: 2px; }
.q-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(242, 237, 228, .06); }
.q-ic .icon { width: 17px; height: 17px; }
.pill { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill--auto { background: rgba(127, 224, 201, .12); color: var(--mint); }
.pill--review { background: rgba(242, 181, 68, .14); color: var(--warn); }
.pill--block { background: rgba(255, 91, 31, .14); color: #FF9A70; }

/* =========================================================
   CAPABILITIES — editorial index list
   ========================================================= */
.caps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 80px; }
.caps__intro { position: sticky; top: 120px; align-self: start; }
.caps__intro .lead { margin: 24px 0 32px; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cap { border-bottom: 1px solid var(--line); }
.cap a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 30px 0; position: relative; }
.cap__idx { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 8px; }
.cap h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.025em; margin: 0; line-height: 1.2; transition: transform .5s var(--ease), color .3s; }
.cap__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.cap__body > div { overflow: hidden; }
.cap__body p { margin: 12px 0 0; color: var(--muted); max-width: 52ch; font-size: 16px; }
.cap__meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cap__meta span { font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); }
.cap__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .5s var(--ease); }
.cap__go .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.cap a::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cap a:hover::before, .cap.is-open a::before { transform: scaleX(1); }
.cap a:hover h3, .cap.is-open h3 { transform: translateX(6px); }
.cap.is-open .cap__body, .cap a:hover .cap__body { grid-template-rows: 1fr; }
.cap a:hover .cap__go, .cap.is-open .cap__go { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.cap a:hover .cap__go .icon { transform: rotate(-45deg); }

/* =========================================================
   IMPACT — stats + chart (dark)
   ========================================================= */
.impact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 80px; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.stat { padding: 32px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.stat strong sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; color: var(--accent-text); letter-spacing: 0; }
.stat p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; max-width: 30ch; }

.chart { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 20px; }
.chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 44px; }
.chart__head h4 { margin: 0; font-size: 16px; font-weight: 500; }
.chart__head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.chart__big { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; text-align: right; line-height: 1; }
.chart__big small { display: block; font-size: 12.5px; color: var(--mint); letter-spacing: 0; margin-top: 6px; font-weight: 400; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 220px; align-items: end; position: relative; }
.bars::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 55px); pointer-events: none; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; height: var(--h); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--fg) 14%, transparent); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--n) * .08s); }
.bar:last-child i { background: var(--ember); }
.bar b { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 8px); font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); opacity: 0; transition: opacity .6s; transition-delay: calc(var(--n) * .08s + .6s); }
.bar:last-child b { color: var(--fg); }
.chart.is-in .bar i { transform: scaleY(1); }
.chart.is-in .bar b { opacity: 1; }
.bars-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: center; }

/* =========================================================
   INTEGRATIONS — orbit
   ========================================================= */
.integ { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.integ .lead { margin: 24px 0 32px; }
.integ__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-bottom: 36px; }
.integ__cats div { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; padding-right: 20px; }
.integ__cats div:nth-child(even) { padding-left: 20px; padding-right: 0; border-left: 1px solid var(--line); }
.integ__cats span { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

.orbit { container-type: inline-size; position: relative; aspect-ratio: 1; max-width: 600px; margin-inline: auto; width: 100%; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line); inset: var(--inset); animation: spin var(--dur) linear infinite; animation-direction: var(--dir, normal); }
.ring .chip { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translate(var(--rad)) rotate(calc(var(--a) * -1)); margin: -20px 0 0 -60px; width: 120px; display: flex; justify-content: center; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--elev); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap;
  animation: spin var(--dur) linear infinite; animation-direction: var(--rdir, reverse);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.chip span i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__core { position: absolute; inset: 40.5%; border-radius: 28%; background: var(--ember); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 14px color-mix(in srgb, var(--ember) 12%, transparent), 0 0 120px color-mix(in srgb, var(--ember) 45%, transparent); }
.orbit__core svg { width: 46%; height: 46%; }

/* =========================================================
   SECURITY
   ========================================================= */
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__item { padding: 32px 28px 36px 0; }
.sec__item + .sec__item { padding-left: 28px; border-left: 1px solid var(--line); }
.sec__item .icon { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 28px; stroke-width: 1.4; }
.sec__item h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.sec__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 80px; align-items: start; }
.quote-stage { position: relative; min-height: 360px; }
.quote { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; position: relative; pointer-events: auto; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 500; }
.quote blockquote .w { display: inline-block; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: all .7s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.quote.is-active blockquote .w { opacity: 1; transform: none; filter: none; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 15px; }
.quote figcaption .avatar { width: 44px; height: 44px; font-size: 14px; }
.quote figcaption small { display: block; color: var(--muted); font-size: 14px; }
.q-side { border-top: 1px solid var(--line); }
.q-metric { padding: 28px 0; border-bottom: 1px solid var(--line); }
.q-metric strong { display: block; font-size: 56px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.q-metric p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.q-tabs { display: grid; gap: 0; }
.q-tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; color: var(--muted); font-size: 15px; transition: color .3s; }
.q-tab:hover, .q-tab.is-active { color: var(--fg); }
.q-tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent-text); transform: scaleX(0); transform-origin: left; }
.q-tab.is-active::after { animation: qprog var(--qdur, 7s) linear forwards; }
@keyframes qprog { to { transform: scaleX(1); } }
.q-tab span { font-family: var(--font-mono); font-size: 12px; }

/* =========================================================
   PRICING TEASER
   ========================================================= */
.price__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); position: relative; }
.toggle button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border: 0; background: none; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
.toggle button.is-active { color: var(--ink); }
.toggle button em { font-style: normal; font-size: 12px; color: var(--mint-deep); margin-left: 6px; font-weight: 500; }
.toggle button.is-active em { color: var(--ink); }
.toggle__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ember); transition: all .5s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.plan { padding: 36px 32px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan--featured { background: #0B0A10; color: #fff; --muted: rgba(255, 255, 255, .76); --line: rgba(255, 255, 255, .14); --fg: #FFFFFF; --bg: #0B0A10; position: relative; overflow: hidden; isolation: isolate; }
.plan--featured::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 141, .55), rgba(255, 91, 31, .35) 45%, transparent 70%); filter: blur(30px); }
.plan--featured .plan__tag { position: absolute; top: 36px; right: 32px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ember); color: var(--ink); font-weight: 500; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 500; }
.plan > p { margin: 8px 0 28px; color: var(--muted); font-size: 15px; min-height: 48px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__price strong { font-size: 52px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; display: inline-block; transition: transform .4s var(--ease), opacity .3s; }
.plan__price strong.is-swap { transform: translateY(-10px); opacity: 0; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__note { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }
.plan--featured li .icon { color: var(--ember); }
.plan .btn { margin-top: auto; width: 100%; }
.price__foot { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }

/* =========================================================
   BLOG — editorial
   ========================================================= */
.blog__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.post-feature .thumb { aspect-ratio: 16 / 10; border-radius: var(--r-lg); margin-bottom: 24px; }
.thumb {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 91, 31, .15) 0%, transparent 60%), linear-gradient(145deg, #181524 0%, #0c0b14 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .28), 0 18px 40px -14px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .02) 40%, transparent 60%);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.thumb > * { transition: transform 1.2s var(--ease); }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.post:hover .thumb {
  border-color: rgba(255, 138, 76, .5);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), 0 24px 50px -12px rgba(255, 91, 31, .25);
}
.post:hover .thumb > * { transform: scale(1.03); }
.post {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.post__meta { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.post__meta b { font-weight: 500; color: var(--accent-text); }
.post h3 { margin: 0; font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.post h3 span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.post:hover h3 span { background-size: 100% 1px; }
.post > p { color: var(--muted); margin: 12px 0 0; max-width: 58ch; font-size: 16px; }
.post-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.post-list .post { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list .thumb { aspect-ratio: 1; border-radius: var(--r); }
.post-list h3 { font-size: 20px; }

/* Enhanced Glossy Card Styles */
.blog-grid .post {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.blog-grid .post:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .22), inset 0 1px 1px rgba(255, 255, 255, .2);
  border-color: rgba(255, 91, 31, .35) !important;
}
.post-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(255, 255, 255, .25);
  border-color: rgba(255, 91, 31, .4) !important;
}

/* Frosted glossy label pill */
.art-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #F2EDE4;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14.5px;
  line-height: 1.2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 16, 28, .75);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.art-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  flex-shrink: 0;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(120px, 14vw, 200px) clamp(140px, 16vw, 220px); }
.cta__horizon {
  position: absolute; left: 50%; top: calc(100% - 150px); width: 190%; aspect-ratio: 2 / 1; transform: translateX(-50%) translateY(8%);
  border-radius: 50%; pointer-events: none; background: #0B0A09;
  border-top: 1.5px solid rgba(255, 176, 138, .9);
  box-shadow: 0 -40px 120px -30px rgba(255, 91, 31, .55), inset 0 40px 90px -40px rgba(255, 91, 31, .55);
  transition: transform 1.8s var(--ease), opacity 1.8s var(--ease); opacity: 0;
}
.cta.is-in .cta__horizon { opacity: 1; transform: translateX(-50%) translateY(0); }
.cta .h-display { max-width: 14ch; margin-inline: auto; }
.cta .lead { margin: 28px auto 40px; text-align: center; }
.cta .hero__ctas { justify-content: center; }
.cta > .wrap { position: relative; z-index: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-top: 88px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; }
.footer__brand p { color: var(--muted); font-size: 15px; margin: 18px 0 28px; max-width: 34ch; }
.news label { display: block; font-size: 13.5px; margin-bottom: 8px; }
.news__row { display: flex; gap: 8px; max-width: 380px; }
.news input { flex: 1; min-width: 0; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--fg); padding: 0 14px; font: inherit; font-size: 15px; }
.news input::placeholder { color: var(--muted); }
.news input:focus { outline: none; border-color: var(--ember); }
.news small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.footer h6 { margin: 6px 0 18px; font-size: 13.5px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.footer ul a { color: var(--muted); transition: color .25s; }
.footer ul a:hover { color: var(--fg); }
.footer__giant { margin: 96px 0 24px; font-size: clamp(64px, 15.5vw, 230px); line-height: .8; letter-spacing: -0.07em; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); user-select: none; overflow: hidden; }
.footer__giant span { display: inline-block; transform: translateY(40%); transition: transform 1.6s var(--ease); }
.footer__giant.is-in span { transform: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom .sys { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom .sys i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.footer__bottom nav { display: flex; gap: 20px; }

/* Scroll progress rail */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); z-index: 60; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .console { grid-template-columns: 200px minmax(0, 1fr) 260px; }
  .footer__top { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__signin, .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { gap: 10px; }
  .hero__top { grid-template-columns: 1fr; gap: 32px; }
  .hero__aside { max-width: 560px; }
  .console { grid-template-columns: minmax(0, 1fr) 260px; }
  .c-side { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__visual { position: relative; top: 0; height: 440px; min-height: 0; order: -1; margin-bottom: 56px; }
  .story__step, .story__step:first-child { min-height: auto; opacity: 1; padding: 0 0 48px; justify-content: flex-start; }
  .caps, .impact__grid, .integ, .quotes, .posts, .story__head, .sec__head { grid-template-columns: 1fr; gap: 48px; }
  .caps__intro { position: static; }
  .sec__grid { grid-template-columns: 1fr 1fr; }
  .sec__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .sec__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .quote-stage { min-height: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .stage { margin-top: 48px; }
  .console { grid-template-columns: 1fr; min-height: 0; }
  .c-panel { border-left: 0; border-top: 1px solid rgba(242, 237, 228, .08); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .c-panel > div:nth-child(2) { display: none; }
  .hero h1 .dash { display: none; }
  .c-main { padding: 18px; }
  .step time { display: none; }
  .step { grid-template-columns: 24px 1fr; }
  .approval { flex-wrap: wrap; }
  .approval .btn { margin-left: 0; width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .sec__grid { grid-template-columns: 1fr; }
  .sec__item, .sec__item + .sec__item { padding: 28px 0; border-left: 0; }
  .sec__item + .sec__item { border-top: 1px solid var(--line); }
  .cap a { grid-template-columns: 36px minmax(0, 1fr); }
  .cap__go { display: none; }
  .cap__body { grid-template-rows: 1fr; }
  .post-list .post { grid-template-columns: 96px 1fr; gap: 16px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .integ__cats { grid-template-columns: 1fr; }
  .integ__cats div:nth-child(even) { padding-left: 0; border-left: 0; }
  .orbit { width: 84%; }
  .chip span { height: 32px; padding: 0 10px; font-size: 12px; }
  .bars { height: 180px; gap: 8px; }
  .price__head .toggle { width: 100%; }
  .toggle button { flex: 1; }
  .panel { padding: 22px; }
  .node { font-size: 12px; height: 32px; padding: 0 10px; }
  .hub__core { width: 72px; height: 72px; border-radius: 18px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; }
  .console { transform: none !important; }
}

/* =========================================================
   GRADIENT AURA (dark sections) & LIGHT WASHES
   ========================================================= */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aura i {
  position: absolute; display: block; border-radius: 50%; filter: blur(100px); opacity: .5;
  animation: drift 20s ease-in-out infinite alternate; will-change: transform;
}
.aura i:nth-child(1) { width: 44vw; height: 44vw; left: -12vw; top: -16vw; background: #FF5B1F; }
.aura i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 2vw; background: #FF2E88; opacity: .38; animation-duration: 24s; animation-direction: alternate-reverse; }
.aura i:nth-child(3) { width: 30vw; height: 30vw; left: 38%; top: 38%; background: #2FD4B0; opacity: .22; animation-duration: 28s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, 3vw, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, 6vw, 0) scale(.95); }
}
.aura--low i:nth-child(1) { top: auto; bottom: -22vw; left: 10vw; }
.aura--low i:nth-child(2) { top: auto; bottom: -18vw; right: 5vw; }
.aura--low i:nth-child(3) { top: 10%; left: 70%; }
.aura--soft i { opacity: .28; }
.aura--soft i:nth-child(2) { opacity: .22; }
.hero .aura { z-index: 0; }
.hero__field { z-index: 1; }
.hero > .wrap { z-index: 2; }
#impact > .wrap, #integrations > .wrap, .cta > .wrap { position: relative; z-index: 1; }

/* Bright, airy washes for light sections */
.section[data-theme="cream"], .section[data-theme="paper"] { isolation: isolate; }
.section[data-theme="cream"]::before, .section[data-theme="paper"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 92% 8%, rgba(255, 122, 69, .20), transparent 70%),
    radial-gradient(34% 45% at 4% 88%, rgba(47, 212, 176, .16), transparent 70%),
    radial-gradient(30% 40% at 55% 50%, rgba(255, 77, 141, .07), transparent 70%);
}
.section[data-theme="paper"]::before {
  background:
    radial-gradient(36% 50% at 6% 10%, rgba(255, 77, 141, .10), transparent 70%),
    radial-gradient(38% 50% at 96% 90%, rgba(255, 170, 60, .16), transparent 70%);
}
.chart { background: rgba(255, 255, 255, .04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.chip span { background: rgba(26, 24, 34, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body[data-theme="cream"] .cap__go, body[data-theme="paper"] .cap__go { background: #fff; }
.plans { background: #fff; box-shadow: 0 30px 60px -30px rgba(216, 25, 107, .18); }
.sec__item .icon { color: #fff; background: var(--grad); padding: 9px; width: 44px; height: 44px; border-radius: 12px; stroke-width: 1.6; }
.bar:last-child i { background: linear-gradient(180deg, #FF4D8D, #FF5B1F); }
.btn { --btn-bg: linear-gradient(95deg, #FF5B1F, #FF3D7F); }
.btn:not(.btn--ghost) { background: linear-gradient(95deg, #FF6A2B, #FF3D7F); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 61, 127, .55); }
.btn:not(.btn--ghost):hover { color: var(--bg); }
.btn--ghost { background: transparent; }
.toggle__thumb { background: linear-gradient(95deg, #FF6A2B, #FF3D7F); }
.toggle button.is-active, .toggle button.is-active em { color: #fff; }
.progress { background: linear-gradient(90deg, #FF6A2B, #FF3D7F, #FFC15E); }
@media (max-width: 720px) {
  .aura i { filter: blur(70px); }
  .aura i:nth-child(1) { width: 90vw; height: 90vw; }
  .aura i:nth-child(2) { width: 80vw; height: 80vw; }
  .aura i:nth-child(3) { width: 60vw; height: 60vw; }
}
@media (prefers-reduced-motion: reduce) { .aura i, .serif { animation: none !important; } }

/* =========================================================
   INNER PAGES — shared
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding-top: 168px; padding-bottom: 96px; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .h-display { max-width: none; font-size: clamp(40px, 5.2vw, 70px); }
.page-hero .lead { margin-top: 28px; }
.page-hero__row { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: end; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--fg); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hero-stats div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.hero-stats div:nth-child(odd) { padding-right: 20px; }
.hero-stats div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* Dark mock surface used across pages */
.mock {
  position: relative; border-radius: var(--r-lg); background: #0F0E15; color: #fff; padding: 28px;
  border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(216, 25, 107, .32);
  font-size: 14px;
}
.mock::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -25%; bottom: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 91, 31, .32), rgba(255, 77, 141, .16) 45%, transparent 70%); filter: blur(40px); }
.mock__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; }
.mock__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock__row:last-child { border-bottom: 0; }
.mock small { color: rgba(255, 255, 255, .55); }
.mono-chip { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); }

/* =========================================================
   FEATURES PAGE
   ========================================================= */
.subnav { position: sticky; top: 0; z-index: 40; transition: top .5s var(--ease); }
.nav:not(.is-hidden) ~ main .subnav { top: 72px; }
.subnav__bar {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px;
  background: color-mix(in srgb, var(--elev) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; margin: 16px auto 0;
  box-shadow: 0 18px 40px -24px rgba(15, 13, 20, .35);
}
.subnav__bar::-webkit-scrollbar { display: none; }
.subnav__bar a { white-space: nowrap; height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .3s, background-color .3s; }
.subnav__bar a:hover { color: var(--fg); }
.subnav__bar a.is-active { background: var(--fg); color: var(--bg); }

.feat { padding-block: clamp(72px, 9vw, 120px); scroll-margin-top: 140px; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.feat.is-flip .feat__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.is-flip .feat__copy { order: 2; }
.feat__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 20px; }
.feat__kicker b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 600; font-size: 12px; }
.feat h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 18px; }
.feat__copy > p { color: var(--muted); margin: 0 0 28px; max-width: 48ch; font-size: 17.5px; }
.feat__points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feat__points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.feat__points li b { font-weight: 600; display: block; }
.feat__points li span { color: var(--muted); font-size: 14.5px; }
.feat__points .icon { width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }

/* mock: agent identity */
.agent-id { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.agent-id__mark { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #FF6A2B, #FF3D7F); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.agent-id h4 { margin: 0; font-size: 16px; font-weight: 600; }
.scope-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.scope-row p { margin: 0; line-height: 1.35; }
.sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.sw i { width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; transition: background-color .4s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.sw.on i { background: linear-gradient(95deg, #FF6A2B, #FF3D7F); }
.sw.on i::after { transform: translateX(12px); }
.spend { margin-top: 18px; }
.spend__top { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.spend__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.spend__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FF6A2B, #FF3D7F); transition: width 1.4s var(--ease) .3s; }
.is-in .spend__bar i { width: 44%; }

/* mock: diff */
.diff { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; border-radius: var(--r); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.diff div { padding: 3px 16px 3px 36px; position: relative; color: rgba(255, 255, 255, .72); }
.diff div::before { position: absolute; left: 14px; color: rgba(255, 255, 255, .35); }
.diff .del { background: rgba(255, 77, 141, .1); color: #FFB3CB; }
.diff .del::before { content: "−"; color: #FF4D8D; }
.diff .add { background: rgba(47, 212, 176, .1); color: #9FF0DC; }
.diff .add::before { content: "+"; color: #2FD4B0; }
.backtest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r); }
.backtest div { padding: 14px 16px; }
.backtest div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.backtest strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }

/* mock: policy builder */
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); margin-bottom: 10px; line-height: 1.4; }
.rule__op { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .5); width: 48px; }
.tok { padding: 5px 10px; border-radius: 7px; font-size: 13.5px; background: rgba(255, 255, 255, .08); }
.tok--field { background: rgba(47, 212, 176, .13); color: #9FF0DC; }
.tok--val { background: rgba(255, 106, 43, .16); color: #FFC0A1; }
.tok--who { background: linear-gradient(95deg, rgba(255, 106, 43, .25), rgba(255, 61, 127, .25)); color: #fff; }
.rule--then { border-color: rgba(255, 61, 127, .35); background: rgba(255, 61, 127, .07); }
.policy-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 16px; }

/* mock: audit table */
.audit { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .45); padding: 0 12px 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.audit td { padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; color: rgba(255, 255, 255, .85); }
.audit td:first-child { font-family: var(--font-mono); color: rgba(255, 255, 255, .5); white-space: nowrap; }
.audit tr { opacity: 0; transform: translateX(-8px); transition: all .6s var(--ease); transition-delay: calc(var(--r, 0) * 90ms); }
.is-in .audit tr { opacity: 1; transform: none; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.who i { width: 18px; height: 18px; border-radius: 5px; font-style: normal; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; background: linear-gradient(135deg, #FF6A2B, #FF3D7F); }
.who i.h { background: #E9D8C4; color: #111; border-radius: 50%; }

/* mock: rollback */
.rb-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rb-row .q-ic { width: 34px; height: 34px; }
.rb-state { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); transition: all .4s var(--ease); }
.rb-row.is-reverted .rb-state { background: rgba(47, 212, 176, .15); color: #7FE0C9; }
.rb-row.is-reverted p { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.rb-row p { margin: 0; }
.rb-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.rb-foot .btn { height: 40px; font-size: 14px; }

/* details grid */
.details { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.detail { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.detail:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.detail .icon { width: 24px; height: 24px; color: var(--accent-text); margin-bottom: 20px; }
.detail h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.015em; }
.detail p { margin: 0; color: var(--muted); font-size: 15px; }
.details-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }

/* comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15.5px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 16px; vertical-align: bottom; }
.compare thead th small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.compare td:first-child { color: var(--muted); }
.compare .us { background: linear-gradient(180deg, rgba(255, 106, 43, .10), rgba(255, 61, 127, .08)); }
.compare thead .us { border-top: 2px solid #FF4D8D; }
.yes { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.yes .icon { width: 18px; height: 18px; color: #2FD4B0; }
.no { color: var(--muted); }
.part { color: #F7CE7B; }

/* =========================================================
   INTEGRATIONS PAGE
   ========================================================= */
.logo-rows { margin-top: 72px; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-row { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.logo-row.rev { animation-direction: reverse; animation-duration: 58s; }
.lchip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; white-space: nowrap; }
.lmark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; font-family: var(--font-display); flex: none; }

.dir { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.dir > * { min-width: 0; }
.dir__side { position: sticky; top: 104px; }
.dir__side h6 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 2px; }
.cat-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; font-size: 15px; color: var(--muted); text-align: left; transition: background-color .25s, color .25s; }
.cat-list button:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.cat-list button.is-active { color: var(--fg); background: var(--elev); box-shadow: inset 2px 0 0 #FF4D8D, 0 6px 20px -12px rgba(15, 13, 20, .3); }
.cat-list span { font-family: var(--font-mono); font-size: 12px; }
.side-card { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--elev); font-size: 14.5px; }
.side-card p { margin: 6px 0 14px; color: var(--muted); }
.dir__bar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; height: 52px; border-radius: var(--r); border: 1px solid var(--line); background: var(--elev); color: var(--fg); padding: 0 16px 0 46px; font: inherit; font-size: 16px; transition: border-color .3s, box-shadow .3s; }
.search input:focus { outline: none; border-color: #FF4D8D; box-shadow: 0 0 0 4px rgba(255, 77, 141, .14); }
.dir__count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--elev); font-size: 13.5px; color: var(--muted); transition: all .25s; }
.fchip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg);
  background: var(--elev); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 77, 141, .35); box-shadow: 0 24px 50px -28px rgba(216, 25, 107, .4); }
.tile.is-hidden { display: none; }
.tile__top { display: flex; align-items: center; gap: 12px; }
.tile__top .lmark { width: 40px; height: 40px; border-radius: 11px; font-size: 15px; }
.tile h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.tile__cat { font-size: 13px; color: var(--muted); }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.tile__caps { display: flex; gap: 6px; flex-wrap: wrap; }
.tile__caps span { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.badge { position: absolute; top: 20px; right: 20px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge--pop { background: linear-gradient(95deg, #FF6A2B, #FF3D7F); color: #fff; }
.badge--new { background: rgba(47, 212, 176, .18); color: #0B7A63; }
.badge--beta { background: rgba(242, 181, 68, .2); color: #8A5B00; }
.empty { display: none; padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty.is-on { display: block; }
.empty strong { display: block; color: var(--fg); font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }

/* connect steps */
.connect { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.csteps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: cs; }
.csteps li { position: relative; padding: 0 0 28px 56px; }
.csteps li::before { counter-increment: cs; content: counter(cs); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.csteps li::after { content: ""; position: absolute; left: 17.5px; top: 44px; bottom: 6px; width: 1px; background: var(--line); }
.csteps li:last-child::after { display: none; }
.csteps h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.csteps p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.scope-tree .mock__row { justify-content: space-between; }
.scope-tree .lvl2 { padding-left: 26px; }
.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; flex: none; }
.check.on { background: linear-gradient(135deg, #FF6A2B, #FF3D7F); border-color: transparent; }
.check.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.scope-tree .l { display: flex; align-items: center; gap: 12px; }

/* code panel */
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.code { border-radius: var(--r-lg); background: rgba(16, 14, 22, .85); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.code__tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code__tabs button { height: 40px; padding: 0 16px; border: 0; background: none; color: rgba(255, 255, 255, .6); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.code__tabs button.is-active { color: #fff; border-color: #FF4D8D; }
.code__copy { margin-left: auto; align-self: center; height: 32px !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 6px; font-size: 12.5px !important; margin-bottom: 8px !important; }
.code pre { margin: 0; padding: 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .88); overflow-x: auto; display: none; }
.code pre.is-active { display: block; }
.tk-k { color: #FF8FB3; } .tk-s { color: #9FF0DC; } .tk-c { color: rgba(255, 255, 255, .42); } .tk-f { color: #FFC15E; } .tk-v { color: #FFB08A; }
.dev__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.dev__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.dev__list .icon { color: #2FD4B0; margin-top: 3px; }

/* request form */
.req { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--elev); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(216, 25, 107, .35); position: relative; overflow: hidden; isolation: isolate; }
.req::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 43, .28), rgba(255, 61, 127, .12) 50%, transparent 70%); filter: blur(30px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 14px; font: inherit; font-size: 15px; transition: border-color .3s, box-shadow .3s; }
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #FF4D8D; box-shadow: 0 0 0 4px rgba(255, 77, 141, .12); }
.field small { font-size: 13px; color: var(--muted); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__ok { font-size: 14.5px; color: #0B7A63; display: none; }
.form__ok.is-on { display: inline; }

/* inner pages responsive */
@media (max-width: 1024px) {
  .page-hero__row, .feat__grid, .feat.is-flip .feat__grid, .details-head, .connect, .dev, .req { grid-template-columns: 1fr; gap: 48px; }
  .feat.is-flip .feat__copy { order: 0; }
  .details { grid-template-columns: 1fr 1fr; }
  .detail:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .detail:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .dir { grid-template-columns: 1fr; gap: 24px; }
  .dir__side { position: static; }
  .cat-list { display: flex; overflow-x: auto; gap: 6px; margin-bottom: 0; scrollbar-width: none; }
  .cat-list button { white-space: nowrap; gap: 10px; border: 1px solid var(--line); border-radius: 999px; height: 40px; }
  .side-card { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-hero { padding-top: 128px; padding-bottom: 64px; }
  .details { grid-template-columns: 1fr; }
  .detail:nth-child(even) { padding-left: 0; border-left: 0; }
  .detail { padding: 24px 0; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: 1fr; }
  .backtest { grid-template-columns: 1fr; }
  .backtest div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .audit th:nth-child(4), .audit td:nth-child(4) { display: none; }
  .mock { padding: 20px; }
  .scope-row { grid-template-columns: 1fr auto; }
  .scope-row .sw:first-of-type { display: none; }
  .subnav__bar { border-radius: 14px; margin-inline: 0; }
  .agent-id .status { display: none; }
}

/* Aura only glows once its section owns the theme — avoids tinting light sections mid-scroll */
.aura { transition: opacity 1s var(--ease); }
body:not([data-theme="dark"]) .aura { opacity: 0; }

/* =========================================================
   MARKETPLACE EXPANSION PAGES EXTENSIONS
   Pricing, Blog, Article, Contact, Help, Feature Detail,
   About, Legal Trust, Login, Changelog
   ========================================================= */

/* FAQ Accordion */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; margin-top: 40px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--elev); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.is-open { border-color: rgba(255, 77, 141, .45); box-shadow: 0 10px 30px -15px rgba(216, 25, 107, .25); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; background: none; border: 0; text-align: left; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--fg); gap: 16px; cursor: pointer; transition: color .2s; }
.faq-q:hover { color: var(--accent-text); }
.faq-q .icon { width: 18px; height: 18px; color: var(--accent-text); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q .icon { transform: rotate(90deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; display: none; }
.faq-item.is-open .faq-a { display: block; animation: synthFadeIn .3s var(--ease); }
@keyframes synthFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Usage Calculator */
.calc-box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--elev); padding: clamp(28px, 4vw, 44px); margin-top: 48px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.calc-box::before { content: ""; position: absolute; z-index: 0; width: 340px; height: 340px; right: -100px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 141, .25), rgba(255, 91, 31, .15) 50%, transparent 70%); filter: blur(30px); pointer-events: none; }
.calc-content { position: relative; z-index: 1; }
.calc-slider { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); -webkit-appearance: none; appearance: none; outline: none; margin: 24px 0 12px; cursor: pointer; }
body[data-theme="cream"] .calc-slider, body[data-theme="paper"] .calc-slider { background: rgba(15, 13, 20, .12); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 16px var(--ember); cursor: pointer; transition: transform .2s; }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ember); border: 0; cursor: pointer; }
.calc-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.calc-metric { position: relative; z-index: 1; text-align: right; padding: 28px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.calc-metric strong { font-size: clamp(38px, 4vw, 52px); line-height: 1; font-family: var(--font-display); color: var(--fg); display: block; margin: 8px 0; }
.calc-tier-badge { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: rgba(255, 91, 31, .15); border: 1px solid rgba(255, 91, 31, .35); color: var(--accent-text); font-size: 13px; font-weight: 500; }

/* Blog Grid & Single Article */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-cats button { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--elev); color: var(--muted); font-size: 14px; transition: all .25s; cursor: pointer; }
.blog-cats button.is-active, .blog-cats button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px) 1fr; gap: 52px; align-items: start; margin-top: 48px; }
.article-toc { position: sticky; top: 104px; }
.article-toc h6 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.article-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; border-left: 1px solid var(--line); }
.article-toc li a { display: block; padding-left: 14px; color: var(--muted); transition: color .2s; }
.article-toc li a:hover { color: var(--fg); }
.article-body { font-size: 18.5px; line-height: 1.75; color: var(--fg); }
.article-body p { margin: 0 0 24px; }
.article-body h2 { font-size: clamp(26px, 2.5vw, 36px); margin: 48px 0 18px; font-family: var(--font-display); letter-spacing: -0.03em; }
.article-body h3 { font-size: clamp(20px, 1.8vw, 26px); margin: 36px 0 14px; font-family: var(--font-display); }
.article-body blockquote { margin: 36px 0; padding: 24px 32px; border-left: 3px solid var(--ember); background: var(--elev); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 21px; line-height: 1.5; font-style: italic; color: var(--fg); }
.callout { margin: 32px 0; padding: 24px 28px; border-radius: var(--r); background: rgba(127, 224, 201, .08); border: 1px solid rgba(127, 224, 201, .25); }
.callout h5 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--mint); display: flex; align-items: center; gap: 8px; }
.callout p { margin: 0; font-size: 15.5px; color: var(--fg); }
.author-card { margin-top: 64px; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); display: flex; gap: 24px; align-items: center; }
.author-card .avatar { width: 64px; height: 64px; font-size: 20px; flex-shrink: 0; }
.share-bar { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.share-btn { height: 38px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--elev); color: var(--fg); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; transition: all .2s; }
.share-btn:hover { border-color: var(--fg); }

/* Contact Channels & Offices */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.channel-cards { display: grid; gap: 16px; margin-bottom: 32px; }
.channel-card { padding: 20px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--elev); display: flex; gap: 16px; align-items: flex-start; }
.channel-card .icon { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; flex-shrink: 0; }
.channel-card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.channel-card p { margin: 0; color: var(--muted); font-size: 14px; }
.channel-card a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.offices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.office-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); display: flex; flex-direction: column; gap: 12px; }
.office-card h3 { margin: 0; font-size: 20px; font-weight: 600; }
.office-card address { font-style: normal; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.tz-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--mint); background: rgba(127, 224, 201, .12); border: 1px solid rgba(127, 224, 201, .25); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.tz-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Help Center */
.help-hero-search { max-width: 680px; margin: 32px 0 0; position: relative; }
.help-hero-search .search input { height: 58px; font-size: 17px; border-radius: 14px; }
.help-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.help-cat { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), border-color .3s; }
.help-cat:hover { transform: translateY(-4px); border-color: rgba(255, 77, 141, .4); }
.help-cat-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 91, 31, .15); display: grid; place-items: center; color: var(--ember); margin-bottom: 4px; }
.help-cat h3 { margin: 0; font-size: 19px; font-weight: 600; }
.help-cat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.help-articles { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-size: 14px; }
.help-articles a { color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.help-articles a:hover { color: var(--fg); }
.playbooks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.playbook-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); display: flex; flex-direction: column; gap: 12px; }
.playbook-card code { font-family: var(--font-mono); font-size: 12.5px; padding: 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .35); color: var(--muted); display: block; line-height: 1.55; white-space: pre-wrap; }

/* Feature Deep Dive */
.rule-builder { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); display: grid; gap: 16px; margin-top: 32px; }
.rule-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; }
.rule-kw { color: #FF4D8D; font-weight: 600; }
.rule-var { color: #7FE0C9; }
.rule-val { color: #FFB08A; }
.scenario-nav { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.scenario-nav button { height: 42px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--elev); color: var(--muted); font-size: 14.5px; font-weight: 500; transition: all .25s; white-space: nowrap; cursor: pointer; }
.scenario-nav button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.scenario-panel { display: none; }
.scenario-panel.is-active { display: block; animation: synthFadeIn .35s var(--ease); }

/* About Page */
.manifesto { max-width: 820px; margin-inline: auto; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.4; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; text-align: center; }
.timeline { position: relative; max-width: 780px; margin: 48px auto 0; padding-left: 36px; border-left: 2px solid var(--line); display: grid; gap: 40px; }
.timeline-node { position: relative; }
.timeline-dot { position: absolute; left: -43px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); border: 2px solid var(--bg); }
.timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); margin-bottom: 6px; }
.timeline-node h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.timeline-node p { margin: 0; color: var(--muted); font-size: 15.5px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.team-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--elev); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--ink-3); display: grid; place-items: center; font-size: 24px; font-weight: 600; font-family: var(--font-display); color: var(--cream); border: 2px solid var(--line); }
.team-card h4 { margin: 0; font-size: 17px; font-weight: 600; }
.team-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.team-card small { font-size: 12px; color: var(--accent-text); font-family: var(--font-mono); }

/* Legal Documentation */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 104px; display: grid; gap: 4px; }
.legal-nav button { width: 100%; text-align: left; padding: 10px 16px; border-radius: var(--r-sm); border: 0; background: none; font-size: 15px; color: var(--muted); transition: all .2s; cursor: pointer; }
.legal-nav button.is-active { background: var(--elev); color: var(--fg); font-weight: 600; box-shadow: inset 2px 0 0 #FF4D8D; }
.legal-section { display: none; }
.legal-section.is-active { display: block; animation: synthFadeIn .3s var(--ease); }
.legal-content h2 { font-size: 28px; margin: 0 0 16px; font-family: var(--font-display); }
.legal-content h3 { font-size: 20px; margin: 32px 0 12px; font-family: var(--font-display); }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 0 0 20px; }

/* Auth Screen */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-card { width: 100%; max-width: 440px; padding: clamp(32px, 5vw, 44px); border-radius: 20px; border: 1px solid var(--line); background: var(--elev); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); position: relative; z-index: 1; }
.sso-grid { display: grid; gap: 10px; margin: 24px 0; }
.sso-btn { height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--fg); transition: background-color .2s; cursor: pointer; }
.sso-btn:hover { background: rgba(255,255,255,.08); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Changelog */
.changelog-feed { max-width: 820px; margin-inline: auto; display: grid; gap: 40px; }
.release-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--elev); padding: clamp(28px, 4vw, 40px); }
.release-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.release-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 91, 31, .15); color: var(--accent-text); border: 1px solid rgba(255, 91, 31, .35); }
.release-date { font-size: 14px; color: var(--muted); }
.tag-pill { font-size: 11.5px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 4px; text-transform: uppercase; font-weight: 600; }
.tag-pill--new { background: rgba(127, 224, 201, .15); color: #7FE0C9; }
.tag-pill--imp { background: rgba(242, 181, 68, .15); color: #F2B544; }
.tag-pill--fix { background: rgba(255, 77, 141, .15); color: #FF4D8D; }
.release-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 15px; }
.release-list li { display: flex; gap: 10px; align-items: baseline; }

/* Responsive adjustments for extensions */
@media (max-width: 1024px) {
  .calc-box, .contact-grid, .article-layout, .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .calc-metric { text-align: left; }
  .article-toc, .legal-nav { position: static; }
  .blog-grid, .help-cats, .playbooks-grid, .offices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .blog-grid, .help-cats, .playbooks-grid, .offices-grid, .team-grid { grid-template-columns: 1fr; }
  .calc-box { padding: 24px; }
  .release-card { padding: 24px; }
  .author-card { flex-direction: column; text-align: center; }
}
