:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1322;
  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --ink: #0a0e1a;
  --ink-muted: #4a5572;
  --line: #e3e6ef;
  --accent: #2a4bd1;
  --accent-hover: #1f3aab;
  --accent-soft: #eaeefb;
  --radius: 12px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand .mark { border-radius: 8px; }
.links { display: flex; gap: 22px; }
.links a { color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 120px 0 110px;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-content { position: relative; max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600;
  color: #8aa1d4; margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: #c8d3eb;
  margin: 0 0 32px;
  max-width: 660px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--surface-alt); }
.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.section p { color: var(--ink-muted); margin: 0 0 16px; max-width: 64ch; }
.section .eyebrow { color: var(--accent); }
.muted { color: var(--ink-muted); }

/* Cards */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: #c7cee0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,30,60,0.06);
}
.card-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; }

/* Contact form */
form { margin-top: 28px; display: grid; gap: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
input, textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,75,209,0.15);
}
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-status { margin: 0; font-size: 14px; color: var(--ink-muted); }
.form-status.success { color: #1a7f3c; }
.form-status.error { color: #b3261e; }
.contact-meta { margin-top: 28px; font-size: 14px; color: var(--ink-muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
}
.footer-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-muted);
}
.footer-row p { margin: 0; }

/* Small */
@media (max-width: 600px) {
  .hero { padding: 90px 0 80px; }
  .section { padding: 64px 0; }
  .links { gap: 14px; }
  .links a { font-size: 13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* Hero logo + Contact phone CTA additions (2026-05-26 site update) */
.hero-title {
  margin: 0 0 1.25rem 0;
  font-size: 0;
  line-height: 0;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 24px rgba(91, 140, 255, 0.18));
}
@media (max-width: 640px) {
  .hero-logo { max-width: 260px; }
}
.contact-phone {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted, #6b7280);
  text-align: center;
}
.contact-phone a {
  color: var(--accent, #2a4bd1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .15s ease;
}
.contact-phone a:hover { opacity: .8; }

/* Header logo — replaces the old .mark SVG with a small PNG (2026-05-26 header swap) */
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
/* Vanta.NET canvas binds to .hero-bg; ensure z-index stacking */
.hero-bg { z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
/* The .hero-logo styles added earlier are now unused (logo moved to header) */
.hero-logo, .hero-title { display: none; }

/* Footer links + legal pages (2026-05-26) */
.footer-links {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  margin-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.footer-links a {
  color: var(--muted, #6b7280);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--ink, #0f172a); }
.footer-links span { margin: 0 0.5rem; opacity: 0.5; }
.legal h1 { margin-bottom: 0.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.1rem; }
.legal p { line-height: 1.7; color: var(--ink, #0f172a); }
.legal a { color: var(--accent, #2a4bd1); }
.legal-back { margin-top: 3rem; }
