:root {
  --ink: #25313a;
  --ink-soft: #44515d;
  --muted: #697886;
  --line: #dbe2e8;
  --paper: #f7f8f9;
  --white: #ffffff;
  --steel: #2c3338;
  --steel-soft: #3c474f;
  --sage: #6b9080;
  --sage-dark: #557769;
  --sage-soft: #e6f0eb;
  --amber: #c4a574;
  --amber-soft: #fff5df;
  --rose: #b07d7d;
  --rose-soft: #f8ecec;
  --shadow: 0 16px 48px rgba(37, 49, 58, 0.10);
  --radius: 8px;
  --max: 1180px;
  --font: "Inter", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 248, 249, 0.94);
  border-bottom: 1px solid rgba(219, 226, 232, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand__mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--steel);
  box-shadow: 0 8px 18px rgba(37, 49, 58, 0.12);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a:last-child {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--steel);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 36px;
  align-items: center;
  max-width: var(--max);
  min-height: min(760px, calc(100vh - 140px));
  margin: 0 auto;
  padding: 54px 22px 38px;
}

.hero__content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.45;
}

.hero__actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

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

.btn--primary {
  background: var(--sage);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--sage-dark);
}

.btn--secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.ops-terminal {
  overflow: hidden;
  border-radius: 12px;
  background: var(--steel);
  color: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid #46535d;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8c2cb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.terminal-card {
  min-height: 132px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.terminal-card--wide {
  grid-column: 1 / -1;
}

.terminal-card--alert {
  background: rgba(196, 165, 116, 0.14);
  border-color: rgba(196, 165, 116, 0.36);
}

.terminal-label {
  display: block;
  margin-bottom: 8px;
  color: #9aa7b2;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.terminal-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.terminal-card p {
  margin-bottom: 0;
  color: #d8e0e6;
  font-size: 13px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.flow-strip,
.service-grid,
.market-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-step,
.service-item,
.market-item,
.roadmap-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(37, 49, 58, 0.05);
}

.flow-step span,
.service-item__code,
.market-item__tag,
.roadmap-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.flow-step p,
.service-item p,
.market-item p,
.roadmap-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.technology {
  max-width: none;
  background: var(--steel);
  color: var(--white);
}

.technology .section__heading,
.technology .tech-panel {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.technology .eyebrow {
  color: #b7d0c4;
}

.technology .section__heading p:not(.eyebrow) {
  color: #c5ced6;
}

.tech-panel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
}

.tech-panel__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 18px;
}

.rail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64727c;
}

.rail-dot--active {
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(107, 144, 128, 0.20);
}

.tech-list {
  display: grid;
  gap: 12px;
}

.tech-row {
  display: grid;
  grid-template-columns: 54px 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.tech-row span {
  color: #94a5b1;
  font-weight: 800;
}

.tech-row p {
  margin-bottom: 0;
  color: #c5ced6;
}

.market {
  position: relative;
}

.market-grid {
  margin-bottom: 18px;
}

.market-item {
  min-height: 210px;
}

.market-item__tag {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: var(--sage-soft);
}

.market-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(107, 144, 128, 0.32);
  border-radius: var(--radius);
  background: #eef5f1;
}

.market-note strong {
  color: var(--ink);
}

.market-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.market-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.market-record div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.market-record span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-record strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.market-record p {
  margin-bottom: 0;
  color: var(--muted);
}

.quote-section {
  max-width: none;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.quote-section .section__heading,
.quote-form {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.quote-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cfd7de;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(107, 144, 128, 0.22);
  border-color: var(--sage);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a85454;
  background: #fff7f7;
}

.field-wide {
  grid-column: span 2;
}

.field-warning {
  align-self: end;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d8b15b;
  border-radius: var(--radius);
  background: #fff8e6;
  color: #705317;
  font-size: 12px;
  font-weight: 800;
}

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

.checks label {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.checks input {
  width: auto;
  min-height: auto;
}

.notes-label {
  margin-bottom: 18px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 700;
}

.form-status.is-error {
  color: #8d4646;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px 46px;
  color: var(--muted);
}

.footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .ops-terminal {
    max-width: 680px;
  }

  .flow-strip,
  .service-grid,
  .market-grid,
  .roadmap-grid,
  .market-record {
    grid-template-columns: 1fr;
  }

  .market-item {
    min-height: auto;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 67px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .site-nav a:last-child {
    text-align: center;
  }

  .brand {
    min-width: 0;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 18px;
  }

  .operations {
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .hero__lead {
    font-size: 16px;
  }

  fieldset,
  .checks,
  .market-note,
  .tech-row {
    grid-template-columns: 1fr;
  }

  .terminal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .terminal-card {
    min-height: 86px;
    padding: 12px;
  }

  .terminal-card strong {
    font-size: 16px;
    line-height: 1.2;
  }

  .terminal-card p {
    font-size: 12px;
  }

  .terminal-label {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .terminal-card--wide,
  .field-wide {
    grid-column: auto;
  }

  .tech-panel {
    grid-template-columns: 1fr;
  }

  .tech-panel__rail {
    display: none;
  }

  .quote-form {
    padding: 18px;
  }

  .footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}
