/* =============================================================
   Ascent Core Automations — styles.css
   Dark, futuristic theme. Tailwind handles incidental layout;
   this file owns the design system, components and motion.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --base: #070b14;
  --surface: #0c1424;
  --surface-2: #101c30;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --accent: #46c6ee;
  --accent-bright: #86dcf8;
  --accent-deep: #1b6fa6;

  --ink: #eaf1f8;
  --ink-muted: #9aafc6;
  --ink-dim: #62788f;

  --grad: linear-gradient(118deg, #1e6fa8 0%, #46c6ee 52%, #8fe2fb 100%);
  --grad-soft: linear-gradient(135deg, rgba(30, 111, 168, 0.16), rgba(70, 198, 238, 0.16));

  --container: 78rem;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Lenis owns scroll smoothing — keep CSS behaviour native so the two
   don't fight on keyboard / anchor / touchpad input. The reduced-motion
   media query below still enforces auto for users who want no animation. */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(70, 198, 238, 0.28);
  color: #fff;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #04121d;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 52rem;
}

.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(12, 20, 36, 0.55), transparent);
}

.section__head {
  max-width: 44rem;
  margin: 0 auto clamp(2.75rem, 5vw, 4.25rem);
  text-align: center;
}
.section__title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  margin-bottom: 1rem;
}
.section__intro {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section__head .eyebrow {
  justify-content: center;
}
.section__head .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Gradient text ---------- */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background layer ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(rgba(70, 198, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 198, 238, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 38%, #000 0%, transparent 78%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-orb--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(27, 111, 166, 0.55), transparent 70%);
  animation: drift1 24s ease-in-out infinite;
}
.bg-orb--2 {
  width: 460px;
  height: 460px;
  top: 38%;
  right: -160px;
  background: radial-gradient(circle, rgba(70, 198, 238, 0.34), transparent 70%);
  animation: drift2 30s ease-in-out infinite;
}
.bg-orb--3 {
  width: 600px;
  height: 600px;
  bottom: -260px;
  left: 32%;
  background: radial-gradient(circle, rgba(20, 70, 120, 0.5), transparent 70%);
  animation: drift1 36s ease-in-out infinite reverse;
}
@keyframes drift1 {
  50% {
    transform: translate(60px, 50px) scale(1.12);
  }
}
@keyframes drift2 {
  50% {
    transform: translate(-70px, -40px) scale(1.1);
  }
}

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  z-index: 120;
  box-shadow: 0 0 12px rgba(70, 198, 238, 0.6);
}

/* ---------- Cursor glow ---------- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 198, 238, 0.13), transparent 62%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.78rem;
  --btn-pad-x: 1.4rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn--sm {
  --btn-pad-y: 0.55rem;
  --btn-pad-x: 1.1rem;
  font-size: 0.88rem;
}
.btn--lg {
  --btn-pad-y: 0.95rem;
  --btn-pad-x: 1.7rem;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--grad);
  color: #04121d;
  box-shadow: 0 10px 30px -10px rgba(70, 198, 238, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(70, 198, 238, 0.75);
}
.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(70, 198, 238, 0.08);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(70, 198, 238, 0.07);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.nav__mark svg {
  width: 26px;
  height: 26px;
}
.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.nav__sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a:hover::after {
  width: 100%;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
}
.nav__toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 24px 1.5rem;
}
.mobile-menu nav a {
  padding: 0.7rem 0.25rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a:last-child {
  border-bottom: 0;
  margin-top: 0.6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px 0 100px;
  overflow: hidden;
}
#node-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 760px;
  height: 540px;
  max-width: 120vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(70, 198, 238, 0.2), transparent 68%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.35rem, 1rem + 6vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.hero__line {
  display: block;
}
.hero__word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.hero__word {
  display: inline-block;
}
.hero__lead {
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  margin-bottom: 2.2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.7rem;
  margin: 2.1rem 0 0;
}
.hero__trust li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--ink-dim);
}
.hero__trust strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero showcase: browser mockup ---------- */
.hero__showcase {
  position: relative;
  width: 100%;
  max-width: 58rem;
  margin: 3.4rem auto 0;
  perspective: 1700px;
}
.showcase__glow {
  position: absolute;
  inset: -10% -6% -18%;
  background: radial-gradient(ellipse at 50% 38%, rgba(70, 198, 238, 0.22), transparent 70%);
  z-index: -1;
}
.browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a1322;
  box-shadow: 0 44px 90px -42px rgba(0, 0, 0, 0.92);
  transform: rotateX(7deg);
  transform-origin: 50% 100%;
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  50% {
    transform: rotateX(7deg) translateY(-12px);
  }
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: #0c1626;
  border-bottom: 1px solid var(--line);
}
.browser__dots {
  display: flex;
  gap: 6px;
}
.browser__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.browser__dots i:nth-child(1) {
  background: #ff5f57;
}
.browser__dots i:nth-child(2) {
  background: #febc2e;
}
.browser__dots i:nth-child(3) {
  background: #28c840;
}
.browser__url {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  max-width: 270px;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-dim);
}
.browser__url svg {
  width: 12px;
  height: 12px;
  color: #28c840;
}
.browser__body {
  position: relative;
  padding: 18px;
  min-height: 300px;
  background: linear-gradient(180deg, #0a1322, #080f19);
}
.mock-site {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mock-nav {
  display: flex;
  align-items: center;
  gap: 11px;
}
.mock-brand {
  width: 72px;
  height: 15px;
  border-radius: 5px;
  background: var(--grad);
}
.mock-navlinks {
  flex: 1;
  max-width: 210px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.mock-pill {
  width: 66px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.mock-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 24px 2px;
}
.mock-tag {
  width: 100px;
  height: 12px;
  border-radius: 6px;
  background: rgba(70, 198, 238, 0.32);
}
.mock-head {
  width: 76%;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}
.mock-head--short {
  width: 50%;
  background: var(--grad);
}
.mock-sub {
  width: 62%;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}
.mock-cta {
  width: 122px;
  height: 32px;
  border-radius: 999px;
  background: var(--grad);
  margin-top: 5px;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.mock-cards span {
  height: 62px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.mock-chat {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: clamp(166px, 42%, 226px);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 22, 40, 0.98);
  border: 1px solid rgba(70, 198, 238, 0.32);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.92);
}
.mock-chat__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: var(--grad);
}
.mock-chat__avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}
.mock-chat__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #04121d;
}
.mock-chat__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px;
}
.mock-chat__msg {
  font-size: 0.62rem;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 9px;
  max-width: 90%;
}
.mock-chat__msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-muted);
  border-bottom-left-radius: 3px;
}
.mock-chat__msg--user {
  align-self: flex-end;
  background: rgba(70, 198, 238, 0.22);
  color: var(--accent-bright);
  border-bottom-right-radius: 3px;
}
.mock-chat__bar {
  display: flex;
  align-items: center;
  margin: 0 11px 11px;
  height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.mock-chat__bar span {
  width: 62%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
  overflow: hidden;
  background: rgba(12, 20, 36, 0.4);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__group span:not(.marquee__dot) {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0 1.6rem;
  white-space: nowrap;
}
.marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  flex-shrink: 0;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  padding: 2.1rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
/* cursor-following spotlight */
.card--spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(70, 198, 238, 0.13),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(70, 198, 238, 0.4);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.85);
}
.card:hover::before {
  opacity: 1;
}
.card:hover.card--spot::after {
  opacity: 1;
}
.card--feature {
  border-color: rgba(70, 198, 238, 0.28);
}
.card > * {
  position: relative;
  z-index: 1;
}
.card__visual {
  position: relative;
  height: 162px;
  margin-bottom: 1.4rem;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(70, 198, 238, 0.07), rgba(7, 11, 20, 0.45));
}

/* card visual — website mini window */
.cv-win {
  position: absolute;
  inset: 20px 20px -1px;
  border-radius: 9px 9px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: #0a1322;
  overflow: hidden;
}
.cv-win__bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #0c1626;
  border-bottom: 1px solid var(--line);
}
.cv-win__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.cv-win__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
}
.cv-win__row {
  display: flex;
  gap: 8px;
}
.cv-l {
  height: 9px;
  border-radius: 4px;
}
.cv-l--lg {
  width: 58%;
  background: var(--grad);
}
.cv-l--md {
  width: 40%;
  background: rgba(255, 255, 255, 0.24);
}
.cv-l--sm {
  width: 26%;
  background: rgba(255, 255, 255, 0.12);
}
.cv-win__blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.cv-win__blocks span {
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

/* card visual — chat thread */
.cv-thread {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 22px;
}
.cv-msg {
  font-size: 0.74rem;
  padding: 8px 12px;
  border-radius: 13px;
  max-width: 80%;
}
.cv-msg--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-muted);
  border-bottom-left-radius: 4px;
}
.cv-msg--out {
  align-self: flex-end;
  background: var(--grad);
  color: #04121d;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.cv-msg--type {
  display: flex;
  gap: 4px;
  padding: 11px 12px;
}
.cv-msg--type i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.3s ease-in-out infinite;
}
.cv-msg--type i:nth-child(2) {
  animation-delay: 0.16s;
}
.cv-msg--type i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes dotPulse {
  0%, 60%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* card visual — call + waveform */
.cv-call {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px;
}
.cv-call__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-call__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(70, 198, 238, 0.3);
  color: var(--accent-bright);
}
.cv-call__avatar svg {
  width: 17px;
  height: 17px;
}
.cv-call__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.cv-call__info b {
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
}
.cv-call__info i {
  font-size: 0.66rem;
  font-style: normal;
  color: var(--ink-dim);
}
.cv-call__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(40, 200, 64, 0.14);
  border: 1px solid rgba(40, 200, 64, 0.32);
  color: #4cd964;
}
.cv-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 42px;
}
.cv-wave span {
  flex: 1;
  height: 20%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  animation: cvWave 1s ease-in-out infinite;
}
.cv-wave span:nth-child(6n + 1) {
  animation-delay: -0.9s;
}
.cv-wave span:nth-child(6n + 2) {
  animation-delay: -0.25s;
}
.cv-wave span:nth-child(6n + 3) {
  animation-delay: -0.65s;
}
.cv-wave span:nth-child(6n + 4) {
  animation-delay: -1s;
}
.cv-wave span:nth-child(6n + 5) {
  animation-delay: -0.45s;
}
.cv-wave span:nth-child(6n) {
  animation-delay: -0.75s;
}
@keyframes cvWave {
  0%, 100% {
    height: 16%;
  }
  50% {
    height: 100%;
  }
}
.card__title {
  font-size: 1.32rem;
  margin-bottom: 0.6rem;
}
.card__body {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}
.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.card__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(70, 198, 238, 0.7);
}
.card__tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.card__tag--accent {
  background: rgba(70, 198, 238, 0.1);
  border-color: rgba(70, 198, 238, 0.32);
  color: var(--accent-bright);
}

/* ---------- Features (why) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.feature {
  padding: 1.7rem;
  background: rgba(12, 20, 36, 0.5);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 198, 238, 0.3);
  background: rgba(16, 28, 48, 0.7);
}
.feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(70, 198, 238, 0.09);
  color: var(--accent-bright);
  margin-bottom: 1rem;
}
.feature__icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.feature p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(70, 198, 238, 0.3);
}
.step::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.05rem;
  width: 1.3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step:last-child::before {
  display: none;
}
.step__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.92;
}
.step__title {
  font-size: 1.22rem;
  margin: 0.7rem 0 0.5rem;
}
.step__body {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.stat {
  text-align: center;
  padding: 2.3rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.stat__num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq__item[open] {
  border-color: rgba(70, 198, 238, 0.32);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--accent-bright);
}
.faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
}
.faq__icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
}
.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
}
.faq__answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.faq__answer p {
  max-width: 42rem;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__pitch .section__title {
  text-align: left;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
}
.contact__lead {
  color: var(--ink-muted);
  margin: 1.1rem 0 1.6rem;
}
.contact__points {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.contact__points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.contact__points svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact__direct {
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.contact__direct a {
  color: var(--accent-bright);
}
.contact__direct a:hover {
  text-decoration: underline;
}

/* Form */
.contact__form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: var(--base);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 198, 238, 0.15);
}
.field input.invalid,
.field textarea.invalid {
  border-color: #ef6a6a;
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 0.9rem;
  min-height: 1.2rem;
}
.form-status.ok {
  color: var(--accent-bright);
}
.form-status.err {
  color: #ef8c8c;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  background: rgba(10, 16, 28, 0.6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand .nav__brand {
  margin-bottom: 1rem;
}
.footer__tagline {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 22rem;
  margin-bottom: 1.3rem;
}
.footer__social {
  display: flex;
  gap: 0.6rem;
}
.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.footer__social a svg {
  width: 18px;
  height: 18px;
}
.footer__social a:hover {
  color: var(--accent-bright);
  border-color: rgba(70, 198, 238, 0.4);
  transform: translateY(-3px);
}
.footer__col h4 {
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-muted);
  padding: 0.32rem 0;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--accent-bright);
}
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-dim);
}
.footer__motto {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

/* ---------- AI chat assistant ---------- */
.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #04121d;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px -10px rgba(70, 198, 238, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chat-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 44px -10px rgba(70, 198, 238, 0.8);
}
.chat-launcher__icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease);
}
.chat-launcher__icon svg {
  width: 26px;
  height: 26px;
}
.chat-launcher__icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.chat-launcher--open .chat-launcher__icon--chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.chat-launcher--open .chat-launcher__icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.chat-launcher__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: chatPing 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes chatPing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 130;
  width: 374px;
  max-width: calc(100vw - 32px);
  height: 544px;
  max-height: calc(100svh - 132px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 32px 74px -24px rgba(0, 0, 0, 0.92);
  animation: chatIn 0.32s var(--ease);
}
.chat-panel[hidden] {
  display: none;
}
@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
}
.chat-panel__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  background: linear-gradient(135deg, #0e2238, #0c1626);
  border-bottom: 1px solid var(--line);
}
.chat-panel__avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(70, 198, 238, 0.1);
  border: 1px solid rgba(70, 198, 238, 0.25);
}
.chat-panel__avatar svg {
  width: 25px;
  height: 25px;
}
.chat-panel__id {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.chat-panel__id strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}
.chat-panel__id span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-dim);
}
.chat-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 8px #4cd964;
}
.chat-panel__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chat-panel__close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.chat-panel__close svg {
  width: 16px;
  height: 16px;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.chat-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.89rem;
  line-height: 1.5;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--grad);
  color: #04121d;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-msg--typing {
  display: flex;
  gap: 5px;
  padding: 13px;
}
.chat-msg--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.3s ease-in-out infinite;
}
.chat-msg--typing span:nth-child(2) {
  animation-delay: 0.16s;
}
.chat-msg--typing span:nth-child(3) {
  animation-delay: 0.32s;
}
.chat-cta {
  align-self: flex-start;
}
.chat-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border-radius: 999px;
  border: none;
  background: var(--grad);
  color: #04121d;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 9px 22px -8px rgba(70, 198, 238, 0.6);
  transition: transform 0.2s var(--ease);
}
.chat-cta__btn:hover {
  transform: translateY(-2px);
}
.chat-quick {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.chat-quick::-webkit-scrollbar {
  display: none;
}
.chat-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(70, 198, 238, 0.08);
  border: 1px solid rgba(70, 198, 238, 0.26);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
.chat-chip:hover {
  background: rgba(70, 198, 238, 0.18);
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.chat-form__input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--base);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.89rem;
}
.chat-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70, 198, 238, 0.15);
}
.chat-form__send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #04121d;
  transition: transform 0.2s var(--ease);
}
.chat-form__send:hover {
  transform: scale(1.08);
}
.chat-form__send svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 560px) {
  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }
  .chat-panel {
    right: 16px;
    bottom: 84px;
  }
}

/* ---------- Motion: pre-reveal states (only when JS+GSAP active) ---------- */
.js-motion [data-hero],
.js-motion [data-reveal],
.js-motion [data-reveal-group] > *,
.js-motion .hero__word {
  opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .cards,
  .features,
  .steps,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .step::before {
    display: none;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__pitch .section__title {
    text-align: center;
  }
  .contact__pitch {
    text-align: center;
  }
  .contact__pitch .eyebrow {
    justify-content: center;
  }
  .contact__points {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .cards,
  .features,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }
  .nav__sub {
    display: none;
  }
  .hero {
    padding-top: 116px;
  }
  .hero__stats {
    gap: 1.3rem 1.6rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bar {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .bg-orb,
  .marquee__track,
  .hero__scroll span {
    animation: none !important;
  }
  .marquee__track {
    transform: none;
  }
}
