/* ===== Tokens ===== */
:root {
  --bg: #0b0d0c;
  --bg-2: #101312;
  --surface: #141817;
  --surface-2: #1a1f1d;
  --line: rgba(220, 240, 220, .09);
  --line-2: rgba(220, 240, 220, .16);
  --text: #eef2ec;
  --muted: #8d978f;
  --lime: #c8f53c;
  --lime-2: #e2ff8a;
  --lime-dim: rgba(200, 245, 60, .12);
  --radius: 16px;
  --container: 1180px;
  --header-h: 68px;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* dot grid, like a workflow canvas */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(220, 240, 220, .075) 1px, transparent 0) 0 0 / 26px 26px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .5));
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--bg); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hl { color: var(--lime); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--lime); color: var(--bg); border-radius: 8px; }
.skip:focus { left: 16px; }
.br-sm { display: none; }

.label {
  margin: 0 0 16px; font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 12px;
  font: 500 16px/1 var(--font); white-space: nowrap;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--lime); color: #0b0d0c; box-shadow: 0 0 0 0 rgba(200, 245, 60, .4); }
.btn--primary:hover { background: var(--lime-2); box-shadow: 0 8px 30px -6px rgba(200, 245, 60, .45); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(11, 13, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .08em; }
.brand img { width: 28px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active:not(.nav__cta) { background: var(--surface-2); }
.nav .nav__cta { margin-left: 8px; color: var(--bg); background: var(--lime); font-weight: 500; }
.nav .nav__cta:hover { color: var(--bg); background: var(--lime-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: calc(var(--header-h) + 56px) 0 90px; min-height: min(100svh, 860px); display: flex; align-items: center; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: 40px;
  background: radial-gradient(circle, rgba(200, 245, 60, .14), transparent 62%); pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px/1 var(--mono); color: var(--muted);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 245, 60, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200, 245, 60, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(200, 245, 60, 0); } }
.hero__title { font-size: clamp(40px, 6vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 26px; }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: #c4ccc5; margin-bottom: 26px; }
.chips { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 400 13px/1.3 var(--mono); color: #b9c2ba; }
.chips li:last-child { color: var(--lime); border-color: rgba(200, 245, 60, .3); background: var(--lime-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- flow graph --- */
.graph { position: relative; aspect-ratio: 520 / 440; width: 100%; container-type: inline-size; }
.graph__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.pulses circle { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 2.6cqw 1.8cqw 1.8cqw;
  background: rgba(20, 24, 23, .92); border: 1px solid var(--line-2); border-radius: 2.8cqw;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--y) * -.05s);
}
.node b { display: block; font-size: max(11px, 2.6cqw); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.node small { display: block; white-space: nowrap; font: 400 max(9px, 2cqw)/1.3 var(--mono); color: var(--muted); }
.node__ico { flex: none; width: 6.4cqw; height: 6.4cqw; border-radius: 1.8cqw; display: grid; place-items: center; background: var(--surface-2); color: var(--lime); }
.node__ico svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node--core { padding: 2.6cqw 3.4cqw 2.6cqw 2.6cqw; border-color: rgba(200, 245, 60, .55); background: #141a10; box-shadow: 0 0 0 6px rgba(200, 245, 60, .06), 0 0 50px -8px rgba(200, 245, 60, .45); animation: none; }
.node--core img { width: 6cqw; }
.node--core b { font-size: max(13px, 3.3cqw); letter-spacing: .08em; font-weight: 700; }
.node--core small { color: var(--lime); }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 5px)); } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section--alt { background: linear-gradient(to bottom, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section__head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__sub { margin: 18px 0 0; color: var(--muted); font-size: 18px; max-width: 34em; }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 245, 60, .09), transparent 45%);
}
.card:hover { border-color: rgba(200, 245, 60, .35); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 22px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime); border: 1px solid rgba(200, 245, 60, .2); }
.card__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__ico--mono { font: 600 14px/1 var(--mono); }

/* steps — a pipeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(20, 24, 23, .6); }
.step__num { position: absolute; top: 22px; right: 24px; font: 500 13px/1 var(--mono); color: var(--muted); }
.step__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--lime); background: var(--bg); position: relative; z-index: 1; }
.step__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 20px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step--final { border: 1px solid rgba(200, 245, 60, .45); background: linear-gradient(160deg, rgba(200, 245, 60, .12), rgba(20, 24, 23, .6) 60%); }
.step--final .step__ico { background: var(--lime); color: var(--bg); border-color: var(--lime); box-shadow: 0 0 24px rgba(200, 245, 60, .5); }
.step--final .step__num { color: var(--lime); }
/* connector between neighbouring cards */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -17px; width: 18px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 3px, transparent 3px 6px); opacity: .6;
}
.step:nth-child(3n)::after { display: none; }

/* price */
.price { max-width: 880px; }
.pricelist { list-style: none; margin: 0 0 28px; padding: 8px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pricelist li { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 400; }
.pricelist li:last-child { border-bottom: 0; }
.pricelist i { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.pricelist b { font: 500 19px/1 var(--mono); color: var(--lime); white-space: nowrap; }
.pricelist small { font-size: .8em; color: var(--muted); font-weight: 400; }
.pricelist .mono { font-size: .85em; }
.consult {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid rgba(200, 245, 60, .4); background: var(--lime-dim); transition: background .3s, transform .3s var(--ease);
}
.consult:hover { background: rgba(200, 245, 60, .18); transform: translateY(-2px); }
.consult__badge { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: var(--lime); color: var(--bg); font: 600 17px/1 var(--mono); }
.consult b { display: block; font-weight: 500; font-size: 18px; }
.consult small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.consult > svg { flex: none; margin-left: auto; width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.consult:hover > svg { transform: translateX(4px); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .section__head, .contact__text { margin-bottom: 0; }
.direct { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.direct li { display: grid; gap: 2px; }
.direct .mono { font-size: 13px; }
.direct a { font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; transition: color .2s; width: fit-content; }
.direct a:hover { color: var(--lime); }

.form { padding: 0 28px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.form__bar { display: flex; align-items: center; gap: 7px; margin: 0 -28px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.form__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.form__bar span { margin-left: 10px; font-size: 13px; color: var(--muted); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.field em { color: var(--lime); font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 300 16px/1.45 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: #5c655e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 60, .12); }
.field.is-invalid input { border-color: #ff6b5e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 6px; }
.form__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.form__status { margin: 0; font: 500 14px/1.4 var(--mono); text-align: center; }
.form__status:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.form__status.is-ok { color: var(--lime); border-color: rgba(200, 245, 60, .4); }
.form__status.is-err { color: #ff8a7f; border-color: rgba(255, 107, 94, .4); }

/* clients marquee */
.clients { padding-top: clamp(40px, 5vw, 60px); padding-bottom: clamp(70px, 9vw, 110px); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.logo {
  display: grid; place-items: center; width: 240px; height: 140px; padding: 22px 30px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background .3s;
}
.logo img { max-height: 92px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.15); opacity: .7; transition: opacity .3s, filter .3s; }
.logo:hover { border-color: var(--line-2); background: var(--surface-2); }
.logo:hover img { opacity: 1; filter: grayscale(1) brightness(1.9); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__inner > p { margin: 0; font-size: 15px; }
.footer__links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--lime); }
.footer__copy { width: 100%; font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; }
  .graph { max-width: 560px; margin-inline: auto; }
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3n)::after { display: block; }
  .step:nth-child(2n)::after { display: none; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: rgba(11, 13, 12, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; }
  .header.menu-open { background: rgba(11, 13, 12, .97); border-color: var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 60px; }
  .br-sm { display: inline; }
  .node--mid, .wire--mid { display: none; }
  .hero__actions .btn { flex: 1; }
  .services, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: block !important; top: auto; bottom: -17px; right: auto; left: 47px; width: 1px; height: 18px; background: repeating-linear-gradient(180deg, var(--lime) 0 3px, transparent 3px 6px); }
  .pricelist { padding: 4px 18px; }
  .pricelist li { font-size: 16px; padding: 17px 0; gap: 10px; }
  .pricelist b { font-size: 16px; }
  .consult { padding: 16px; gap: 14px; }
  .consult__badge { width: 48px; height: 48px; font-size: 15px; }
  .consult b { font-size: 16px; }
  .consult small { font-size: 14px; }
  .consult > svg { display: none; }
  .form { padding: 0 18px 20px; }
  .form__bar { margin: 0 -18px 20px; }
  .logo { width: 190px; height: 116px; padding: 18px 22px; }
  .logo img { max-height: 76px; }
  .footer__links { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .pricelist li { flex-wrap: wrap; }
  .pricelist i { display: none; }
  .pricelist b { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .pulses { display: none; }
  .reveal { opacity: 1; transform: none; }
}
