/* ═══════════════════════════════════════════════════════════
   Maxim Osipov — App & System Development
   Dark, animated landing page. No external dependencies.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #07080c;
  --bg-2:      #0a0c13;
  --surface:   rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.085);
  --line-2:    rgba(255, 255, 255, 0.16);

  --text:      #eef0f6;
  --text-2:    #a7adc0;
  --muted:     #767d92;

  --accent:    #7c5cff;
  --accent-2:  #22d3ee;
  --accent-3:  #a3e635;
  --accent-ink:#0a0713;

  --radius:    18px;
  --radius-lg: 26px;
  --shell:     1180px;

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: rgba(124, 92, 255, .38); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
}
.shell-narrow { max-width: 880px; }

/* ─────────────── Ambience: grain, aurora, progress ─────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  will-change: transform;
}
.blob-1 {
  width: 620px; height: 620px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(124, 92, 255, .85), transparent 66%);
  animation: drift-1 26s var(--ease) infinite alternate;
}
.blob-2 {
  width: 540px; height: 540px;
  top: 4%; right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 66%);
  animation: drift-2 32s var(--ease) infinite alternate;
}
.blob-3 {
  width: 700px; height: 700px;
  top: 46%; left: 32%;
  background: radial-gradient(circle, rgba(124, 92, 255, .3), transparent 68%);
  animation: drift-3 38s var(--ease) infinite alternate;
  opacity: .34;
}

@keyframes drift-1 {
  to { transform: translate3d(140px, 120px, 0) scale(1.18); }
}
@keyframes drift-2 {
  to { transform: translate3d(-160px, 180px, 0) scale(1.12); }
}
@keyframes drift-3 {
  to { transform: translate3d(-120px, -140px, 0) scale(1.24); }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(124, 92, 255, .8);
  transition: width .1s linear;
}

/* ─────────────── Buttons ─────────────── */

.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn .arrow {
  transition: transform .35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, #8b6bff, #6b4cf0 46%, #4f3ad9);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8),
              inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .38), transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover {
  box-shadow: 0 16px 40px -10px rgba(124, 92, 255, .95),
              inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-ghost {
  background: rgba(255, 255, 255, .022);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .06);
}

.btn-sm  { padding: 10px 18px; font-size: 14px; }
.btn-lg  { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ─────────────── Nav ─────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 8, 12, .72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), #4f3ad9);
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .9),
              inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b  { font-size: 15px; font-weight: 620; letter-spacing: -0.02em; }
.brand-text em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.6px;
  margin: 3.5px auto;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-2.6px) rotate(-45deg); }

/* ─────────────── Hero ─────────────── */

.hero {
  position: relative;
  padding: clamp(60px, 9vw, 116px) 0 clamp(60px, 8vw, 104px);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: -74px 0 auto 0;
  height: 780px;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 58% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 58% at 50% 30%, #000 25%, transparent 78%);
}

.hero-inner {
  max-width: 940px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, .7);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.hero-title {
  margin-top: 30px;
  font-size: clamp(40px, 7.2vw, 82px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.grad {
  background: linear-gradient(96deg, #a78bff 4%, #22d3ee 52%, #a3e635 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.grad-soft {
  background: linear-gradient(96deg, #b9a6ff, #7cd9ec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin-top: 26px;
  font-size: clamp(16.5px, 1.5vw, 19.5px);
  color: var(--text-2);
  line-height: 1.66;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 38px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(130deg, var(--accent), var(--accent-2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 2.5px var(--bg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stat {
  padding: 24px 22px;
  background: rgba(10, 12, 19, .74);
  backdrop-filter: blur(10px);
  transition: background .4s var(--ease);
}
.stat:hover { background: rgba(20, 22, 34, .86); }
.stat b {
  display: block;
  font-size: 40px;
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(150deg, #fff, #b3a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ─────────────── Marquee ─────────────── */

.marquee-wrap {
  position: relative;
  z-index: 1;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 19, .5);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, .34);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee-track span:hover { color: rgba(255, 255, 255, .9); }
.marquee-track i {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  opacity: .6;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ─────────────── Section scaffolding ─────────────── */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(31px, 4.4vw, 52px);
}
.section-lede {
  margin-top: 20px;
  font-size: 17.5px;
  color: var(--text-2);
  line-height: 1.66;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ─────────────── Cards / services ─────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9);
}

.card-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(124, 92, 255, .22), transparent 68%);
  transition: opacity .45s var(--ease);
}
.card:hover .card-glow { opacity: 1; }

.svc-num {
  display: block;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: .1em;
  color: var(--accent);
  opacity: .85;
}
.svc h3 {
  margin: 14px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.svc p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.62;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.tags li {
  padding: 4.5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .028);
  font-size: 12.2px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

/* ─────────────── Projects ─────────────── */

.section-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .05), transparent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.filter b {
  font-size: 11.5px;
  font-weight: 600;
  opacity: .55;
}
.filter:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.filter.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, #8b6bff, #5b41e4);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .9);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: p;
}

.project {
  display: grid;
  grid-template-columns: 62px 1fr 150px;
  gap: 22px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: transform .45s var(--ease), border-color .45s var(--ease),
              background .45s var(--ease), box-shadow .45s var(--ease);
}
.project:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, .42);
  background: linear-gradient(180deg, rgba(124, 92, 255, .085), rgba(255, 255, 255, .014));
  box-shadow: 0 28px 64px -34px rgba(0, 0, 0, .95);
}
.project.is-hidden { display: none; }

.p-index {
  font-size: 13px;
  font-weight: 640;
  letter-spacing: .06em;
  color: var(--muted);
  padding-top: 4px;
  transition: color .45s var(--ease);
}
.project:hover .p-index { color: var(--accent-2); }

.p-body header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.p-body h3 {
  font-size: 24px;
  letter-spacing: -0.033em;
}
.p-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.p-body p {
  margin-top: 13px;
  max-width: 66ch;
  font-size: 15.2px;
  color: var(--text-2);
  line-height: 1.62;
}

.p-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}
.chip-ecommerce { color: #c3b2ff; border-color: rgba(124, 92, 255, .4); background: rgba(124, 92, 255, .1); }
.chip-health    { color: #8fe9f5; border-color: rgba(34, 211, 238, .34);  background: rgba(34, 211, 238, .09); }
.chip-edtech    { color: #cfe98a; border-color: rgba(163, 230, 53, .32);  background: rgba(163, 230, 53, .08); }
.chip-consumer  { color: #ffc9a8; border-color: rgba(255, 154, 106, .32); background: rgba(255, 154, 106, .09); }
.chip-social    { color: #f6b9e4; border-color: rgba(240, 130, 205, .32); background: rgba(240, 130, 205, .09); }
.chip-multi     { color: var(--text-2); border-color: var(--line-2); background: rgba(255, 255, 255, .04); }

.projects-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

/* ─────────────── Process steps ─────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.step-n {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, .38);
  background: rgba(124, 92, 255, .13);
  font-size: 14px;
  font-weight: 620;
  color: #c3b2ff;
}
.step h3 { font-size: 17.5px; letter-spacing: -0.025em; }
.step p {
  margin-top: 10px;
  font-size: 14.4px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─────────────── Why ─────────────── */

.section-why { border-top: 1px solid var(--line); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-copy h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 46px);
}
.why-copy > p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.66;
}

.quote {
  margin: 28px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  background: linear-gradient(100deg, rgba(124, 92, 255, .09), transparent 70%);
}
.quote p {
  font-size: 16.4px;
  line-height: 1.62;
  color: var(--text);
}
.quote footer {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.quote footer b { color: var(--text-2); font-weight: 600; }

.why-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
}
.why-list li {
  padding: 22px 24px;
  background: rgba(10, 12, 19, .8);
  transition: background .4s var(--ease);
}
.why-list li:hover { background: rgba(22, 24, 38, .92); }
.why-list b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.why-list span {
  display: block;
  margin-top: 6px;
  font-size: 14.4px;
  color: var(--text-2);
  line-height: 1.58;
}

/* ─────────────── Stack grid ─────────────── */

.section-stack { padding-top: 0; }

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.stack-grid span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 520;
  color: var(--text-2);
  transition: all .3s var(--ease);
}
.stack-grid span:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, .5);
  background: rgba(124, 92, 255, .12);
  color: #fff;
}

/* ─────────────── Timeline ─────────────── */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 5px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, .5), transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: start;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 13px; left: -25px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
}
.tl-date {
  padding-top: 4px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.tl-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tl-card:hover {
  border-color: var(--line-2);
  transform: translateX(4px);
}
.tl-card h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
.tl-card h3 em {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}
.tl-card p {
  margin-top: 10px;
  font-size: 14.8px;
  color: var(--text-2);
  line-height: 1.62;
}

/* ─────────────── FAQ ─────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.faq details[open] {
  border-color: rgba(124, 92, 255, .38);
  background: linear-gradient(180deg, rgba(124, 92, 255, .075), rgba(255, 255, 255, .012));
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-size: 16.6px;
  font-weight: 560;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.8px solid var(--text-2);
  border-bottom: 1.8px solid var(--text-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
  border-color: var(--accent-2);
}
.faq details > div { overflow: hidden; }
.faq details > div > p {
  padding: 0 24px 22px;
  font-size: 15.4px;
  color: var(--text-2);
  line-height: 1.66;
}

/* ─────────────── Contact ─────────────── */

.section-contact { padding-bottom: clamp(72px, 9vw, 120px); }

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  padding: clamp(32px, 4.6vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: 30px;
  background:
    radial-gradient(900px circle at 8% -20%, rgba(124, 92, 255, .2), transparent 60%),
    radial-gradient(700px circle at 100% 120%, rgba(34, 211, 238, .13), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%);
}

.cta-copy h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.5vw, 42px);
}
.cta-copy > p {
  margin-top: 20px;
  font-size: 16.6px;
  color: var(--text-2);
  line-height: 1.66;
}

.cta-contacts {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.cta-contacts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 15.4px;
}
.cta-contacts span {
  min-width: 78px;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-contacts a, .cta-contacts b {
  font-weight: 560;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.cta-contacts a:hover {
  color: #c3b2ff;
  border-bottom-color: rgba(124, 92, 255, .6);
}
.cta-contacts b { border: 0; font-weight: 500; color: var(--text-2); }

.cta-form { display: grid; gap: 14px; align-content: start; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 12.6px;
  font-weight: 560;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 4, 8, .55);
  color: var(--text);
  font: inherit;
  font-size: 15.4px;
  transition: border-color .3s var(--ease), background .3s var(--ease),
              box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #5c6379; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, .7);
  background: rgba(6, 7, 14, .8);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
}
.field.has-error input,
.field.has-error textarea { border-color: rgba(255, 108, 108, .7); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.7px solid var(--text-2);
  border-bottom: 1.7px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: #0d0f18; color: var(--text); }

.form-note {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.form-note.is-ok { color: var(--accent-3); }
.form-note.is-err { color: #ff8f8f; }

/* ─────────────── Footer ─────────────── */

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 10, .6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 34px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.footer-brand b { display: block; font-size: 15px; font-weight: 620; letter-spacing: -0.02em; }
.footer-brand em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal {
  color: #5f6579;
  letter-spacing: .002em;
}

/* ─────────────── Reveal animation ─────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ─────────────── Responsive ─────────────── */

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { grid-template-columns: 1fr; gap: 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 46px 1fr; }
  .p-side { grid-column: 2; justify-content: flex-start; margin-top: -4px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { padding-inline: 20px; }

  .nav-links {
    position: absolute;
    top: 74px; left: 20px; right: 20px;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 10, 16, .96);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .3s var(--ease);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 15.5px; }
  .nav-toggle { display: block; }
  .nav .btn-primary { display: none; }

  .hero { padding-top: 46px; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .stat b { font-size: 32px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .timeline { padding-left: 22px; }
  .tl-item::before { left: -21px; }
  .project { padding: 24px 22px; }
  .p-body h3 { font-size: 21px; }
  .marquee-track span { font-size: 18px; }
  .quote { padding: 20px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ─────────────── Reduced motion ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
