/* Agentic-dev homepage prototypes: shared layer on top of scrollcraft.css.
   Brand: purple #4430E9, ink #08062C (styles/tokens.css in the real site). */
@font-face { font-family: "Heebo"; font-weight: 300; src: url("assets/fonts/Heebo-Light.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Heebo"; font-weight: 400; src: url("assets/fonts/Heebo-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Heebo"; font-weight: 500; src: url("assets/fonts/Heebo-Medium.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Heebo"; font-weight: 700; src: url("assets/fonts/Heebo-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Heebo"; font-weight: 900; src: url("assets/fonts/Heebo-Black.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  --brand: #4430E9;
  --brand-300: #8C7DF4;
  --brand-200: #B4A9F8;
  --brand-50: #EEEBFE;
  --ink: #08062C;
  --ink-700: #0E0B33;
  --ink-600: #14103A;
  --ink-500: #1F1B45;
  --ink-300: #67628A;
  --ink-200: #9C99B3;
  --bone: #FAFAFC;
  --mist: #F3F3F7;
  --ok: #22C55E;
  --sc-font-display: "Heebo", system-ui, sans-serif;
  --sc-font-text: "Heebo", system-ui, sans-serif;
  --sc-font-mono: "Barlow Condensed", "Heebo", sans-serif;
  --sc-track-tight: -0.01em;
  --sc-track-snug: -0.005em;
  --sc-gutter: clamp(1.25rem, 4vw, 4rem);
}

html, body { font-family: var(--sc-font-text); }
body { font-weight: 400; }
a { color: inherit; }
.num { font-family: var(--sc-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- fixed bar: wordmark + the ONE action ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem var(--sc-gutter); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__logo { height: 26px; width: auto; display: block; }
.bar__actions { display: flex; align-items: center; gap: 0.6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; font: 700 0.98rem/1 var(--sc-font-text); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 160ms cubic-bezier(.2,.7,.2,1), background-color 160ms ease; }
.btn:active { transform: scale(0.98); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.btn--white:hover { background: var(--brand-50); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 20px 25px -5px rgba(68,48,233,.3), 0 8px 10px -6px rgba(68,48,233,.3); }
.btn--brand:hover { background: #3624BD; }
.btn--ghost { background: transparent; color: currentColor; border: 1px solid color-mix(in oklab, currentColor 35%, transparent); font-weight: 500; }
.btn--sm { height: 2.5rem; padding: 0 1.1rem; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; }
.wa-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.95rem; opacity: 0.8; text-underline-offset: 0.3em; }
.wa-link svg { width: 18px; height: 18px; }
.icon-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in oklab, currentColor 30%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- the live site's chat, unchanged look (stand-in) ---------- */
.chat-open { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; cursor: pointer; border-radius: 999px; background: #4430E9; color: #FFFFFF;
  height: 3rem; padding: 0 1.5rem; font: 700 0.875rem/1 var(--sc-font-text); box-shadow: 0 20px 25px -5px rgba(68,48,233,.3), 0 8px 10px -6px rgba(68,48,233,.3); transition: transform 150ms ease; }
.chat-open:hover { transform: scale(1.05); }
.chat-open svg { width: 18px; height: 18px; }
.chat-bubble { position: fixed; bottom: 24px; left: 24px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #4430E9; color: #fff; box-shadow: 0 20px 25px -5px rgba(68,48,233,.3), 0 8px 10px -6px rgba(68,48,233,.3); transition: transform 150ms ease; }
.chat-bubble:hover { transform: scale(1.05); }
.chat-bubble svg { width: 24px; height: 24px; }
.chat-panel { position: fixed; inset: 0 auto 0 0; z-index: 80; width: 400px; max-width: 100%; background: #fff; color: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(8,6,44,.35); display: flex; flex-direction: column; font-family: var(--sc-font-text); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: var(--brand); color: #fff; font-weight: 700; }
.chat-panel header span { display: inline-flex; gap: 0.5rem; align-items: center; }
.chat-panel header svg { width: 18px; height: 18px; }
.chat-panel header button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-panel p { padding: 1.2rem; color: var(--ink-300); margin: 0; }

/* ---------- the closing form ---------- */
.form { display: grid; gap: 0.9rem; padding: 1.6rem; border-radius: 22px; text-align: right; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }
.form input, .form select { height: 3rem; border-radius: 12px; padding: 0 0.9rem; font: 400 1rem var(--sc-font-text); }
.form .btn { width: 100%; height: 3.2rem; font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { height: 2.5rem; padding: 0 1rem; border-radius: 999px; font: 500 0.92rem var(--sc-font-text); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.after-note { font-size: 0.9rem; opacity: 0.75; margin: 0; }
.note { font-size: 0.78rem; opacity: 0.55; }

/* ---------- small helpers ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he { direction: rtl; text-align: right; }
.copy-abs { position: absolute; z-index: 2; inset-inline-start: var(--sc-gutter); max-width: min(46rem, 88vw); }
.scrim-r { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(8,6,44,.88) 0%, rgba(8,6,44,.55) 38%, rgba(8,6,44,0) 70%); }
.scrim-b { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,6,44,.92) 0%, rgba(8,6,44,.35) 45%, rgba(8,6,44,0) 70%); }
@media (max-width: 760px) {
  .scrim-r { background: linear-gradient(0deg, rgba(8,6,44,.92) 0%, rgba(8,6,44,.6) 55%, rgba(8,6,44,.15) 100%); }
  .bar__logo { height: 21px; }
  .bar .hide-m { display: none; }
  .chat-panel { width: 100%; }
}

/* bar over light sections: dark logo + dark ghost icon */
.bar { transition: color 200ms ease; color: #fff; }
.bar--light .bar__logo { filter: brightness(0); }
.bar--light .icon-btn { color: var(--ink) !important; }

/* =====================================================================
   Shared homepage sections (clients, services, CTA band, blog).
   .x-dark / .x-light pick the ground; content adapts.
   ===================================================================== */
.x-sec { padding-block: clamp(4.5rem, 11vh, 7.5rem); position: relative; }
.x-dark { background: #0B0930; color: #FAFAFC; --x-soft: #B4B1CC; --x-card: #14103A; --x-line: rgba(255,255,255,.09); }
.x-light { background: #FFFFFF; color: #08062C; --x-soft: #4A4570; --x-card: #F6F5FB; --x-line: #E6E5EE; }
.x-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.x-head h2 { margin: 0; font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.06; text-wrap: balance; max-width: 22ch; }
.x-head p { margin: 0.8rem 0 0; color: var(--x-soft); font-size: 1.08rem; max-width: 50ch; line-height: 1.6; }
.x-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 0.15rem; white-space: nowrap; }

/* clients: logo wall + marquee */
.clients { padding-block: clamp(3rem, 7vh, 4.5rem); }
.clients__label { text-align: center; font-size: 0.95rem; color: var(--x-soft); margin: 0 0 1.6rem; }
.clients__wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.logo-tile { height: 5.2rem; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 0.9rem 1.2rem; box-shadow: 0 0 0 1px rgba(8,6,44,.06); }
.x-light .logo-tile { background: #F6F5FB; }
.logo-tile img { max-width: 100%; max-height: 2.6rem; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.85; transition: filter 200ms ease, opacity 200ms ease; }
.logo-tile:hover img { filter: none; opacity: 1; }
.clients__more { text-align: center; margin-top: 1.4rem; font-size: 0.95rem; color: var(--x-soft); }
.marquee { overflow: hidden; margin-top: 2.2rem; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); direction: ltr; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: x-marquee 38s linear infinite; align-items: center; }
.marquee img { height: 26px; width: auto; opacity: 0.6; }
.x-dark .marquee img { filter: brightness(0) invert(1); }
.x-light .marquee img { filter: brightness(0); opacity: 0.45; }
@keyframes x-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* services grid */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc a { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.6rem; border-radius: 22px; background: var(--x-card); border: 1px solid var(--x-line); text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease; min-height: 13rem; }
.svc a:hover { transform: translateY(-4px); border-color: var(--brand-300); }
.svc .ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 18%, transparent); color: var(--brand-300); }
.x-light .svc .ic { color: var(--brand); }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.svc p { margin: 0; color: var(--x-soft); line-height: 1.6; font-size: 0.98rem; }
.svc .more { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--brand-300); }
.x-light .svc .more { color: var(--brand); }

/* CTA band */
.cta-band { padding-block: clamp(3.5rem, 9vh, 5.5rem); }
.cta-band__box { border-radius: 30px; padding: clamp(2rem, 5vw, 3.6rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  background: radial-gradient(40rem 22rem at 15% 20%, rgba(140,125,244,.55), transparent 60%), linear-gradient(135deg, #4430E9, #281A8E); color: #fff;
  box-shadow: 0 40px 90px -40px rgba(68,48,233,.7); }
.cta-band h2 { margin: 0; font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.08; text-wrap: balance; }
.cta-band p { margin: 0.9rem 0 0; color: #E4E0FF; font-size: 1.08rem; line-height: 1.6; max-width: 44ch; }
.cta-band__actions { display: grid; gap: 0.7rem; justify-items: start; }
.cta-band .btn--white { height: 3.3rem; font-size: 1.05rem; }
.cta-band .chat-open { background: rgba(255,255,255,.14); box-shadow: none; border: 1px solid rgba(255,255,255,.3); }
.cta-band .wa-link { color: #fff; opacity: 0.9; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--x-card); border: 1px solid var(--x-line); text-decoration: none; transition: transform 200ms ease; }
.post:hover { transform: translateY(-4px); }
.post__img { aspect-ratio: 16/9; overflow: hidden; background: #14103A; }
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 0.5rem; }
.post__meta { font-size: 0.8rem; color: var(--x-soft); display: flex; gap: 0.6rem; }
.post__meta b { color: var(--brand-300); font-weight: 700; }
.x-light .post__meta b, [data-light] .post__meta b { color: var(--brand); }
.post h3 { margin: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.35; }
.post p { margin: 0; color: var(--x-soft); font-size: 0.92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .clients__wall { grid-template-columns: repeat(3, 1fr); }
  .logo-tile { height: 4.2rem; }
  .svc, .posts { grid-template-columns: 1fr; }
  .svc a { min-height: 0; }
  .cta-band__box { grid-template-columns: 1fr; }
}

/* form extras: message + consent */
.form textarea { border-radius: 12px; padding: 0.7rem 0.9rem; font: 400 1rem var(--sc-font-text); resize: vertical; min-height: 3rem; }
.form .consent { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.8rem; font-weight: 400; line-height: 1.5; opacity: 0.85; }
.form .consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; flex: none; accent-color: var(--brand); padding: 0; }
.close .form textarea { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.x-light .form textarea, .close .form textarea.light { background: var(--mist); border: 1px solid #E0DEEA; color: var(--ink); }

/* quick lead form in the first screen (desktop) */
.quick { position: absolute; z-index: 3; inset-inline-end: var(--sc-gutter); bottom: clamp(3rem, 12vh, 7rem); width: min(22rem, 30vw);
  padding: 1.3rem; border-radius: 22px; display: grid; gap: 0.6rem; background: rgba(14,11,51,.86); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); color: #fff; }
.quick h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.quick p { margin: 0 0 0.2rem; font-size: 0.85rem; color: #C9C6DE; }
.quick input { height: 2.7rem; border-radius: 10px; padding: 0 0.8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font: 400 0.95rem var(--sc-font-text); }
.quick input::placeholder { color: rgba(255,255,255,.45); }
.quick .btn { height: 2.9rem; width: 100%; }
.quick .consent { display: flex; gap: 0.45rem; font-size: 0.72rem; color: #C9C6DE; line-height: 1.45; }
.quick .consent input { height: auto; width: auto; margin-top: 0.15rem; accent-color: var(--brand); }
.quick--light { background: rgba(255,255,255,.94); color: var(--ink); border-color: #E6E5EE; box-shadow: 0 40px 80px -36px rgba(8,6,44,.35); }
.quick--light p, .quick--light .consent { color: #4A4570; }
.quick--light input { background: var(--mist); border-color: #E0DEEA; color: var(--ink); }
.quick--light input::placeholder { color: #9C99B3; }
@media (max-width: 900px) { .quick { display: none; } }
.about-lead { font-size: 1.15rem !important; line-height: 1.7; }
.about-lead b { color: var(--brand); }

/* CTA band: one aligned column of equal-width actions */
.cta-band__actions { justify-self: end; width: min(100%, 19rem); justify-items: stretch; }
.cta-band__actions .btn, .cta-band__actions .chat-open { width: 100%; justify-content: center; height: 3.3rem; }
.cta-band__actions .wa-link { justify-self: center; }
@media (max-width: 900px) { .cta-band__actions { justify-self: stretch; width: 100%; } }

/* footer legal links */
.foot { flex-wrap: wrap; gap: .6rem 1.2rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; opacity: 1; }
.consent a { text-decoration: underline; text-underline-offset: .2em; }
