/* ============================================================
   TFT Computers — design tokens
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-deep: #06091a;
  --ink: #0a1124;
  --ink-2: #1a2342;
  --ink-mute: #5a6480;
  --ink-faint: #8a93ac;
  --line: rgba(10, 17, 36, 0.08);
  --line-strong: rgba(10, 17, 36, 0.14);
  --brand: #1635e3;
  --brand-deep: #0a1d8f;
  --brand-bright: #3358ff;
  --brand-tint: #eef1ff;
  --brand-glow: rgba(22, 53, 227, 0.18);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-card: 0 1px 0 rgba(10,17,36,0.04), 0 12px 32px -16px rgba(10,17,36,0.12);
  --shadow-soft: 0 1px 0 rgba(10,17,36,0.03), 0 24px 60px -28px rgba(10,17,36,0.20);
  --shadow-blue: 0 24px 60px -24px rgba(22, 53, 227, 0.45);

  --maxw: 1280px;
  --pad: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Onest', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   Sticky nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.86); }
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', 'Onest', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.brand-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-name { font-size: 20px; line-height: 1; }
.brand-tagline {
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  text-transform: none;
  white-space: nowrap;
}
.footer .brand .brand-tagline { color: rgba(255,255,255,0.5); }

@media (max-width: 1080px) {
  .nav .brand-tagline { display: none; }
}

/* legacy text-tile fallback — kept for the footer's structured-data area; not used in lockup */
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px var(--brand-glow), inset 0 -2px 0 rgba(0,0,0,0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--brand-tint); color: var(--brand-deep); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 12px 24px -12px var(--brand-glow); }

.nav-burger { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, box-shadow .25s ease, color .2s ease, border-color .2s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px var(--brand-glow), inset 0 -2px 0 rgba(0,0,0,0.12);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 20px 36px -14px rgba(22,53,227,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink-2); transform: translateY(-1px); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--brand-deep); transform: translateY(-1px); }

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

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(22,53,227,0.12);
}
.section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(22,53,227,0.18);
}
.section-title {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 18px 0 0;
  max-width: 920px;
  text-wrap: balance;
}
.section-sub {
  font-size: 19px;
  color: var(--ink-mute);
  margin: 18px 0 0;
  max-width: 640px;
  line-height: 1.55;
}
.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}
.section-head.row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 44px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-kicker .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: #1ec27a;
  box-shadow: 0 0 0 4px rgba(30,194,122,0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30,194,122,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(30,194,122,0); }
}
.hero h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 60%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 0;
  max-width: 580px;
  line-height: 1.45;
  font-weight: 500;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--ink-mute);
  font-size: 15px;
}
.hero-meta .bar { width: 24px; height: 1px; background: var(--line-strong); }
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-trust .item { display: flex; flex-direction: column; gap: 4px; }
.hero-trust .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-trust .lbl {
  font-size: 13px;
  color: var(--ink-mute);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.hv-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #0c1745 0%, #06091a 60%, #050817 100%);
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 60px 100px -40px rgba(22,53,227,0.4);
}
.hv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 75%);
}
.hv-glow {
  position: absolute;
  width: 480px; height: 480px;
  left: -120px; top: -120px;
  background: radial-gradient(circle, rgba(51,88,255,0.55) 0%, rgba(22,53,227,0.0) 60%);
  filter: blur(10px);
}
.hv-glow.b {
  left: auto; top: auto; right: -160px; bottom: -160px;
  background: radial-gradient(circle, rgba(80,120,255,0.4) 0%, rgba(22,53,227,0.0) 60%);
}

/* Animated circuit lines */
.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-svg path { fill: none; stroke: rgba(140,170,255,0.35); stroke-width: 1; }
.hv-svg .glow-line {
  stroke: rgba(180,200,255,0.95);
  stroke-width: 1.5;
  stroke-dasharray: 6 60;
  animation: dash 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(120,160,255,0.8));
}
@keyframes dash {
  to { stroke-dashoffset: -66; }
}
.hv-svg circle.node { fill: #6f8dff; }
.hv-svg circle.node-glow { fill: #b5c8ff; filter: drop-shadow(0 0 6px rgba(120,160,255,0.9)); }

/* Floating chips overlay on hero card */
.hv-chips {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hv-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  width: max-content;
  max-width: 100%;
}
.hv-chip .ico { color: #8aaaff; display: inline-flex; }
.hv-chip .pos-self-end { align-self: flex-end; }
.hv-chip-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.hv-status {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}
.hv-status .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, #3358ff, #0a1d8f);
  display: grid; place-items: center;
  color: #fff;
}
.hv-status .title { font-size: 14px; font-weight: 600; }
.hv-status .sub { font-size: 12px; color: rgba(255,255,255,0.6); font-family: 'JetBrains Mono', monospace; }

/* ambient background blobs for the whole hero */
.hero-bg-blob {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,53,227,0.10) 0%, rgba(22,53,227,0) 60%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-bg-blob.a { top: -200px; left: -120px; }
.hero-bg-blob.b { bottom: -260px; right: -160px; background: radial-gradient(circle, rgba(51,88,255,0.10) 0%, transparent 60%); }

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10,17,36,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,17,36,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 18px 0 28px;
  text-wrap: balance;
}
.about-copy p {
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 540px;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.about-pill .check { color: var(--brand); display: inline-flex; }

.about-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.about-card .big-year {
  font-size: 200px;
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 60%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-card .since {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-card .desc {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 360px;
}
.about-card-rows {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  gap: 16px;
}
.about-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.about-card-row .l { color: var(--ink-mute); font-size: 14.5px; }
.about-card-row .r { font-weight: 600; font-size: 15px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.service-card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(22,53,227,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-card.feature {
  grid-column: span 8;
  background: linear-gradient(160deg, var(--ink) 0%, #0a1124 60%, #060a1f 100%);
  color: #fff;
  border-color: var(--ink);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
  min-height: 280px;
}
.service-card.feature .content { display: flex; flex-direction: column; justify-content: space-between; }
.service-card.feature .label { color: #8aaaff; }
.service-card.feature h3 { color: #fff; }
.service-card.feature .desc { color: rgba(255,255,255,0.65); }
.service-card .ico-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 24px;
  transition: background .25s ease;
}
.service-card.feature .ico-wrap {
  background: rgba(255,255,255,0.08);
  color: #b5c8ff;
}
.service-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.service-card h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.2;
  text-wrap: balance;
}
.service-card .desc {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin: 0;
}
.service-card.feature .visual {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(51,88,255,0.18), rgba(22,53,227,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.service-card.feature .visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 75%);
}
.service-card.feature .visual .terminal {
  position: absolute;
  inset: 24px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(180,200,255,0.85);
  line-height: 1.6;
  overflow: hidden;
}
.service-card.feature .visual .terminal .prompt { color: #6f8dff; }
.service-card.feature .visual .terminal .ok { color: #4dd29a; }
.service-card.feature .visual .terminal .blink { display: inline-block; width: 8px; height: 14px; background: #b5c8ff; vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.service-card .arrow-corner {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f4f6fb;
  display: grid; place-items: center;
  color: var(--ink-mute);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.service-card:hover .arrow-corner { background: var(--brand); color: #fff; transform: translate(2px, -2px); }
.service-card.feature .arrow-corner { background: rgba(255,255,255,0.1); color: #b5c8ff; }
.service-card.feature:hover .arrow-corner { background: #fff; color: var(--brand-deep); }

@media (max-width: 980px) {
  .service-card, .service-card.feature { grid-column: span 12; }
  .service-card.feature { grid-template-columns: 1fr; }
  .service-card.feature .visual { min-height: 180px; }
}

/* ============================================================
   ADVANTAGES / STATS
   ============================================================ */
.advantages {
  background: var(--bg-deep);
  color: #fff;
  border-radius: 36px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.advantages-shell { padding: 100px 56px; }
@media (max-width: 760px) { .advantages-shell { padding: 64px 28px; } }
.advantages-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 0%, transparent 75%);
}
.advantages-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(51,88,255,0.35) 0%, transparent 65%);
  filter: blur(20px);
}
.advantages .section-eyebrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #b5c8ff;
}
.advantages .section-eyebrow .dot { background: #6f8dff; box-shadow: 0 0 0 4px rgba(120,160,255,0.2); }
.advantages .section-title { color: #fff; }
.advantages .section-sub { color: rgba(255,255,255,0.6); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
.stat {
  padding: 32px 24px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: 0; }
.stat .n {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #b5c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: baseline;
}
.stat .n .suffix { font-size: 36px; color: #6f8dff; margin-left: 4px; -webkit-text-fill-color: #6f8dff; }
.stat .lbl {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 220px;
}
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
}

.adv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
.adv-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.adv-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(120,160,255,0.4); transform: translateY(-2px); }
.adv-card .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(51,88,255,0.3), rgba(22,53,227,0.15));
  border: 1px solid rgba(120,160,255,0.25);
  display: grid; place-items: center;
  color: #b5c8ff;
  margin-bottom: 20px;
}
.adv-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.adv-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 760px) { .adv-cards { grid-template-columns: 1fr; } }

/* ============================================================
   B2B
   ============================================================ */
.b2b-shell {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-tint) 100%);
  border: 1px solid rgba(22,53,227,0.12);
}
.b2b-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(22,53,227,0.16) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(51,88,255,0.12) 0%, transparent 45%);
}
.b2b-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.b2b-grid h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.b2b-grid p {
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 520px;
}
.b2b-list {
  display: grid;
  gap: 12px;
}
.b2b-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.b2b-item:hover { transform: translateX(4px); background: #fff; }
.b2b-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.05em;
  width: 32px;
  flex-shrink: 0;
}
.b2b-item .txt { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.b2b-item .arrow { margin-left: auto; color: var(--ink-faint); transition: color .2s ease, transform .2s ease; }
.b2b-item:hover .arrow { color: var(--brand); transform: translateX(2px); }
@media (max-width: 980px) { .b2b-grid { grid-template-columns: 1fr; gap: 40px; } .b2b-shell { padding: 48px 32px; } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: stretch;
}
@media (max-width: 980px) { .contact-shell { grid-template-columns: 1fr; gap: 40px; } }
.contact-copy h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.contact-copy p {
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 440px;
}
.contact-info {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.contact-info-item .ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-item .lbl { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.contact-info-item .val { font-size: 16px; font-weight: 600; color: var(--ink); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(22,53,227,0.2), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.form-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.form-sub {
  color: var(--ink-mute);
  font-size: 15px;
  margin: 0 0 32px;
}
.field {
  margin-bottom: 20px;
}
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 8px;
}
.field-label .req { color: var(--brand); margin-left: 2px; }
.field-input, .field-textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-faint); }
.field-input:focus, .field-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22,53,227,0.12);
}
.field-input.error, .field-textarea.error {
  border-color: #e84a4a;
  box-shadow: 0 0 0 4px rgba(232,74,74,0.1);
}
.field-textarea { min-height: 120px; resize: vertical; }
.field-err {
  font-size: 13px;
  color: #e84a4a;
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
}
.form-fineprint {
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.form-fineprint a { color: var(--brand); }

.form-server-err {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(232, 74, 74, 0.08);
  border: 1px solid rgba(232, 74, 74, 0.25);
  border-radius: 12px;
  color: #c63030;
  font-size: 14px;
  line-height: 1.45;
}

/* Custom-styled consent checkbox */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 4px 18px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  user-select: none;
}
.consent-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.consent-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #fff;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.consent-box svg { opacity: 0; transform: scale(0.6); transition: opacity .15s ease, transform .15s ease; }
.consent-row input:checked ~ .consent-box {
  background: var(--brand);
  border-color: var(--brand);
}
.consent-row input:checked ~ .consent-box svg { opacity: 1; transform: scale(1); }
.consent-row:hover .consent-box { border-color: var(--brand); }
.consent-row input:focus-visible ~ .consent-box {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(22,53,227,0.18);
}
.consent-row.error .consent-box { border-color: #e84a4a; }
.consent-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.consent-text a:hover { color: var(--brand-deep); }
.consent-err { margin-top: -10px; margin-bottom: 14px; padding-left: 32px; }

.form-success {
  text-align: center;
  padding: 24px 8px 8px;
}
.form-success .check-circle {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(30,194,122,0.2), rgba(30,194,122,0.05));
  border: 1px solid rgba(30,194,122,0.3);
  display: grid; place-items: center;
  color: #1ec27a;
  animation: pop .4s ease-out;
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.form-success p { color: var(--ink-mute); font-size: 15px; margin: 0 0 24px; }
.form-success .btn { margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(51,88,255,0.15) 0%, transparent 60%);
  filter: blur(10px);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer .brand-name { color: #fff; font-size: 22px; }
.footer .brand { color: #fff; }
.footer-slogan {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  margin: 20px 0 32px;
  line-height: 1.5;
  max-width: 280px;
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 15px; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
}
.footer-bottom .mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.footer-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-domain .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #1ec27a;
  box-shadow: 0 0 0 4px rgba(30,194,122,0.18);
}

/* ============================================================
   utility
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0 auto;
  max-width: 1100px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Map section — Яндекс.Карта
   ============================================================ */
.map-section { padding: 0 0 120px; }
.map-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 480px;
}
.map-frame iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  filter: saturate(0.95);
}
.map-card {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 360px;
  max-width: calc(100% - 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: 0 1px 0 rgba(10,17,36,0.04), 0 24px 60px -20px rgba(10,17,36,0.22);
  z-index: 2;
}
.map-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 14px 0 8px;
}
.map-card-addr {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0 0 18px;
}
.map-card-rows {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.map-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.map-card-row .l { color: var(--ink-mute); }
.map-card-row .r { font-weight: 600; color: var(--ink); }
.map-card-row .r a { color: inherit; }
.map-card-btn { width: 100%; height: 44px; font-size: 14px; }

@media (max-width: 760px) {
  .map-section { padding: 0 0 64px; }
  .map-frame { min-height: auto; }
  .map-frame iframe { height: 360px; }
  .map-card { position: static; width: auto; max-width: none; margin: -1px -1px 0; padding: 24px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
}

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: cookie-in .35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes cookie-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(10,17,36,0.04), 0 24px 60px -20px rgba(10,17,36,0.25);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.cookie-text p a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner-inner { grid-template-columns: 1fr; padding: 18px 18px 16px; gap: 14px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions .btn { width: 100%; }
}

/* ============================================================
   Mobile pass — ≤640px
   ============================================================ */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }

  /* Nav */
  .nav-inner { height: 64px; }
  .brand-name { font-size: 16px; }
  .brand-tagline { display: none; }
  .brand-mark { width: 30px; height: 30px; font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 0 64px; }
  .hero h1 { font-size: 40px; line-height: 1.04; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 18px; margin-top: 20px; }
  .hero-meta { font-size: 14px; }
  .hero-kicker { font-size: 11px; padding: 6px 12px; }
  .hero-ctas { margin-top: 28px; }
  .hero-ctas .btn { flex: 1; min-width: 0; }
  .hero-trust { margin-top: 36px; gap: 20px 28px; padding-top: 24px; }
  .hero-trust .num { font-size: 24px; }
  .hero-trust .lbl { font-size: 12.5px; }
  .hero-visual { max-width: 100%; aspect-ratio: 1 / 0.95; }
  .hv-chips { padding: 20px; }
  .hv-chip { font-size: 12px; padding: 8px 12px; }
  .hv-status { left: 20px; bottom: 20px; padding: 12px 14px; }
  .hv-status .ico { width: 32px; height: 32px; }
  .hv-status .title { font-size: 13px; }
  .hv-status .sub { font-size: 11px; }

  /* Section heads */
  .section-title { font-size: 32px; line-height: 1.08; }
  .section-sub { font-size: 16px; margin-top: 14px; }
  .section-eyebrow { font-size: 11px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  /* About */
  .about-grid { gap: 36px; }
  .about-copy h2 { font-size: 32px; margin: 16px 0 20px; }
  .about-copy p { font-size: 16px; }
  .about-card { padding: 28px 24px; }
  .about-card .big-year { font-size: 120px; }
  .about-card .desc { font-size: 15px; margin-top: 18px; }
  .about-card-rows { margin-top: 24px; padding-top: 20px; }
  .about-pills { gap: 8px; }
  .about-pill { font-size: 13px; padding: 8px 14px; }

  /* Services */
  .service-card { padding: 24px; }
  .service-card h3 { font-size: 20px; }
  .service-card .desc { font-size: 14.5px; }
  .service-card .ico-wrap { width: 44px; height: 44px; margin-bottom: 18px; }
  .service-card .arrow-corner { top: 20px; right: 20px; }
  .service-card.feature { padding: 24px; gap: 20px; }
  .service-card.feature .visual { min-height: 160px; }
  .service-card.feature .visual .terminal { inset: 16px; font-size: 11px; padding: 12px; }

  /* Advantages */
  .section[id="advantages"] { padding: 64px 16px !important; }
  .advantages { border-radius: 24px; }
  .advantages-shell { padding: 56px 22px !important; }
  .stats-grid { gap: 0; margin-top: 36px; }
  .stat { padding: 24px 14px 24px 0; }
  .stat .n { font-size: 40px; letter-spacing: -0.03em; }
  .stat .n .suffix { font-size: 22px; }
  .stat .lbl { font-size: 13px; margin-top: 10px; }
  .adv-cards { margin-top: 36px; gap: 12px; }
  .adv-card { padding: 22px; }
  .adv-card h4 { font-size: 17px; }
  .adv-card p { font-size: 14px; }

  /* B2B */
  .section[id="b2b"] { padding: 0 16px 64px !important; }
  .b2b-shell { padding: 40px 24px; border-radius: 24px; }
  .b2b-grid { gap: 28px; }
  .b2b-grid h2 { font-size: 30px; margin: 14px 0 18px; }
  .b2b-grid p { font-size: 16px; margin-bottom: 24px; }
  .b2b-item { padding: 14px 16px; }
  .b2b-item .num { width: 26px; font-size: 11px; }
  .b2b-item .txt { font-size: 14.5px; }

  /* Contact */
  .contact-copy h2 { font-size: 32px; margin: 16px 0 18px; }
  .contact-copy p { font-size: 16px; margin-bottom: 24px; }
  .contact-info { gap: 12px; margin-top: 24px; }
  .contact-info-item { padding: 14px 16px; gap: 12px; }
  .contact-info-item .ico { width: 38px; height: 38px; }
  .contact-info-item .lbl { font-size: 11px; }
  .contact-info-item .val { font-size: 14.5px; line-height: 1.35; }
  .form-card { padding: 28px 24px; border-radius: 22px; }
  .form-title { font-size: 22px; }
  .form-sub { font-size: 14px; margin-bottom: 24px; }
  .field-input, .field-textarea { padding: 14px 16px; font-size: 16px; }
  .field { margin-bottom: 16px; }

  /* Footer */
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-slogan { font-size: 14px; max-width: 100%; margin: 16px 0 24px; }
  .footer-bottom { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-domain { font-size: 13px; }
}

/* extra-small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .about-card .big-year { font-size: 100px; }
  .stat .n { font-size: 36px; }
  .stat .n .suffix { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
