/* ============ Nebulix — design tokens ============
   Art direction: a technical instrument. Paper + ink, one signal colour
   used sparingly, every illustration rendered as dots. No gradients. */
:root {
  --paper: #F3F1EC;
  --paper-2: #E8E5DE;
  --card: #FBFAF7;
  --ink: #111014;
  --ink-2: #4B4853;
  --ink-3: #8C8893;
  --line: rgba(17, 16, 20, .11);
  --night: #0C0B0F;
  --night-2: #15141A;
  --night-3: #1C1A22;
  --night-line: rgba(255, 255, 255, .09);
  --accent: #FF5A1F;
  --accent-2: #FFB394;
  --accent-ink: #C23E0C;
  --ok: #1F9D6E;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* legacy aliases used by sub-pages */
  --cream: var(--paper); --cream-2: var(--paper-2);
  --violet: var(--accent); --violet-2: var(--accent-2);
  --ember: var(--accent); --ember-2: var(--accent-2);
  --mint: var(--ok);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  transition: background-color .7s var(--ease);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
/* dark sections paint their own background; the body stays paper */
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg, canvas { display: block; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Type & labels ============ */
.kicker, .badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  background: none; padding: 0;
}
.badge::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.dark .kicker, .dark .badge { color: rgba(255,255,255,.5); }
.badge--light, .badge--dark { color: inherit; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,90,31,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
#pageCounter { color: var(--ink); font-variant-numeric: tabular-nums; }

.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.center .h2 { max-width: 20ch; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 48ch; text-wrap: pretty; }
.dark { color: #F3F1EC; }
section.dark, footer.dark { background: var(--night); }
section.dark.trust { padding-top: 140px; }
.dark .lead { color: rgba(243,241,236,.62); }
.link-arrow { font-weight: 600; display: inline-flex; gap: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease); }
.link-arrow { background-size: 100% 1px; }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-plain { font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 500; font-size: 15px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2830; }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--line { color: var(--ink); border-color: rgba(17,16,20,.25); }
.btn--line:hover { border-color: var(--ink); background: rgba(17,16,20,.04); }
.btn--line-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn--line-light:hover { border-color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(17,16,20,.06); }
.dark .btn--dark { background: #F3F1EC; color: var(--ink); }
.dark .btn--dark:hover { background: #fff; }
.dark .btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }

/* ============ Reveal (quiet, short) ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
[data-split].is-in .w > span { transform: none; }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav__inner { max-width: 1232px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 36px; padding: 0 16px; }
.nav.is-scrolled { background: rgba(243,241,236,.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav.is-dark { color: #F3F1EC; }
.nav.is-dark.is-scrolled { background: rgba(12,11,15,.82); border-bottom-color: var(--night-line); }
.nav.is-dark .btn--ghost { color: #F3F1EC; }
.nav.is-dark .btn--ghost:hover { background: rgba(255,255,255,.08); }
.nav.is-dark .btn--dark { background: #F3F1EC; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.nav__links { display: flex; gap: 2px; font-size: 14px; color: inherit; }
.nav__links a { padding: 8px 12px; border-radius: 8px; opacity: .72; transition: opacity .2s, background .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.nav.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile { display: none; }
.pill-new { display: none; }

/* ============ HERO ============ */
.hero { position: relative; padding: 140px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(52px, 9.2vw, 136px); line-height: .92; letter-spacing: -.06em; font-weight: 600; margin: 8px 0 36px; max-width: 11ch; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero__sub { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Demo widget — styled as an instrument panel */
.demo { margin-top: 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(17,16,20,.04), 0 30px 60px -40px rgba(17,16,20,.35); overflow: hidden; }
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 8px; border-bottom: 1px solid var(--line); background: var(--paper); }
.demo__tabs { position: relative; display: inline-flex; }
.demo__tab { position: relative; z-index: 1; font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border-radius: 8px; color: var(--ink-3); transition: color .3s; }
.demo__tab.is-active { color: var(--ink); }
.demo__glider { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: transform .45s var(--ease), width .45s var(--ease); }
.demo__hint { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.demo__body { padding: 18px 20px 8px; }
.demo__input { display: flex; align-items: center; gap: 12px; height: 54px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px 0 16px; background: #fff; transition: border-color .2s; }
.demo__input:focus-within { border-color: var(--ink); }
.demo__prompt { font-family: var(--mono); color: var(--accent); font-weight: 500; }
#demoQuery { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-size: 14.5px; color: var(--ink); outline: none; height: 100%; }
#demoQuery::placeholder { color: var(--ink-3); }
.demo__run { margin-left: auto; background: var(--ink); color: #fff; height: 38px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; display: flex; gap: 8px; align-items: center; transition: background .2s; }
.demo__run:hover { background: #2A2830; }
.demo__run kbd { font-family: var(--mono); opacity: .55; }
.demo__run.is-busy { background: var(--accent); }
.demo__meta { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.demo__view { display: flex; gap: 2px; border: 1px solid var(--line); padding: 2px; border-radius: 8px; }
.demo__view button { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: 6px; color: var(--ink-3); }
.demo__view button.is-active { background: var(--ink); color: #fff; }
.demo__out { min-height: 290px; position: relative; }
.res { padding: 14px 2px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(6px); animation: resIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes resIn { to { opacity: 1; transform: none; } }
.res__src { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.res__src b { color: var(--ink-2); font-weight: 500; }
.fav { width: 16px; height: 16px; border-radius: 4px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); font-size: 9.5px; font-weight: 600; font-family: var(--mono); }
.res h4 { margin: 6px 0 4px; font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.res h4 a { color: inherit; } .res h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.res p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.json { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; margin: 8px 0; padding: 16px; background: var(--night); color: #D4D1DA; border-radius: 10px; overflow: auto; max-height: 300px; animation: resIn .4s var(--ease) forwards; opacity: 0; }
.json .k { color: #F3F1EC; } .json .s { color: var(--accent-2); } .json .n { color: #8FD3B6; }
.skeleton { height: 60px; margin: 12px 0; border-radius: 8px; background: linear-gradient(90deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ METRICS ============ */
.metrics { border-bottom: 1px solid var(--line); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 34px 24px 34px 0; display: flex; flex-direction: column; gap: 6px; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric__k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.metric b { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric span:last-child { font-size: 14px; color: var(--ink-2); }

/* ============ SECTIONS ============ */
.section { padding: 130px 0; position: relative; }
.section--tight { padding: 40px 0 120px; }
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head .h2 { margin-bottom: 0; }
.section-head .lead { margin-bottom: 0; }
.section-head .link-plain { display: inline-block; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }

/* request → response diagram */
.flow { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.flow__col { padding: 20px 22px; }
.flow__col + .flow__col { border-top: 1px solid var(--line); background: var(--night); color: #D4D1DA; }
.flow__k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.flow__col + .flow__col .flow__k { color: rgba(255,255,255,.45); }
.flow__code { margin: 12px 0 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.flow__code .k { color: var(--accent); font-weight: 500; }
.flow__code .s { color: var(--ink-2); }
.flow__col + .flow__col .flow__code .s { color: var(--accent-2); }
.flow__code .n { color: #8FD3B6; }
.flow__pipe { position: relative; height: 0; }
.flow__pipe i { position: absolute; left: 22px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: pipe 2.4s var(--ease) infinite; }
.flow__pipe i:nth-child(2) { left: 40px; animation-delay: .25s; } .flow__pipe i:nth-child(3) { left: 58px; animation-delay: .5s; }
@keyframes pipe { 0% { opacity: 0; transform: translateY(-14px); } 30% { opacity: 1; } 60% { opacity: 1; transform: translateY(14px); } 100% { opacity: 0; transform: translateY(14px); } }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 90px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.product { padding: 32px; transition: background .3s; }
.product + .product { border-left: 1px solid var(--line); }
.product:hover { background: #fff; }
.product__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.product p { color: var(--ink-2); line-height: 1.55; max-width: 44ch; }
.tag { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.code { margin: 20px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.code .k { color: var(--accent-ink); font-weight: 500; } .code .s { color: var(--ink-2); }

.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.agents__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pix-card { position: relative; display: block; background: var(--card); padding: 26px 24px 24px; min-height: 230px; transition: background .35s, color .35s; }
.pix-card + .pix-card { border-left: 1px solid var(--line); }
.pix-card:hover { background: var(--ink); color: #F3F1EC; }
.pix { font-family: var(--mono); font-size: 28px; display: block; letter-spacing: -.02em; margin-bottom: 80px; }
.pix-card p { margin: 0; font-size: 14.5px; line-height: 1.5; max-width: 24ch; color: inherit; opacity: .75; }
.pix-card .arrow { position: absolute; right: 22px; top: 26px; font-size: 18px; transition: transform .4s var(--ease); }
.pix-card:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* ============ TRUST ============ */
.trust__marquee { overflow: hidden; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.trust__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.trust__marquee:hover .trust__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tcard { width: 280px; flex: 0 0 auto; padding: 20px 22px 26px; border-right: 1px solid var(--night-line); transition: background .3s; }
.tcard:hover { background: var(--night-2); }
.tcard canvas { width: 100%; height: 170px; }
.tcard h3 { font-size: 15.5px; font-weight: 500; margin: 18px 0 8px; }
.tcard p { font-size: 14px; line-height: 1.55; color: rgba(243,241,236,.55); margin: 0; }

/* ============ QUOTES ============ */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.quote { margin: 0; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.quote--big { grid-row: span 2; border-right: 1px solid var(--night-line); }
.quote:nth-child(3) { border-top: 1px solid var(--night-line); }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; color: rgba(243,241,236,.9); }
.quote--big blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.28; letter-spacing: -.025em; color: #F3F1EC; }
.quote figcaption { display: flex; gap: 14px; align-items: center; font-size: 14px; color: rgba(243,241,236,.55); }
.quote figcaption b { display: block; color: #F3F1EC; font-weight: 500; }
.initials { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; color: rgba(243,241,236,.8); flex: 0 0 auto; }

/* ============ INFRA ============ */
.infra { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.infra__card { display: flex; flex-direction: column; transition: background .35s; }
.infra__card + .infra__card { border-left: 1px solid var(--night-line); }
.infra__card:hover { background: var(--night-2); }
.infra__art { width: 100%; height: 260px; border-bottom: 1px solid var(--night-line); }
.infra__body { padding: 26px 26px 30px; }
.infra__card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.infra__card p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: rgba(243,241,236,.6); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: 11.5px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--night-line); color: rgba(243,241,236,.75); }

/* ============ UPDATES ============ */
.updates__head { display: flex; justify-content: space-between; align-items: flex-end; }
.updates__head .h2 { margin: 0; }
.updates__nav { display: flex; gap: 8px; }
.updates__nav button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--night-line); font-size: 16px; transition: background .2s, border-color .2s; }
.updates__nav button:hover { border-color: rgba(255,255,255,.4); }
.updates { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px max(16px, calc((100vw - 1200px) / 2)) 10px; scroll-padding-inline: max(16px, calc((100vw - 1200px) / 2)); scrollbar-width: none; }
.updates::-webkit-scrollbar { display: none; }
.ucard { flex: 0 0 300px; scroll-snap-align: start; }
.ucard pre { margin: 0; height: 190px; border-radius: 10px; overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); font-family: var(--mono); font-size: 9.5px; line-height: 7.8px; letter-spacing: .5px; padding: 6px; color: var(--c); user-select: none; transition: border-color .3s; }
.ucard:hover pre { border-color: rgba(255,255,255,.3); }
.ucard .tag { display: inline-block; margin: 18px 0 10px; border-color: var(--night-line); color: rgba(243,241,236,.6); }
.ucard h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; }
.ucard p { margin: 0 0 12px; font-size: 14px; color: rgba(243,241,236,.55); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ucard time { font-family: var(--mono); font-size: 11.5px; color: rgba(243,241,236,.4); }

/* ============ CTA ============ */
.cta { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #F3F1EC; background: var(--night-2); border: 1px solid var(--night-line); }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__content { position: relative; padding: 48px; }
.cta .h2 { max-width: 14ch; }
.cta p { color: rgba(243,241,236,.65); margin: 0 0 28px; font-size: 17px; }

/* ============ FOOTER ============ */
.footer { padding: 40px 0 0; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 50px; border-top: 1px solid var(--night-line); }
.footer h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgba(243,241,236,.4); font-weight: 400; margin: 0 0 16px; }
.footer a { display: block; font-size: 15px; margin-bottom: 11px; color: rgba(243,241,236,.85); transition: color .2s; }
.footer a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--night-line); font-family: var(--mono); font-size: 12px; color: rgba(243,241,236,.45); }
.footer__bottom b { color: #F3F1EC; font-family: var(--font); font-size: 17px; font-weight: 600; }
.footer__giant { font-weight: 600; font-size: 26vw; letter-spacing: -.08em; line-height: .76; text-align: center; margin-top: 40px; color: var(--night-2); user-select: none; }

/* Grid children may shrink below their content (long code scrolls instead of widening the page) */
.split > *, .products > *, .agents > *, .quotes > *, .infra > *, .hero__row > *, .section-head > * { min-width: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: block; }
  .nav__mobile { display: flex; flex-direction: column; gap: 2px; padding: 0 16px; max-height: 0; overflow: hidden; background: var(--paper); color: var(--ink); transition: max-height .5s var(--ease), padding .4s; }
  .nav.is-open { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
  .nav.is-open .nav__mobile { max-height: 480px; padding: 8px 16px 18px; }
  .nav__mobile a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 900px) {
  .split, .agents, .section-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .products, .infra, .agents__cards { grid-template-columns: minmax(0, 1fr); }
  .product + .product, .infra__card + .infra__card, .pix-card + .pix-card { border-left: 0; border-top: 1px solid var(--line); }
  .infra__card + .infra__card { border-top-color: var(--night-line); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote--big { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section { padding: 96px 0; }
}
@media (max-width: 600px) {
  .hero { padding-top: 112px; }
  .hero__title { font-size: 15.5vw; }
  .hero__sub { font-size: 17px; }
  .hero__actions .btn { flex: 1; }
  .demo { margin-top: 44px; }
  .demo__hint { display: none; }
  .demo__body { padding: 14px 12px 6px; }
  .demo__run kbd { display: none; }
  .metric { padding: 24px 12px 24px 0; }
  .metric + .metric { padding-left: 14px; }
  .metric:nth-child(3) { padding-left: 0; }
  .updates__nav { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .cta__content { padding: 28px 22px; }
  .quote { padding: 26px 22px; }
  .lead { font-size: 16.5px; }
}

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

[hidden] { display: none !important; }
