/* ==========================================================================
   Bohdan Rybak — Performance Marketing Studio
   ========================================================================== */

:root {
  --paper: #f6f5f1;
  --paper-2: #efede7;
  --surface: #ffffff;
  --ink: #0b0d12;
  --ink-2: #3a404c;
  --ink-3: #69707e;
  --line: #e3e0d8;
  --line-2: #d3cfc5;

  --accent: #2b5bff;
  --accent-2: #1c43d6;
  --accent-soft: #e9eeff;
  --accent-night: #8fa8ff;

  --night: #0a0c11;
  --night-2: #10131a;
  --night-3: #161a23;
  --night-line: rgba(255, 255, 255, 0.08);
  --night-line-2: rgba(255, 255, 255, 0.14);
  --night-text: #eceef2;
  --night-muted: #9aa2b1;

  --good: #12a35c;
  --good-night: #4ade80;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --max: 1200px;
  --gutter: 24px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.display em,
.h2 em,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(43, 91, 255, 0.7); }
.btn-primary:hover { background: var(--accent-2); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9ebf0; }

.btn-ghost-night { border-color: var(--night-line-2); color: var(--night-text); }
.btn-ghost-night:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22262f; }

.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 12, 17, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-text);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
  line-height: 1.2;
}
.brand-text { line-height: 1.15; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--night-muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--night-line-2);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 49;
  background: rgba(10, 12, 17, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--night-line);
  padding: 12px var(--gutter) 24px;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--night-text);
  border-bottom: 1px solid var(--night-line);
}
.mobile-nav .btn { margin-top: 20px; width: 100%; }
.menu-open .mobile-nav { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--night);
  color: var(--night-text);
  padding: calc(var(--header-h) + 72px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  right: -260px; top: -380px;
  background: radial-gradient(circle, rgba(43, 91, 255, 0.38), rgba(43, 91, 255, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--night-line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--night-muted);
  background: rgba(255, 255, 255, 0.03);
}
.hero-tag b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
}

.hero h1 { margin-top: 28px; font-size: clamp(44px, 6.6vw, 90px); }
.hero h1 em { color: var(--accent-night); }

.hero .lead {
  margin-top: 28px;
  max-width: 600px;
  color: var(--night-muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-direct {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--night-muted);
  max-width: 520px;
}
.hero-direct img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--night-line-2);
  flex: none;
}
.hero-direct strong { color: var(--night-text); font-weight: 600; }

/* Hero growth chart */

.hero-chart {
  position: relative;
  width: 100%;
  isolation: isolate;
}
.hero-chart::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -14% 8% 22%;
  background: radial-gradient(closest-side, rgba(43, 91, 255, 0.3), transparent);
  filter: blur(12px);
  pointer-events: none;
}
.gc-plot {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 480;
}
.gc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.gc-legend {
  position: absolute;
  top: 2%;
  left: 3.75%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.gc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #c9ced8;
}
.gc-legend li::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.gc-legend .is-rev::before { background: linear-gradient(90deg, #3a63ff, #b3c3ff); box-shadow: 0 0 10px rgba(76, 125, 255, 0.8); }
.gc-legend .is-spend::before { background: rgba(255, 255, 255, 0.45); }
.gc-legend .is-profit::before { width: 12px; height: 10px; border-radius: 3px; background: rgba(76, 125, 255, 0.45); }

.gc-grid path { fill: none; stroke-width: 1; }
.gc-grid .gc-phase { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 3 5; }
.gc-grid .gc-base { stroke: rgba(255, 255, 255, 0.16); }

.gc-invest { fill: url(#gc-hatch); }
.gc-profit { fill: url(#gc-profit); }
.gc-spend { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; stroke-linecap: round; }
.gc-rev, .gc-rev-glow { fill: none; stroke: url(#gc-rev); stroke-linecap: round; stroke-linejoin: round; }
.gc-rev { stroke-width: 3.5; }
.gc-rev-glow { stroke-width: 10; opacity: 0.55; filter: url(#gc-glow); }

.gc-even { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.gc-even-label {
  position: absolute;
  left: 54.2%;
  top: 78.4%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 238, 242, 0.75);
}

.gc-end-dot { fill: #fff; }
.gc-end-halo {
  fill: rgba(143, 168, 255, 0.25);
  transform-box: fill-box;
  transform-origin: center;
  animation: gc-halo 2.2s ease-out infinite;
}
@keyframes gc-halo { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.gc-steps {
  margin: 14px 3.75% 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gc-steps li {
  padding: 0 12px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #c9ced8;
}
.gc-steps li + li { padding-left: 12px; }
.gc-steps span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.gc-steps li:last-child span { color: var(--accent-night); }

/* Chart entrance */
.gc-spend, .gc-rev, .gc-rev-glow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.gc-spend { animation: gc-draw 1.6s cubic-bezier(0.55, 0, 0.25, 1) 0.3s forwards; }
.gc-rev, .gc-rev-glow { animation: gc-draw 2s cubic-bezier(0.55, 0, 0.25, 1) 0.55s forwards; }
.gc-invest { opacity: 0; animation: gc-fade 0.9s ease 1.2s forwards; }
.gc-profit { opacity: 0; animation: gc-fade 1.2s ease 1.8s forwards; }
.gc-even, .gc-even-label { opacity: 0; animation: gc-fade 0.5s ease 1.75s forwards; }
.gc-end { opacity: 0; animation: gc-fade 0.5s ease 2.4s forwards; }
.gc-steps li { opacity: 0; animation: gc-fade 0.6s ease forwards; }
.gc-steps li:nth-child(1) { animation-delay: 0.6s; }
.gc-steps li:nth-child(2) { animation-delay: 1s; }
.gc-steps li:nth-child(3) { animation-delay: 1.5s; }
.gc-steps li:nth-child(4) { animation-delay: 2s; }
@keyframes gc-draw { to { stroke-dashoffset: 0; } }
@keyframes gc-fade { to { opacity: 1; } }

/* Hero stats */

.stats {
  margin-top: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--night-line);
}
.stat {
  padding: 32px 24px 40px 0;
}
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--night-line); }
.stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.stat-num span { color: var(--accent-night); }
.stat p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--night-muted);
  max-width: 220px;
  line-height: 1.45;
}

/* ---------- Clients strip ---------- */

.clients {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.clients-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.clients-label {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 190px;
  line-height: 1.5;
}
.clients-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 36px;
}
.clients-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #8b8f99;
  transition: color 0.2s;
}
.clients-list a svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.clients-marquee { flex: 1; min-width: 0; }
.clients-list.is-clone { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients-list a:hover { color: var(--ink); }
.clients-list a:hover svg { opacity: 1; transform: translate(1px, -1px); }

/* ---------- Sections ---------- */

.section { padding: 128px 0; }
.section-tight { padding: 96px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .h2 { margin-top: 20px; }
.section-head .h2 em { color: var(--accent); }
.section-head p { color: var(--ink-2); font-size: 18px; }

.night {
  background: var(--night);
  color: var(--night-text);
}
.night .eyebrow { color: var(--night-muted); }
.night .section-head p { color: var(--night-muted); }
.night .section-head .h2 em { color: var(--accent-night); }

/* ---------- Services ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -32px rgba(11, 13, 18, 0.25);
}

/* Bento services */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.svc {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.svc:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 34px 64px -40px rgba(11, 13, 18, 0.32);
}
.svc-wide {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 8px;
}
.svc-team { grid-column: span 6; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }

.svc-visual {
  position: relative;
  height: 236px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid #eeebe4;
  background-color: #f8f7f3;
  background-image: radial-gradient(rgba(11, 13, 18, 0.085) 1px, transparent 1.3px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}
.svc-wide .svc-visual { height: auto; min-height: 300px; }

.svc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
}
.svc-wide .svc-body { padding: 30px 28px 24px; }
.svc-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-body h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.svc-wide .svc-body h3 { font-size: clamp(26px, 2.4vw, 32px); }
.svc-body p {
  margin: 12px 0 24px;
  color: var(--ink-2);
  font-size: 16px;
}
.svc-stack {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

/* UA console */
.mini-window {
  width: calc(100% - 48px);
  max-width: 460px;
  padding: 16px 18px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.03), 0 22px 44px -22px rgba(11, 13, 18, 0.3);
}
.ua-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ua-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
}
.ua-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(18, 163, 92, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(18, 163, 92, 0); } }
.ua-mix { display: flex; gap: 3px; height: 8px; margin-top: 12px; }
.ua-mix i { flex: var(--g) 1 0; border-radius: 3px; background: var(--c); }
.ua-rows { margin-top: 12px; }
.ua-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30% auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #f0eee8;
  font-size: 13px;
  font-weight: 500;
}
.ua-name { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.ua-name i { flex: none; width: 8px; height: 8px; border-radius: 2.5px; background: var(--c); }
.spark { width: 100%; height: 24px; overflow: visible; }
.spark polyline {
  fill: none;
  stroke: var(--c);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.js .svc:not(.is-in) .spark polyline { stroke-dashoffset: 100; }
.ua-status {
  justify-self: end;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
}
.ua-status.is-scale { background: #e5f6ec; color: #0d8048; }
.ua-status.is-test { background: #fff3dc; color: #a56300; }
.ua-status.is-stable { background: #eef0f4; color: #4b5565; }

/* Creative fan */
.cr-fan { position: relative; width: 100%; height: 100%; }
.cr-tile {
  position: absolute;
  left: 50%; top: 50%;
  width: 66px; height: 116px;
  margin: -58px 0 0 -33px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 12px 26px -14px rgba(11, 13, 18, 0.35);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s, opacity 0.4s;
}
.cr-tile i { display: block; height: 62px; border-radius: 7px; background: linear-gradient(140deg, var(--g1), var(--g2)); }
.cr-tile b { display: block; height: 4px; width: 80%; margin-top: 7px; border-radius: 2px; background: #e7e4dd; }
.cr-tile b + b { width: 52%; margin-top: 4px; }
.cr-tile s { display: block; height: 11px; width: 62%; margin-top: 7px; border-radius: 4px; background: var(--g2); }
.cr-tile:not(.is-winner) { filter: saturate(0.3); opacity: 0.7; }
.cr-tile.is-winner {
  z-index: 2;
  width: 80px; height: 140px;
  margin: -70px 0 0 -40px;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), 0 26px 44px -18px rgba(43, 91, 255, 0.6);
}
.cr-tile.is-winner i { height: 78px; }
.cr-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.svc:hover .cr-tile:not(.is-winner) { transform: translate(calc(var(--x) * 1.08), calc(var(--y) + 4px)) rotate(calc(var(--r) * 1.2)); }
.svc:hover .cr-tile.is-winner { transform: translate(0, -10px); }

/* Tracking flow */
.flow, .plan-chart { width: calc(100% - 24px); max-width: 340px; height: auto; overflow: visible; }
.flow-line { fill: none; stroke: #d8d4cb; stroke-width: 1.5; }
.flow-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -12; } }
.fn-box { fill: #fff; stroke: #e1ddd4; }
.fn-t { font-family: var(--font); font-size: 11.5px; font-weight: 500; fill: var(--ink); }
.fn-t.sm { font-size: 10.5px; }
.fn-core { fill: var(--ink); }
.fn-core-t { font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; fill: #fff; }
.fn-core-s { font-family: var(--mono); font-size: 9px; fill: #9aa2b1; letter-spacing: 0.04em; }
.fn-core-dot { fill: #4ade80; }

/* A/B funnel */
.ab { width: calc(100% - 44px); max-width: 330px; }
.ab-legend { display: flex; gap: 6px; margin-bottom: 14px; }
.ab-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.ab-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #cfcac0; }
.ab-legend .is-b { color: var(--accent); border-color: rgba(43, 91, 255, 0.35); }
.ab-legend .is-b::before { background: var(--accent); }
.ab-legend svg { width: 12px; height: 12px; }
.ab-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.ab-row > span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.ab-bars { display: grid; gap: 3px; }
.ab-bars i {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 3px;
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.ab-bars .is-a { background: #d6d1c7; }
.ab-bars .is-b { background: linear-gradient(90deg, var(--accent), #7b96ff); transition-delay: 0.3s; }
.js .svc:not(.is-in) .ab-bars i { transform: scaleX(0); }

/* Planning chart */
.pc-grid path { stroke: #e6e2da; stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.pc-weeks text { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-3); text-anchor: middle; }
.pc-labels text { font-family: var(--font); font-size: 11.5px; font-weight: 500; fill: var(--ink); }
.pc-bar.is-test { fill: #e3e9ff; stroke: #b9c8ff; }
.pc-bar.is-validate { fill: #b9c8ff; }
.pc-bar.is-scale { fill: url(#pc-scale); }
.pc-link { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.pc-gate { fill: var(--ink); }
.pc-legend { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-3); }

/* Team card (dark) */
.svc-team {
  background: var(--night);
  border-color: var(--night);
  color: var(--night-text);
}
.svc-team:hover { border-color: var(--night); box-shadow: 0 40px 80px -40px rgba(11, 13, 18, 0.6); }
.svc-team .svc-kicker { color: var(--accent-night); }
.svc-team .svc-body p { color: var(--night-muted); }
.svc-team .svc-stack { border-color: var(--night-line-2); color: var(--night-muted); }
.svc-team .svc-visual {
  border-color: var(--night-line);
  background-color: var(--night-2);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.3px);
}
.org { width: calc(100% - 48px); max-width: 620px; }
.org-top {
  position: relative;
  width: max-content;
  margin: 0 auto;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px -16px rgba(43, 91, 255, 0.7);
}
.org-top b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.org-top small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; opacity: 0.8; }
.org-top::after,
.org-node::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.5px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.org-top::after { top: 100%; }
.org-children {
  position: relative;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.org-children::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 12.5%; right: 12.5%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.22);
}
.org-node {
  position: relative;
  padding: 13px 10px;
  border-radius: 13px;
  background: var(--night-3);
  border: 1px solid var(--night-line-2);
  text-align: center;
}
.org-node::before { top: -22px; }
.org-node b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.org-node small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--night-muted); }

/* ---------- Client index ---------- */

.client-index {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--night-line-2);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 100% 100%, rgba(43, 91, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 40%),
    var(--night-2);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.9);
}

.ci-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--night-line);
}
.ci-tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px 40px;
  border: 0;
  background: transparent;
  text-align: left;
  color: rgba(236, 238, 242, 0.4);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.ci-tab + .ci-tab { border-top: 1px solid var(--night-line); }
.ci-tab::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ci-tab:hover { color: rgba(236, 238, 242, 0.7); }
.ci-tab[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, 0.035); }
.ci-tab[aria-selected="true"]::before { transform: scaleY(1); }
.ci-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(143, 168, 255, 0.45); }

.ci-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.ci-name svg {
  width: 26px; height: 26px;
  flex: none;
  color: var(--accent-night);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.ci-tab[aria-selected="true"] .ci-name svg { opacity: 1; transform: none; }
.ci-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--night-muted);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.ci-tab[aria-selected="true"] .ci-meta { opacity: 1; }

.ci-panels { position: relative; min-width: 0; }
.js .ci-panels { display: grid; }
.js .ci-panel { grid-area: 1 / 1; }
.js .ci-panel[hidden] {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.ci-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 52px 52px;
}
.ci-panel + .ci-panel { border-top: 1px solid var(--night-line); }
.js .ci-panel + .ci-panel { border-top: 0; }
.ci-panel.is-entering > * { animation: ci-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ci-panel.is-entering > h3 { animation-delay: 0.04s; }
.ci-panel.is-entering > .ci-points { animation-delay: 0.08s; }
.ci-panel.is-entering > .ci-tags { animation-delay: 0.12s; }
@keyframes ci-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ci-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ci-pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--night-line-2);
  color: var(--night-muted);
}
.ci-visit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-night);
  transition: color 0.2s;
}
.ci-visit svg { width: 14px; height: 14px; transition: transform 0.2s; }
.ci-visit:hover { color: #fff; }
.ci-visit:hover svg { transform: translate(2px, -2px); }

.ci-panel h3 {
  margin-top: 34px;
  max-width: 560px;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.ci-points {
  margin-top: 30px;
  display: grid;
  gap: 16px;
  max-width: 600px;
}
.ci-points li {
  position: relative;
  padding-left: 36px;
  font-size: 16.5px;
  line-height: 1.5;
  color: #c9ced8;
}
.ci-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(143, 168, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa8ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ci-tags {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ci-tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--night-3);
  border: 1px solid var(--night-line);
  color: #c9ced8;
}

.nda-note {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--night-line-2);
  background: rgba(255, 255, 255, 0.03);
}
.nda-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(43, 91, 255, 0.16);
  color: var(--accent-night);
}
.nda-icon svg { width: 20px; height: 20px; }
.nda-note p { flex: 1; color: var(--night-muted); font-size: 16px; }
.nda-note strong { color: #fff; font-weight: 600; }

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px 32px;
  border-top: 2px solid var(--ink);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step h3 { margin-top: 18px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.step .step-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ---------- Engagement ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--radius-lg);
}
.plan-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.plan h3 { margin-top: 22px; font-size: 26px; letter-spacing: -0.03em; }
.plan > p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.plan ul {
  margin: 26px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.plan li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.45;
}
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.plan-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-price {
  font-size: 14px;
  color: var(--ink-3);
}
.plan-price strong { display: block; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }

.plan-featured {
  background: var(--night);
  color: var(--night-text);
  border-color: var(--night);
  box-shadow: 0 40px 80px -40px rgba(11, 13, 18, 0.55);
}
.plan-featured:hover { border-color: var(--night); }
.plan-featured .plan-badge { border-color: transparent; background: var(--accent); color: #fff; }
.plan-featured > p { color: var(--night-muted); }
.plan-featured ul { border-color: var(--night-line); }
.plan-featured li svg { color: var(--accent-night); }
.plan-featured .plan-price { color: var(--night-muted); }
.plan-featured .plan-price strong { color: #fff; }

.terms-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.terms-strip div {
  background: var(--surface);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}
.terms-strip svg { width: 20px; height: 20px; flex: none; color: var(--ink); margin-top: 1px; }
.terms-strip strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- Apps ---------- */

.apps {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  padding: 40px 40px 0;
  overflow: hidden;
  isolation: isolate;
}
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  flex: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}
.app-name { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.app-cat {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-card h3 {
  margin-top: 30px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 600;
}
.app-card > p { margin-top: 14px; font-size: 16.5px; max-width: 480px; }
.app-features {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}
.app-features li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.app-features li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--app-accent);
}
.app-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s, background-color 0.2s;
}
.appstore-btn:hover { transform: translateY(-1px); background: #1a1a1a; }
.appstore-btn svg { width: 22px; height: 22px; }
.appstore-btn span { display: block; font-size: 10.5px; line-height: 1.1; opacity: 0.85; }
.appstore-btn strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--app-line);
  transition: border-color 0.2s, transform 0.2s;
}
.site-btn svg { width: 15px; height: 15px; }
.site-btn:hover { transform: translateY(-1px); border-color: currentColor; }

.app-stage {
  position: relative;
  margin-top: 44px;
  height: 330px;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 264px;
  height: 560px;
  padding: 11px;
  border-radius: 46px;
  background: #121316;
  box-shadow:
    0 0 0 1.5px #2b2d33,
    0 40px 70px -20px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.app-card:hover .phone { transform: translateY(-8px); }
.phone::before {
  content: "";
  position: absolute;
  top: 21px; left: 50%;
  width: 78px; height: 23px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
}
.screen > img {
  width: 100%;
  height: auto;
}

/* CS2Oracle */
.app-cs2 {
  --app-accent: #c5f84e;
  --app-line: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(600px 300px at 85% 110%, rgba(197, 248, 78, 0.16), transparent 70%),
    #0a0d10;
  color: #f5f8fa;
}
.app-cs2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(197, 248, 78, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 248, 78, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000);
  mask-image: linear-gradient(180deg, transparent 30%, #000);
}
.app-cs2 .app-cat { color: #c5f84e; }
.app-cs2 > p, .app-cs2 .app-features li { color: #b3bdc7; }
.app-cs2 .screen { background: #0a0d10; }

/* Tempa */
.app-tempa {
  --app-accent: #ff7a59;
  --app-line: #e8dccd;
  background:
    radial-gradient(600px 320px at 15% 110%, rgba(255, 122, 89, 0.22), transparent 70%),
    linear-gradient(160deg, #fffaf4, #fbf3ea);
  color: #2a2a33;
  border: 1px solid #efe4d6;
}
.app-tempa .app-cat { color: #e5613f; }
.app-tempa > p, .app-tempa .app-features li { color: #6b6560; }
.app-tempa .site-btn { color: #2a2a33; }

.app-tempa .screen { background: #f8f5f0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.founder-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -40px rgba(11, 13, 18, 0.25);
}
.founder-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.founder-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-2);
}
.founder-head strong { display: block; font-size: 22px; letter-spacing: -0.025em; line-height: 1.2; }
.founder-head small { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-3); line-height: 1.35; }

.facts { margin: 8px 0 0; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

.founder-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.founder-actions .btn svg { width: 16px; height: 16px; }

.about-body .h2 { margin-top: 20px; }
.about-body .h2 em { color: var(--accent); }
.about-body .prose { margin-top: 28px; display: grid; gap: 18px; color: var(--ink-2); font-size: 18px; }
.about-body .prose strong { color: var(--ink); font-weight: 600; }

.quote {
  margin-top: 40px;
  padding: 30px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote footer {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toolkit { margin-top: 40px; }
.toolkit h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toolkit ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit li {
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------- Insights ---------- */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.insight {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.insight-meta svg { width: 18px; height: 18px; color: #0a66c2; }
.insight h3 { margin-top: 28px; }
.insight p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.insight .link-arrow { margin-top: auto; padding-top: 24px; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}
.faq-intro .h2 { margin-top: 20px; }
.faq-intro .h2 em { color: var(--accent); }
.faq-intro p { margin-top: 20px; color: var(--ink-2); }
.faq-intro .link-arrow { margin-top: 16px; }

.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform 0.25s, background-color 0.2s, border-color 0.2s;
}
.faq-list summary i::before,
.faq-list summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-list summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s; }
.faq-list details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq-list details[open] summary i::before,
.faq-list details[open] summary i::after { background: #fff; }
.faq-list details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list summary:hover i { border-color: var(--ink); }
.faq-list details p {
  padding: 0 52px 26px 0;
  color: var(--ink-2);
  font-size: 16.5px;
}

/* ---------- Contact ---------- */

.contact {
  padding: 0 0 128px;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--night-text);
  border-radius: 34px;
  padding: 88px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px; height: 760px;
  left: -200px; bottom: -480px;
  background: radial-gradient(circle, rgba(43, 91, 255, 0.45), transparent 62%);
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  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;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 100%, #000, transparent 70%);
}
.contact-panel .eyebrow { color: var(--night-muted); }
.contact-panel .h2 { margin-top: 20px; }
.contact-panel .h2 em { color: var(--accent-night); }
.contact-panel > div > p { margin-top: 22px; color: var(--night-muted); font-size: 18px; max-width: 520px; }

.contact-methods { display: grid; gap: 10px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--night-line-2);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.contact-method:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.contact-method .cm-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  flex: none;
}
.contact-method .cm-icon svg { width: 20px; height: 20px; }
.contact-method.is-primary { background: var(--accent); border-color: var(--accent); }
.contact-method.is-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.contact-method.is-primary .cm-icon { background: rgba(255, 255, 255, 0.16); }
.contact-method small { display: block; font-size: 13px; color: var(--night-muted); line-height: 1.3; }
.contact-method.is-primary small { color: rgba(255, 255, 255, 0.78); }
.contact-method strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; word-break: break-word; }
.contact-method > svg { width: 18px; height: 18px; margin-left: auto; flex: none; opacity: 0.7; }
.contact-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--night-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.contact-note span { display: inline-flex; align-items: center; gap: 7px; }
.contact-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--good-night); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-muted);
  padding: 80px 0 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
}
.footer-brand .brand { color: var(--night-text); }
.footer-brand p { margin-top: 18px; max-width: 340px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-text);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13.5px;
}
.footer-bottom p { max-width: 720px; }

/* ---------- Legal pages ---------- */

.legal-hero {
  background: var(--night);
  color: var(--night-text);
  padding: calc(var(--header-h) + 80px) 0 64px;
}
.legal-hero .eyebrow { color: var(--night-muted); }
.legal-hero h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.legal-hero p { margin-top: 16px; color: var(--night-muted); }

.legal {
  padding: 72px 0 120px;
}
.legal-body {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 17px;
}
.legal-body h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p { margin-top: 14px; }
.legal-body ul { display: grid; gap: 8px; padding-left: 0; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }
.legal-card {
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--night);
  color: var(--night-text);
  padding: 120px var(--gutter);
}
.notfound p { margin: 16px auto 32px; color: var(--night-muted); max-width: 420px; }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .clients-track { animation: none !important; }
  .clients-marquee { overflow-x: auto; }
  .gc-spend, .gc-rev, .gc-rev-glow { stroke-dashoffset: 0; animation: none; }
  .gc-invest, .gc-profit, .gc-even, .gc-even-label, .gc-end, .gc-steps li { opacity: 1; animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-chart { max-width: 640px; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-column: span 1; }
  .svc-wide, .svc-team { grid-column: span 2; }
  .client-index { grid-template-columns: 1fr; border-radius: 24px; }
  .ci-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
    padding: 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .ci-list::-webkit-scrollbar { display: none; }
  .ci-tab { flex: none; padding: 20px 14px 18px; }
  .ci-tab + .ci-tab { border-top: 0; }
  .ci-tab::before { top: auto; left: 14px; right: 14px; width: auto; height: 2px; transform: scaleX(0); }
  .ci-tab[aria-selected="true"] { background: transparent; }
  .ci-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .ci-name { font-size: 22px; letter-spacing: -0.03em; }
  .ci-name svg, .ci-meta { display: none; }
  .ci-panel { padding: 36px 32px 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .terms-strip { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { position: static; max-width: 440px; }
  .contact-panel { grid-template-columns: 1fr; padding: 64px 48px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .svc-wide, .svc-team { grid-template-columns: 1fr; }
  .svc-wide .svc-visual { order: -1; min-height: 280px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
  .clients { padding: 36px 0; }
  .clients-inner { flex-direction: column; align-items: stretch; gap: 22px; }
  .clients-label { max-width: none; }
  .clients-marquee {
    margin: 0 calc(-1 * var(--gutter));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .clients-track {
    display: flex;
    width: max-content;
    animation: marquee 22s linear infinite;
  }
  .clients-list,
  .clients-list.is-clone {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }
  .clients-list a { font-size: 22px; margin-right: 44px; white-space: nowrap; }
  .clients-list a svg { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  body { font-size: 16px; }

  .brand small { display: none; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .gc-legend { gap: 4px 14px; }
  .gc-legend li { font-size: 10.5px; }
  .gc-even-label { font-size: 9.5px; left: 55%; }
  .gc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin-top: 18px; }
  .gc-steps li:nth-child(3) { padding-left: 0; }
  .stats { margin-top: 88px; }
  .stat { padding: 24px 10px 28px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat-num { font-size: 34px; }
  .stat p { font-size: 14px; }

  .section { padding: 88px 0; }
  .section-tight { padding: 72px 0; }

  .insights-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc-wide, .svc-team { grid-column: span 1; }
  .svc-body, .svc-wide .svc-body { padding: 22px 18px 18px; }
  .org { width: calc(100% - 28px); }
  .org-children { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .org-top::after, .org-node::before, .org-children::before { display: none; }
  .mini-window { width: calc(100% - 24px); padding: 14px 14px 6px; }
  .ua-rows li { grid-template-columns: minmax(0, 1fr) 22% auto; gap: 10px; font-size: 12px; }
  .card { padding: 26px 22px; }
  .ci-panel { padding: 28px 22px 32px; }
  .ci-panel h3 { margin-top: 24px; }
  .ci-visit { margin-left: 0; flex-basis: 100%; margin-top: 6px; }
  .ci-points li { font-size: 15.5px; }
  .nda-note { flex-direction: column; align-items: flex-start; padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px; }
  .terms-strip { grid-template-columns: 1fr; }

  .app-card { padding: 30px 22px 0; border-radius: 24px; }
  .app-stage { height: 300px; }
  .phone { width: 240px; height: 510px; }

  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 0; }

  .contact { padding-bottom: 88px; }
  .contact-panel { padding: 48px 22px; border-radius: 26px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 340px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); }
}
