/* ============================================================
   Ctrl·Alt·Elite — AI-powered веб-студия
   ============================================================ */

/* ---- Tokens ------------------------------------------------ */
:root {
  --accent: #00e0a4;
  --accent-ink: #04140e;
  --accent-soft: rgba(0, 224, 164, .14);
  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.2vw, 28px);
  --sect-y: clamp(72px, 9vw, 150px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-density="compact"] { --sect-y: clamp(52px, 6vw, 104px); }
[data-density="comfy"]   { --sect-y: clamp(92px, 11vw, 190px); }

/* ---- Themes ------------------------------------------------ */
[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-1: #0e1013;
  --bg-2: #14171b;
  --bg-3: #1c2127;
  --text: #f1f3f1;
  --text-2: #a9afad;
  --text-3: #6e7479;
  --border: rgba(255, 255, 255, .085);
  --border-2: rgba(255, 255, 255, .16);
  --hairline: rgba(255, 255, 255, .06);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --grid-line: rgba(255, 255, 255, .045);
  --placeholder-a: rgba(255, 255, 255, .04);
  --placeholder-b: rgba(255, 255, 255, .018);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f3ee;
  --bg-1: #faf9f5;
  --bg-2: #ffffff;
  --bg-3: #efeee8;
  --text: #14130f;
  --text-2: #55544c;
  --text-3: #8a897f;
  --border: rgba(0, 0, 0, .1);
  --border-2: rgba(0, 0, 0, .2);
  --hairline: rgba(0, 0, 0, .06);
  --shadow: 0 26px 60px -24px rgba(20, 19, 15, .28);
  --grid-line: rgba(0, 0, 0, .04);
  --placeholder-a: rgba(0, 0, 0, .05);
  --placeholder-b: rgba(0, 0, 0, .02);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: background .4s var(--ease), color .4s var(--ease);
}
::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }

/* ---- Helpers ---------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sect-y); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}
.sect-index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--text-3);
}
.display {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2.display { font-size: clamp(30px, 4.6vw, 58px); }
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 62ch;
}
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* Reveal animations */
.reveal { opacity: 1; }
.reveal.in { animation: revealIn .8s var(--ease); }
.reveal[data-d="1"].in { animation-delay: .06s; }
.reveal[data-d="2"].in { animation-delay: .12s; }
.reveal[data-d="3"].in { animation-delay: .18s; }
.reveal[data-d="4"].in { animation-delay: .24s; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  padding: 15px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  min-height: 44px; /* touch target */
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary .arr { transition: transform .25s var(--ease); }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 13, 0.84);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--hairline);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(244, 243, 238, 0.84);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
}
.brand .sep { color: var(--accent); margin: 0 1px; }
.brand .key {
  display: inline-block; padding: 2px 7px;
  border: 1px solid var(--border-2); border-radius: 6px;
  font-size: 13px; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; color: var(--text-2); transition: color .2s;
  position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 1.5px; width: 0; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-burger svg { display: block; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    padding: 8px var(--pad-x) 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a::after { display: none; }
  .nav .btn { display: none; }
  .nav-burger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: var(--sect-y);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%);
}
.hero-glow {
  position: absolute; top: -22%; right: -8%;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  filter: blur(8px);
}
[data-grid="off"] .hero-grid { display: none; }
.hero-in { position: relative; z-index: 1; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.0;
  letter-spacing: -.03em;
  margin-top: 26px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.7vw, 22px); color: var(--text-2); max-width: 54ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; align-items: center; }
.hero-trust {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 26px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap;
}
.hero-trust .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.hero-trust .marks { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.hero-trust .marks span { font-weight: 500; color: var(--text-2); font-size: 15px; letter-spacing: .01em; }
.hero-trust .marks i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); opacity: .5; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sect-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.sect-head .row { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   WHAT (tiles)
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tile {
  position: relative; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px; min-height: 230px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-2); }
.tile:hover::after { opacity: 1; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; }
.tile-mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 9px; color: var(--accent);
}
.tile-mark svg { width: 17px; height: 17px; }
.tile h3 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.tile p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; flex: 1; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; letter-spacing: .02em; }

/* ============================================================
   WHY FAST
   ============================================================ */
.why { background: var(--bg-1); border-block: 1px solid var(--hairline); }
.why-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why h2 { font-size: clamp(28px, 3.8vw, 48px); }
.why-p { margin-top: 22px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.speed-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.speed-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.speed-row:last-child { margin-bottom: 0; }
.speed-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.speed-row .top .k { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.speed-row .top .v { font-weight: 600; font-size: 15px; }
.bar { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; width: 0; }
.bar.slow i { background: var(--border-2); }
.bar.fast i { background: var(--accent); }
.speed-card.in .bar.slow i { width: 88%; animation: growW 1.1s var(--ease); }
.speed-card.in .bar.fast i { width: 24%; animation: growW 1.1s var(--ease) .12s; }
@keyframes growW { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .speed-card.in .bar i { animation: none; } }

/* ============================================================
   OUTPUT
   ============================================================ */
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.out-item { padding: 30px 0 6px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.out-item .n { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .1em; }
.out-item h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 600; }
.out-item p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.out-zinger {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex; gap: 18px; align-items: flex-start;
  padding: clamp(24px, 3vw, 34px); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-1);
}
.out-zinger .q { font-family: var(--font-mono); color: var(--accent); font-size: 22px; line-height: 1; flex: none; margin-top: 2px; }
.out-zinger p { font-size: clamp(18px, 2.1vw, 25px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.out-zinger b { color: var(--accent); font-weight: 500; }

/* ============================================================
   WORK / CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.case {
  text-align: left; cursor: pointer; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  font-family: inherit; color: inherit; padding: 0;
}
.case:hover { transform: translateY(-4px); border-color: var(--border-2); }
.case-thumb {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, var(--placeholder-a) 0 10px, var(--placeholder-b) 10px 20px);
  display: grid; place-items: center;
}
.case-thumb .ph { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.case-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .88; transition: opacity .3s, transform .4s; }
.case:hover .case-thumb-img { opacity: 1; transform: scale(1.02); }
.modal-thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.case-thumb .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--accent); background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--border); padding: 5px 9px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.case-body { padding: 22px clamp(20px, 2.4vw, 28px) 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.case h3 { font-size: clamp(18px, 1.9vw, 23px); font-weight: 600; letter-spacing: -.01em; }
.case p { color: var(--text-2); font-size: 15px; line-height: 1.5; flex: 1; }
.case-metrics { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.case-metrics .m { display: flex; flex-direction: column; gap: 2px; }
.case-metrics .m b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.case-metrics .m span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.case-open { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent); margin-top: auto; }
.case-open .arr { transition: transform .25s var(--ease); }
.case:hover .case-open .arr { transform: translateX(4px); }
.cases-note { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-family: var(--font-mono); font-size: 12.5px; }
.cases-note i { flex: 1; height: 1px; background: var(--hairline); }

/* Case modal */
.modal-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  display: grid; place-items: center; padding: 24px;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal-back.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  width: min(680px, 100%); max-height: 88vh; overflow: auto;
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.modal-back.open .modal { animation: modalIn .32s var(--ease); }
@keyframes modalIn { from { transform: translateY(18px) scale(.985); } }
.modal-hd {
  position: sticky; top: 0;
  background: rgba(14, 16, 19, 0.9);
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 20px clamp(22px, 3vw, 32px);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--hairline);
}
.modal-hd .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.modal-hd h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; margin-top: 8px; letter-spacing: -.01em; }
.modal-x {
  flex: none; background: none; border: 1px solid var(--border-2); color: var(--text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.modal-x:hover { background: var(--bg-3); }
.modal-bd { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.modal-thumb {
  aspect-ratio: 16 / 8; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 10px, var(--placeholder-b) 10px 20px);
  display: grid; place-items: center;
}
.modal-thumb .ph { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.modal-grid .m { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); }
.modal-grid .m b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.modal-grid .m span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.modal-bd h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.modal-bd p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--accent); }
.step .n { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); letter-spacing: .1em; }
.step h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--bg-1); border-block: 1px solid var(--hairline); }
.team-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.team h2 { font-size: clamp(28px, 3.8vw, 48px); }
.team-lead { margin-top: 24px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.team-resp {
  margin-top: 26px; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
}
.team-resp .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.team-resp p { font-size: 15.5px; color: var(--text); line-height: 1.5; }
.pedigree { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.pedigree .ped { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 2.4vw, 26px); border-bottom: 1px solid var(--hairline); }
.pedigree .ped:last-child { border-bottom: 0; }
.pedigree .ped .name { font-weight: 600; font-size: 18px; }
.pedigree .ped .role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pedigree .ped .scale { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; color: inherit; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left; font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 500; letter-spacing: -.01em; transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-ic { flex: none; width: 22px; height: 22px; position: relative; }
.faq-ic::before,
.faq-ic::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.faq-ic::before { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.faq-ic::after  { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-ic::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq-item.open .faq-a-in { animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { transform: translateY(-6px); opacity: .35; } }
.faq-a-in { overflow: hidden; }
.faq-a p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; padding: 0 40px 26px 4px; max-width: 60ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; overflow: hidden; }
.final .wrap { position: relative; z-index: 1; }
.final-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(34px, 5vw, 72px); position: relative; overflow: hidden;
}
.final-card .glow {
  position: absolute; bottom: -40%; left: -10%; width: 50vw; height: 50vw; max-width: 640px;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%); pointer-events: none;
}
.final-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.final h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.final h2 em { font-style: normal; color: var(--accent); }
.final-p { margin-top: 22px; color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 42ch; }
.final-tg { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); transition: color .2s; }
.final-tg:hover { color: var(--accent); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.field input,
.field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input,
.field.invalid textarea { border-color: #ff5b5b; box-shadow: 0 0 0 3px rgba(255, 91, 91, .16); }
.lead-form .btn { justify-content: center; margin-top: 6px; }
.form-fine { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); line-height: 1.5; }
.form-fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.form-done {
  display: none; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 28px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent-soft);
}
.form-done.show { display: flex; }
.form-done .check { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.form-done b { font-size: 19px; font-weight: 600; }
.form-done p { color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(40px, 5vw, 64px); background: var(--bg-1); }
.footer-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.footer-brand p { color: var(--text-3); font-size: 13px; line-height: 1.6; font-family: var(--font-mono); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.footer-col a { font-size: 14.5px; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  color: var(--text-3); font-size: 12.5px; font-family: var(--font-mono);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why-grid, .team-grid, .final-grid, .faq-grid { grid-template-columns: 1fr; }
  .out-grid { grid-template-columns: 1fr; }
  .out-item { padding-top: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiles, .cases { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; white-space: normal; }
  .modal-grid { grid-template-columns: 1fr; }
  /* nav */
  .nav-right .btn-sm { display: none; }
  /* pedigree: stack name+scale on very small screens */
  .pedigree .ped { flex-wrap: wrap; gap: 4px 16px; }
  .pedigree .ped .scale { width: 100%; }
  /* FAQ */
  .faq-q { font-size: 15px; padding: 20px 4px; }
  /* touch targets */
  .faq-q, .modal-x, .nav-burger { min-height: 44px; }
}
