/* ============ Tokens ============ */
:root {
  --accent: #6B4EFF;
  --accent-2: #8A6FFF;
  --accent-soft: #EFECFF;
  --accent-softer: #F6F4FF;

  --ink-900: #1B1B2F;
  --ink-700: #3A3A55;
  --ink-500: #6B6B85;
  --ink-400: #8C8CA6;
  --ink-300: #B6B6C9;
  --ink-200: #E4E4EC;
  --ink-100: #F3F3F7;

  --surface: #FFFFFF;
  --bg: #FBFBFF;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(27, 27, 47, 0.04);
  --shadow: 0 12px 32px rgba(107, 78, 255, 0.08);
  --shadow-lg: 0 24px 64px rgba(107, 78, 255, 0.14);

  --container: 1200px;
  --gap: 24px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }

/* ============ Common ============ */
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.accent { color: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
  .section-head__right {
    max-width: 380px;
    color: var(--ink-500);
    text-align: left;
  }
}
.section-head__left { display: flex; flex-direction: column; gap: 20px; }
.section-head__right { color: var(--ink-500); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { color: var(--accent-2); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(107, 78, 255, 0.28);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(107, 78, 255, 0.34); }
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  padding-left: 8px;
}
.btn--ghost:hover { color: var(--accent); }
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.btn__play svg { width: 14px; height: 14px; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(228, 228, 236, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__tld { color: var(--ink-500); font-weight: 500; }

.nav {
  display: none;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-700);
}
.nav a { font-weight: 500; }
.nav a:hover { color: var(--accent); }

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

@media (max-width: 979px) {
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 12px; border-radius: 10px; }
  .nav a:hover { background: var(--accent-softer); }
}

/* ============ Placeholders ============ */
.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background:
    linear-gradient(135deg, var(--accent-softer), var(--accent-soft));
  border: 1px dashed rgba(107, 78, 255, 0.3);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.placeholder--hero { aspect-ratio: 1 / 1; border-radius: var(--radius-xl); }
.placeholder--icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 24px;
}
.placeholder--icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}
.placeholder--project { aspect-ratio: 16 / 11; }
.placeholder--filled {
  background: var(--accent);
  color: #fff;
  border-style: solid;
  border-color: transparent;
}
.placeholder--banner {
  aspect-ratio: 1 / 0.7;
  border-radius: var(--radius-lg);
}

/* ============ Hero ============ */
.hero { padding: 48px 0 32px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 32px; }
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
.hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero__title {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink-900);
}
.hero__sub {
  font-size: 17px;
  color: var(--ink-500);
  max-width: 440px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero__visual { display: flex; justify-content: center; }

/* Trusted by */
.trusted {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.trusted__label {
  color: var(--ink-400);
  font-size: 13px;
  font-weight: 500;
}
.trusted__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  color: var(--ink-400);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.trusted__item { opacity: 0.85; transition: opacity 0.2s; }
.trusted__item:hover { opacity: 1; color: var(--accent); }

/* ============ Services (cards) ============ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { margin-bottom: 4px; }
.card__title { font-size: 18px; font-weight: 700; color: var(--ink-900); }
.card__text { color: var(--ink-500); font-size: 14.5px; }
.card__arrow {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-softer);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.card__arrow svg { width: 16px; height: 16px; }
.card__arrow:hover { background: var(--accent); color: #fff; transform: translateX(2px); }

/* ============ Projects ============ */
.projects__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 720px) {
  .projects__row {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
  }
}
.project {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project--featured {
  background: var(--accent);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  color: #fff;
  transform: translateY(-8px);
}
@media (min-width: 720px) {
  .project--featured { transform: translateY(-12px); }
}
.project__visual { width: 100%; }
.project__meta { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px; }
.project__title { font-size: 17px; font-weight: 700; }
.project__tags { font-size: 13px; color: var(--ink-500); }
.project__meta--light .project__tags { color: rgba(255,255,255,0.78); }

.pager {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-400);
}
.pager__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-400);
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
  border: 1px solid transparent;
}
.pager__dot:hover { color: var(--accent); }
.pager__dot.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
.pager__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  border: 1px solid var(--ink-200);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pager__arrow svg { width: 16px; height: 16px; }
.pager__arrow:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-softer); }

/* ============ Process ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
  position: relative;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}
.step__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.step__title { font-size: 16px; font-weight: 700; }
.step__text { color: var(--ink-500); font-size: 13.5px; max-width: 200px; }

@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 60px;
    right: -16px;
    height: 1px;
    border-top: 1.5px dashed var(--ink-300);
  }
}

/* ============ CTA banner ============ */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) {
  .cta-banner { grid-template-columns: 1fr 1fr; padding: 64px; gap: 48px; }
}
.cta-banner__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-banner__text { color: var(--ink-500); font-size: 15.5px; }
.cta-banner__visual { width: 100%; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--ink-200);
  background: var(--surface);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.logo--footer { font-size: 17px; }
.footer__desc { color: var(--ink-500); font-size: 14px; max-width: 280px; }
.footer__title { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: var(--ink-500); font-size: 14px; }
.footer__list a:hover { color: var(--accent); }
.footer__list--contacts li { color: var(--ink-700); font-size: 14px; }

.socials { display: flex; gap: 10px; margin-top: 4px; }
.social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-softer);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.social svg { width: 16px; height: 16px; }
.social:hover { background: var(--accent); color: #fff; }

.footer__cta { align-self: flex-start; margin-top: 4px; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  text-align: center;
  color: var(--ink-400);
  font-size: 13px;
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Responsive tweaks ============ */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cta-banner { padding: 32px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}
