/* NDTech — site styles (shared by / and /ru/) */

/* ---------- fonts (self-hosted, latin + cyrillic) ---------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0b0e;
  --bg-2: #0d0f13;
  --surface: #111318;
  --surface-2: #161920;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eef0f3;
  --text-2: #c3c8d0;
  --muted: #9aa1ac;
  --dim: #6d7480;
  --accent: #3e7bfa;
  --accent-hi: #8fb2ff;
  --accent-soft: rgba(62, 123, 250, 0.12);
  --accent-line: rgba(62, 123, 250, 0.45);
  --danger: #ff8a7a;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --nav-h: 68px;
  --z-nav: 60;
  --z-grain: 80;
  --z-skip: 90;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1,
h2,
h3 {
  font-family: var(--font);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--accent-hi);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #c4d5ff;
}
img,
svg {
  max-width: 100%;
}
img {
  display: block;
}
::selection {
  background: rgba(62, 123, 250, 0.32);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #08090b;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus {
  transform: none;
  color: #08090b;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.accent {
  color: var(--accent);
}

/* ---------- section heads ---------- */
main {
  counter-reset: sec;
}
.kicker {
  counter-increment: sec;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hi);
  font-weight: 500;
  margin: 0 0 18px;
}
.kicker::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--dim);
  padding-right: 10px;
  border-right: 1px solid var(--line-2);
}
.sec {
  position: relative;
  padding: 112px 0 120px;
}
.sec-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 650;
  max-width: 18ch;
}
.sec-body {
  margin-top: 56px;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 15.5px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.btn-primary {
  background: var(--accent);
  color: #070809;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 24px -12px rgba(62, 123, 250, 0.9);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  color: #070809;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 40px -14px rgba(62, 123, 250, 0.95);
}
.btn-primary:hover::after {
  transform: translateX(110%);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: #fff;
  background: rgba(62, 123, 250, 0.06);
  transform: translateY(-2px);
}
.btn .arr {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr {
  transform: translateX(3px);
}
.btn-lg {
  padding: 17px 30px;
  font-size: 16.5px;
  border-radius: 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 11, 14, 0.6);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 11, 14, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-hi));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  background: var(--accent);
  -webkit-mask: url('logo.svg') center / contain no-repeat;
  mask: url('logo.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(62, 123, 250, 0.55));
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links > a:not(.btn) {
  color: var(--muted);
  font-size: 14.5px;
  position: relative;
  font-weight: 500;
  padding: 6px 0;
}
.nav-links > a:not(.btn):hover,
.nav-links > a.is-active {
  color: #fff;
}
.nav-links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav-links > a:not(.btn):hover::after,
.nav-links > a.is-active::after {
  transform: scaleX(1);
}
.nav-links .btn {
  padding: 10px 16px;
  font-size: 14.5px;
}
.lang {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.lang a,
.lang span {
  padding: 5px 9px;
  border-radius: 7px;
  font-weight: 600;
}
.lang .on {
  background: var(--accent);
  color: #08090b;
}
.lang a {
  color: var(--muted);
}
.lang a:hover {
  color: #fff;
}
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg path {
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
  transform-origin: 12px 12px;
}
.burger[aria-expanded='true'] svg path {
  d: path('M5 5L19 19M5 19L19 5');
}
.mobile {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.4s var(--ease),
    visibility 0s linear 0.4s,
    border-color 0.3s ease;
}
.mobile > div {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}
.mobile a:not(.btn) {
  color: var(--text-2);
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile .btn {
  margin: 14px 0 20px;
}
.mobile.open {
  grid-template-rows: 1fr;
  visibility: visible;
  border-top-color: var(--line);
  transition:
    grid-template-rows 0.4s var(--ease),
    visibility 0s,
    border-color 0.3s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      600px 420px at 78% 42%,
      rgba(62, 123, 250, 0.2),
      transparent 70%
    ),
    radial-gradient(900px 500px at 10% -10%, rgba(62, 123, 250, 0.07), transparent 70%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  padding: 104px 0 112px;
  min-height: min(calc(100dvh - var(--nav-h)), 860px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}
.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: ping 2.4s var(--ease) infinite;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 .accent {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--accent-hi), var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin-top: 26px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.stat {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat > span {
  display: block;
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 4px;
  max-width: 18ch;
  line-height: 1.4;
}

/* ---------- hero diagram ---------- */
.diagram {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.diagram::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  animation: spin 80s linear infinite;
}
.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.line {
  stroke: rgba(62, 123, 250, 0.22);
  fill: none;
  transition: stroke 0.4s ease;
}
.flow {
  stroke: var(--accent-hi);
  fill: none;
  stroke-dasharray: 4 14;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: dash 1.6s linear infinite;
}
.line.is-active {
  stroke: var(--accent);
}
.flow.is-active {
  opacity: 1;
}
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 104px;
  z-index: 2;
  font: inherit;
}
.node:focus-visible {
  outline: none;
}
.node-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(180deg, #181b22, #111318);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.4s ease;
}
.node-lbl {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
  transition: color 0.3s ease;
}
.node:hover .node-ico,
.node:focus-visible .node-ico,
.node.is-active .node-ico {
  transform: translateY(-3px) scale(1.07);
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px -10px rgba(62, 123, 250, 0.8);
}
.node:hover .node-lbl,
.node.is-active .node-lbl {
  color: var(--text);
}
.ai {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.ai-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-core {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 25%, #8db0ff, var(--accent) 60%, #2a5fd6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 50px -8px rgba(62, 123, 250, 0.9);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s var(--ease);
}
.ai-core svg {
  animation: breathe 4s ease-in-out infinite;
}
.ai-ring {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 1px solid rgba(62, 123, 250, 0.4);
  animation: ripple 3.2s var(--ease) infinite;
  pointer-events: none;
}
.ai-ring + .ai-ring {
  animation-delay: 1.6s;
}
.ai-lbl {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
}
.diagram.is-pulse .ai-core,
.diagram:has(.node:hover) .ai-core {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 72px -4px rgba(62, 123, 250, 1);
  transform: scale(1.05);
}
/* hover still works without JS */
.diagram:has(.node-crm:hover) .l-crm,
.diagram:has(.node-email:hover) .l-email,
.diagram:has(.node-vt:hover) .l-vt,
.diagram:has(.node-web:hover) .l-web,
.diagram:has(.node-api:hover) .l-api {
  stroke: var(--accent);
}
.diagram:has(.node-crm:hover) .f-crm,
.diagram:has(.node-email:hover) .f-email,
.diagram:has(.node-vt:hover) .f-vt,
.diagram:has(.node-web:hover) .f-web,
.diagram:has(.node-api:hover) .f-api {
  opacity: 1;
}

/* ---------- integrations marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-lbl {
  flex: none;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.marquee-view {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.marquee-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.marquee-item:hover {
  color: var(--text);
}

/* ---------- cards & spotlight ---------- */
.card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card::before {
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(62, 123, 250, 0.09),
    transparent 45%
  );
}
.card::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(120, 160, 255, 0.7),
    transparent 60%
  );
  -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);
}
.card:hover::before,
.card:hover::after {
  opacity: 1;
}
.card:hover {
  transform: translateY(-4px);
}
.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(62, 123, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hi);
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease);
}
.card:hover .ico {
  transform: rotate(-6deg) scale(1.06);
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- problems: joined grid ---------- */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.prob-grid .card {
  border: 0;
  border-radius: 0;
  background: var(--bg-2);
  padding: 34px 32px 38px;
}
.prob-grid .card::after {
  display: none;
}
.prob-grid .card:hover {
  transform: none;
  background: #10131a;
}
.prob .ico {
  background: rgba(255, 110, 90, 0.08);
  border-color: rgba(255, 110, 90, 0.18);
  color: var(--danger);
}
.prob h3 b {
  font-weight: inherit;
}
.prob-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 17px;
  color: var(--text-2);
}
.prob-foot::before {
  content: '';
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ---------- services: bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento > .card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}
.bento > .card:nth-child(1) {
  grid-column: span 4;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(62, 123, 250, 0.12), transparent 70%),
    var(--surface);
}
.bento > .card:nth-child(1) h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}
.bento > .card:nth-child(1) dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: 28px;
  margin-top: auto;
  padding-top: 18px;
}
.bento > .card:nth-child(1) dt {
  margin-top: 0;
}
.svc dl {
  margin: 4px 0 0;
}
.svc dt,
.case-body dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-top: 16px;
}
.svc dt::before,
.case-body dt::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--dim);
}
.svc dt:nth-of-type(1)::before,
.case-body dt:nth-of-type(1)::before {
  background: var(--danger);
}
.svc dt:nth-of-type(3)::before,
.case-body dt:nth-of-type(3)::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.svc dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}
.svc dd.res,
.case-body dd.res {
  color: var(--accent-hi);
  font-weight: 500;
}

.flow-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.flow-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.flow-strip span:nth-of-type(2) {
  border-color: var(--accent-line);
  color: var(--accent-hi);
  background: var(--accent-soft);
}
.flow-strip i {
  position: relative;
  width: clamp(18px, 4vw, 48px);
  height: 1px;
  background: var(--line-2);
  overflow: hidden;
}
.flow-strip i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-hi), transparent);
  animation: stream 1.8s linear infinite;
}
.flow-strip i:nth-of-type(2)::after {
  animation-delay: 0.6s;
}
.flow-strip i:nth-of-type(3)::after {
  animation-delay: 1.2s;
}
@keyframes stream {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

/* ---------- cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.case {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.case-viz {
  position: relative;
  height: 190px;
  background-color: #0e1015;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-viz::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(62, 123, 250, 0.16), transparent);
  pointer-events: none;
}
.case-feature .case-viz {
  height: auto;
  min-height: 300px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.case-viz svg {
  position: relative;
  z-index: 1;
  width: min(78%, 280px);
  height: auto;
  overflow: visible;
}
.case-feature .case-viz svg {
  width: min(84%, 380px);
}
.case-viz circle[fill] {
  filter: drop-shadow(0 0 8px rgba(62, 123, 250, 0.9));
}
.js .case-viz .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.js .case-viz.is-drawn .draw {
  stroke-dashoffset: 0;
}
.case-viz .pulse-path {
  stroke: #cfe0ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.06 0.94;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: opacity 0.6s ease 1.2s;
  animation: travel 2.6s linear infinite;
}
.case-viz.is-drawn .pulse-path {
  opacity: 0.9;
}
.case-body {
  padding: 30px 30px 34px;
}
.case-feature .case-body {
  padding: 40px 44px 44px;
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-hi);
  font-family: var(--mono);
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
}
.case-body h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.case-feature .case-body h3 {
  font-size: clamp(24px, 2.6vw, 30px);
}
.case-body dl {
  margin: 0;
}
.case-body dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--line-2);
}
.steps::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform-origin: 0 50%;
  transform: scaleX(var(--steps, 0));
  box-shadow: 0 0 12px rgba(62, 123, 250, 0.7);
}
.step {
  position: relative;
  z-index: 1;
}
.step .num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}
.step.is-reached .num {
  color: #08090b;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px -4px rgba(62, 123, 250, 0.8);
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- stack ---------- */
.stack-group {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.stack-group:last-child {
  border-bottom: 1px solid var(--line);
}
.stack-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 8px 0 0;
}
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px 9px 11px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.25s ease,
    background 0.25s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.tile img,
.tile svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
  transition: color 0.25s ease;
}
.tile svg[fill='none'] {
  stroke: currentColor;
}
.tile .si {
  fill: currentColor;
}
.tile:hover svg {
  color: var(--accent-hi);
}
.tile span {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}
.about-figure {
  position: relative;
  margin: 0;
}
.about-figure::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(62, 123, 250, 0.7), transparent 45%);
  z-index: -1;
}
.about-figure::after {
  content: '';
  position: absolute;
  inset: 20% -10% -10% 10%;
  background: radial-gradient(closest-side, rgba(62, 123, 250, 0.25), transparent);
  z-index: -2;
  filter: blur(20px);
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0e1830;
}
.about-loc {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.about .h2 {
  margin-bottom: 26px;
}
.about p:not(.kicker) {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 62ch;
}
.about p:not(.kicker):last-of-type {
  color: var(--muted);
  font-size: 16px;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.roles li {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.roles li::before {
  content: '+ ';
  color: var(--accent);
}

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.faq-note {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
  max-width: 34ch;
}
.faq-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.45s var(--ease),
    content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  transition: color 0.2s ease;
}
.faq summary:hover {
  color: #fff;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .pl {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  color: var(--accent-hi);
  font-size: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.faq summary .pl::before,
.faq summary .pl::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq summary .pl::after {
  transform: rotate(90deg);
}
.faq details[open] summary .pl {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.faq details[open] summary .pl::after {
  transform: rotate(0deg);
}
.faq details p {
  font-size: 16px;
  color: var(--muted);
  padding: 0 52px 26px 0;
  max-width: 62ch;
}

/* ---------- contact ---------- */
.contact {
  padding-top: 64px;
  padding-bottom: 96px;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 32px;
  padding: 96px 32px;
  background:
    radial-gradient(700px 360px at 50% 110%, rgba(62, 123, 250, 0.32), transparent 70%),
    var(--surface);
}
.contact-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 75%);
}
.contact-in {
  max-width: 780px;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.contact .lead {
  margin: 0 auto 38px;
}
.contact-alt {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
}
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 30px 24px 34px;
}
.foot-in small {
  color: var(--dim);
  font-size: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}
.foot-links a {
  color: var(--muted);
}
.foot-links a:hover {
  color: #fff;
}
.soc {
  display: flex;
  gap: 10px;
}
.soc a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s ease,
    color 0.2s ease;
}
.soc a:hover {
  border-color: var(--accent-line);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.8s var(--ease),
    translate 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  translate: none;
}

/* ---------- keyframes ---------- */
@keyframes dash {
  to {
    stroke-dashoffset: -36;
  }
}
@keyframes travel {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@keyframes ripple {
  0% {
    transform: scale(0.72);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes breathe {
  50% {
    transform: scale(0.9) rotate(45deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links > a[href='#stack'],
  .nav-links > a[href='#process'] {
    display: none;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento > .card,
  .bento > .card:nth-child(1) {
    grid-column: span 1;
  }
  .bento > .card:nth-child(1) {
    grid-column: 1 / -1;
  }
  .prob-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 64px 0 72px;
    min-height: 0;
  }
  .diagram {
    max-width: 360px;
  }
  .node {
    width: 84px;
  }
  .node-ico {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
  .node-lbl {
    font-size: 10.5px;
  }
  .ai-core {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }
  .about-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-figure {
    max-width: 320px;
  }
  .faq-head {
    position: static;
  }
  .case-feature {
    grid-template-columns: 1fr;
  }
  .case-feature .case-viz {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .bento > .card:nth-child(1) dl {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .bento > .card:nth-child(1) dt {
    margin-top: 16px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }
  .steps::before,
  .steps::after {
    display: none;
  }
  .stack-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stack-title {
    margin: 0;
  }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .sec {
    padding: 76px 0 84px;
  }
  .sec-body {
    margin-top: 40px;
  }
  .wrap {
    padding: 0 20px;
  }
  .prob-grid,
  .bento,
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .prob-grid .card {
    padding: 28px 24px 30px;
  }
  .card {
    padding: 26px 22px;
  }
  .case-body,
  .case-feature .case-body {
    padding: 26px 22px 30px;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
  }
  .step .num {
    grid-row: span 2;
    margin: 0;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    padding-right: 14px;
    margin-right: 14px;
  }
  .stat b {
    font-size: 20px;
    white-space: nowrap;
  }
  .stat span {
    font-size: 12px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .marquee {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .marquee-lbl {
    padding-left: 20px;
  }
  .contact-panel {
    padding: 64px 20px;
    border-radius: 24px;
  }
  .faq details p {
    padding-right: 0;
  }
  .foot-in {
    padding: 28px 20px 32px;
  }
}
@media (max-width: 400px) {
  .diagram {
    max-width: 310px;
  }
  .node {
    width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
  .marquee-track {
    width: auto;
  }
  .marquee-set[aria-hidden] {
    display: none;
  }
  .marquee-set {
    flex-wrap: wrap;
    row-gap: 14px;
  }
}
