:root {
  --navy: #071833;
  --navy-2: #0c2348;
  --blue: #163e78;
  --blue-bright: #1f6fbf;
  --green: #0c8f62;
  --gold: #c4a35a;
  --red: #8e2433;
  --paper: #f3f6fb;
  --ink: #142033;
  --muted: #526070;
  --line: #d5deea;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(7, 24, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--blue); }
img { max-width: 100%; }
button, input { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: .5rem 1rem;
  z-index: 20;
}
.skip:focus { top: .5rem; }

.demo-banner {
  background: #10284d;
  color: #d7e6ff;
  text-align: center;
  font-size: .86rem;
  padding: .55rem 1rem;
}
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  display: flex;
  gap: .75rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
  min-width: 16rem;
}
.brand strong, .brand small { display: block; }
.brand small { color: #c9d7ea; font-size: .78rem; }
.crest {
  width: 2.7rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: linear-gradient(#f4f7fb, #d5deea);
  color: var(--navy);
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
  font-weight: 700;
  font-size: .72rem;
}
.crest-note {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem .7rem;
  color: #b7c6da;
  font-size: .75rem;
}
.nav-toggle {
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: .4rem .8rem;
}
.header-tools { display: none; width: 100%; }
.header-tools.is-open { display: block; padding-bottom: .8rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.site-nav a { color: #e7eef8; text-decoration: none; font-size: .95rem; }
.site-nav a.is-active { color: #fff; border-bottom: 2px solid var(--gold); }
.header-search { display: flex; gap: .4rem; margin: .7rem 0; }
.header-search input, .field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .65rem .75rem;
  background: #fff;
  color: var(--ink);
}
.header-search button, .button, .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .6rem 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.header-search button, .button-primary, .login-link {
  background: var(--green);
  color: #fff;
}
.button-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.login-link { white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 1.25rem; }
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(31, 111, 191, .35), transparent 28%),
    linear-gradient(160deg, #071833 0%, #0e2d57 58%, #0c8f62 160%);
  color: #fff;
}
.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.8rem;
  display: grid;
  gap: 1.5rem;
}
.kicker {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--gold);
  margin: 0 0 .4rem;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 .6rem; }
.lede { font-size: 1.05rem; color: #e4edf8; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.fine { color: #c9d7ea; font-size: .88rem; }
.command {
  background: rgba(5, 16, 36, .72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.command-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #d5e4f7; }
.map-svg { width: 100%; height: auto; display: block; }
.node-label { font-size: 8px; fill: #d7e6ff; }
.section { padding: 2.4rem 0; }
.section h2 { margin-top: 0; font-size: 1.8rem; }
.muted { color: var(--muted); }
.card-grid, .module-grid, .integration-grid, .step-grid, .security-grid {
  display: grid;
  gap: 1rem;
}
.card, .module-card, .integration-card, .step, .security-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}
.card h3, .module-card h3, .integration-card h3 { margin: .35rem 0; font-size: 1.12rem; }
.module-card p, .card p, .integration-card p, .security-card p { color: var(--muted); margin: .3rem 0 .8rem; }
.module-card { display: flex; flex-direction: column; }
.module-card a { margin-top: auto; font-weight: 650; }
.icon-chip {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: .6rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.tone-blue { background: #1f6fbf; }
.tone-violet { background: #5b4b8a; }
.tone-green { background: #0c8f62; }
.tone-rose { background: #8e4b68; }
.tone-amber { background: #a56b1d; }
.tone-teal { background: #0e7484; }
.tone-gold { background: #8d6b2f; }
.tone-navy { background: #163e78; }
.tone-red { background: #8e2433; }
.tone-cyan { background: #1a6e86; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 650;
  background: #eef2f7;
  color: #243246;
}
.pill-pending_authorisation { background: #fff4df; color: #7a4e00; }
.pill-not_configured { background: #eef2f7; color: #243246; }
.pill-sandbox { background: #e7f1ff; color: #0d3f86; }
.pill-connected_verified { background: #e5f7ee; color: #0b5b32; }
.pill-demonstration { background: #e7f6f1; color: #0c5b40; }
.step-grid { counter-reset: step; }
.step strong::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
}
.page-hero { padding: 2rem 0 0; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .4rem; }
.form-card { max-width: 32rem; }
.field { display: grid; gap: .3rem; margin-bottom: .8rem; }
.field span { font-size: .9rem; font-weight: 650; }
.alert {
  border-radius: .8rem;
  padding: .8rem 1rem;
  margin: 0 0 1rem;
}
.alert-error { background: #fdecee; color: #6d1824; }
.alert-ok { background: #e8f7ef; color: #0d5130; }
.alert-warn { background: #fff6e5; color: #6a4a10; }
.stack { display: grid; gap: .8rem; }
.site-footer {
  background: var(--navy);
  color: #d5e0ee;
  padding: 2rem 1.25rem 1.2rem;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}
.site-footer a { display: block; color: #fff; text-decoration: none; margin: .25rem 0; }
.footer-legal {
  max-width: 1120px;
  margin: 1rem auto 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: .8rem;
  font-size: .85rem;
}
.result { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .header-tools {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-left: auto;
    width: auto;
  }
  .header-search { margin: 0; min-width: 14rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .card-grid, .security-grid { grid-template-columns: repeat(3, 1fr); }
  .module-grid, .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr .7fr 1fr; }
}
@media (min-width: 1100px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .integration-grid { grid-template-columns: repeat(4, 1fr); }
}
