:root {
  --bg: #0c0e0b;
  --panel: #131611;
  --line: #262b22;
  --line-strong: #3a4133;
  --text: #ecebe3;
  --muted: #9ba08e;
  --accent: #ffd400;
  --accent-ink: #141400;
  --olive: #7d8b4a;
  --blue: #2f6fd6;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* language switching */
html[data-lang="uk"] [lang="en"],
html[data-lang="en"] [lang="uk"] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 24px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 15px/1 var(--font-body);
  text-decoration: none; border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -8px rgba(255, 212, 0, .6); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 14, 11, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 18px/1 var(--font-display); text-decoration: none; letter-spacing: .02em;
}
.logo__mark {
  width: 26px; height: 26px; border-radius: 4px;
  background: url("logo.svg") center / contain no-repeat;
}
.logo__dot { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; padding: 3px; gap: 2px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 600 12px/1 var(--font-mono); color: var(--muted); cursor: pointer;
}
.lang__opt { padding: 6px 8px; border-radius: 3px; }
html[data-lang="uk"] .lang__opt[data-for="uk"],
html[data-lang="en"] .lang__opt[data-for="en"] { background: var(--text); color: var(--bg); }

/* hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  background-color: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 25% 30%, transparent, var(--bg) 85%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--font-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 28px;
}
.blink { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
h1 { font-size: clamp(34px, 5.6vw, 72px); font-weight: 900; text-transform: uppercase; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: #cfd1c4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__viz { margin: 0; position: relative; }
.viz { width: 100%; max-width: 460px; margin-left: auto; overflow: visible; }
.viz .grid-lines line { stroke: var(--line-strong); stroke-dasharray: 4 6; }
.viz .print * {
  fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.6, 0, .3, 1) forwards;
}
.viz .print .accent { stroke: var(--accent); }
.viz .dim { opacity: 0; animation: fade 1s 2s forwards; }
.viz .dim line { stroke: var(--olive); stroke-width: 1; }
.viz .dim path { fill: var(--olive); }
.viz .dim text { fill: var(--muted); font: 400 12px var(--font-mono); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.viz .scan {
  stroke: var(--accent); stroke-width: 1.5;
  filter: drop-shadow(0 0 6px var(--accent));
  animation: scan 4s linear infinite;
}
@keyframes scan { from { transform: translateY(20px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(380px); opacity: 0; } }
.specs {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px;
  font: 400 11px/1 var(--font-mono); color: var(--muted);
}
.specs span { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); }
.specs__ok { color: var(--accent); border-color: var(--accent) !important; }

.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 8vw, 96px) 0 0;
  border-top: 1px solid var(--line-strong);
}
.stats > div { padding: 28px 24px 32px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font: 700 clamp(32px, 4vw, 48px)/1 var(--font-display); color: var(--text); }
.stats dt small { font-size: .5em; margin-left: 2px; color: var(--muted); }
.stats > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.stats dt { grid-row: 2; }
.stats dd { grid-row: 3; }
.stats dd:first-child { grid-row: 1; }
.stats dd:first-child { margin: 0 0 10px; }
.stats dd {  margin: 10px 0 0; font: 400 13px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* sections */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); }
.section__head { margin-bottom: 48px; max-width: 720px; }
.eyebrow { font: 600 13px/1 var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; }
.section__head .muted { margin-top: 20px; font-size: 17px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .section__head { margin-bottom: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 28px 24px 32px; min-height: 220px; display: flex; flex-direction: column; transition: background .2s; }
.card:hover { background: #161a13; }
.card__code { font: 400 12px/1 var(--font-mono); color: var(--olive); margin-bottom: auto; padding-bottom: 32px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }
.card--accent { background: var(--accent); color: var(--accent-ink); }
.card--accent:hover { background: #ffdc2e; }
.card--accent .card__code, .card--accent p { color: rgba(20, 20, 0, .7); }

/* production */
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px/1 var(--font-mono); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 3px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { padding: 18px 0; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.spec th { font: 400 13px/1.6 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; width: 45%; padding-right: 16px; }
.spec td { font-weight: 700; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line-strong); }

/* pricing */
.price { display: flex; align-items: baseline; gap: 14px; margin: 36px 0 8px; }
.price__num { font: 900 clamp(96px, 13vw, 168px)/.85 var(--font-display); color: var(--accent); letter-spacing: -0.04em; }
.price__from, .price__unit { font: 600 clamp(16px, 1.6vw, 20px)/1 var(--font-mono); color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.price__cta { margin-top: 32px; }
.factors__title { font: 600 13px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.factors { list-style: none; padding: 0; margin: 0; counter-reset: f; border-top: 1px solid var(--line-strong); }
.factors li {
  counter-increment: f; position: relative;
  padding: 26px 0 26px 56px; border-bottom: 1px solid var(--line-strong);
}
.factors li::before { content: "0" counter(f); position: absolute; left: 0; top: 30px; font: 600 14px/1 var(--font-mono); color: var(--accent); }
.factors h3 { font-size: 20px; margin-bottom: 8px; }
.factors p { color: var(--muted); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 24px; border-top: 2px solid var(--line-strong); position: relative; }
.steps li::before {
  content: "0" counter(step);
  display: block; font: 900 40px/1 var(--font-display); color: var(--accent); margin-bottom: 20px;
}
.steps li:first-child { border-top-color: var(--accent); }
.steps h3 { font-size: 18px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* audiences */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience { padding: 28px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.audience h3 { font-size: 17px; margin-bottom: 12px; }
.audience p { font-size: 14px; color: var(--muted); }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px; font: 400 16px/1.4 var(--font-body); color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 212, 0, .15); }
.form input[type="date"] { color-scheme: dark; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 8px; padding: 18px; }
.contacts { list-style: none; padding: 0; margin: 32px 0 0; }
.contacts li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts span { font: 400 13px/1.6 var(--font-mono); color: var(--muted); text-transform: uppercase; }
.contacts a { font-weight: 700; text-decoration: none; }
.contacts a:hover { color: var(--accent); }

/* faq */
details { border-bottom: 1px solid var(--line-strong); }
details:first-of-type { border-top: 1px solid var(--line-strong); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--font-mono); color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .viz .print * { stroke-dashoffset: 0; }
  .viz .dim { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .audiences { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__viz { max-width: 260px; margin: 0 auto; }
  .specs { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cards, .steps, .audiences { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .logo { font-size: 16px; }
  .nav__inner { gap: 12px; }
  .stats > div { padding-right: 12px; }
  .stats > div + div { padding-left: 12px; }
  .stats > div:nth-child(3) { padding-left: 0; }
}

/* manifesto */
.manifesto { background:
  radial-gradient(80% 60% at 100% 0%, rgba(255, 212, 0, .06), transparent 60%), var(--bg); }
.manifesto .section__head { max-width: 900px; }
.manifesto__title { font-size: clamp(32px, 5vw, 64px); font-weight: 900; text-transform: uppercase; }
.manifesto__title em { font-style: normal; color: var(--accent); }
.principles { list-style: none; padding: 0; margin: 0; counter-reset: pr; border-top: 1px solid var(--line-strong); }
.principles li {
  counter-increment: pr;
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line-strong);
}
.principles li::before { content: "0" counter(pr); font: 600 14px/1 var(--font-mono); color: var(--accent); }
.principles h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
.principles p { color: var(--muted); font-size: 16px; }
.rule {
  margin-top: 56px; padding: clamp(24px, 4vw, 40px);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 212, 0, .08), rgba(255, 212, 0, .02));
}
.rule h3 { font-size: clamp(22px, 2.8vw, 34px); max-width: 24em; margin-bottom: 16px; }
.rule p { color: #cfd1c4; max-width: 52em; font-size: 17px; }
.rule b { color: var(--text); }
.audience--no { border-style: dashed; background: transparent; }
.audience--no h3 { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--muted); }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font: 400 14px/1.5 var(--font-body); color: var(--text); cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

@media (max-width: 860px) {
  .principles li { grid-template-columns: 1fr; gap: 10px; }
}
