/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #0a1128;
  --bg-elev: #0f1835;
  --bg-card: #111a3a;
  --line: rgba(120,140,220,0.14);
  --line-strong: rgba(120,140,220,0.28);
  --ink: #f4f5fb;
  --ink-dim: #9ba3c4;
  --ink-mute: #5b6590;
  --accent: #5b5fef;
  --accent-hover: #6c70ff;
  --accent-soft: rgba(91,95,239,0.14);
  --warn: #ef5b7a;
  --radius: 14px;
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ─── Background ─────────────────────────────────────────── */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1000px 700px at 50% 20%, rgba(91,95,239,0.12), transparent 60%);
}
main, header, footer { position: relative; z-index: 2; }

/* ─── Nav ────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,17,40,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 26px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-transform: uppercase;
}
nav ul {
  display: flex; gap: 14px; list-style: none; margin: 0; padding: 0;
}
nav ul a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}
nav ul a:hover { background: var(--accent); color: #fff; }
nav ul a svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  nav ul { display: none; }
}

/* ─── Mobile nav pills (hero) ────────────────────────────── */
.mobile-nav {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.mobile-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}
.mobile-nav a:hover { background: var(--accent); color: #fff; }
.mobile-nav a svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .mobile-nav { display: flex; }
}
@media (max-width: 400px) {
  .mobile-nav a { padding: 9px 14px; font-size: 12px; }
}

/* ─── Hero (home) ────────────────────────────────────────── */
.hero { padding: 120px 0 140px; text-align: center; }
.hero h1 {
  font-family: 'Bricolage Grotesque';
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 auto 28px;
  max-width: 16ch;
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-dim);
  margin: 0 auto 56px;
}
.hero-sub span { display: block; }
@media (max-width: 640px) {
  .hero-sub span { display: inline; }
  .hero-sub span + span::before { content: " "; }
}
.hero-ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 680px; margin: 0 auto;
}
@media (max-width: 640px) {
  .hero-ctas { gap: 12px; }
}

.cta-card {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  transition: all 0.25s ease;
}
@media (max-width: 640px) {
  .cta-card { padding: 24px 16px; gap: 18px; }
  .cta-card h3 { font-size: 18px !important; }
  .cta-btn { padding: 10px 18px !important; font-size: 12px !important; text-align: center; }
}
.cta-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cta-card h3 {
  font-family: 'Bricolage Grotesque';
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0; line-height: 1.2;
}
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-weight: 500; font-size: 14px;
  transition: background 0.2s;
}
.cta-card:hover .cta-btn { background: var(--accent-hover); }

/* ─── Page hero (sub-pages) ──────────────────────────────── */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  justify-content: center;
  display: flex;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque';
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 auto 20px;
  max-width: 18ch;
}
.page-hero .lead {
  max-width: 58ch;
  margin: 0 auto 0;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.2vw, 17px);
}
.page-hero .meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ─── Sections ───────────────────────────────────────────── */
section { padding: 120px 0; }
.eyebrow {
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2 {
  font-family: 'Bricolage Grotesque';
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 20ch;
}
.lead {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-dim);
  max-width: 60ch;
  margin-bottom: 64px;
}

/* ─── Static vs Dynamic ──────────────────────────────────── */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 72px; }
@media (max-width: 860px) { .vs-grid { grid-template-columns: 1fr; } }
.vs-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--bg-card);
}
.vs-card.static { border-color: var(--line-strong); }
.vs-label {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
}
.vs-card.dynamic .vs-label { color: var(--warn); background: rgba(239,91,122,0.1); }
.vs-card.static .vs-label { color: var(--accent); background: var(--accent-soft); }
.vs-card h3 {
  font-family: 'Bricolage Grotesque';
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.vs-card p { color: var(--ink-dim); margin: 0 0 28px; font-size: 15px; }
.vs-flow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-mute);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.vs-flow .node {
  border: 1px solid var(--line-strong);
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
.vs-card.static .vs-flow .node {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

/* ─── Features ───────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feat {
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat:nth-child(2n) { border-right: none; }
.feat:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 760px) {
  .feat { border-right: none; }
  .feat:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feat:last-child { border-bottom: none; }
}
.feat-num {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.feat h4 {
  font-family: 'Bricolage Grotesque';
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.feat p { color: var(--ink-dim); margin: 0; font-size: 15px; line-height: 1.6; }

/* ─── Tech stack ─────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stack { grid-template-columns: 1fr; } }
.tech {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
  transition: all 0.25s;
}
.tech:hover { border-color: var(--accent); transform: translateY(-3px); }
.tech-logo {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--accent-soft);
}
.tech-logo svg { width: 28px; height: 28px; }
.tech h4 {
  font-family: 'Bricolage Grotesque';
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0;
}
.tech p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin: 0; }

/* ─── Final CTA ──────────────────────────────────────────── */
.final {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 80px 56px;
  background: var(--bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.final-inner { position: relative; }
.final h2 { margin-left: auto; margin-right: auto; }
.final .lead { margin-left: auto; margin-right: auto; margin-bottom: 40px; }
@media (max-width: 600px) { .final { padding: 56px 28px; } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-section { padding: 40px 0 120px; }
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.kogzy-form {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 48px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.kogzy-form::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.kogzy-form > * { position: relative; }
@media (max-width: 600px) { .kogzy-form { padding: 32px 24px; } }

.form-row {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.form-row label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10,17,40,0.5);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border 0.2s, background 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--ink-mute);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10,17,40,0.8);
}
.form-row textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.55;
}
.form-row.tall textarea { min-height: 180px; }

.form-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10,17,40,0.4);
  margin-bottom: 22px;
  cursor: pointer;
}
.form-check:hover { border-color: var(--line-strong); }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }
.form-grid-2 .form-row { margin-bottom: 22px; }

.form-submit {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* hide honeypot */
.kogzy-form input[name="_honeypot"] { display: none !important; }

/* ─── Prose (legal / content pages) ──────────────────────── */
.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 0 120px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.75;
}
.prose h2 {
  font-family: 'Bricolage Grotesque';
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 56px 0 16px;
  max-width: none;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Bricolage Grotesque';
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); transition: border 0.2s; }
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* ─── Thank-you ──────────────────────────────────────────── */
.thanks {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 160px;
  text-align: center;
}
.thanks .check {
  width: 72px; height: 72px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
}
.thanks .check svg { width: 32px; height: 32px; color: var(--accent); }
.thanks h1 {
  font-family: 'Bricolage Grotesque';
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.thanks p {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 auto 40px;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: 60px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 16px; display: inline-block; }
.foot-brand p { color: var(--ink-dim); max-width: 36ch; font-size: 14px; }
.foot-col h5 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col ul li { margin-bottom: 12px; }
.foot-col ul a { color: var(--ink-dim); transition: color 0.2s; font-size: 14px; }
.foot-col ul a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-mute);
}
@media (max-width: 600px) {
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger.in > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger.in > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
