/* Site-wide layout & page chrome. References tokens from /colors_and_type.css. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }

/* Global keyboard focus indicator (WCAG 2.4.7). Only the primary button and
   form inputs previously had focus styling — nav links, secondary buttons,
   chips, footer links and slide dots had no visible focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.interest-chip:focus-visible,
.slide-dot:focus-visible {
  outline: 2px solid var(--brand-navy-900);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav.on-dark a:focus-visible,
.footer a:focus-visible,
.contact-card a:focus-visible { outline-color: #fff; }
body { font-family: var(--font-sans); color: var(--fg-1); overflow-x: hidden; }

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ===== Skip-to-content link (WCAG 2.4.1) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--brand-navy-900, #0f172a);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
}

/* ===== Nav (full-length top header) ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
/* Nav stays white-surfaced even on dark/image heroes \u2014 matches the full-length header spec */
.nav-wrap.on-dark { background: #fff; border-bottom-color: var(--border); }
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
}
.nav.on-dark .nav-brand .name,
.nav.on-dark .nav-links a { color: var(--fg-2); }
.nav.on-dark .nav-links a.active { color: var(--brand-navy-900); }
.nav.on-dark .nav-links a:hover { color: var(--brand-navy-900); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; display: block; flex-shrink: 0; }
.nav-brand .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--brand-navy-900); }
.nav-links { display: flex; gap: 28px; flex: 1; margin-left: 12px; }
.nav-links a {
  font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  color: var(--fg-2); text-decoration: none;
  position: relative; padding: 8px 0;
  transition: color var(--dur-2) var(--ease-out);
}
.nav-links a:hover { color: var(--brand-navy-900); }
.nav-links a.active { color: var(--brand-navy-900); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -15px;
  height: 2px; background: var(--brand-arctic);
}
.nav.on-dark .nav-links a.active::after { background: var(--brand-arctic); }
.nav-menu { display: contents; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; color: var(--brand-navy-900); padding: 6px; margin-left: auto; align-items: center; border-radius: 8px; transition: background var(--dur-2) var(--ease-out); }
.nav-toggle:hover { background: var(--ink-100); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; line-height: 1; transition: all var(--dur-2) var(--ease-out); text-decoration: none; white-space: nowrap; }
.btn-lg { font-size: 15px; padding: 14px 22px; border-radius: 14px; }
/* Primary CTA uses the deeper arctic stop so white text clears WCAG AA (4.5:1).
   --arctic-600 (#5289AD) only reaches 3.79:1 with #fff, so it was failing on the
   "Request a demo" button. Hover/active step darker within the Arctic palette
   (was stale royal-blue #3360E0/#1F47BD from the pre-Arctic-Reflection design). */
.btn-primary { background: var(--arctic-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--slate-700); color: #fff; box-shadow: 0 10px 28px -8px rgba(82, 137, 173, 0.45); transform: translateY(-1px); }
.btn-primary:active { background: var(--slate-800); box-shadow: var(--shadow-xs); transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--brand-navy-900); outline-offset: 2px; }
.btn-dark { background: var(--brand-navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--brand-navy-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--brand-navy-900); border-color: var(--border); }
.btn-secondary:hover { background: var(--ink-100); color: var(--brand-navy-900); border-color: var(--border-strong); }
.btn-onbrand-secondary { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.btn-onbrand-secondary:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost { background: transparent; color: var(--brand-navy-900); }
.btn-ghost:hover { background: var(--ink-100); color: var(--brand-navy-900); }
.nav.on-dark .btn-ghost { color: #fff; }
.nav.on-dark .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ===== Eyebrow ===== */
.eyebrow { display: inline-block; font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-blue-600); }
.eyebrow.on-dark { color: var(--brand-cyan-400); }

/* ===== Hero (LIGHT) ===== */
.hero { position: relative; padding: 70px 0 100px 0; overflow: hidden; min-height: 720px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(36, 60, 76, 0.14), transparent 50%), radial-gradient(ellipse at bottom left, rgba(82, 137, 173, 0.10), transparent 55%); z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -0.025em; color: var(--brand-navy-900); margin: 18px 0 24px 0; text-wrap: balance; }
.hero-text h1 .accent { background: linear-gradient(90deg, #3D6485 0%, #5289AD 40%, #243C4C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p.lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 520px; margin: 0 0 32px 0; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.hero-meta .pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--success-500); box-shadow: 0 0 0 0 rgba(31, 180, 123, 0.5); animation: pulse 2s infinite; }
/* hero-traces are only used on light hero */
.hero:not(.dark) .hero-traces { position: absolute; right: -40px; top: 40px; width: 720px; height: 600px; opacity: 0.55; z-index: 0; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 180, 123, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(31, 180, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 180, 123, 0); } }

/* ===== Hero (DARK) — no image, just a dark navy gradient ===== */
.hero.dark {
  background: linear-gradient(180deg, #243C4C 0%, #243C4C 60%, #2C4658 100%);
  color: #fff;
  min-height: 720px;
}
.hero.dark .hero-text h1 { color: #fff; }
.hero.dark .hero-text h1 .accent { background: linear-gradient(90deg, #34526A 0%, #243C4C 50%, #5289AD 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.dark .hero-text p.lead { color: var(--ink-300); }
.hero.dark .hero-meta { color: var(--ink-400); }
.hero.dark .hero-bg { display: none; }
.hero.dark .hero-traces { display: none; }
.hero.dark.with-image .hero-grid { grid-template-columns: minmax(0, 620px); }

/* ===== Hero (IMAGE) — full-bleed cinematic background ===== */
.hero.image {
  background: #0A1424;
  color: #fff;
  min-height: 760px;
  padding: 110px 0 130px 0;
}
.hero.image .hero-bg-image {
  position: absolute; inset: 0;
  background-image: url("../assets/hero-cityscape.png");
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
.hero.image .hero-bg-image::after {
  /* Left-to-right darkening overlay so text on the left stays readable */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,18,36,0.96) 0%, rgba(8,18,36,0.82) 35%, rgba(8,18,36,0.45) 60%, rgba(8,18,36,0.25) 100%),
    linear-gradient(180deg, rgba(8,18,36,0.55) 0%, rgba(8,18,36,0.0) 30%, rgba(8,18,36,0.0) 70%, rgba(8,18,36,0.55) 100%);
}
.hero.image .hero-bg { display: none; }
.hero.image .hero-traces { display: none; }
.hero.image .hero-grid {
  grid-template-columns: minmax(0, 720px);
  min-height: 580px;
  align-content: center;
}
.hero.image .hero-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero.image .hero-text h1 { color: #fff; }
.hero.image .hero-ctas { justify-content: flex-start; }
.hero.image .hero-text h1 .accent {
  background: linear-gradient(90deg, #2BB6FF 0%, #5289AD 60%, #ACBCBF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.image .hero-text p.lead { color: rgba(255,255,255,0.82); text-shadow: 0 1px 2px rgba(0,0,0,0.4); max-width: 560px; }
.hero.image .hero-meta { color: rgba(255,255,255,0.7); }
.hero.image .hero-meta .pulse { background: var(--brand-cyan-500); box-shadow: 0 0 0 0 rgba(43, 182, 255, 0.6); }
@keyframes pulse-cyan { 0% { box-shadow: 0 0 0 0 rgba(43, 182, 255, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(43, 182, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 255, 0); } }
.hero.image .hero-meta .pulse { animation: pulse-cyan 2s infinite; }

/* ===== Integrations marquee ===== */
.marquee-section {
  padding: 40px 0 44px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
  text-align: center;
  margin: 0 0 28px 0;
}
.marquee {
  position: relative;
  display: flex;
  gap: 56px;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  flex: 0 0 auto;
  min-width: 100%;
  justify-content: flex-start;
  animation: marquee-scroll 76s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-item img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: transform var(--dur-3) var(--ease-out);
}
.marquee-item:hover img { transform: scale(1.06); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
.cta-strip {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-50);
  color: var(--brand-navy-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip .glow {
  position: absolute; top: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(36, 60, 76, 0.22), transparent 60%);
  filter: blur(60px);
}
.cta-strip .glow-2 {
  position: absolute; bottom: -160px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(82, 137, 173, 0.16), transparent 60%);
  filter: blur(60px);
}
.cta-strip-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr minmax(360px, 520px);
  align-items: center;
  gap: 56px;
}
.cta-strip-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-strip-figure {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.cta-strip-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .cta-strip-inner { grid-template-columns: 1fr; gap: 36px; }
}
.cta-strip h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--brand-navy-900);
  margin: 0; max-width: 640px; text-wrap: balance;
}
.cta-strip h2 .accent {
  background: linear-gradient(90deg, #3D6485 0%, #5289AD 40%, #243C4C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-strip p {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0; max-width: 520px; text-wrap: pretty;
}

/* ===== Footer ===== */
.footer { background: var(--brand-navy-950); color: var(--ink-300); padding: 48px 0 32px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.footer-menu { display: flex; gap: 56px; align-items: start; justify-self: end; }
.footer-col { min-width: 140px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-brand .lockup { display: flex; align-items: center; gap: 12px; }
.footer-brand .lockup img { width: 36px; height: 36px; }
.footer-brand .lockup .name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; letter-spacing: -0.015em; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: var(--ink-300); margin: 0; }
.footer-brand .tagline { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-cyan-400); margin-top: 8px; }
.footer-brand .tagline .dot { color: var(--brand-blue-500); margin: 0 8px; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 14px 0; letter-spacing: 0.04em; text-align: left; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col a { display: inline-flex; font-size: 14px; color: var(--ink-300); text-decoration: none; padding: 3px 0; transition: color var(--dur-2) var(--ease-out); white-space: nowrap; }
.footer-col a:hover { color: var(--brand-cyan-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--ink-400); }
.footer-bottom .socials { display: flex; gap: 16px; align-items: center; }
.footer-bottom .socials a { color: var(--ink-300); transition: color var(--dur-2) var(--ease-out); display: inline-flex; }
.footer-bottom .socials a:hover { color: var(--brand-cyan-400); }

/* ===== Generic page wrap ===== */
.page { padding: 80px 0 120px 0; min-height: 60vh; }
.page-head { max-width: 760px; margin-bottom: 56px; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -0.025em; color: var(--brand-navy-900); margin: 14px 0 20px 0; text-wrap: balance; }
.page-head p.lead { font-size: 20px; line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 620px; text-wrap: pretty; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; border-top: 1px solid var(--border); padding-top: 72px; }
/* About page-head with image beside the headline */
.about-head { max-width: 1100px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.about-head-text { min-width: 0; }
.about-head-text .lead { max-width: 540px; }
.about-head-figure { position: relative; }
.about-head-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .about-head { grid-template-columns: 1fr; gap: 32px; }
  .about-head-figure { order: -1; max-width: 460px; }
}
/* Contact header: smaller, right-aligned image so the shorter headline doesn't leave dead space */
.contact-head { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.contact-head .about-head-figure { max-width: 380px; margin-left: auto; }
@media (max-width: 860px) {
  .contact-head { grid-template-columns: 1fr; }
  .contact-head .about-head-figure { margin: 0; max-width: 380px; }
}

/* ===== Mobile nav ===== */
@media (max-width: 860px) {
  .nav { gap: 12px; padding: 14px 20px; }
  .nav-links { flex: none; margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; box-shadow: var(--shadow-md);
    z-index: 100;
  }
  .nav-wrap.menu-open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; gap: 0; }
  .nav-menu .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-menu .nav-links a.active::after { display: none; }
  .nav-menu .nav-cta { margin-top: 12px; }
  .nav-menu .nav-cta .btn { width: 100%; justify-content: center; }
}
.about-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--brand-navy-900); margin: 36px 0 12px 0; letter-spacing: -0.005em; }
.about-prose h2:first-child { margin-top: 0; }
.about-prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--brand-navy-900); margin: 22px 0 8px 0; }
.about-prose ul { margin: 0 0 14px 0; padding-left: 20px; }
.about-prose ul li { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin-bottom: 6px; text-wrap: pretty; }
.about-prose a { color: var(--brand-blue-600); text-decoration: none; }
.about-prose a:hover { color: var(--brand-cyan-500); }
.legal-meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-3); padding: 6px 12px; background: var(--ink-50); border: 1px solid var(--border); border-radius: var(--radius-pill); margin-top: 18px; }
.legal-toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; padding: 24px; background: var(--ink-50); border: 1px solid var(--border); border-radius: 20px; }
.legal-body { max-width: 800px; }
.legal-body .about-prose { font-size: 16px; }
.legal-toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-blue-600); font-weight: 600; margin: 0 0 12px 0; }
.legal-toc a { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; color: var(--fg-2); text-decoration: none; padding: 7px 0; border-bottom: 1px dashed var(--ink-200); transition: color var(--dur-2) var(--ease-out); }
.legal-toc a:last-child { border-bottom: none; }
.legal-toc a:hover { color: var(--brand-navy-900); }
.about-prose section { scroll-margin-top: 110px; }
.about-prose p { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 0 0 14px 0; text-wrap: pretty; }
.about-sticky { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--ink-50); border: 1px solid var(--border); border-radius: 20px; }
.about-sticky .row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed var(--ink-200); }
.about-sticky .row:last-child { border-bottom: none; padding-bottom: 0; }
.about-sticky .key { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.about-sticky .val { font-family: var(--font-sans); font-size: 15px; color: var(--brand-navy-900); font-weight: 500; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.principle { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.principle .n { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--brand-blue-600); }
.principle h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--brand-navy-900); margin: 4px 0 6px 0; letter-spacing: -0.005em; }
.principle p { font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; border-top: 1px solid var(--border); padding-top: 72px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-legend { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--fg-1); padding: 0; }
.field input, .field textarea, .field select { font-family: var(--font-sans); font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--fg-1); outline: none; transition: all var(--dur-2) var(--ease-out); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-blue-500); box-shadow: 0 0 0 3px rgba(82, 137, 173, 0.18); }
.field textarea { min-height: 110px; }
.field .help { font-size: 12px; color: var(--fg-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.interest-row { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
  font-family: var(--font-sans); font-weight: 500; font-size: 13px;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; line-height: 1;
  border: 1px solid var(--border); background: #fff; color: var(--fg-2);
  cursor: pointer; transition: all var(--dur-2) var(--ease-out);
}
.interest-chip:hover { border-color: var(--border-strong); color: var(--brand-navy-900); }
.interest-chip.active {
  background: var(--brand-navy-900); border-color: var(--brand-navy-900); color: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-aside { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.contact-card { background: var(--brand-navy-950); color: #fff; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; margin: 0 0 8px 0; letter-spacing: -0.005em; }
.contact-card p { font-size: 14px; line-height: 1.55; color: var(--ink-300); margin: 0; }
.contact-card .glow { position: absolute; bottom: -80px; right: -80px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(36, 60, 76, 0.4), transparent 60%); filter: blur(30px); }
.contact-expect { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 8px 24px 12px; box-shadow: var(--shadow-sm); }
.expect-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); padding: 16px 0 14px; border-bottom: 1px solid var(--border); }
.contact-meta { display: flex; flex-direction: column; }
.contact-meta .row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-meta .row:last-child { border-bottom: none; }
.contact-meta .row svg { color: var(--brand-blue-600); flex-shrink: 0; margin-top: 2px; }
.contact-meta .row .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-meta .row .v { font-family: var(--font-sans); font-size: 15px; color: var(--brand-navy-900); font-weight: 500; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand-navy-900); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; z-index: 100; }
.toast svg { color: var(--success-500); }

@media (max-width: 880px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-menu { grid-column: 1; justify-self: start; flex-wrap: wrap; gap: 32px; }
}

/* ==========================================================
   Extensions — stats, services preview, process, services page
   ========================================================== */

/* ===== Section header ===== */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.muted { background: var(--bg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.dark { background: var(--brand-navy-950); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; color: var(--brand-navy-900); margin: 14px 0 16px 0; text-wrap: balance; }
.section-head h2 .accent { background: linear-gradient(90deg, #3D6485 0%, #5289AD 40%, #243C4C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { font-size: 17px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 600px; }
.section.dark .section-head h2 { color: #fff; }
.section.dark .section-head h2 .accent { background: linear-gradient(90deg, #5289AD 0%, #ACBCBF 50%, #5289AD 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section.dark .section-head p { color: var(--ink-300); }

/* ===== Stats strip ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-blue-600); font-weight: 600; }
.stat-cell .value { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.025em; color: var(--brand-navy-900); margin: 14px 0 8px 0; }
.stat-cell .value .unit { font-size: 24px; color: var(--brand-arctic); font-weight: 700; margin-left: 2px; }
.stat-cell .label { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; color: var(--fg-2); margin: 0; }

/* ===== Services preview grid (home) ===== */
.build-head {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 56px;
  align-items: center;
  margin-bottom: 0;
}
.build-figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--brand-navy-950);
}
.build-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 880px) {
  .build-head { grid-template-columns: 1fr; gap: 32px; }
  .build-figure { max-width: 440px; }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--dur-2) var(--ease-out);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5289AD 0%, #243C4C 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(82, 137, 173, 0.4);
}
.service-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-navy-900); margin: 0; letter-spacing: -0.01em; }
.service-card p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.service-card .stack {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
}
.service-card .stack span {
  padding: 3px 8px;
  background: var(--ink-100);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  color: var(--brand-blue-600);
  transition: color var(--dur-2) var(--ease-out);
}
.service-card:hover .more { color: var(--brand-cyan-500); }
.service-card .more svg { transition: transform var(--dur-2) var(--ease-out); }
.service-card:hover .more svg { transform: translate(2px, -2px); }

/* ===== Process diagram ===== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-arctic) 0 6px, transparent 6px 12px);
  opacity: 0.6;
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.process-step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-navy-900);
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px -4px rgba(36, 60, 76, 0.25);
}
.process-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--brand-navy-900); margin: 0; letter-spacing: -0.01em; }
.process-step p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 240px; }
.process-step .timing { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--brand-blue-600); }

.section.dark .process-step .num { background: var(--brand-navy-900); border-color: var(--brand-arctic); color: #fff; }
.section.dark .process-step h4 { color: #fff; }
.section.dark .process-step p { color: var(--ink-300); }
.section.dark .process-step .timing { color: var(--brand-cyan-400); }
.section.dark .process::before { opacity: 0.4; }

/* ===== Services page — service deep-dives ===== */
.service-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 120px;
}
.service-deep:first-of-type { border-top: none; padding-top: 32px; }
.service-deep.reverse .service-deep-text { order: 2; }
.service-deep-text .eyebrow { margin-bottom: 14px; }
.service-deep-text h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: var(--brand-navy-900); margin: 0 0 18px 0; text-wrap: balance; }
.service-deep-text > p { font-size: 17px; line-height: 1.55; color: var(--fg-2); margin: 0 0 24px 0; max-width: 540px; }
.service-deep-text .feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.service-deep-text .feature-list .item { display: flex; gap: 12px; align-items: flex-start; }
.service-deep-text .feature-list .item svg { color: var(--brand-blue-600); flex-shrink: 0; margin-top: 2px; }
.service-deep-text .feature-list .item strong { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--brand-navy-900); display: block; margin-bottom: 2px; }
.service-deep-text .feature-list .item span { font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* Mock visual (terminal-style or diagram) on service detail */
.service-visual {
  background: var(--brand-navy-950);
  border-radius: 18px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-300);
  box-shadow: 0 30px 60px -20px rgba(36, 60, 76, 0.35);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.service-visual .vhead {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.service-visual .vhead .traffic span {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin-right: 5px;
}
.service-visual .vhead .tag { margin-left: auto; font-size: 10px; color: var(--brand-cyan-400); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.service-visual .line { padding: 4px 0; line-height: 1.5; }
.service-visual .line .prompt { color: var(--brand-cyan-400); }
.service-visual .line .key { color: var(--brand-arctic); }
.service-visual .line .val { color: #fff; }
.service-visual .line .comment { color: var(--ink-400); font-style: italic; }
.service-visual .line .ok { color: var(--success-500); }
.service-visual .line .warn { color: var(--warning-500); }
.service-visual .indent { padding-left: 18px; }

/* Service detail — full image visual */
.service-image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px -20px rgba(36, 60, 76, 0.35);
  background: var(--brand-navy-950);
}
.service-image img { display: block; width: 100%; height: auto; }

/* ===== Stack badge row ===== */
.stack-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  font-weight: 500;
}
.stack-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-arctic);
}

/* ===== About sticky tweaks (kept same) — but allow longer principles list ===== */
.principles { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .process::before { display: none; }
  .service-deep { grid-template-columns: 1fr; gap: 32px; }
  .service-deep.reverse .service-deep-text { order: 0; }
}
@media (max-width: 600px) {
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .process { grid-template-columns: 1fr; }

  /* Contact form — mobile */
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; gap: 16px; border-radius: 16px; }
  .field input, .field textarea, .field select { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .page { padding: 56px 0 80px 0; }
}

/* ============================================================
   Pricing page — 3-pillar cards + FAQ
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 56px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.price-card.featured {
  border-color: var(--brand-blue-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  /* deeper arctic so the white badge label clears AA contrast (arctic-600 #5289AD only 3.79:1) */
  background: var(--arctic-700); color: #fff;
  font-family: var(--font-sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.price-head { margin-bottom: 4px; }
.price-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; line-height: 1.1; color: var(--brand-navy-900);
  margin: 10px 0 6px 0;
}
.price-scope {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.02em; color: var(--fg-3); line-height: 1.4;
}
.price-amount-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 18px 0; margin: 14px 0 4px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.price-amount {
  font-family: var(--font-display); font-weight: 800;
  font-size: 34px; line-height: 1; color: var(--brand-navy-900);
}
.price-usd { font-size: 15px; color: var(--fg-3); font-weight: 600; }
.price-unit {
  flex-basis: 100%;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--fg-3);
}
.price-intro {
  font-size: 14px; line-height: 1.55; color: var(--fg-2);
  margin: 18px 0 20px 0;
}
.price-card .feature-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px; flex: 1 1 auto;
}
.price-card .feature-list .item { display: flex; gap: 10px; align-items: flex-start; }
.price-card .feature-list .item svg { color: var(--brand-blue-600); flex-shrink: 0; margin-top: 2px; }
.price-card .feature-list .item strong { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--brand-navy-900); display: block; margin-bottom: 2px; }
.price-card .feature-list .item span { font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.price-card .btn { width: 100%; margin-top: auto; }

.pricing-foot {
  text-align: center; font-size: 14px; color: var(--fg-2);
  max-width: 640px; margin: 0 auto 72px auto; line-height: 1.6;
}
.pricing-foot a { color: var(--brand-blue-600); font-weight: 600; }

.faq { max-width: 760px; margin: 0 auto; }
.faq-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; color: var(--brand-navy-900);
  margin: 0 0 8px 0; text-align: center;
}
.faq-item { padding: 22px 0; border-top: 1px solid var(--border); }
.faq-item:first-of-type { border-top: none; }
.faq-item h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--brand-navy-900); margin: 0 0 6px 0;
}
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-card.featured { transform: none; }
}
