:root,
[data-theme="dark"] {
  --bg: #0c0816;
  --bg-2: #161022;
  --bg-3: #1e1630;
  --glass: rgba(22, 16, 38, 0.62);
  --line: rgba(216, 180, 254, 0.14);
  --line-strong: rgba(216, 180, 254, 0.28);
  --text: #f3eefe;
  --muted: #a99bb8;
  --mute2: #7d7190;
  --accent: #c4b5fd;
  --accent-2: #818cf8;
  --neon: #d8b4fe;
  --glow: rgba(167, 139, 250, 0.55);
  --cta: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  --ok: #4ade80;
  --danger: #fb7185;
  --header: 72px;
  --max: 1120px;
  --radius: 22px;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px rgba(76, 29, 149, 0.28);
}

[data-theme="light"] {
  --bg: #f4eefc;
  --bg-2: #ffffff;
  --bg-3: #ebe3f7;
  --glass: rgba(255, 255, 255, 0.7);
  --line: rgba(91, 33, 182, 0.12);
  --line-strong: rgba(91, 33, 182, 0.22);
  --text: #1a1028;
  --muted: #5c5270;
  --mute2: #847a96;
  --accent: #6d28d9;
  --accent-2: #4f46e5;
  --neon: #7c3aed;
  --glow: rgba(124, 58, 237, 0.28);
  --cta: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --shadow: 0 24px 50px rgba(76, 29, 149, 0.12);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.fx-orb-a {
  width: 520px;
  height: 520px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 70%);
}

.fx-orb-b {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
}

.fx-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
}

#root {
  position: relative;
  z-index: 2;
}

#neon-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s;
}

#neon-cursor.is-on {
  opacity: 1;
}

.nc-glow,
.nc-ring,
.nc-dot {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.nc-glow i,
.nc-ring i,
.nc-dot i {
  display: block;
}

.nc-glow i {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(216, 180, 254, 0.5) 0%,
    rgba(129, 140, 248, 0.22) 38%,
    transparent 70%
  );
  filter: blur(6px);
  mix-blend-mode: screen;
}

[data-theme="light"] .nc-glow i {
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
}

.nc-ring i {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 254, 0.9);
  box-shadow: 0 0 10px var(--neon), 0 0 28px var(--glow), inset 0 0 10px rgba(216, 180, 254, 0.35);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.nc-dot i {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #f5f3ff;
  box-shadow: 0 0 8px #fff, 0 0 16px var(--neon), 0 0 36px var(--accent-2);
}

#neon-cursor.is-hover .nc-ring i {
  transform: scale(1.7);
  border-color: #a78bfa;
}

#neon-cursor.is-down .nc-dot i {
  transform: scale(0.55);
}

@media (pointer: coarse) {
  #neon-cursor {
    display: none;
  }
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 18px;
}

.logo-word {
  letter-spacing: -0.03em;
}

.logo-bot {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: visible;
}

.nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.avail i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: avail-blink 1.5s ease-in-out infinite;
}

@keyframes avail-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  45% {
    opacity: 0.35;
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lang {
  position: relative;
}

.lang-btn {
  min-width: 52px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-width: 88px;
  box-shadow: var(--shadow);
}

.lang.is-open .lang-menu {
  display: grid;
}

.lang-menu button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: var(--bg-3);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 0 28px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
}

main {
  min-height: calc(100vh - var(--header));
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 64px 0 48px;
  align-items: center;
}

.tag {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 48ch;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--glass);
}

.stage {
  position: relative;
  min-height: 420px;
}

.glow-core {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 40px;
  top: 40px;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(10px);
}

.bot-art {
  position: absolute;
  right: 28px;
  top: 24px;
  width: 220px;
  z-index: 1;
  filter: drop-shadow(0 0 28px var(--glow));
  animation: bot-float 4.4s ease-in-out infinite;
}

@keyframes bot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

.bot-eye-wink {
  animation: bot-wink 4.6s ease-in-out infinite;
}

@keyframes bot-wink {
  0%,
  36%,
  46%,
  100% {
    ry: 10px;
  }
  40%,
  42% {
    ry: 1.2px;
  }
}

.term {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  margin-top: 160px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.term-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.term-bar span:nth-child(2) {
  background: #fbbf24;
}

.term-bar span:nth-child(3) {
  background: #4ade80;
}

.term pre {
  margin: 0;
  padding: 16px 18px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--accent);
  white-space: pre-wrap;
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-types {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
}

.grid-types .card h3 {
  font-size: clamp(16px, 1.35vw, 20px);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.12);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
  flex: 1;
}

.more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.case-card {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.case-card .chips {
  margin-top: auto;
}

.case-cover,
.case-hero-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #2e1065, #7c3aed);
}

.case-cover {
  height: 176px;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}

.case-hero-cover {
  height: 220px;
  border-radius: 24px;
  margin-bottom: 8px;
}

.case-cover::before,
.case-cover::after,
.case-hero-cover::before,
.case-hero-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.case-cover::before,
.case-hero-cover::before {
  inset: auto -40px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  border: 16px solid rgba(255, 255, 255, 0.14);
  transform: rotate(18deg);
}

.case-cover::after,
.case-hero-cover::after {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  left: 18px;
  top: 16px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 40px rgba(196, 181, 253, 0.45);
}

.case-cover-tag {
  position: relative;
  z-index: 1;
  background: rgba(12, 8, 22, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.case-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 180px;
}

.case-card[data-slug="hog"] .case-cover,
.case-hero-cover[data-slug="hog"] {
  background: linear-gradient(145deg, #3b0764, #7c3aed 55%, #f0abfc);
}

.case-card[data-slug="memhash"] .case-cover,
.case-hero-cover[data-slug="memhash"] {
  background: linear-gradient(160deg, #1e1b4b, #4f46e5 50%, #67e8f9);
}

.case-card[data-slug="retro"] .case-cover,
.case-hero-cover[data-slug="retro"] {
  background: linear-gradient(135deg, #4a044e, #c026d3 48%, #fde68a);
}

.case-card[data-slug="autoline"] .case-cover,
.case-hero-cover[data-slug="autoline"] {
  background: linear-gradient(150deg, #172554, #2563eb 52%, #a5b4fc);
}

.case-card[data-slug="cabinet"] .case-cover,
.case-hero-cover[data-slug="cabinet"] {
  background: linear-gradient(145deg, #14532d, #16a34a 46%, #c4b5fd);
}

.case-card[data-slug="support-ai"] .case-cover,
.case-hero-cover[data-slug="support-ai"] {
  background: linear-gradient(145deg, #4c1d95, #8b5cf6 50%, #e9d5ff);
}

.blog-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.12);
}

.blog-card[hidden] {
  display: none !important;
}

.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.blog-cover {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, #4c1d95, #a78bfa);
}

.blog-card--featured .blog-cover {
  height: 100%;
  min-height: 280px;
}

.blog-cover::after {
  content: "";
  position: absolute;
  inset: -20% 20% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  border: 14px solid rgba(255, 255, 255, 0.16);
  transform: rotate(24deg);
}

.blog-cover[data-cover="admin-is-the-product"] {
  background: linear-gradient(145deg, #2e1065, #7c3aed 60%, #ddd6fe);
}

.blog-cover[data-cover="no-public-price"] {
  background: linear-gradient(150deg, #1e1b4b, #6366f1 55%, #c4b5fd);
}

.blog-cover[data-cover="rag-after-pilot"] {
  background: linear-gradient(140deg, #312e81, #8b5cf6 50%, #67e8f9);
}

.blog-cover[data-cover="telegram-is-a-product"] {
  background: linear-gradient(145deg, #0f172a, #2563eb 48%, #a5b4fc);
}

.blog-cover[data-cover="handoff-is-a-feature"] {
  background: linear-gradient(145deg, #4a044e, #c026d3 52%, #fbcfe8);
}

.blog-cover[data-cover="code-is-yours"] {
  background: linear-gradient(145deg, #14532d, #22c55e 45%, #c4b5fd);
}

.blog-cat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  background: rgba(12, 8, 22, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.blog-featured-label {
  display: none;
  margin: 0 0 10px;
}

.blog-card--featured .blog-featured-label {
  display: block;
}

.blog-body h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.blog-card--featured .blog-body h3 {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 18ch;
}

.blog-body p {
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.blog-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute2);
}

.side-box dt:first-child {
  margin-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
}

.step .n {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.quote-block blockquote {
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: 28ch;
}

.quote-block cite {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.cta-band {
  background: var(--cta);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 0 50px var(--glow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.cta-band p {
  margin: 0;
  max-width: 48ch;
  opacity: 0.9;
}

.cta-band .btn {
  background: #fff;
  color: #4c1d95;
  white-space: nowrap;
}

.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  max-width: 16ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.choice {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.choice.is-on {
  background: var(--cta);
  color: #fff;
  border-color: transparent;
}

.article {
  max-width: 70ch;
}

.article p {
  font-size: 17px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 32px;
}

.side-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  height: fit-content;
}

.side-box dt {
  color: var(--mute2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
}

.side-box dt.office-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-address {
  display: block;
  font-style: normal;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.footer-address strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.metric-row div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.metric-row b {
  font-size: 26px;
  display: block;
}

.form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form .full {
  grid-column: 1 / -1;
}

.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label.field span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute2);
  margin-bottom: 8px;
}

.form input,
.form textarea,
label.field input,
label.field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.form textarea,
label.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.success {
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 16px;
  padding: 18px;
  background: var(--bg-2);
}

.error {
  color: var(--danger);
  font-size: 14px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.person {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 140px;
  background: var(--bg-2);
}

.person .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin: 6px 0;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--text);
}

.copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.copy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.copy-links a:hover {
  color: var(--text);
}

.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-text {
  margin: 0;
  min-width: 0;
}

.cookie a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie .btn {
  flex-shrink: 0;
}

.legal {
  max-width: 68ch;
  padding: 64px 0 80px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.phase .n {
  font-family: var(--mono);
  color: var(--accent);
}

.mobile-nav {
  display: none;
}

.chat-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(16px);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--ok);
}

.chat-body {
  min-height: 220px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
}

.bubble.bot {
  background: var(--bg-3);
  align-self: flex-start;
}

.bubble.user {
  background: var(--cta);
  color: #fff;
  align-self: flex-end;
}

.chat-input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--mute2);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .grid-types {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .hero,
  .grid-4,
  .grid-types,
  .grid-3,
  .grid-2,
  .steps,
  .detail-grid,
  .metric-row,
  .facts,
  .team,
  .footer-grid,
  .values,
  .form,
  .cta-band,
  .blog-masonry,
  .blog-card--featured {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: block;
  }

  .cta-band .btn {
    margin-top: 16px;
  }

  .nav,
  .avail,
  .header-actions .btn-cta {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .term {
    margin-top: 40px;
  }

  .bot-art {
    width: 140px;
    right: 8px;
    top: 0;
  }

  .blog-card--featured .blog-cover {
    min-height: 180px;
  }

  .case-hero-cover {
    height: 140px;
  }

  .stage {
    min-height: auto;
  }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
