/* ============================================================
   Podlevskikh Automation — engineering-grade landing
   Dark technical aesthetic. Space Grotesk / IBM Plex / JetBrains Mono
   ============================================================ */

:root {
  /* surfaces */
  --bg: #08090B;
  --bg-grid: #0B0D10;
  --elev: #101318;
  --surface: #14181E;
  --surface-2: #181D25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #EAEDF1;
  --muted: #98A2B0;
  --faint: #6A7382;

  /* accent (emerald = "it runs") — overridable via tweaks */
  --accent: #2BD68A;
  --accent-2: #19B673;
  --accent-ink: #04140D;
  --accent-glow: rgba(43, 214, 138, 0.35);
  --accent-soft: rgba(43, 214, 138, 0.10);

  /* signal */
  --danger: #FF5E62;
  --danger-soft: rgba(255, 94, 98, 0.12);
  --amber: #F5B544;

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1200px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 78% -8%, rgba(43, 214, 138, 0.08), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, rgba(60, 120, 255, 0.05), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* faint global grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}

/* ============================ Eyebrow / labels ============================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================ Buttons ============================ */
.btn {
  --pad-y: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: var(--pad-y) 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary .arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--accent); }

/* ============================ Nav ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 11, 0.86);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px var(--accent-glow);
  position: relative;
  flex: none;
}
.brand .mark svg { width: 18px; height: 18px; }
.brand small { color: var(--faint); font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; display: block; margin-top: -3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================ Hero ============================ */
.hero { position: relative; z-index: 1; padding: 64px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.status-pill b { color: var(--text); font-weight: 600; }

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(31px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  text-wrap: balance;
}
h1.hero-title em {
  font-style: normal;
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
h1.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.12em;
  background: var(--accent);
  opacity: 0.22;
  border-radius: 2px;
}
.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 24px 0 0;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.gh-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; font-family: var(--font-mono); transition: color 0.2s; }
.gh-link:hover { color: var(--text); }
.gh-link svg { width: 17px; height: 17px; }

/* hero trust row */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-trust .cell { padding: 20px 18px 20px 0; border-right: 1px solid var(--line); }
.hero-trust .cell:last-child { border-right: 0; padding-right: 0; }
.hero-trust .num { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.hero-trust .num .u { color: var(--accent); }
.hero-trust .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .hero-trust .cell:nth-child(2) { border-right: 0; }
  .hero-trust .cell:nth-child(1), .hero-trust .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================ Workflow diagram ============================ */
.flow-card {
  position: relative;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(43, 214, 138, 0.06), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.flow-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}
.flow-head .left { display: flex; align-items: center; gap: 8px; }
.flow-head .tl { width: 11px; height: 11px; border-radius: 50%; background: #2a2f38; }
.flow-head .tl:nth-child(1) { background: #ff5f57; }
.flow-head .tl:nth-child(2) { background: #febc2e; }
.flow-head .tl:nth-child(3) { background: #28c840; }
.flow-head .title { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-left: 6px; white-space: nowrap; }
.flow-state {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  flex: none;
}
.flow-state .sd { width: 7px; height: 7px; border-radius: 50%; }
.flow-state.broken { color: var(--danger); border-color: rgba(255, 94, 98, 0.4); background: var(--danger-soft); }
.flow-state.broken .sd { background: var(--danger); }
.flow-state.fixed { color: var(--accent); border-color: rgba(43, 214, 138, 0.4); background: var(--accent-soft); }
.flow-state.fixed .sd { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.flow-stage { position: relative; padding: 26px 8px 14px; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-nodes { position: relative; display: flex; flex-direction: column; gap: 16px; z-index: 2; }
.fnode {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  transition: all 0.45s var(--ease);
  position: relative;
}
.fnode .ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px; flex: none;
}
.fnode .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fnode .nm { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.fnode .ds { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 1px; }
.fnode .badge {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 8px; border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.4s;
  white-space: nowrap;
  flex: none;
}
.fnode.ok .badge { color: var(--accent); border-color: rgba(43, 214, 138, 0.35); background: var(--accent-soft); }

/* the broken node */
.fnode.target { border-color: rgba(255, 94, 98, 0.5); }
.fnode.target .ico { background: var(--danger-soft); }
.fnode.target .badge { color: var(--danger); border-color: rgba(255, 94, 98, 0.4); background: var(--danger-soft); }
.flow-stage.is-fixed .fnode.target { border-color: rgba(43, 214, 138, 0.45); box-shadow: 0 0 0 1px rgba(43, 214, 138, 0.15), 0 14px 30px -16px var(--accent-glow); }
.flow-stage.is-fixed .fnode.target .ico { background: var(--accent-soft); }
.flow-stage.is-fixed .fnode.target .badge { color: var(--accent); border-color: rgba(43, 214, 138, 0.4); background: var(--accent-soft); }

.fnode.target.shake { animation: shake 0.5s ease-in-out infinite; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* connectors */
.wire { stroke: var(--line-2); stroke-width: 2; fill: none; transition: stroke 0.4s; }
.wire.live { stroke: var(--accent); filter: drop-shadow(0 0 4px var(--accent-glow)); }
.wire.dead { stroke: var(--danger); stroke-dasharray: 5 5; }
.packet { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }

.flow-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 14px 6px 4px;
  border-top: 1px solid var(--line);
}
.flow-foot .timer { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.flow-foot .timer b { color: var(--accent); }
.flow-btn {
  font-family: var(--font-mono); font-size: 12px;
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text); cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.flow-btn:hover { border-color: var(--accent); color: var(--accent); }
.flow-btn { white-space: nowrap; }

/* ============================ Sections ============================ */
section { position: relative; z-index: 1; }
.section { padding: 96px 0; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 37px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.svc {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.svc:hover::after { opacity: 1; }
.svc .ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; font-size: 25px;
  background: var(--accent-soft);
  border: 1px solid rgba(43, 214, 138, 0.18);
  margin-bottom: 18px;
}
.svc h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 15.5px; margin-top: 9px; }
.svc .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.svc .tag::before { content: "→"; opacity: 0.7; }

/* results / case cards */
.svc .case-stat {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.svc .case-stat .big {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; letter-spacing: -0.02em; color: var(--accent);
  line-height: 1;
}
.svc .case-stat .cap { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* agencies band */
.band {
  background:
    radial-gradient(700px 300px at 85% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band .price-box {
  background: rgba(8, 9, 11, 0.5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
}
.band .price-box .big { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.band .price-box .big span { color: var(--accent); }
.band .price-box .cap { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -0.025em; line-height: 1.12; }
.band p { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.band .free {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 20px;
  font-size: 15px;
  padding: 11px 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(43, 214, 138, 0.25);
  color: var(--text);
}
.band .free b { color: var(--accent); }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 34px; gap: 28px; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; counter-reset: step; }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step .n {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--accent);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.step .n::before { content: "0" counter(step); font-size: 13px; }
.step .n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; margin-top: 9px; }
.step .arrow-link { position: absolute; top: 24px; right: 22px; color: var(--faint); font-size: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* pricing table */
.ptable {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--elev));
}
.prow {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.9fr;
  align-items: center;
  padding: 19px 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.prow:last-child { border-bottom: 0; }
.prow:hover { background: rgba(255, 255, 255, 0.02); }
.prow.head { background: rgba(255, 255, 255, 0.02); }
.prow.head div { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.prow .eng { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.prow .eng .e-ico { font-size: 18px; }
.prow .pp { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.prow .pp .fx { font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-weight: 400; display: block; }
.prow .tt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.pcompare { margin-top: 18px; color: var(--faint); font-size: 14px; text-align: center; font-family: var(--font-mono); }
.pcompare s { color: var(--danger); opacity: 0.8; }
@media (max-width: 720px) {
  .prow { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px 18px; }
  .prow .tt { grid-column: 1 / -1; }
  .prow.head { display: none; }
}

/* proof / github */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.repo {
  background: linear-gradient(180deg, var(--surface), var(--elev));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
  display: flex; flex-direction: column; gap: 9px;
}
.repo:hover { transform: translateY(-3px); border-color: var(--accent); }
.repo .top { display: flex; align-items: center; gap: 10px; }
.repo .rico { font-size: 20px; }
.repo .rname { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); word-break: keep-all; overflow-wrap: normal; }
.repo p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.repo .gh { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.repo:hover .gh { color: var(--accent); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }

/* faq */
.faq-wrap { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: var(--font-body); font-size: 18px; font-weight: 500;
  padding: 24px 48px 24px 0; position: relative;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .pm {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 8px;
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.faq-q .pm::before { width: 11px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 11px; }
.faq-item.open .faq-q .pm { border-color: var(--accent); background: var(--accent-soft); }
.faq-item.open .faq-q .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a .inner { padding: 0 48px 26px 0; color: var(--muted); font-size: 16px; }

/* contact */
.contact {
  background:
    radial-gradient(800px 400px at 50% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact .left h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -0.025em; line-height: 1.12; }
.contact .left p { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.contact .left .assure { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.contact .left .assure .a { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text); }
.contact .left .assure .a .c { color: var(--accent); width: 18px; height: 18px; flex: none; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15.5px;
  background: rgba(8, 9, 11, 0.55);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 15px;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; cursor: pointer; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .submit { margin-top: 6px; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-align: center; margin-top: 4px; }
.form-success {
  display: none; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(43, 214, 138, 0.3);
  color: var(--text); font-size: 15px;
}
.form-success.show { display: flex; }
.form-success b { color: var(--accent); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 32px; gap: 30px; } .field.row2 { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; position: relative; z-index: 1; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 14px; }
.footer .addr { color: var(--faint); font-size: 13.5px; font-family: var(--font-mono); line-height: 1.7; }
.footer .addr a { color: var(--muted); }
.footer .addr a:hover { color: var(--accent); }
.footer .cols { display: flex; gap: 56px; }
.footer .col h4, .footer .col .col-h { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.footer .col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer .col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; font-family: var(--font-mono); }

/* ============================ reveal ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; }
}

/* motion tweak: hide flowing packets + shake when disabled */
body.no-motion .packet { display: none; }
body.no-motion .fnode.target.shake { animation: none; }
body.no-motion .status-pill .dot { animation: none; }

/* ============================================================
   Mobile refinements
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  /* mobile nav is shorter (62px) — match anchor scroll offset */
  html { scroll-padding-top: 82px; }
  /* readability floor: keep content captions/labels >= 12px on mobile */
  .prow.head div, .prow .pp .fx, .repo .gh, .field label,
  .footer .col h4, .footer .col .col-h { font-size: 12px; }

  /* nav */
  .nav-inner { height: 62px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand .mark { width: 30px; height: 30px; }
  .nav-cta .btn-primary { --pad-y: 11px; padding: 11px 16px; font-size: 14.5px; }

  /* hero */
  .hero { padding: 36px 0 20px; }
  .hero-grid { gap: 34px; }
  .hero-left, .hero-right { min-width: 0; }
  .hero-trust, .hero-trust .cell { min-width: 0; }
  h1.hero-title { margin-top: 18px; }
  h1.hero-title em { white-space: normal; }
  .hero-sub { font-size: 16.5px; margin-top: 20px; }
  .hero-actions { margin-top: 26px; gap: 16px; }
  .hero-actions .btn-primary { width: 100%; justify-content: center; }
  .status-pill { white-space: normal; font-size: 12px; line-height: 1.4; }

  /* trust strip → 2x2, lighter */
  .hero-trust { margin-top: 36px; }
  .hero-trust .cell { padding: 16px 14px 16px 0; }
  .hero-trust .num { font-size: 23px; }
  .hero-trust .lbl { font-size: 12.5px; }

  /* workflow card */
  .flow-card { padding: 14px; }
  .flow-stage { padding: 20px 4px 10px; }
  .flow-nodes { gap: 13px; }
  .fnode { padding: 11px 12px; gap: 11px; }
  .fnode .ico { width: 34px; height: 34px; font-size: 16px; }
  .fnode .nm { font-size: 13.5px; }
  .fnode .ds { font-size: 10px; }
  .flow-head .title { font-size: 11px; }
  .flow-state { font-size: 10.5px; padding: 4px 9px; }

  /* section headers */
  .section-head p { font-size: 15.5px; }

  /* services / steps / proof full-width already; tighten cards */
  .services-grid { gap: 14px; margin-top: 36px; }
  .svc { padding: 22px; }
  .svc .ico { width: 46px; height: 46px; font-size: 22px; margin-bottom: 14px; }
  .svc h3 { font-size: 19px; }

  /* bands / contact padding */
  .band { padding: 26px 22px; gap: 24px; }
  .band .price-box { padding: 22px; }
  .band .price-box .big { font-size: 32px; }
  .steps { gap: 14px; margin-top: 36px; }
  .step { padding: 22px; }
  .ptable { margin-top: 34px; }
  .proof-grid { gap: 12px; margin-top: 34px; }
  .contact { padding: 26px 22px; }

  /* faq tighter */
  .faq-wrap { margin-top: 34px; }
  .faq-q { font-size: 16.5px; padding: 20px 42px 20px 0; }
  .faq-a .inner { padding-right: 42px; font-size: 15px; }

  /* footer stacks */
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer .cols { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  h1.hero-title { font-size: 27px; }
  .hero-trust .num { font-size: 21px; }
  .nav-cta .btn-primary .arrow { display: none; }
}
