:root {
  --bg: #0a0f1a;
  --bg-soft: #0e1524;
  --surface: #111a2c;
  --surface-2: #14203a;
  --border: rgba(255,255,255,0.08);
  --text: #eef2fb;
  --text-dim: #93a0bd;
  --accent: #00d9a3;
  --accent-2: #4f8cff;
  --accent-soft: rgba(0,217,163,0.12);
  --radius: 18px;
  --font: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #00b389);
  color: #06140f;
  box-shadow: 0 8px 24px -8px rgba(0,217,163,0.6);
}
.btn--primary:hover { box-shadow: 0 10px 30px -6px rgba(0,217,163,0.75); transform: translateY(-2px); }

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  padding: 10px 20px;
  font-size: 0.88rem;
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,15,26,0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,15,26,0.88);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06140f;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.nav { display: flex; gap: 32px; margin: 0 auto; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: -20% -10%;
  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: 46px 46px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 10%, transparent 75%);
  z-index: 0;
}
.hero__grid::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(0,217,163,0.18), transparent 60%),
              radial-gradient(500px 260px at 85% 10%, rgba(79,140,255,0.16), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0,217,163,0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,217,163,0.2); }

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 1.9rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--text-dim); max-width: 160px; }

/* ---------- Section shared ---------- */
section { position: relative; padding: 100px 0; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lead { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,217,163,0.35); background: var(--surface-2); }
.card--big { grid-column: span 3; }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card__list { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__list li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  opacity: 0.9;
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Process ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process__item {
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
}
.process__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.process__item h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.process__item p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Why ---------- */
.why { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.why__points { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.why__point {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.96rem;
}
.why__point svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

.why__visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative;
  width: 340px; height: 340px;
  display: grid; place-items: center;
}
.orbit-line {
  position: absolute; inset: 0;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.orbit-core {
  width: 118px; height: 118px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06140f;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 0 60px -10px rgba(0,217,163,0.6);
  z-index: 2;
}
.orbit-node {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 3;
}
.orbit-node--1 { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node--2 { top: 22%; right: -18px; }
.orbit-node--3 { bottom: 22%; right: -6px; }
.orbit-node--4 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node--5 { top: 22%; left: -30px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contacts ---------- */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-line {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1.05rem;
  margin-top: 18px;
  transition: color 0.2s ease;
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent); }
.contact-line:hover { color: var(--accent); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.form input, .form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__submit { margin-top: 6px; }
.form__note { font-size: 0.85rem; color: var(--accent); min-height: 1em; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,15,26,0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav--open { transform: translateY(0); opacity: 1; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card--big { grid-column: span 2; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner { grid-template-columns: 1fr; }
  .why__visual { order: -1; }
  .contacts__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .card, .card--big { grid-column: span 1; }
  .process__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .hero__stats { gap: 28px; }
}
