:root {
  color-scheme: light;
  --ink: #052240;
  --ink-soft: #1d3a5c;
  --muted: #6b7e94;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --surface-strong: #eef1f8;
  --line: #d8e0e8;
  --blue: #005aa0;
  --blue-soft: #1d6fb4;
  --gold: #b49b5a;
  --gold-soft: #c9b275;
  --shadow: 0 24px 70px rgba(5, 34, 64, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 90, 160, .08);
  color: var(--blue);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.01em;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.005em;
}

h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Container ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 240, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
}

.brand picture {
  display: inline-flex;
}

.brand-symbol img {
  height: 40px;
  width: auto;
}

.brand-name img {
  height: 35px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero-section {
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  justify-self: end;
}

.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
}

.hero-visual picture,
.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(360px, 78%) !important;
  max-width: 360px !important;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(255, 255, 255, .9));
}

.hero-text {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 32px rgba(5, 34, 64, .22);
}

.button.primary:hover {
  background: var(--blue);
}

.button.secondary {
  background: rgba(255, 255, 255, .75);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 90, 160, .07), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(180, 155, 90, .09), transparent 35%),
    linear-gradient(135deg, #f7f6f0 0%, #f3f3ec 50%, #efeee2 100%);
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.45vw, 19px);
}

/* ---------- Products ---------- */

.intro-section {
  background: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(5, 34, 64, .08);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
}

.product-card--steward::before {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-soft) 100%);
}

.product-card--protowire::before {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
}

.product-card header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

.tag--product {
  background: rgba(0, 90, 160, .1);
  color: var(--blue);
}

.tag--spec {
  background: rgba(180, 155, 90, .14);
  color: #8a7536;
}

.product-domain {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.product-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.product-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.product-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 14px;
  height: 2px;
  background: var(--blue);
}

.product-card--protowire .product-points li::before {
  background: var(--gold);
}

.product-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  color: var(--blue);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.product-card--protowire .product-link {
  color: #8a7536;
}

.product-link:hover {
  border-bottom-color: currentColor;
}

/* ---------- Why grid ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(5, 34, 64, .07);
}

.metric strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: -.01em;
}

.metric span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Stack diagram ---------- */

.stack-section {
  background: var(--paper);
}

.stack-diagram {
  display: grid;
  gap: 0;
  max-width: 820px;
}

.stack-layer {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(5, 34, 64, .07);
}

.stack-layer--product {
  border-top: 5px solid var(--blue);
}

.stack-layer--spec {
  border-top: 5px solid var(--gold);
}

.stack-layer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.stack-layer-head strong {
  font-size: 22px;
  font-weight: 900;
}

.stack-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 90, 160, .1);
  color: var(--blue);
}

.stack-badge--spec {
  background: rgba(180, 155, 90, .14);
  color: #8a7536;
}

.stack-layer p {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.stack-connector {
  position: relative;
  height: 56px;
  display: grid;
  place-items: center;
}

.stack-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--gold) 100%);
  transform: translateX(-50%);
}

.stack-connector span {
  position: relative;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about-section .about-copy {
  max-width: 820px;
}

.about-copy p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
}

.about-copy a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.about-copy a:hover {
  border-bottom-color: var(--blue);
}

.about-copy .button {
  margin-top: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  height: 37px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

/* ---------- Contact page ---------- */

.contact-section {
  max-width: 720px;
  margin: 0 auto;
}

.contact-section .section-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(5, 34, 64, .08);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 160, .14);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  min-height: 70px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-actions .button {
  min-width: 180px;
}

.form-actions .button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.form-feedback {
  margin: 0;
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.form-feedback[data-state="success"] {
  color: #2f7a3a;
}

.form-feedback[data-state="error"] {
  color: #a93435;
}

/* ---------- Reveal animations ---------- */

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s ease, opacity .7s ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-visual {
    order: -1;
    max-width: 360px;
  }

  .hero-visual picture,
  .hero-visual img {
    width: min(260px, 75%) !important;
    max-width: 260px !important;
  }
}

@media (max-width: 760px) {
  .site-header .container {
    position: relative;
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .hero-section {
    padding: 40px 0 32px;
  }

  .product-card {
    padding: 28px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 12px;
  }
}

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

  .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
