/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08090d;
  --bg-alt: #0c0e15;
  --surface: #12141c;
  --surface-2: #171a24;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f2f3f7;
  --text-dim: #a6a9b8;
  --text-faint: #6c6f80;
  --accent: #2657ff;
  --accent-2: #5b8cff;
  --accent-grad: linear-gradient(135deg, #2657ff 0%, #5b9bff 100%);
  --success: #4ade80;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --container: 1160px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-alt: #eef0f7;
    --surface: #ffffff;
    --surface-2: #f4f5fa;
    --border: rgba(15,17,26,0.08);
    --border-strong: rgba(15,17,26,0.14);
    --text: #14151c;
    --text-dim: #4d505f;
    --text-faint: #8a8d9c;
    --shadow: 0 20px 50px rgba(20,21,28,0.08);
  }
}

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

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

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-1 { width: 560px; height: 560px; background: #2657ff; top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.glow-2 { width: 480px; height: 480px; background: #5b9bff; top: 20%; right: -160px; opacity: 0.22; animation: drift2 26s ease-in-out infinite alternate; }

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 40px) scale(1.08); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #08090d;
  box-shadow: 0 8px 24px rgba(124,92,255,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,92,255,0.45); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease, padding .25s ease;
}
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(8,9,13,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .header.is-scrolled { background: rgba(246,247,251,0.8); }
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: 0.2px; }
.logo__text em { font-style: normal; color: var(--text-dim); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  transition: color .18s ease; position: relative; padding-bottom: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Language switch ---------- */
.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 126px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.lang-switch__indicator {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(33.333% - 2px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--accent-grad);
  transition: transform .3s cubic-bezier(.65,0,.35,1);
}
.lang-switch__btn {
  position: relative;
  z-index: 1;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s ease;
}
.lang-switch__btn.is-active { color: #ffffff; }

.burger { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 101; position: relative; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 90;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 0 56px;
  text-align: center;
  display: flex;
  align-items: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero__inner > .reveal:nth-child(1) { transition-delay: .05s; }
.hero__inner > .reveal:nth-child(2) { transition-delay: .18s; }
.hero__inner > .reveal:nth-child(3) { transition-delay: .31s; }

.hero__title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 920px;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 640px;
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.4px; margin-bottom: 14px; }
.section__desc { color: var(--text-dim); font-size: 16.5px; }

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

/* ---------- Service cards ---------- */
.card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.step__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step__text { color: var(--text-dim); font-size: 14px; }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124,92,255,0.10), var(--surface) 40%);
  box-shadow: 0 20px 60px rgba(124,92,255,0.18);
}
.plan__ribbon {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--accent-grad);
  color: #08090d;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan__name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.plan__desc { color: var(--text-faint); font-size: 14px; margin-bottom: 22px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.plan__amount { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.plan__period { color: var(--text-faint); font-size: 14px; font-weight: 600; }
.plan__list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan__list li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 26px;
  position: relative;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(124,92,255,0.15);
  background-image: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(92,225,255,0.25));
}
.plan__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8.5px;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--accent-2);
  border-bottom: 1.6px solid var(--accent-2);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-2);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin-top: 12px; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact__info .section__title, .contact__info .section__desc { text-align: left; }
.contact__info .eyebrow { display: block; }
.contact__info .section__desc { max-width: 460px; margin-bottom: 32px; }

.contact__list { display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list strong { display: block; font-size: 13px; color: var(--text-faint); font-weight: 700; }
.contact__list a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  transition: color .18s ease;
}
.contact__list a:hover { color: var(--accent-2); }
.contact__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-2);
  flex-shrink: 0;
}
.contact__icon svg { width: 19px; height: 19px; }

.contact__form-wrap {
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__group label { font-size: 13.5px; font-weight: 700; color: var(--text-dim); }
.form__group input, .form__group select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__group input::placeholder { color: var(--text-faint); }
.form__group input:focus, .form__group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}
.form__group.has-error input { border-color: var(--danger); }
.form__error { font-size: 12.5px; color: var(--danger); min-height: 15px; }
.form__note { font-size: 12.5px; color: var(--text-faint); text-align: center; }
.form__status { text-align: center; font-size: 14.5px; font-weight: 700; min-height: 20px; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: var(--text-faint); width: 100%; text-align: center; margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .btn--sm { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 12px; right: 12px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 2px;
    animation: navDrop .28s cubic-bezier(.2,.8,.2,1);
  }
  .nav.is-open .nav__link {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    transition: background .18s ease, color .18s ease;
  }
  .nav.is-open .nav__link::after { display: none; }
  .nav.is-open .nav__link:hover,
  .nav.is-open .nav__link:active { background: var(--surface-2); color: var(--text); }
  .nav.is-open .nav__link.is-active { background: var(--surface-2); }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .grid--3, .steps { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 72px; }
  .section { padding: 76px 0; }
  .contact__form-wrap { padding: 24px; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .lang-switch { width: 108px; }
  .lang-switch__btn { font-size: 11px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .glow-1, .glow-2 { animation: none; }
  .reveal { transition: none; }
}
