:root {
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --card: #151927;
  --border: #232840;
  --text: #e8eaf2;
  --muted: #9aa1b9;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

/* Animated blurred background */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; will-change: transform; }
.bg__orb--1 { width: 520px; height: 520px; background: #6c5ce7; top: -120px; left: -100px; animation: orb1 10s ease-in-out infinite; }
.bg__orb--2 { width: 460px; height: 460px; background: #00cec9; top: 30%; right: -140px; animation: orb2 13s ease-in-out infinite; }
.bg__orb--3 { width: 420px; height: 420px; background: #4834d4; bottom: -160px; left: 25%; animation: orb3 16s ease-in-out infinite; }
@keyframes orb1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(22vw, 14vh) scale(1.15); }
  66% { transform: translate(8vw, 26vh) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb2 {
  0% { transform: translate(0, 0) scale(1.1); }
  33% { transform: translate(-20vw, -12vh) scale(0.9); }
  66% { transform: translate(-10vw, 14vh) scale(1.2); }
  100% { transform: translate(0, 0) scale(1.1); }
}
@keyframes orb3 {
  0% { transform: translate(0, 0) scale(0.95); }
  33% { transform: translate(16vw, -18vh) scale(1.2); }
  66% { transform: translate(-12vw, -8vh) scale(1); }
  100% { transform: translate(0, 0) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) { .bg__orb { animation: none; } }
main, .footer { position: relative; z-index: 1; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
h3 { font-size: 1.05rem; margin-bottom: 8px; }

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent-2); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* Language switcher */
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang__link {
  padding: 6px 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang__link:hover { color: var(--text); }
.lang__link.active { background: var(--accent); color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), #8e7cf3);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35); }
.btn--small { padding: 9px 18px; font-size: 0.85rem; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { box-shadow: none; border-color: var(--accent); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(108, 92, 231, 0.18), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(0, 206, 201, 0.12), transparent);
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px; margin-bottom: 24px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 0.85rem;
  background: var(--card);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero__sub { max-width: 640px; margin: 0 auto 20px; color: var(--muted); font-size: 1.05rem; }
.hero__exp { margin-bottom: 32px; color: var(--muted); font-size: 0.95rem; }
.hero__exp strong { color: var(--text); font-weight: 700; }
.hero__exp #expYears { color: var(--accent-2); font-weight: 700; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero__tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__tags span {
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem;
}

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__sub { color: var(--muted); margin-bottom: 36px; max-width: 640px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.feature { padding: 24px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.feature p { color: var(--muted); font-size: 0.92rem; }

.steps { counter-reset: step; }
.step { position: relative; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.step p { color: var(--muted); font-size: 0.92rem; }

/* Clients */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.client {
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 220px; min-height: 104px; padding: 22px 26px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.client:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.client img { max-height: 56px; max-width: 172px; width: auto; height: auto; object-fit: contain; }

.why-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* Tools */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tool {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
}
.tool img { width: 26px; height: 26px; object-fit: contain; }

/* Form */
.form { 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.9rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea, .form select {
  padding: 13px 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 120px; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__status { min-height: 1.4em; font-size: 0.92rem; }
.form__status.ok { color: #2ecc71; }
.form__status.err { color: #ff7675; }
.form__note { color: var(--muted); font-size: 0.78rem; }

/* Contacts */
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 32px 24px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.contact-card__icon { font-size: 1.8rem; }
.contact-card__label { color: var(--muted); font-size: 0.85rem; }
.contact-card__value { font-weight: 600; }

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

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .header .btn--small { display: none; }
}
@media (max-width: 640px) {
  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }

  .burger { display: block; margin-left: auto; }
  .header .btn--small { display: none; }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; }
}