/* ==========================================================================
   Salla Developers — landing page  (redesign-10x)
   Built on the Salla Design System token layer (assets/colors_and_type.css).
   Colors there are HSL triplets: hsl(var(--primary)). The .dark class in that
   file remaps many tokens, so brand-critical values are pinned explicitly here.
   ========================================================================== */

:root {
  --page-bg:      hsl(var(--white));
  --surface:      hsl(var(--white));
  --surface-2:    hsl(var(--gray-200));
  --surface-sunk: hsl(var(--primary-100));
  --border:       hsl(var(--gray-500));
  --border-soft:  hsl(var(--gray-400));

  --heading:      hsl(191 78% 15%);            /* deep petrol */
  --text:         hsl(0 0% 33%);
  --text-muted:   hsl(0 0% 45%);

  --accent:       #73FCD8;                      /* mint — must not follow .dark remap */
  --accent-hover: #5CF0C9;
  --accent-ink:   #00414D;
  --link:         hsl(var(--primary-400));

  --ink-900:      #062a31;                      /* near-black petrol for dark panels */
  --chrome-bg:    rgba(255, 255, 255, .78);
  --chrome-border: hsl(var(--gray-500));

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ring: 0 0 0 1px hsl(var(--primary-200) / .5), 0 12px 32px -12px hsl(191 60% 20% / .22);
}

.dark {
  --page-bg:      hsl(220 6% 10%);
  --surface:      hsl(220 5% 14%);
  --surface-2:    hsl(220 6% 12%);
  --surface-sunk: hsl(200 22% 15%);
  --border:       hsl(220 5% 23%);
  --border-soft:  hsl(220 5% 19%);

  --heading:      hsl(158 34% 90%);
  --text:         hsl(0 0% 82%);
  --text-muted:   hsl(0 0% 60%);

  --accent:       #5EEFCC;
  --accent-hover: #74F5D6;
  --accent-ink:   #002A32;
  --link:         hsl(166 60% 72%);

  --chrome-bg:    rgba(22, 23, 25, .8);
  --chrome-border: hsl(220 5% 22%);
  --ring: 0 0 0 1px hsl(166 50% 60% / .28), 0 14px 34px -14px hsl(0 0% 0% / .6);
}

/* ---------- base ---------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  font-family: 'PingARLT', 'PT Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--page-bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, h4 { color: var(--heading); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ol, ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: var(--rounded-lg); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid hsl(var(--primary-400)); outline-offset: 3px; border-radius: 5px; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  --btn-h: 2.6rem; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: var(--btn-h); padding-inline: 1.25rem;
  border-radius: var(--rounded-lg); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap; cursor: pointer;
  transition: transform .14s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { --btn-h: 3.1rem; padding-inline: 1.7rem; font-size: 1.02rem; }
.btn .hgi { font-size: 1.1em; }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px hsl(191 40% 20% / .18), 0 10px 24px -10px hsl(164 70% 45% / .5); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 1px 2px hsl(191 40% 20% / .2), 0 16px 30px -10px hsl(164 70% 45% / .6); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--heading); }
.btn--outline:hover { border-color: hsl(var(--primary-400)); background: var(--surface-sunk); }
.btn--ghost { background: transparent; color: var(--heading); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }

.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, hsl(0 0% 100% / .4), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn--outline::after, .btn--ghost::after { background: linear-gradient(100deg, transparent, hsl(var(--primary-400) / .16), transparent); }

/* ---------- shared type bits ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: hsl(var(--primary-400));
}
.eyebrow--on-dark { color: var(--accent); }
.eyebrow__n {
  font-variant-numeric: tabular-nums; font-size: .78rem; letter-spacing: .04em;
  color: hsl(var(--primary-400) / .6);
  padding-right: .55rem; border-right: 1px solid currentColor;
}
.eyebrow--on-dark .eyebrow__n { color: hsl(0 0% 100% / .45); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: hsl(var(--primary-400)); position: relative; }
.dark .link-arrow { color: var(--link); }
.link-arrow .hgi { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .hgi { transform: translateX(4px); }
.link-arrow--lg { font-size: 1rem; }

/* inline copy-to-clipboard chip (used on dark surfaces) */
.copy-inline {
  display: inline-flex; align-items: center; gap: .5rem; vertical-align: middle;
  font: inherit; cursor: pointer; border: 1px solid hsl(0 0% 100% / .16);
  background: hsl(0 0% 100% / .06); border-radius: var(--rounded); padding: .2rem .5rem;
  color: inherit; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.copy-inline:hover { background: hsl(0 0% 100% / .12); border-color: hsl(164 60% 60% / .5); }
.copy-inline code { font-family: var(--s-font-mono); color: hsl(164 68% 68%); background: none; padding: 0; }
.copy-inline .hgi { font-size: .95rem; opacity: .7; }
.copy-inline.is-done .hgi { opacity: 1; color: hsl(157 60% 62%); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section__intro { margin-top: 1.1rem; font-size: 1.1rem; color: var(--text-muted); }
.section__foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

/* ---------- announcement bar --------------------------------------------- */
.annc { background: linear-gradient(90deg, hsl(191 78% 15%), hsl(189 60% 22%)); color: #fff; font-size: .9rem; }
.dark .annc { background: linear-gradient(90deg, hsl(191 50% 14%), hsl(189 40% 18%)); }
html.annc-closed .annc { display: none; }
.annc__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 2.75rem; padding-block: .4rem; }
.annc__text { color: #fff; display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-align: center; }
.annc__text:hover { text-decoration: none; }
.annc__text .hgi { transition: transform .2s var(--ease); }
.annc__text:hover .hgi { transform: translateX(4px); }
.annc__pill { background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .5rem; border-radius: var(--rounded-full); }
.annc__close { position: absolute; right: var(--pad); background: none; border: 0; color: hsl(0 0% 100% / .7); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .3rem; }
.annc__close:hover { color: #fff; }
.annc__inner { position: relative; }

/* ---------- scroll progress bar ----------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, hsl(var(--primary-400)), var(--accent));
  z-index: 200; transition: width .1s linear; will-change: width;
}

/* ---------- nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--chrome-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .3s var(--ease), transform .4s var(--ease);
}
/* blur lives on a ::before so .nav itself has no backdrop-filter
   (that would trap position:fixed children like the mobile drawer) */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav.is-scrolled { border-bottom-color: var(--chrome-border); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--heading); font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; color: hsl(var(--primary)); }
.dark .brand__mark { color: var(--accent); }
.brand__mark svg { transition: transform .4s var(--ease); }
.brand:hover .brand__mark svg { transform: rotate(-8deg) scale(1.08); }
.brand__text { font-size: 1.05rem; letter-spacing: -.01em; }
.brand__text b { font-weight: 800; }

.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu > a { color: var(--text); font-weight: 600; font-size: .95rem; position: relative; }
.nav__menu > a:hover { color: var(--heading); text-decoration: none; }
.nav__menu > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.4rem; height: 2px;
  background: hsl(var(--primary-400)); border-radius: 2px; transition: right .25s var(--ease);
}
.nav__menu > a:hover::after, .nav__menu > a.is-active::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

/* animated hamburger */
.nav__toggle { display: none; position: relative; width: 2.5rem; height: 2.5rem; background: none; border: 0; cursor: pointer; z-index: 130; }
.nav__burger, .nav__burger::before, .nav__burger::after {
  position: absolute; left: 50%; width: 1.35rem; height: 2px; margin-left: -.675rem;
  background: var(--heading); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease), background .3s var(--ease);
}
.nav__burger { top: 50%; margin-top: -1px; }
.nav__burger::before { content: ""; top: -7px; }
.nav__burger::after  { content: ""; top:  7px; }
.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before { top: 0; transform: rotate(45deg); background: var(--heading); }
.nav__toggle[aria-expanded="true"] .nav__burger::after  { top: 0; transform: rotate(-45deg); background: var(--heading); }

.nav__backdrop {
  position: fixed; inset: 0; z-index: 110; background: hsl(191 40% 8% / .45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav__backdrop.is-open { opacity: 1; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem;
  border-radius: var(--rounded-lg); border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer; font-size: 1.1rem;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: hsl(var(--primary-400)); transform: rotate(-12deg); }
.theme-toggle__moon { display: none; }
.dark .theme-toggle__sun { display: none; }
.dark .theme-toggle__moon { display: inline; }

/* ---------- hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--primary) / .05) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 90%);
}
.dark .hero__grid { background-image:
  linear-gradient(hsl(166 40% 60% / .06) 1px, transparent 1px),
  linear-gradient(90deg, hsl(166 40% 60% / .06) 1px, transparent 1px); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 42rem; height: 30rem; right: -10rem; top: -12rem; background: radial-gradient(circle, hsl(var(--secondary-400) / .55), transparent 70%); }
.blob--2 { width: 40rem; height: 30rem; left: -14rem; top: -6rem; background: radial-gradient(circle, hsl(var(--primary-200) / .55), transparent 70%); }
.dark .blob--1 { background: radial-gradient(circle, hsl(164 80% 45% / .28), transparent 70%); }
.dark .blob--2 { background: radial-gradient(circle, hsl(191 70% 30% / .5), transparent 70%); }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__copy { max-width: 37rem; }
.hero h1 { font-size: clamp(2rem, 3.3vw, 3rem); margin: 1.1rem 0 0; letter-spacing: -.02em; }
.hero h1 .grad {
  background: linear-gradient(100deg, hsl(var(--primary)) 10%, hsl(var(--primary-400)) 55%, hsl(164 70% 45%) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dark .hero h1 .grad { background: linear-gradient(100deg, hsl(166 55% 78%), hsl(180 60% 62%) 60%, hsl(164 70% 55%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 1.5rem; font-size: 1.16rem; color: var(--text-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.75rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.hero__meta span { display: inline-flex; align-items: center; white-space: nowrap; }
.hero__meta .hgi { color: hsl(var(--success)); margin-right: .35rem; font-size: 1.05em; }

.hero__chips { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.chip {
  position: absolute; font-family: var(--s-font-mono); font-size: .76rem;
  background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-muted);
  padding: .38rem .65rem; border-radius: var(--rounded-lg); box-shadow: var(--shadow-lg);
  white-space: nowrap; opacity: .9;
}
/* kept clear of the copy column — all on the right half */
.chip--a { top: 9%;  right: 5%; }
.chip--b { top: 40%; right: 1%; }
.chip--c { bottom: 24%; right: 9%; }
.chip--d { bottom: 8%;  right: 34%; }
@media (max-width: 1180px) { .hero__chips { display: none; } }

.cursor { display: inline-block; width: .55ch; background: var(--accent); color: transparent; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- code card ----------------------------------------------------- */
.code-card {
  border-radius: var(--rounded-xl); overflow: hidden;
  background: hsl(193 74% 9%); color: hsl(0 0% 92%);
  border: 1px solid hsl(var(--primary-700));
  box-shadow: 0 30px 60px -20px hsl(191 60% 12% / .5);
  font-family: var(--s-font-mono);
}
.code-card__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: hsl(193 60% 7%); border-bottom: 1px solid hsl(var(--primary-700)); }
.code-card__bar .dot { width: .7rem; height: .7rem; border-radius: 50%; background: hsl(0 0% 100% / .2); }
.code-card__bar .dot:nth-child(1) { background: hsl(358 70% 62% / .8); }
.code-card__bar .dot:nth-child(2) { background: hsl(34 90% 62% / .8); }
.code-card__bar .dot:nth-child(3) { background: hsl(157 55% 55% / .8); }
.code-card__title { margin-inline-start: .5rem; font-size: .78rem; color: hsl(0 0% 100% / .5); }
.code-card__body { margin: 0; padding: 1.2rem 1.3rem; font-size: .86rem; line-height: 1.75; overflow-x: auto; min-height: 12.5rem; white-space: pre-wrap; }
.code-card code { font-family: inherit; background: none; padding: 0; color: inherit; }
.code-card--dark { box-shadow: 0 30px 60px -20px hsl(0 0% 0% / .5); }
.c-comment { color: hsl(189 22% 52%); }
.c-str { color: hsl(164 68% 66%); }
.c-key { color: hsl(199 68% 72%); }
.c-num { color: hsl(34 88% 68%); }
.c-ok  { color: hsl(157 58% 58%); }

.code-copy {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: .35rem;
  font: 600 .72rem/1 var(--s-font-mono); color: hsl(0 0% 100% / .55);
  background: hsl(0 0% 100% / .08); border: 0; border-radius: var(--rounded);
  padding: .35rem .55rem; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
}
.code-copy:hover { color: #fff; background: hsl(0 0% 100% / .16); }
.code-copy.is-done { color: hsl(157 60% 62%); }

/* ---------- stats ------------------------------------------------------------ */
.stats { border-block: 1px solid var(--border-soft); background: var(--surface); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -.75rem; top: 15%; bottom: 15%; width: 1px; background: var(--border-soft); }
.stat__num { display: block; font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3.1rem); color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__label { display: block; margin-top: .35rem; font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.stats__note { text-align: center; margin-top: 1.5rem; font-size: .78rem; color: var(--text-muted); opacity: .7; }

/* ---------- generic grid + card ------------------------------------------- */
.grid { display: grid; gap: 1.15rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--rounded-xl); padding: 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ring); border-color: hsl(var(--primary-200)); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(14rem 14rem at var(--mx, 50%) var(--my, 50%), hsl(var(--secondary-400) / .16), transparent 65%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover::before { opacity: 1; }

.feature__icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: var(--rounded-lg); margin-bottom: 1.15rem;
  background: var(--surface-sunk); color: hsl(var(--primary)); font-size: 1.55rem;
  transition: transform .25s var(--ease);
}
.dark .feature__icon { color: var(--accent); }
.card:hover .feature__icon { transform: translateY(-2px) rotate(-5deg) scale(1.07); }
.feature { display: flex; flex-direction: column; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: .55rem; font-size: .95rem; color: var(--text-muted); }
.feature em { font-style: italic; color: var(--heading); }
.feature .link-arrow { margin-top: auto; padding-top: 1.15rem; }

/* ---------- toolkit clusters ------------------------------------------------- */
.cluster { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.cluster:first-of-type { margin-top: 0; }
.cluster__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border-soft); }
.cluster__head .hgi { font-size: 1.3rem; color: hsl(var(--primary-400)); }
.cluster__head h3 { font-size: 1.15rem; letter-spacing: .01em; }

.tk { padding: 1.25rem 1.3rem; display: block; }
.tk h4 { font-size: 1rem; padding-right: 1.4rem; }
.tk p { margin-top: .4rem; font-size: .88rem; color: var(--text-muted); }
.tk:hover { text-decoration: none; }
.tk__go { position: absolute; top: 1.2rem; right: 1.25rem; color: hsl(var(--primary-400)); opacity: .4; font: 700 1.05rem/1 var(--s-font-mono); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.tk__go::after { content: "\2192"; }
.tk:hover .tk__go { opacity: 1; transform: translateX(3px); }

/* ---------- Partners Agent Kit --------------------------------------------- */
.agent { background: hsl(191 78% 14%); color: hsl(0 0% 88%); }
.dark .agent { background: hsl(191 52% 12%); }
.section__head--on-dark h2 { color: #fff; }
.section__intro--on-dark { color: hsl(0 0% 100% / .8); }
.section__head--on-dark .eyebrow__n { color: hsl(0 0% 100% / .45); }

.agent__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.agent__parts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.agent__part { background: hsl(0 0% 100% / .05); border: 1px solid hsl(0 0% 100% / .12); border-radius: var(--rounded-xl); padding: 1.35rem; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.agent__part:hover { background: hsl(0 0% 100% / .08); border-color: hsl(164 60% 60% / .4); transform: translateY(-3px); }
.agent__part-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--rounded-lg); background: hsl(0 0% 100% / .1); color: var(--accent); font-size: 1.35rem; margin-bottom: .9rem; }
.agent__part h3 { color: #fff; font-size: 1.05rem; }
.agent__part p { margin-top: .5rem; font-size: .89rem; color: hsl(0 0% 100% / .74); }
.agent__clients { margin-top: 1.3rem; font-size: .86rem; color: hsl(0 0% 100% / .55); }
.agent__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.agent__note { margin-top: .9rem; font-size: .8rem; color: hsl(0 0% 100% / .55); }
.agent__note code { font-family: var(--s-font-mono); color: hsl(164 68% 68%); background: hsl(0 0% 100% / .09); padding: .1rem .4rem; border-radius: 4px; }

/* ---------- lifecycle steps ------------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--rounded-xl); padding: 1.6rem; box-shadow: var(--shadow-xs);
}
.step__n {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin-top: .5rem; font-size: .92rem; color: var(--text-muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.8rem; right: -.7rem; width: .6rem; height: .6rem;
  border-top: 2px solid hsl(var(--primary-300)); border-right: 2px solid hsl(var(--primary-300));
  transform: rotate(45deg); z-index: 2;
}

/* ---------- community ------------------------------------------------------- */
.comm { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.15rem; align-items: start; }
.comm__feature { display: flex; flex-direction: column; height: 100%; }
.comm__feature:hover { text-decoration: none; }
.comm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.comm__icon {
  display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: var(--rounded-lg);
  background: var(--surface-sunk); color: hsl(var(--primary)); font-size: 1.7rem; margin-bottom: 1.1rem;
}
.dark .comm__icon { color: var(--accent); }
.comm__icon--sm { width: 2.6rem; height: 2.6rem; font-size: 1.35rem; margin-bottom: .9rem; }
.comm__feature h3 { font-size: 1.3rem; }
.comm__feature p { margin-top: .7rem; color: var(--text-muted); flex: 1; }
.comm__feature .link-arrow { margin-top: 1.2rem; }
.comm__item h4 { font-size: 1.02rem; }
.comm__item p { margin-top: .45rem; font-size: .89rem; color: var(--text-muted); }

.upcoming { margin-top: clamp(2rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--rounded-xl); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-xs); }
.upcoming > h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.upcoming__list { list-style: none; }
.upcoming__list li { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--border-soft); }
.upcoming__list li:first-child { border-top: 0; }
.upcoming__tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--primary-400)); background: var(--surface-sunk); padding: .28rem .5rem; border-radius: var(--rounded); text-align: center; }
.upcoming__title { font-weight: 600; color: var(--heading); }
.upcoming__meta { font-size: .85rem; color: var(--text-muted); }
.upcoming .link-arrow { margin-top: 1.1rem; }

/* ---------- closing CTA --------------------------------------------------- */
.cta { background: var(--surface); border-top: 1px solid var(--border-soft); padding-block: var(--section-y); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, hsl(191 78% 15%) 0%, hsl(189 55% 24%) 100%);
  border-radius: var(--rounded-3xl); padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.cta__inner::after { content: ""; position: absolute; width: 22rem; height: 22rem; right: -6rem; top: -8rem; border-radius: 50%; background: radial-gradient(circle, hsl(var(--secondary-400) / .3), transparent 70%); pointer-events: none; }
.dark .cta__inner { background: linear-gradient(120deg, hsl(191 45% 15%) 0%, hsl(191 38% 10%) 100%); border: 1px solid hsl(220 5% 24%); }
.cta__text { flex: 1 1 22rem; position: relative; }
.cta__inner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta__inner p { color: hsl(0 0% 100% / .82); margin-top: .8rem; max-width: 34rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }

/* Salla mark badge with a playful micro-interaction */
.cta__mark {
  flex: none; position: relative; display: grid; place-items: center;
  width: 4.75rem; height: 4.75rem; border-radius: var(--rounded-2xl);
  background: hsl(0 0% 100% / .1); color: var(--accent);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.cta__mark svg { transition: transform .35s var(--ease); }
body.is-ready .cta__mark { animation: markBob 4.5s var(--ease) infinite; }
.cta__inner:hover .cta__mark { background: hsl(0 0% 100% / .16); transform: scale(1.06); }
.cta__inner:hover .cta__mark svg { transform: rotate(-10deg) scale(1.08); }
.cta__mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--accent); opacity: 0;
}
body.is-ready .cta__inner:hover .cta__mark::after { animation: markPulse 1.6s var(--ease) infinite; }
@keyframes markBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes markPulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* build section footnote */
.build__more { margin-top: 1.75rem; font-size: .9rem; color: var(--text-muted); text-align: center; }

/* ---------- footer ------------------------------------------------------------ */
.footer { background: var(--surface-2); border-top: 1px solid var(--border-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2.7fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); font-size: .92rem; max-width: 22rem; margin-bottom: 1.25rem; }
.footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.footer__cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .9rem; }
.footer__cols a { display: block; color: var(--text); font-size: .9rem; font-weight: 600; padding: .28rem 0; }
.footer__cols a:hover { color: var(--heading); text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-block: 1.5rem; border-top: 1px solid var(--border-soft); font-size: .84rem; color: var(--text-muted); }

/* ==========================================================================
   Motion  (all gated behind prefers-reduced-motion at the end)
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 65ms); will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* cursor-following spotlight border on cards */
.feature::after, .tk::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.feature:hover::after, .tk:hover::after { opacity: .55; }

/* agent terminal: one-time reveal + scanline when scrolled into view */
.agent__visual .code-card__body { position: relative; }
.js .agent__visual .reveal.code-card__body code,
.js .agent__visual.reveal .code-card__body code { display: block; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.js .agent__visual.is-visible .code-card__body code { clip-path: inset(0 0 0 0); }
.agent__visual.is-visible .code-card__body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; z-index: 2; pointer-events: none;
  background: linear-gradient(hsl(var(--secondary-400) / .35), transparent);
  animation: scanline 1.1s var(--ease) forwards;
}
@keyframes scanline { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.js .hero__copy > *, .js .hero__visual { opacity: 0; transform: translateY(20px); }
body.is-ready .hero__copy > * { animation: heroIn .8s var(--ease) forwards; }
body.is-ready .hero__copy > *:nth-child(1) { animation-delay: .05s; }
body.is-ready .hero__copy > *:nth-child(2) { animation-delay: .12s; }
body.is-ready .hero__copy > *:nth-child(3) { animation-delay: .19s; }
body.is-ready .hero__copy > *:nth-child(4) { animation-delay: .26s; }
body.is-ready .hero__copy > *:nth-child(5) { animation-delay: .33s; }
body.is-ready .hero__visual { animation: heroIn .9s var(--ease) .28s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

body.is-ready .blob--1 { animation: float1 20s ease-in-out infinite alternate; }
body.is-ready .blob--2 { animation: float2 24s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate3d(-3rem, 2rem, 0) scale(1.12); } }
@keyframes float2 { to { transform: translate3d(3rem, 1.5rem, 0) scale(1.1); } }

body.is-ready .chip { animation: chipFloat 7s ease-in-out infinite alternate; opacity: 0; }
body.is-ready .chip--a { animation-delay: .6s; }
body.is-ready .chip--b { animation-delay: 1.1s; }
body.is-ready .chip--c { animation-delay: .85s; }
body.is-ready .chip--d { animation-delay: 1.35s; }
@keyframes chipFloat { 0% { opacity: 0; transform: translateY(14px); } 15% { opacity: 1; } 100% { opacity: 1; transform: translateY(-12px); } }

.tilt { transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s var(--ease); }
.tilt.is-flat { transition: transform .5s var(--ease); }
.magnetic { transition: transform .25s var(--ease); }
.magnetic:hover { transform: translate(var(--tx, 0), var(--ty, 0)); }

.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none; background: hsl(0 0% 100% / .45); animation: ripple .6s var(--ease) forwards; }
.btn--outline .ripple, .btn--ghost .ripple { background: hsl(var(--primary-400) / .25); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1.5rem); background: var(--heading); color: var(--page-bg); padding: .6rem 1.1rem; border-radius: var(--rounded-full); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-xl); opacity: 0; pointer-events: none; z-index: 200; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: 1.15rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: hsl(var(--primary-400)); }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .comm { grid-template-columns: 1fr; }
  .comm__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }

  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-left: 1px solid var(--border);
    padding: 6.5rem var(--pad) 2rem; box-shadow: -24px 0 60px -20px hsl(191 40% 10% / .4);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
    overflow-y: auto; z-index: 120;
  }
  .nav__menu.is-open { transform: translateX(0); }

  .nav__menu > a {
    padding: .95rem .25rem; border-bottom: 1px solid var(--border-soft);
    font-size: 1.05rem; color: var(--heading); overflow: hidden;
  }
  .nav__menu > a::after { display: none; }
  .nav__menu > a > span {
    display: inline-block;
    transform: translateX(24px); opacity: 0;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
  }
  .nav__menu.is-open > a > span { transform: none; opacity: 1; }
  .nav__menu.is-open > a:nth-child(1) > span { transition-delay: .08s; }
  .nav__menu.is-open > a:nth-child(2) > span { transition-delay: .13s; }
  .nav__menu.is-open > a:nth-child(3) > span { transition-delay: .18s; }
  .nav__menu.is-open > a:nth-child(4) > span { transition-delay: .23s; }
  .nav__menu.is-open > a:nth-child(5) > span { transition-delay: .28s; }

  .nav__actions {
    flex-direction: column; align-items: stretch; gap: .7rem; margin-top: 1.4rem;
    transform: translateY(16px); opacity: 0;
    transition: transform .4s var(--ease) .34s, opacity .4s var(--ease) .34s;
  }
  .nav__menu.is-open .nav__actions { transform: none; opacity: 1; }
  .nav__actions .btn { width: 100%; height: 3rem; }
  .theme-toggle { align-self: flex-start; }

  body.nav-open { overflow: hidden; }

  .hero__inner, .agent__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat + .stat::before { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 881px) {
  .nav__backdrop { display: none; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .steps, .comm__grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .upcoming__list li { grid-template-columns: 1fr auto; }
  .upcoming__tag { grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero__copy > *, .js .hero__visual { opacity: 1 !important; transform: none !important; }
  .chip { opacity: 1 !important; }
  .btn::after, .card::before, .feature::after, .tk::after,
  .agent__visual.is-visible .code-card__body::before { display: none; }
  .js .agent__visual .code-card__body code { clip-path: none !important; }
  .nav__menu > a > span { opacity: 1 !important; transform: none !important; }
  .nav__menu .nav__actions { opacity: 1 !important; transform: none !important; }
  .tilt, .magnetic { transform: none !important; }
  .cursor { animation: none !important; }
  .nav.is-hidden { transform: none !important; }
}
