:root {
  --bg: #08090c;
  --bg-alt: #0b0c10;
  --card: #14161d;
  --field: #0c0d11;
  --text: #eceef4;
  --white: #fff;
  --text-2: #c3c6d2;
  --text-3: #9296a8;
  --text-hero: #9aa0b4;
  --muted: #797f92;
  --muted-2: #6b6f82;
  --muted-3: #5b5f70;
  --muted-4: #4a4d5e;
  --accent: #6C5CE7;
  --accent-light: #8b7ff0;
  --accent-hover: #a99df5;
  --accent-badge: #b3aaf5;
  --green: #4ec98a;
  --b06: rgba(255,255,255,.06);
  --b09: rgba(255,255,255,.09);
  --b10: rgba(255,255,255,.10);
  --b12: rgba(255,255,255,.12);
  --b14: rgba(255,255,255,.14);
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad-x: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; color: var(--white); }
p { margin: 0; }
input, textarea, button { font-family: var(--f-body); }
::placeholder { color: var(--muted-3); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

.kicker { font-family: var(--f-mono); color: var(--accent-light); font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--b06);
  background: rgba(8,9,12,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.logo:hover { color: var(--white); }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav { display: flex; gap: 32px; justify-content: center; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--white); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 3px; }
.lang-switch button {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 6px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3);
}
.lang-switch button.active { background: var(--accent); color: #fff; }
.burger { display: none; width: 38px; height: 34px; border: 1px solid var(--b10); border-radius: 8px; background: var(--card); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 1px; transition: transform .18s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Glow */
.glow { position: absolute; left: 50%; border-radius: 50%; pointer-events: none; }
.glow-hero {
  top: 38%; width: 720px; height: 520px;
  background: radial-gradient(circle, rgba(108,92,231,.42), transparent 62%);
  filter: blur(20px);
  transform: translate(-50%,-50%);
  animation: glowfloat 9s ease-in-out infinite;
}
.glow-contact {
  top: 0; width: 640px; height: 400px;
  background: radial-gradient(circle, rgba(108,92,231,.28), transparent 65%);
  filter: blur(24px);
  transform: translate(-50%,-50%);
}
@keyframes glowfloat {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .55; }
  50% { transform: translate(-50%,-50%) scale(1.12); opacity: .75; }
}

/* Hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: 110px var(--pad-x) 90px; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--b12); border-radius: 999px;
  padding: 8px 16px; font-family: var(--f-mono); font-size: 12.5px; color: var(--accent-badge);
  margin-bottom: 30px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: 68px; line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; margin-bottom: 24px; }
.hero-sub { color: var(--text-hero); font-size: 19px; line-height: 1.6; max-width: 52ch; margin-bottom: 38px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 15px; font-weight: 600; padding: 15px 30px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7a6bf0; color: #fff; }
.btn-secondary { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--b14); }
.btn-secondary:hover { background: rgba(255,255,255,.09); color: var(--white); border-color: rgba(255,255,255,.24); }
.stats { display: flex; justify-content: center; margin: 64px 0 0; }
.stats > div { padding: 0 44px; border-left: 1px solid var(--b10); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-family: var(--f-display); font-weight: 600; font-size: 38px; color: var(--white); letter-spacing: -.02em; }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

/* Services */
.services { padding: 40px var(--pad-x) 90px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: 40px; letter-spacing: -.02em; }
.service-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; border-bottom: 1px solid var(--b09); }
.service-list li {
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 28px;
  padding: 30px 20px; border-top: 1px solid var(--b09);
  transition: background .18s, padding-left .18s;
}
.service-list li:hover { background: rgba(108,92,231,.06); padding-left: 32px; }
.service-list .num { font-family: var(--f-display); font-weight: 600; font-size: 34px; color: var(--muted-4); }
.service-list h3 { font-size: 23px; letter-spacing: -.01em; margin-bottom: 8px; }
.service-list p { color: var(--text-3); font-size: 15.5px; line-height: 1.55; max-width: 60ch; }
.service-list .arrow { color: var(--accent); font-size: 22px; text-align: right; }

/* About */
.about { padding: 90px var(--pad-x); background: var(--bg-alt); border-top: 1px solid var(--b06); }
.about-text { max-width: 860px; margin: 0 auto; }
.about h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 22px; }
.about .p1 { color: var(--text-2); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.about .p2 { color: var(--text-3); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li { font-family: var(--f-mono); font-size: 13px; color: #c9ccd8; background: var(--card); border: 1px solid var(--b09); padding: 7px 13px; border-radius: 8px; }

/* Contact */
.contact { position: relative; overflow: hidden; text-align: center; padding: 96px var(--pad-x); border-top: 1px solid var(--b06); }
.contact-inner { position: relative; max-width: 620px; margin: 0 auto; }
.contact h2 { font-size: 36px; letter-spacing: -.02em; margin-bottom: 14px; }
.contact-sub { color: var(--text-3); font-size: 16px; margin-bottom: 36px; }
.contact-form {
  background: rgba(255,255,255,.03); border: 1px solid var(--b10); border-radius: 14px;
  padding: 32px; display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-3); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  background: var(--field); border: 1px solid var(--b10); border-radius: 9px;
  padding: 12px 14px; color: var(--text); font-size: 14.5px; outline: none; width: 100%;
  transition: border-color .15s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .invalid { border-color: #e5607a !important; }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.5; }
.contact-form .consent input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.contact-form .consent.invalid span { color: #f08da0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #f08da0; font-size: 14px; }
.btn-block { width: 100%; padding: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.thanks { background: var(--card); border: 1px solid rgba(108,92,231,.4); border-radius: 14px; padding: 44px; }
.thanks .check {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(78,201,138,.16); color: var(--green); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.thanks h3 { font-size: 22px; margin-bottom: 8px; }
.thanks p { color: var(--text-3); font-size: 15px; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad-x); border-top: 1px solid var(--b06);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted-2);
}
.footer-links { display: flex; gap: 22px; }
.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 72px var(--pad-x) 96px; line-height: 1.7; color: var(--text-2); }
.legal h1 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal .todo { background: rgba(229,96,122,.12); color: #f08da0; padding: 0 4px; border-radius: 4px; }
.back { display: inline-block; margin-bottom: 28px; font-family: var(--f-mono); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  :root { --pad-x: 28px; }
  .hero { padding-top: 80px; padding-bottom: 72px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 17px; }
  .glow-hero { width: 480px; height: 380px; }
  .stats > div { padding: 0 22px; }
  .stats dt { font-size: 30px; }
  .section-head h2 { font-size: 32px; }
  .about h2, .contact h2 { font-size: 30px; }
}
@media (max-width: 720px) {
  :root { --pad-x: 16px; }
  .site-header { grid-template-columns: 1fr auto; padding: 16px var(--pad-x); }
  .burger { display: inline-flex; }
  .nav {
    display: none; grid-column: 1 / -1; flex-direction: column; gap: 0;
    margin-top: 12px; border-top: 1px solid var(--b06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--b06); font-size: 16px; }
  .hero h1 { font-size: 40px; }
  .stats { flex-direction: column; gap: 22px; }
  .stats > div { border-left: 0; padding: 0; }
  .service-list li { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 8px; }
  .service-list li:hover { padding-left: 14px; }
  .service-list .num { font-size: 24px; align-self: start; }
  .service-list .arrow { display: none; }
  .service-list h3 { font-size: 20px; }
  .contact-form { padding: 20px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .thanks { padding: 32px 20px; }
  .legal h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow-hero { animation: none; opacity: .6; }
  .service-list li, .btn { transition: none; }
}
