/* ============================================================
   Берлов Системс — AI-First Styles
   ============================================================ */

:root {
  --bg:        #04040a;
  --bg-1:      #07070f;
  --bg-2:      #0c0c18;
  --surface:   rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);

  --ai:        #a855f7;
  --ai-2:      #7c3aed;
  --cyan:      #06b6d4;
  --blue:      #3b82f6;
  --green:     #10b981;
  --amber:     #f59e0b;

  --glow-ai:   rgba(168,85,247,0.4);
  --glow-cyan: rgba(6,182,212,0.3);

  --text:      #f0f0ff;
  --text-2:    #9ca3af;
  --text-3:    #4b5563;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-h:     72px;
  --gap:       120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   UTILS
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.25s ease; white-space: nowrap;
}
.btn--glow {
  background: linear-gradient(135deg, var(--ai), var(--ai-2));
  color: #fff;
  box-shadow: 0 0 0 0 var(--glow-ai);
}
.btn--glow:hover {
  box-shadow: 0 0 32px var(--glow-ai), 0 4px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--ai); color: #d8b4fe;
  background: rgba(168,85,247,0.06);
}
.btn--full { width: 100%; justify-content: center; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 100px; margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.section-tag--ai {
  background: rgba(168,85,247,0.1);
  border-color: rgba(168,85,247,0.3);
  color: #d8b4fe;
}
.section-title {
  font-size: clamp(28px,4vw,44px); font-weight: 900;
  line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px;
}
.section-sub { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(4,4,10,0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav__container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark { display: flex; align-items: center; }
.nav__logo-text { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.nav__logo-text strong { font-weight: 800; color: var(--ai); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__cta {
  background: linear-gradient(135deg, var(--ai), var(--ai-2)) !important;
  color: #fff !important; padding: 8px 18px !important;
  border-radius: 8px !important;
}
.nav__cta:hover { box-shadow: 0 0 20px var(--glow-ai); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%);
}
#neuralCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); z-index: 0; pointer-events: none;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  top: -200px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
  bottom: 0; right: 5%;
  animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%);
  top: 40%; left: 60%;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.1); }
}

.hero__container {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px 120px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.08);
  padding: 7px 18px; border-radius: 100px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 8px var(--ai);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero__title {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 28px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero__title-line {
  display: block;
}
.hero__typewriter-wrap {
  display: block;
  min-height: 1.1em;          /* не схлопывается пока текст пустой */
  white-space: nowrap;        /* не переносит на десктопе */
  overflow: hidden;           /* обрезает если вдруг не влезет */
}
.hero__typewriter {
  background: linear-gradient(135deg, var(--ai) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__cursor {
  display: inline-block; color: var(--ai);
  animation: blink 1s step-end infinite;
  font-weight: 300; margin-left: 1px;
  background: none; -webkit-text-fill-color: var(--ai);
}

/* mobile: разрешаем перенос, увеличиваем min-height под 2 строки */
@media (max-width: 640px) {
  .hero__typewriter-wrap {
    white-space: normal;
    min-height: 2.3em;
  }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero__sub {
  font-size: clamp(16px,2vw,19px); color: var(--text-2);
  max-width: 580px; line-height: 1.7; margin-bottom: 40px;
  animation: fadeUp 0.7s ease 0.2s both;
}
.hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 80px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero__metrics {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.4s both;
}
.hero__metric { display: flex; flex-direction: column; gap: 4px; }
.hero__metric-top {
  display: flex; align-items: baseline; gap: 2px;
}
.hero__metric-val {
  font-size: 36px; font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text), #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__metric-unit {
  font-size: 26px; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text), #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__metric-label { font-size: 12px; color: var(--text-3); line-height: 1.4; max-width: 120px; }
.hero__metric-sep { width: 1px; height: 48px; background: var(--border-2); flex-shrink: 0; }

.hero__scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  animation: fadeUp 0.7s ease 0.7s both;
}
.hero__scroll-mouse {
  width: 22px; height: 36px; border: 1.5px solid var(--border-2);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll-wheel {
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--ai);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section {
  padding: var(--gap) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}

/* AI HERO CARD */
.ai-hero-card {
  position: relative; border-radius: var(--radius-xl);
  border: 1px solid rgba(168,85,247,0.25);
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(6,182,212,0.05) 100%);
  overflow: hidden; margin-bottom: 40px;
}
.ai-hero-card__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(168,85,247,0.08), transparent 70%);
}
.ai-hero-card__content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: center; padding: 56px 56px;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #d8b4fe;
  background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.3);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 24px;
}
.ai-hero-card__left h3 {
  font-size: clamp(26px,3.5vw,40px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 20px;
}
.ai-hero-card__left p {
  font-size: 15.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 28px;
}
.ai-hero-card__list { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.ai-hero-card__list li {
  font-size: 14.5px; color: var(--text-2);
  padding-left: 20px; position: relative;
}
.ai-hero-card__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ai), var(--cyan));
}

/* AI AGENT VISUAL */
.ai-hero-card__right {
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
}
.ai-agent-visual {
  position: relative; width: 320px; height: 320px;
}
.ai-agent-visual canvas { width: 100%; height: 100%; }
.ai-agent-visual__pulse {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%,-50%);
  border: 2px solid rgba(168,85,247,0.4);
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}
.ai-agent-visual__pulse::after {
  content: ''; position: absolute; inset: -20px;
  border: 1.5px solid rgba(6,182,212,0.2);
  border-radius: 50%;
  animation: ripple 2s ease-out 0.5s infinite;
}
@keyframes ripple { 0%{transform:translate(-50%,-50%) scale(1);opacity:0.8} 100%{transform:translate(-50%,-50%) scale(2.5);opacity:0} }

/* AI GRID */
.ai-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.ai-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.05s;
  transform-style: preserve-3d;
}
.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ai), var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.ai-card:hover { border-color: rgba(168,85,247,0.3); }
.ai-card:hover::before { opacity: 1; }
.ai-card__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(168,85,247,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.ai-card:hover .ai-card__glow { opacity: 1; }
.ai-card__icon { width: 44px; height: 44px; flex-shrink: 0; }
.ai-card h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.ai-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex: 1; }
.ai-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-card__tags span {
  font-size: 11px; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.2);
  color: #c4b5fd;
}

/* 3D TILT */
.tilt-card { will-change: transform; }

/* ============================================================
   CHART SECTION
   ============================================================ */
.chart-section {
  padding: var(--gap) 0;
  background: var(--bg-2);
}
.chart-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.chart-info .section-tag { margin-bottom: 16px; }
.chart-info h2 {
  font-size: clamp(24px,3.5vw,38px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 16px;
}
.chart-info p { color: var(--text-2); font-size: 15px; margin-bottom: 36px; }
.chart-metrics { display: flex; flex-direction: column; gap: 20px; }
.chart-metric__bar {
  height: 6px; border-radius: 3px;
  background: var(--surface-2); overflow: hidden; margin-bottom: 8px;
}
.chart-metric__fill {
  height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, var(--ai), var(--cyan));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(168,85,247,0.5);
}
.chart-metric__fill.animated { width: var(--pct); }
.chart-metric__info { display: flex; justify-content: space-between; align-items: center; }
.chart-metric__name { font-size: 13px; color: var(--text-2); }
.chart-metric__val { font-size: 14px; font-weight: 700; color: var(--ai); font-family: 'JetBrains Mono', monospace; }

.chart-canvas-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
}
#efficiencyChart { width: 100%; height: 280px; display: block; }
.chart-legend {
  display: flex; gap: 20px; justify-content: center; margin-top: 16px;
  font-size: 12px; color: var(--text-2);
}
.chart-legend div { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--red   { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.dot--green { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.5); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  padding: var(--gap) 0;
  background: var(--bg-1);
}
.process-flow {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.process-node {
  flex: 1; text-align: center; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative;
}
.process-node::after {
  content: ''; position: absolute;
  top: 28px; left: calc(50% + 32px); right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,85,247,0.4), transparent);
}
.process-node:last-child::after { display: none; }
.process-node__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ai); font-weight: 600; letter-spacing: 0.1em;
}
.process-node__icon {
  font-size: 32px; width: 64px; height: 64px;
  background: var(--surface); border: 1px solid rgba(168,85,247,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.process-node:hover .process-node__icon {
  border-color: var(--ai); box-shadow: 0 0 20px var(--glow-ai);
}
.process-node h4 { font-size: 15px; font-weight: 700; }
.process-node p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.process-arrow {
  color: var(--ai); font-size: 20px; opacity: 0.4;
  align-self: center; flex-shrink: 0;
  margin-top: -20px;
}

/* ============================================================
   OTHER SERVICES
   ============================================================ */
.services-section {
  padding: var(--gap) 0;
  background: var(--bg);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.service-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-3); letter-spacing: 0.1em;
}
.service-card__icon { color: var(--text-3); }
.service-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card li {
  font-size: 13.5px; color: var(--text-2);
  padding-left: 16px; position: relative;
}
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: 0.5;
}
.service-card__link {
  font-size: 14px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.service-card__link:hover { gap: 8px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
  padding: var(--gap) 0;
  background: var(--bg-1);
  position: relative; overflow: hidden;
}
.team-section::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.06), transparent 70%);
  pointer-events: none;
}
.team-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 28px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.04), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.team-card:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 0 40px rgba(168,85,247,0.08); }
.team-card:hover::before { opacity: 1; }

.team-card__avatar {
  position: relative; width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.team-card__avatar-inner {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-2), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
}
.team-card__avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(168,85,247,0.3);
  animation: spinRing 8s linear infinite;
}
.team-card__avatar-ring::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ai); margin-left: -3px;
}
@keyframes spinRing { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.team-card__role-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #d8b4fe; background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 4px 12px; border-radius: 100px;
}
.team-card__name {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3;
}
.team-card__name span { font-size: 13px; font-weight: 400; color: var(--text-3); }
.team-card__bio { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.team-card__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-card__tags span {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2);
}
.team-note {
  text-align: center; margin-top: 24px;
  font-size: 13px; color: var(--text-3); font-style: italic;
}

/* ============================================================
   TECH
   ============================================================ */
.tech-section {
  padding: var(--gap) 0;
  background: var(--bg);
}
.tech-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px;
}
.tech-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s;
}
.tech-group:hover { border-color: var(--border-2); }
.tech-group h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span {
  font-size: 12.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: default;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tech-tags span:hover {
  color: #d8b4fe; border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.06);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: var(--gap) 0;
  background: var(--bg-1);
}
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info h2 {
  font-size: clamp(26px,4vw,40px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.2; margin: 16px 0 20px;
}
.contact-info p { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
a.contact-item:hover { border-color: rgba(168,85,247,0.3); }
.contact-item__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.contact-item span { font-size: 13.5px; color: var(--text-2); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  font-size: 14.5px; color: var(--text); outline: none; resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group select option { background: var(--bg-2); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.form-note { font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.5; }

.form-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 40px 0;
}
.form-success__icon { font-size: 52px; }
.form-success h3 { font-size: 22px; font-weight: 700; }
.form-success p { color: var(--text-2); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13.5px; color: var(--text-3);
  margin-top: 14px; line-height: 1.7; max-width: 220px;
}
.footer-links h6 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.footer-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; opacity: 0.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ai-hero-card__content { grid-template-columns: 1fr; padding: 40px; }
  .ai-hero-card__right { display: none; }
  .ai-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .chart-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process-flow { flex-wrap: wrap; gap: 20px; }
  .process-node::after { display: none; }
  .process-arrow { display: none; }
}

@media (max-width: 768px) {
  :root { --gap: 72px; }

  /* Nav */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(4,4,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; gap: 4px; z-index: 99;
  }

  /* Hero */
  .hero { min-height: 100svh; min-height: 100vh; }
  .hero__container { padding: 60px 24px 100px; }
  .hero__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  .hero__metric-sep { display: none; }
  .hero__metric-val { font-size: 30px; }
  .hero__metric-unit { font-size: 22px; }

  /* AI section */
  .ai-hero-card__content { padding: 28px 24px; }
  .ai-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-node { flex: 0 0 100%; padding: 0; }

  /* Chart */
  #efficiencyChart { height: 200px; }

  /* Tech */
  .tech-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { max-width: 100%; }

  /* Form — fix iOS zoom (font-size must be ≥16px) */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  :root { --gap: 60px; }
  .hero__title { font-size: clamp(36px, 11vw, 52px); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .ai-hero-card__content { padding: 24px 20px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); }
  .container { padding: 0 16px; }
  .ai-card { padding: 24px 20px; }
  .service-card { padding: 28px 20px; }
  .team-card { padding: 28px 20px; }
}
