/* =========================================================
   ALXSER — Design system
   Dark premium · restrained accent · lightweight motion
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #08090b;
  --bg-2: #101216;
  --card: #171a20;
  --card-2: #1c2027;
  --border: #272b33;
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #ffffff;
  --text-2: #a1a6b0;
  --text-3: #6b717c;

  /* Accent — electric indigo, used sparingly */
  --accent: #7b7cff;
  --accent-strong: #5c5cf6;
  --accent-soft: rgba(123, 124, 255, 0.14);
  --accent-glow: rgba(110, 112, 255, 0.35);
  --ok: #4ade9b;

  /* Type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.9rem); text-wrap: balance; letter-spacing: -0.05em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); line-height: 1.55; max-width: 38em; }
.muted { color: var(--text-2); }
.grad-text {
  background: linear-gradient(180deg, #ffffff 30%, #8d929c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-text { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head h2 { margin: 18px 0 20px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin: 0 auto; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
}
.section-head--split h2 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--text); color: #0a0b0d; }
.btn--primary:hover { background: #e6e8ee; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06); }
.btn--accent { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--accent:hover { background: #6a6af8; }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: #3a3f4a; background: rgba(255, 255, 255, 0.06); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: 15px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s, gap 0.2s var(--ease);
}
.link-arrow:hover { gap: 10px; border-color: var(--text-3); }
.link-arrow svg { width: 15px; height: 15px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 46px; height: auto; }
.nav__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 49; background: rgba(8, 9, 11, 0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(130px, 18vw, 180px) 0 clamp(64px, 9vw, 110px); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero__beam {
  position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(123, 124, 255, 0.22), rgba(123,124,255,0.06) 55%, transparent 75%);
  filter: blur(20px);
}
.hero__beam::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 560px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5), transparent);
}
.hero__ring {
  position: absolute; right: -220px; top: 120px; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 0 120px rgba(123,124,255,.05);
}
.hero__ring::before, .hero__ring::after {
  content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.05);
  animation: spin 80s linear infinite;
}
.hero__ring::after { inset: 160px; border-style: solid; border-color: rgba(123,124,255,.08); animation-duration: 120s; animation-direction: reverse; }

.hero__content { text-align: center; max-width: 1100px; margin: 0 auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(23, 26, 32, 0.6); font-size: 13.5px; color: var(--text-2);
  transition: border-color .2s;
}
.hero__badge:hover { border-color: #3a3f4a; }
.hero__badge b {
  font-weight: 500; color: var(--text); background: var(--accent-soft); color: #c9caff;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-family: var(--mono); letter-spacing: .04em;
}
.hero h1 { margin: 28px 0 24px; }
.hero h1 .line { display: block; }
.hero .lead { margin: 0 auto; max-width: 40em; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__meta {
  margin-top: 26px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--accent); }

/* Hero visual — floating system canvas */
.hero-visual {
  --px: 0; --py: 0;
  position: relative; margin: clamp(56px, 8vw, 88px) auto 0; max-width: 1080px;
  perspective: 1600px;
}
.hero-visual__glow {
  position: absolute; inset: 10% 8% -6% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(123,124,255,.22), transparent 70%); filter: blur(40px);
}
.canvas {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 32, 39, 0.92), rgba(16, 18, 22, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,.02) inset, 0 1px 0 rgba(255,255,255,.08) inset;
  transform: rotateX(calc(8deg + var(--py) * -3deg)) rotateY(calc(var(--px) * 4deg));
  transform-origin: 50% 0%;
  transition: transform 0.6s var(--ease);
}
.canvas__bar {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px;
  border-bottom: 1px solid var(--border); background: rgba(8,9,11,.35);
}
.canvas__dots { display: flex; gap: 7px; }
.canvas__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b2f38; }
.canvas__title { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.canvas__title b { color: var(--text); font-weight: 500; }
.canvas__status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px;
  color: var(--ok); padding: 4px 10px; border-radius: 999px; background: rgba(74, 222, 155, .08); border: 1px solid rgba(74,222,155,.18);
}
.canvas__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }

.canvas__body { position: relative; display: grid; grid-template-columns: 1fr 270px; }
.canvas__stage {
  position: relative; aspect-ratio: 16 / 9.2;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.canvas__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: #2d323c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wire-flow {
  fill: none; stroke: url(#flowGrad); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 90 910; stroke-dashoffset: 1000; stroke-linecap: round;
  animation: flow 3.6s linear infinite;
}
.wire-flow:nth-of-type(2n) { animation-delay: -1.2s; }
.wire-flow:nth-of-type(3n) { animation-delay: -2.4s; }

.node {
  position: absolute; transform: translate(-50%, -50%); width: clamp(120px, 19%, 180px);
  padding: 12px 14px; border-radius: 12px; background: #171a20; border: 1px solid var(--border);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
  font-size: 13px; line-height: 1.3;
  transition: border-color .3s, box-shadow .3s;
}
.node__k { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.node__k i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: #22262e; color: var(--text-2); font-style: normal; }
.node__k i svg { width: 11px; height: 11px; }
.node__t { font-weight: 500; color: var(--text); }
.node__s { color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.node--ai { border-color: rgba(123,124,255,.45); box-shadow: 0 0 0 4px rgba(123,124,255,.07), 0 18px 40px -14px rgba(92,92,246,.5); }
.node--ai .node__k i { background: var(--accent-soft); color: #c9caff; }
.node.is-active { border-color: #464c58; }

.canvas__side { border-left: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: rgba(8,9,11,.25); }
.side__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.side__stat { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #14171c; }
.side__stat strong { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.side__stat span { font-size: 12px; color: var(--text-2); }
.side__bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 10px; }
.side__bars i { flex: 1; background: #2a2e37; border-radius: 2px; height: var(--h); }
.side__bars i:nth-last-child(-n+3) { background: var(--accent); opacity: .85; }
.log { font-family: var(--mono); font-size: 11px; color: var(--text-2); display: flex; flex-direction: column; gap: 7px; min-height: 120px; }
.log div { display: flex; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .5s var(--ease) both; }
.log time { color: var(--text-3); }
.log .ok { color: var(--ok); }
.log .ai { color: #b4b5ff; }

.float {
  position: absolute; z-index: 2; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(23, 26, 32, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translate3d(calc(var(--px) * var(--d, 20px)), calc(var(--py) * var(--d, 20px)), 0);
  transition: transform .6s var(--ease);
}
.float--chat { left: -64px; bottom: -64px; width: 260px; padding: 14px; --d: -26px; animation: bob 7s ease-in-out infinite; }
.float--code { right: -56px; top: -78px; width: 270px; padding: 14px 16px; --d: 22px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--text-2); }
.float--metric { right: 250px; bottom: -40px; width: 230px; padding: 14px 16px; --d: 34px; }
.float__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.float__avatar { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #8f90ff, #4a4ae0); display: grid; place-items: center; }
.float__avatar svg { width: 12px; height: 12px; color: #fff; }
.bubble { font-size: 12.5px; line-height: 1.45; padding: 9px 11px; border-radius: 10px; background: #22262e; color: var(--text); margin-top: 6px; }
.bubble--me { background: var(--accent-strong); margin-left: 30px; }
.typing { display: inline-flex; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #22262e; margin-top: 6px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.code-k { color: #b4b5ff; } .code-s { color: #9fe3c4; } .code-c { color: var(--text-3); }
.metric__row { display: flex; align-items: baseline; justify-content: space-between; }
.metric__row strong { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.metric__delta { font-family: var(--mono); font-size: 11.5px; color: var(--ok); }
.metric__spark { margin-top: 8px; height: 34px; width: 100%; }

/* =========================================================
   LOGO / STACK MARQUEE
   ========================================================= */
.trust { padding: 40px 0 clamp(70px, 9vw, 110px); }
.trust__label { text-align: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 28px; }
.marquee { position: relative; 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: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: rgba(23,26,32,.5); color: var(--text-2);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 2px; background: #3a3f4a; transform: rotate(45deg); }

/* =========================================================
   BUILDER (interactive prompt)
   ========================================================= */
.builder {
  position: relative; border-radius: 28px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #121419, #0d0f12); overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
}
.builder::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(600px 240px at 50% 0%, rgba(123,124,255,.14), transparent 70%);
}
.builder__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.builder h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 18px 0 18px; }
.prompt {
  margin-top: 30px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.prompt:focus-within { border-color: rgba(123,124,255,.6); box-shadow: 0 0 0 4px rgba(123,124,255,.12); }
.prompt input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 15.5px; height: 44px; }
.prompt input::placeholder { color: var(--text-3); }
.prompt button { width: 44px; height: 44px; border-radius: 11px; border: 0; background: var(--text); color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.prompt button:hover { transform: scale(1.05); background: #e6e8ee; }
.prompt button svg { width: 18px; height: 18px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.suggestion {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); transition: all .2s var(--ease);
}
.suggestion:hover { color: var(--text); border-color: #3a3f4a; background: rgba(255,255,255,.03); }
.suggestion[aria-pressed="true"] { color: var(--text); border-color: rgba(123,124,255,.6); background: var(--accent-soft); }

.blueprint { border-radius: 18px; border: 1px solid var(--border); background: rgba(23,26,32,.7); padding: 22px; min-height: 100%; }
.blueprint__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.blueprint__title { font-family: var(--mono); font-size: 12px; color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }
.blueprint__tag { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #c9caff; }
.blueprint__body { padding-top: 18px; display: grid; gap: 18px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.blueprint__body.is-swapping { opacity: 0; transform: translateY(6px); }
.bp-row h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.bp-row p { color: var(--text); font-size: 15px; line-height: 1.5; }
.bp-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.bp-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #12151a; border: 1px solid var(--border-soft); font-size: 14px; color: var(--text-2); }
.bp-steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 11px; color: var(--accent); }
.bp-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bp-meta div { padding: 12px; border-radius: 10px; border: 1px solid var(--border-soft); background: #12151a; }
.bp-meta strong { display: block; font-size: 17px; letter-spacing: -0.02em; font-weight: 600; }
.bp-meta span { font-size: 12px; color: var(--text-3); }

/* =========================================================
   SERVICES (bento)
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card);
  overflow: hidden; isolation: isolate;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(123,124,255,.10), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { border-color: #323742; transform: translateY(-3px); }
.card:hover::before, .card:hover::after { opacity: 1; }

.service { display: flex; flex-direction: column; min-height: 400px; }
.service--wide { grid-column: span 4; }
.service--narrow { grid-column: span 2; }
.service--third { grid-column: span 2; }
.service__visual { position: relative; flex: 1; min-height: 190px; border-bottom: 1px solid var(--border-soft); overflow: hidden; background: linear-gradient(180deg, #1a1d24, #15181d); }
.service__body { padding: 24px 26px 26px; }
.service__num { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .1em; }
.service h3 { margin: 10px 0 10px; }
.service p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service__tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }

/* mini visuals */
.mv { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; }
.mv-browser { width: 86%; max-width: 520px; border-radius: 12px; border: 1px solid var(--border); background: #0f1115; overflow: hidden; box-shadow: 0 20px 40px -20px #000; transform: translateY(20px); transition: transform .5s var(--ease); }
.card:hover .mv-browser { transform: translateY(8px); }
.mv-browser__bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--border); }
.mv-browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #2b2f38; }
.mv-browser__bar span { margin-left: 10px; flex: 1; max-width: 220px; height: 14px; border-radius: 6px; background: #1b1e24; font-family: var(--mono); font-size: 9px; color: var(--text-3); padding: 0 8px; line-height: 14px; }
.mv-browser__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 18px; }
.sk { height: 8px; border-radius: 4px; background: #22262e; margin-bottom: 8px; }
.sk--h { height: 16px; width: 85%; background: #2c313a; }
.sk--a { width: 40%; height: 22px; border-radius: 999px; background: #e9eaee; margin-top: 14px; }
.scores { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.score { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--ok);
  background: conic-gradient(var(--ok) calc(var(--v) * 1%), #23272f 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0f1115; }
.score span { position: relative; }

.mv-flow { display: flex; align-items: center; gap: 0; }
.mv-flow .pill { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: #121419; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mv-flow .pill--hl { border-color: rgba(123,124,255,.5); color: #d6d6ff; background: rgba(123,124,255,.08); }
.mv-flow .link { width: 26px; height: 1px; background: linear-gradient(90deg, #3a3f4a, #3a3f4a 50%, transparent 50%); background-size: 6px 1px; animation: dash 1s linear infinite; }
.mv-stack { display: grid; gap: 10px; width: 100%; max-width: 280px; }
.mv-stack .mv-flow { justify-content: center; }

.mv-ai { position: relative; width: 150px; height: 150px; }
.mv-ai__core { position: absolute; inset: 44px; border-radius: 18px; background: linear-gradient(145deg, #2a2b55, #15162b); border: 1px solid rgba(123,124,255,.5); display: grid; place-items: center; box-shadow: 0 0 40px rgba(123,124,255,.35); }
.mv-ai__core svg { width: 28px; height: 28px; color: #d6d6ff; }
.mv-ai__orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed #343944; animation: spin 24s linear infinite; }
.mv-ai__orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #c9caff; top: -4px; left: calc(50% - 4px); box-shadow: 0 0 10px var(--accent); }
.mv-ai__orbit--2 { inset: -26px; animation-duration: 40s; animation-direction: reverse; border-style: solid; border-color: #22262e; }
.mv-ai__orbit--2 i { background: #6b717c; box-shadow: none; }

.mv-code { width: 100%; max-width: 300px; font-family: var(--mono); font-size: 11.5px; line-height: 1.85; color: var(--text-2); }
.mv-code .ln { color: #3a3f4a; display: inline-block; width: 20px; }

.mv-chat { width: 100%; max-width: 250px; display: grid; gap: 6px; }
.mv-chat .bubble { margin: 0; max-width: 85%; font-size: 12px; }
.mv-chat .bubble--me { justify-self: end; margin: 0; }

.mv-chart { width: 100%; max-width: 520px; height: 130px; display: flex; align-items: flex-end; gap: 10px; padding: 0 10px; }
.mv-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #333844, #1f232a); height: 0; transition: height 1.2s var(--ease); }
.mv-chart i.hl { background: linear-gradient(180deg, var(--accent), rgba(92,92,246,.15)); }
.is-visible .mv-chart i { height: var(--h); }

/* =========================================================
   SOLUTIONS (alternating rows)
   ========================================================= */
.solution { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--border-soft); }
.solution:first-of-type { border-top: 0; padding-top: 0; }
.solution:nth-of-type(even) .solution__copy { order: 2; }
.solution h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 16px 0 16px; letter-spacing: -0.035em; line-height: 1.1; }
.solution p { color: var(--text-2); font-size: 16.5px; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.checks li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.proof { margin-top: 26px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); display: flex; gap: 14px; align-items: flex-start; }
.proof strong { font-size: 22px; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }
.proof span { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.solution__actions { display: flex; gap: 18px; align-items: center; margin-top: 26px; flex-wrap: wrap; }

.panel { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, #171a20, #121418); padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px 200px at 80% -10%, rgba(123,124,255,.10), transparent 70%); }
.panel__head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.panel__head b { color: var(--text); font-weight: 500; }
.panel__badge { font-family: var(--mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }

.table { position: relative; width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); white-space: nowrap; }
.table td:first-child { color: var(--text); }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.who { display: flex; align-items: center; gap: 10px; }
.who i { width: 24px; height: 24px; border-radius: 7px; background: #262a33; display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--text-2); font-weight: 600; }
.score-pill { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: #22262e; color: var(--text-2); }
.score-pill.hi { background: rgba(123,124,255,.14); color: #d0d0ff; }
.score-pill.ok { background: rgba(74,222,155,.1); color: var(--ok); }

.kanban { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kanban__col { border-radius: 12px; background: #101216; border: 1px solid var(--border-soft); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 230px; }
.kanban__col h5 { margin: 0 0 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; }
.ticket { padding: 10px; border-radius: 9px; background: #1a1d23; border: 1px solid var(--border); font-size: 12px; color: var(--text); }
.ticket small { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; }
.ticket--auto { border-color: rgba(123,124,255,.4); }
.ticket--auto small { color: #b4b5ff; }
.ticket--done small { color: var(--ok); }

.convo { position: relative; display: grid; gap: 10px; }
.convo .bubble { max-width: 80%; margin: 0; font-size: 13.5px; }
.convo .bubble--me { justify-self: end; }
.convo__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.convo__meta span { font-size: 11.5px; font-family: var(--mono); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.convo__meta span.ok { color: var(--ok); border-color: rgba(74,222,155,.25); }

.dash { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: #101216; border: 1px solid var(--border-soft); }
.kpi span { font-size: 11.5px; color: var(--text-3); }
.kpi strong { display: block; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; margin-top: 2px; }
.kpi em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ok); }
.dash__chart { grid-column: 1 / -1; height: 150px; border-radius: 12px; background: #101216; border: 1px solid var(--border-soft); padding: 12px; }
.dash__chart svg { width: 100%; height: 100%; }
.dash__line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2s var(--ease); }
.is-visible .dash__line { stroke-dashoffset: 0; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process__track { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--border); }
.process__fill { position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, transparent, var(--accent)); box-shadow: 0 0 12px var(--accent-glow); transition: width .2s linear; }
.step { position: relative; padding-top: 0; }
.step__dot { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; color: var(--text-2); transition: border-color .4s, color .4s, box-shadow .4s; }
.step.is-on .step__dot { border-color: rgba(123,124,255,.6); color: #fff; box-shadow: 0 0 0 5px rgba(123,124,255,.08); }
.step__card { margin-top: 22px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); min-height: 250px; display: flex; flex-direction: column; }
.step__when { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: .06em; }
.step h3 { margin: 10px 0 10px; font-size: 1.35rem; }
.step p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.step ul { margin: auto 0 0; padding: 16px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.step li { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #1f232a; color: var(--text-2); }

/* =========================================================
   WHY / BENEFITS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.stat { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; white-space: nowrap; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stat strong sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; margin-left: 2px; color: var(--text-2); font-weight: 500; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--text-2); }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adv { padding: 24px; }
.adv__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #1f232a; border: 1px solid var(--border); color: var(--text); margin-bottom: 18px; }
.adv__icon svg { width: 18px; height: 18px; }
.adv h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.adv p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

.compare { padding: 28px; }
.compare h3 { font-size: 1.25rem; margin-bottom: 6px; }
.compare > p { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 8px; border-bottom: 1px solid var(--border); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.compare th:nth-child(2) { color: #c9caff; }
.compare td { padding: 13px 8px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); vertical-align: top; }
.compare td:first-child { color: var(--text); }
.compare tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; }
.yes svg { width: 16px; height: 16px; color: var(--accent); }
.no svg { width: 16px; height: 16px; color: var(--text-3); }

/* =========================================================
   WORK / CASE STUDIES
   ========================================================= */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { display: flex; flex-direction: column; }
.case--feature { grid-column: span 3; display: grid; grid-template-columns: 1.15fr 1fr; }
.case__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111318; border-bottom: 1px solid var(--border-soft); }
.case--feature .case__art { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--border-soft); }
.case__art .geo { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.case:hover .case__art .geo { transform: scale(1.04); }
.case__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.case--feature .case__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.case__meta { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.case__meta span + span::before { content: "·"; margin-right: 8px; }
.case h3 { margin: 12px 0 10px; }
.case--feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.case p { color: var(--text-2); font-size: 15px; }
.case__results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.case--feature .case__results { grid-template-columns: repeat(3, 1fr); }
.case__results div { padding: 14px; border-radius: 12px; border: 1px solid var(--border-soft); background: #13161b; }
.case__results strong { display: block; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.case__results span { font-size: 12px; color: var(--text-3); }
.case .link-arrow { margin-top: auto; align-self: flex-start; }

/* Abstract geometric art (CSS only) */
.geo--a { background:
    radial-gradient(circle at 70% 40%, rgba(123,124,255,.35), transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(160deg, #15171d, #0b0c0f); }
.geo--a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(255,255,255,.12); border-radius: 40px; box-shadow: inset 0 0 60px rgba(123,124,255,.12); }
.geo--a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.geo--b { background: radial-gradient(circle at 30% 30%, rgba(74,222,155,.18), transparent 45%), linear-gradient(200deg, #14161b, #0b0c0f); }
.geo--b::before { content: ""; position: absolute; left: 50%; top: 55%; width: 220px; height: 220px; border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(from 180deg, #2a2e37, #50566394, #2a2e37); box-shadow: 0 30px 60px -20px #000, inset 0 2px 0 rgba(255,255,255,.2); }
.geo--b::after { content: ""; position: absolute; left: 50%; top: 55%; width: 320px; height: 320px; border-radius: 50%; transform: translate(-50%, -50%); border: 1px dashed rgba(255,255,255,.1); }
.geo--c { background: linear-gradient(140deg, #15171d, #0b0c0f); }
.geo--c::before { content: ""; position: absolute; inset: 22% 18%; background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 28px 28px;
  transform: perspective(500px) rotateX(55deg); mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
.geo--c::after { content: ""; position: absolute; left: 50%; top: 42%; width: 90px; height: 90px; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #8f90ff, #3b3bd0); border-radius: 16px; box-shadow: 0 0 60px rgba(123,124,255,.5); }
.case__label { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-2); padding: 5px 10px; border-radius: 999px; background: rgba(8,9,11,.6); border: 1px solid var(--border); backdrop-filter: blur(8px); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes { display: grid; gap: 16px; }
.quotes .marquee__track { animation-duration: 70s; gap: 16px; }
.quotes .marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.quote { width: min(420px, 82vw); padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: linear-gradient(135deg, #2b2f38, #1a1d23); border: 1px solid var(--border); }
.quote__who strong { display: block; font-size: 14px; font-weight: 500; }
.quote__who span { font-size: 13px; color: var(--text-3); }
.quote__stat { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #c9caff; background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--border); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .plus { border-color: rgba(123,124,255,.5); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--text-2); padding: 0 48px 26px 0; font-size: 15.5px; }

/* =========================================================
   FINAL CTA + CONTACT
   ========================================================= */
.cta { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--border); background: #0c0d10; padding: clamp(32px, 6vw, 80px); isolation: isolate; }
.cta__light { position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(123,124,255,.18), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(255,255,255,.05), transparent 70%); }
.cta__lines { position: absolute; z-index: -1; inset: 0; opacity: .6;
  background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 100%; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 18px 0 20px; }
.cta__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.cta__points li { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 15px; }
.cta__points svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cta__direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-3); }
.cta__direct a { color: var(--text); border-bottom: 1px solid var(--border); }
.cta__direct a:hover { border-color: var(--text-2); }

.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); border: 1px solid var(--border); background: rgba(23,26,32,.75); backdrop-filter: blur(10px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 15px;
  outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a1a6b0' stroke-width='1.6' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(123,124,255,.6); box-shadow: 0 0 0 4px rgba(123,124,255,.12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4535a; }
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--text-3); text-align: center; }
.form__success { display: none; text-align: center; padding: 40px 10px; }
.form__success svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--ok); }
.form__success h3 { margin-bottom: 8px; }
.form__success p { color: var(--text-2); }
.form.is-sent > :not(.form__success) { display: none; }
.form.is-sent .form__success { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(64px, 8vw, 96px) 0 36px; border-top: 1px solid var(--border-soft); margin-top: var(--section); background: var(--bg); }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer__brand p { margin-top: 18px; color: var(--text-2); font-size: 14.5px; max-width: 30ch; }
.footer h4 { font-size: 12px; font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); }
.footer__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.footer__word { margin-top: clamp(56px, 8vw, 96px); font-size: clamp(4rem, 18vw, 15rem); font-weight: 600; letter-spacing: -0.07em; line-height: .8; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: #3a3f4a; }
.socials svg { width: 16px; height: 16px; }

/* =========================================================
   MOTION
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.hero [data-reveal] { transform: translateY(16px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { background-position: 6px 0; } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .float--chat { left: -16px; }
  .float--code { right: -12px; }
  .float--metric { right: 280px; }
}
@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .canvas__body { grid-template-columns: 1fr; }
  .canvas__side { display: none; }
  .float--metric { right: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .service--wide, .service--narrow, .service--third { grid-column: span 1; }
  .service--wide { grid-column: span 2; }
  .solution, .builder__grid, .cta__grid, .faq, .why, .section-head--split { grid-template-columns: 1fr; }
  .solution:nth-of-type(even) .solution__copy { order: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__track { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .work { grid-template-columns: 1fr 1fr; }
  .case--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .case--feature .case__art { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .faq .section-head { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { text-align: left; }
  .hero__content { text-align: left; }
  .hero .lead { margin: 0; }
  .hero__actions, .hero__meta { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__ring { display: none; }
  .canvas { transform: none; }
  .canvas__stage { aspect-ratio: 4 / 4.2; }
  .node { width: 42%; padding: 10px 11px; font-size: 12px; }
  .node__s { display: none; }
  .float--chat, .float--code { display: none; }
  .float--metric { right: 12px; bottom: -30px; width: 200px; }
  .bento, .work, .advantages { grid-template-columns: 1fr; }
  .service--wide { grid-column: span 1; }
  .case--feature { grid-column: span 1; }
  .case--feature .case__results { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .step__card { min-height: 0; }
  .form__row { grid-template-columns: 1fr; }
  .bp-meta { grid-template-columns: 1fr 1fr 1fr; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .kanban__col:last-child { display: none; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .table td { white-space: normal; padding: 10px 6px; }
  .table th { padding: 8px 6px; }
  .who i { display: none; }
  .dash { grid-template-columns: 1fr 1fr; }
  .dash .kpi:nth-child(3) { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .faq details p { padding-right: 0; }
  .compare { padding: 20px; overflow-x: auto; }
  .proof { flex-direction: column; gap: 4px; }
}

/* Grid children may shrink below their content width (prevents mobile overflow) */
.cta__grid > *, .builder__grid > *, .solution > *, .faq > *, .why > *, .section-head--split > *, .case--feature > * { min-width: 0; }
.form > *, .form__row > *, .field > * { min-width: 0; }

@media (max-width: 720px) {
  .cta { padding: 28px 18px; border-radius: 24px; }
  .builder { padding: 28px 18px; }
  /* Hero canvas: stack nodes in a compact grid on phones */
  .wire, .wire-flow { display: none; }
  .canvas__stage { aspect-ratio: 1 / 1; }
  .canvas__stage .node { width: 44%; }
  .canvas__stage .node:nth-of-type(1) { left: 50% !important; top: 15% !important; }
  .canvas__stage .node:nth-of-type(2) { left: 26% !important; top: 47% !important; }
  .canvas__stage .node:nth-of-type(3) { left: 74% !important; top: 47% !important; }
  .canvas__stage .node:nth-of-type(4) { left: 26% !important; top: 80% !important; }
  .canvas__stage .node:nth-of-type(5) { left: 74% !important; top: 80% !important; }
  .float--metric { display: none; }
}

/* Contact form: honeypot, loading and error states */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #ffb4b9; background: rgba(180, 83, 90, .12); border: 1px solid rgba(180, 83, 90, .35); }
.form__error a { color: #fff; text-decoration: underline; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading svg { display: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
