:root {
  --navy: #0d2340;
  --navy-light: #16335c;
  --teal: #1d9e75;
  --teal-light: #5dcaa5;
  --teal-pale: #f4f8f6;
  --gray-bg: #eef1f6;
  --text-dark: #0d2340;
  --text-body: #4a5568;
  --text-muted: #8fa3bd;
  --white: #ffffff;
  --danger: #c0392b;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-body);
  line-height: 1.6;
  background: var(--white);
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--text-dark); margin: 0; font-weight: 600; }

.accent-text { color: var(--teal); }

/* ---------- Icons ---------- */
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }

.btn-accent { background: var(--teal); color: var(--white); }
.btn-accent:hover { background: #178a63; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #f0f0f0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid #e6e8ec;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 46px; height: 26px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-word { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.logo-accent { color: var(--teal); }
.logo-sub { font-size: 0.55rem; letter-spacing: 0.14em; color: #5f5e5a; }

.main-nav { display: flex; gap: 1.5rem; font-size: 0.875rem; color: #444; }
.main-nav a:hover { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid #e6e8ec;
}
.mobile-nav a { padding: 0.6rem 0; font-size: 0.95rem; border-bottom: 1px solid #f0f1f4; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); overflow: hidden; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.hero-copy { max-width: 560px; position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-lede {
  color: #c7d2e0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; gap: 0.75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; }
.hero-trust .icon { color: var(--teal-light); }

.hero-art { display: flex; justify-content: center; align-items: center; opacity: 0.5; }
.hero-art svg { width: 280px; height: 280px; }

/* ---------- Banner strip ---------- */
.banner-strip {
  background: var(--teal-pale);
  border-bottom: 1px solid #e6e8ec;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  flex-wrap: wrap;
}
.banner-strip .icon-clock { width: 24px; height: 24px; }
.banner-title { margin: 0; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.banner-sub { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--text-body); }

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid #e6e8ec;
  text-align: center;
}
.trust-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f5e5a;
  margin: 0 0 1rem;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--navy);
}
.trust-items span { display: flex; align-items: center; gap: 0.4rem; }

/* ---------- Connected section ---------- */
.connected-section {
  background: var(--gray-bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.connected-copy h2 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 0.75rem; }
.connected-copy p { margin-bottom: 1.25rem; font-size: 0.95rem; }
.connected-diagram { display: flex; justify-content: center; }
.connected-diagram svg { width: min(320px, 100%); height: auto; }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--navy); padding: 3rem 1.5rem; text-align: center; }
.capabilities-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}
.capabilities-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.cap-item { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cap-item .icon { width: 26px; height: 26px; color: var(--text-muted); }
.cap-item span { color: #c7d2e0; font-size: 0.8rem; }
.cap-featured .icon { color: var(--teal-light); }
.cap-featured span { color: var(--white); font-weight: 600; }

/* ---------- CTA footer ---------- */
.cta-footer {
  background: var(--teal);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 0;
}
.cta-title { margin: 0; font-weight: 600; color: #04342c; font-size: 0.95rem; }
.cta-sub { margin: 0.15rem 0 0; color: #085041; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--navy); }

.modal-body { padding: 2rem 1.75rem; }
.modal-body h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.modal-sub { font-size: 0.85rem; color: var(--text-body); margin: 0 0 1.5rem; }

.demo-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d5dae2;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-dark);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.form-row textarea { resize: vertical; }

.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1em;
}

.form-row.has-error input,
.form-row.has-error select { border-color: var(--danger); }

.form-submit { margin-top: 0.5rem; width: 100%; }

.form-success { text-align: center; padding: 1rem 0; }
.form-success .icon-check {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-success .btn { background: var(--gray-bg); color: var(--navy); border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { display: none; }
  .connected-section { grid-template-columns: 1fr; text-align: left; }
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .cta-footer { flex-direction: column; text-align: center; }
  .trust-items { gap: 1.25rem; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-inner { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
  .modal-body { padding: 1.5rem 1.25rem; }
}

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

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
