/* ════════════════════════════════════════════════════════════
   pro.vir.group — VIR-GROUP DEVELOPERS landing
   Темна тема, neon-blue accent, плавні анімації, mobile-first.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg: #050810;
  --bg-soft: #0a0f1e;
  --bg-card: #0e1626;
  --bg-card-hi: #131d31;
  --ink: #e7ecf5;
  --ink-soft: #99a3b8;
  --ink-muted: #5b6378;
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.14);
  --brand: #1e7bff;
  --brand-hi: #5ca0ff;
  --brand-glow: rgba(30, 123, 255, 0.45);
  --cyan: #2bd5ff;
  --grad: linear-gradient(135deg, #2bd5ff 0%, #1e7bff 55%, #6c5cff 100%);
  --shadow-1: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 18px 50px rgba(30, 123, 255, 0.35);
  --r: 14px;
  --r-lg: 22px;
  --container: 1200px;
  --section-py: clamp(64px, 9vw, 110px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 8, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 16px;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  color: #04101f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 18px var(--brand-glow);
}
.brand-text em {
  color: var(--brand-hi);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.4px;
  margin-left: 2px;
  text-transform: uppercase;
}
.brand-dot { color: var(--brand); }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { font-size: 13px; padding: 10px 18px; }
.nav-burger {
  display: none;
  background: none; border: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 22px 60px rgba(30, 123, 255, 0.55); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line-hi); }
.btn-lg { padding: 16px 28px; font-size: 15px; border-radius: 14px; }
.btn-xl { padding: 18px 34px; font-size: 16px; border-radius: 16px; }
.btn .arrow { font-weight: 700; }

.dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #29ffb8;
  box-shadow: 0 0 0 0 rgba(41, 255, 184, 0.7);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 255, 184, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(41, 255, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 255, 184, 0); }
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 70px 0 30px;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(30, 123, 255, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30, 123, 255, 0.12);
  border: 1px solid rgba(30, 123, 255, 0.25);
  color: var(--brand-hi);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.hero-title {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.65;
}
.hero-sub strong { color: var(--ink); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}
.hero-features {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.hero-features li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-features strong {
  font-size: 13px;
  color: var(--ink);
}
.hero-features span {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hero-visual { position: relative; }
.hero-card-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow-1);
  background: var(--bg-soft);
  transform: rotate(0.5deg);
  animation: float 6s ease-in-out infinite;
}
.hero-card-wrap img { display: block; width: 100%; }
.hero-card-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 123, 255, 0.3) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}
@keyframes float {
  0%, 100% { transform: rotate(0.5deg) translateY(0); }
  50% { transform: rotate(-0.5deg) translateY(-12px); }
}

.hero-marquee {
  margin-top: 60px;
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.02);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  flex-shrink: 0;
  padding-right: 28px;
}
.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 1.2px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--section-py) 0;
  z-index: 1;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(30, 123, 255, 0.04), transparent);
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(30, 123, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 123, 255, 0.12);
  border: 1px solid rgba(30, 123, 255, 0.25);
  color: var(--brand-hi);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(30, 123, 255, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 123, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card:hover::before { opacity: 1; }
.card-accent {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-hi) 100%);
  border-color: rgba(30, 123, 255, 0.3);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 123, 255, 0.12);
  color: var(--brand-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 123, 255, 0.25);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
.card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.card ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card ul li {
  font-size: 13px;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
}
.card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ─── PORTFOLIO ───────────────────────────────────────────── */
.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: block;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  overflow: hidden;
}
.portfolio-card::after {
  content: '';
  position: absolute;
  right: -30%; top: -30%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(30, 123, 255, 0.15), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 123, 255, 0.45);
}
.portfolio-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--brand-hi);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.portfolio-card h3 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.portfolio-card p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  line-height: 1.6;
}
.portfolio-link {
  color: var(--brand-hi);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portfolio-note {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ─── PROCESS ─────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ─── TEAM ────────────────────────────────────────────────── */
.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color 0.3s, background 0.3s;
}
.team-cell:hover {
  border-color: rgba(30, 123, 255, 0.35);
  background: var(--bg-card-hi);
}
.team-cell h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-hi);
}
.team-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-hi) 100%);
  border: 1px solid rgba(30, 123, 255, 0.3);
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  right: -10%; top: -30%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(30, 123, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-left h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 18px; line-height: 1.15; }
.cta-left p { color: var(--ink-soft); margin: 0 0 14px; }
.cta-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 28px !important; }
.cta-card {
  background: rgba(5, 8, 16, 0.55);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  padding: 26px;
  backdrop-filter: blur(12px);
}
.cta-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.cta-card-row:last-child { border-bottom: 0; }
.cta-card-row span { color: var(--ink-muted); }
.cta-card-row strong { color: var(--ink); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px;
  background: rgba(5, 8, 16, 0.7);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand strong { font-size: 16px; letter-spacing: 0.5px; }
.footer-brand p { color: var(--ink-muted); font-size: 13px; margin: 8px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-hi); }
.footer-meta { font-size: 13px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 6px; }
.footer-meta a:hover { color: var(--brand-hi); }

/* ─── REVEAL ANIMATION ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CHAT WIDGET ─────────────────────────────────────────── */
.chat-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 18px 50px rgba(30, 123, 255, 0.5);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab:hover { transform: scale(1.08); }
.fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(30, 123, 255, 0.6);
  animation: fab-pulse 2.4s infinite ease-out;
  pointer-events: none;
}
@keyframes fab-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 70;
}
.chat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.chat-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  max-height: 720px;
  margin: 0 18px 18px 0;
  background: var(--bg-soft);
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s, visibility 0.35s;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.chat-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 123, 255, 0.08), transparent);
}
.chat-id {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-id strong { display: block; font-size: 15px; }
.chat-status {
  font-size: 12px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #29ffb8;
  box-shadow: 0 0 8px #29ffb8;
}
.chat-close {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 28px;
  width: 36px; height: 36px;
  line-height: 1;
  border-radius: 8px;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: msg-in 0.3s ease-out;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.bot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--grad);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.sys {
  align-self: center;
  background: rgba(30, 123, 255, 0.08);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  max-width: 90%;
  text-align: center;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-hi);
  animation: typing 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px 6px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  max-height: 120px;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.chat-form textarea:focus {
  border-color: rgba(30, 123, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.chat-send {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  align-self: flex-end;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { transform: translateY(-2px); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-foot {
  padding: 4px 18px 14px;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .cards, .process, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-burger.is-open + .mobile-nav { display: flex; }
  .hero { padding: 40px 0 20px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards, .process, .team-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .cta-box { padding: 28px 22px; }
  .chat-panel { margin: 0; max-width: none; border-radius: 0; max-height: 100dvh; }
  .chat-fab { bottom: 18px; right: 18px; width: 56px; height: 56px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; }
  .container { padding: 0 18px; }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: rgba(5, 8, 16, 0.97);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 18px 24px;
  gap: 14px;
  backdrop-filter: blur(12px);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
