:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-strong: #eef3f8;
  --header: #111827;
  --panel: #172033;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d6dde5;
  --line-strong: #9aa8b5;
  --primary: #0b6fbd;
  --primary-strong: #074b86;
  --primary-soft: #e8f3ff;
  --green: #087b5b;
  --green-soft: #e7f6ef;
  --amber: #9a6700;
  --amber-soft: #fff4d6;
  --teal: #097f8f;
  --teal-soft: #e6f7f9;
  --red: #b42318;
  --red-soft: #fff0ee;
  --focus: #0b6fbd;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
  --radius: 8px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.admin-bar .topbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .topbar {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary-strong);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0.12rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: #ffffff;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: #c9d5e2;
  font-size: 0.76rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 6px;
  color: #e6edf5;
  font-size: 0.88rem;
  font-weight: 650;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 13rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #dbe7f3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-strong);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-strong);
}

.btn-dark {
  background: #ffffff;
  color: var(--header);
  border-color: #ffffff;
}

.btn-dark:hover {
  background: #e8f3ff;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  background: #151f2f;
  color: #ffffff;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e9f7;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3fd6a5;
  box-shadow: 0 0 0 4px rgba(63, 214, 165, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 13ch;
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  margin-bottom: 1.35rem;
  color: #dbe7f3;
  font-size: 1.08rem;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #eaf2fb;
  font-size: 0.86rem;
}

.proof-strip span {
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.ops-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.ops-title {
  font-size: 0.92rem;
  font-weight: 800;
}

.ops-meta {
  color: var(--muted);
  font-size: 0.77rem;
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.36rem 0.55rem;
  border: 1px solid #9fd8c0;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.ops-body {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.workload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.metric {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.pipeline {
  display: grid;
  gap: 0.55rem;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 2rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.pipeline-row b {
  font-size: 0.8rem;
}

.bar {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4eb;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.pipeline-row:nth-child(2) .bar span {
  background: var(--green);
}

.pipeline-row:nth-child(3) .bar span {
  background: var(--teal);
}

.pipeline-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.ops-note {
  padding: 0.75rem;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: #17324a;
  font-size: 0.84rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(16rem, 0.25fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.label {
  margin-bottom: 0.45rem;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.decision-box {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.85rem;
}

.decision-box b {
  display: block;
  color: var(--text);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 19rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.83rem;
  font-weight: 850;
}

.service-card:nth-child(2) .service-number {
  background: var(--green-soft);
  color: var(--green);
}

.service-card:nth-child(3) .service-number {
  background: var(--teal-soft);
  color: var(--teal);
}

.service-card:nth-child(4) .service-number {
  background: var(--amber-soft);
  color: var(--amber);
}

.service-card:nth-child(5) .service-number {
  background: #f0ecff;
  color: #5b3db2;
}

.service-card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.84rem;
}

.service-list li {
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0.45rem;
}

.service-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--primary);
}

.guardrail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.guardrail-panel,
.risk-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.panel-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.panel-body {
  padding: 1rem;
}

.check-list,
.risk-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.risk-list li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-icon,
.risk-icon {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.check-icon {
  background: var(--green-soft);
  color: var(--green);
}

.risk-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-list b,
.risk-list b {
  display: block;
  color: var(--text);
  font-size: 0.91rem;
}

.funnel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(18rem, 0.28fr);
  gap: 1rem;
  align-items: start;
}

.funnel-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.funnel-stage {
  position: relative;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.funnel-stage::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: 2.2rem;
  width: 1rem;
  height: 1rem;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
  background: var(--bg);
}

.funnel-stage:last-child::after {
  display: none;
}

.stage-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.funnel-stage h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.funnel-stage p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.scope-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.scope-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.scope-row:last-child {
  border-bottom: 0;
}

.scope-row b {
  display: block;
  font-size: 0.9rem;
}

.scope-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.scope-status {
  align-self: start;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.step {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.step b {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.step h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-band {
  background: var(--panel);
  color: #ffffff;
  padding: 3rem 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.46fr);
  gap: 1.5rem;
  align-items: start;
}

.cta-grid h2 {
  max-width: 15ch;
  color: #ffffff;
}

.cta-grid p {
  max-width: 42rem;
  color: #d8e1ec;
}

.contact-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.32rem;
  color: #eaf2fb;
  font-size: 0.83rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.72rem 0.78rem;
  background: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 6.25rem;
  resize: vertical;
}

.hint {
  color: #bdd2e7;
  font-size: 0.78rem;
}

.footer {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .search-chip {
    display: none;
  }

  .hero-inner,
  .section-head,
  .funnel-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .funnel-stage-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-stage::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .btn {
    width: 100%;
  }

  .nav {
    display: none;
  }

  .hero-inner {
    padding-top: 2.1rem;
  }

  h1 {
    font-size: 2.6rem;
  }

  .workload-grid,
  .service-grid,
  .guardrail-grid,
  .funnel-stage-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .section {
    padding: 2.35rem 0;
  }

  .footer-inner {
    display: grid;
  }
}
