:root {
  --ink: #11191a;
  --graphite: #071011;
  --graphite-2: #0b1718;
  --graphite-3: #102124;
  --paper: #f3f4ef;
  --paper-2: #e9eee8;
  --line: rgba(17, 25, 26, 0.13);
  --line-dark: rgba(236, 245, 238, 0.14);
  --muted: #687674;
  --muted-dark: #9eaaa6;
  --teal: #22c7ad;
  --teal-deep: #0f766e;
  --amber: #d89b37;
  --rust: #b45a2a;
  --rose: #d84e70;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background: var(--graphite);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.hero {
  background: var(--graphite);
  color: #f8fbf7;
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  overflow: hidden;
  padding: 1.25rem 2rem 5.5rem;
  position: relative;
}

.hero::before {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 4.9rem,
      rgba(235, 246, 238, 0.055) 5rem
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 4.9rem,
      rgba(235, 246, 238, 0.055) 5rem
    );
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.hero::after {
  background: rgba(5, 9, 10, 0.52);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 78rem;
  order: 1;
  position: relative;
  width: 100%;
  z-index: 5;
}

.brand {
  display: grid;
  gap: 0.05rem;
  line-height: 1.05;
}

.brand span {
  font-size: 1.08rem;
  font-weight: 850;
}

.brand small {
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 750;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: rgba(248, 251, 247, 0.74);
  font-size: 0.88rem;
  font-weight: 760;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta,
.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 820;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  text-align: center;
}

.nav-cta,
.secondary-button {
  border: 1px solid rgba(248, 251, 247, 0.32);
  color: #ffffff;
}

.nav-cta:hover,
.secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.primary-button {
  background: #f8fbf7;
  color: #0c1516;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.primary-button:hover {
  background: #ffffff;
}

.ledger-scene {
  inset: 0;
  order: 3;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.route-lines {
  inset: 0;
  position: absolute;
}

.route-lines span {
  background: rgba(34, 199, 173, 0.24);
  display: block;
  height: 1px;
  position: absolute;
  transform-origin: left center;
}

.route-lines span:nth-child(1) {
  right: 8%;
  top: 22%;
  transform: rotate(9deg);
  width: 34rem;
}

.route-lines span:nth-child(2) {
  right: 2%;
  top: 44%;
  transform: rotate(-13deg);
  width: 44rem;
}

.route-lines span:nth-child(3) {
  right: 14%;
  top: 72%;
  transform: rotate(4deg);
  width: 36rem;
}

.route-lines span:nth-child(4) {
  background: rgba(216, 155, 55, 0.32);
  right: 29%;
  top: 0;
  transform: rotate(90deg);
  width: 40rem;
}

.ledger-strip {
  --drift-x: -5.5rem;
  --drift-y: 0;
  align-items: center;
  background: rgba(235, 245, 239, 0.08);
  border: 1px solid rgba(235, 245, 239, 0.15);
  border-radius: 6px;
  color: rgba(248, 251, 247, 0.86);
  display: grid;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  gap: 0.7rem;
  grid-template-columns: 4.2rem minmax(11rem, 1.2fr) 9rem minmax(9rem, 0.9fr);
  left: max(50rem, 54vw);
  padding: 0.72rem 0.85rem;
  position: absolute;
  white-space: nowrap;
  width: clamp(38rem, 38vw, 48rem);
}

.ledger-strip strong {
  color: #f2c365;
  font-size: 0.84rem;
  font-weight: 900;
}

.strip-a {
  --drift-x: -7rem;
  --drift-y: 0.2rem;
  top: 10%;
}

.strip-b {
  --drift-x: 6rem;
  --drift-y: -0.1rem;
  top: 78%;
}

.strip-c {
  --drift-x: -8rem;
  --drift-y: -0.25rem;
  top: 88%;
}

.report-surface {
  background: #eff4ee;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  color: var(--ink);
  max-width: 34rem;
  padding: 1.1rem;
  position: absolute;
  right: 5%;
  top: 28%;
  width: 34rem;
}

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

.surface-label span,
.surface-kpis span,
.surface-table small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.surface-label strong {
  font-size: 0.95rem;
}

.surface-kpis {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 0.9rem 0;
}

.surface-kpis div {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem;
}

.surface-kpis div:first-child {
  border-left: 4px solid var(--rust);
}

.surface-kpis strong {
  font-size: 1.32rem;
  line-height: 1.05;
}

.surface-table {
  border-top: 1px solid var(--line);
  display: grid;
}

.surface-table div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) 5.4rem 4.2rem;
  padding: 0.75rem 0;
}

.surface-table span {
  font-weight: 850;
}

.surface-table strong {
  color: var(--teal-deep);
}

.hero-copy {
  margin: 7.2rem auto 0;
  max-width: 78rem;
  order: 2;
  position: relative;
  width: 100%;
  z-index: 3;
}

.hero-copy h1 {
  font-size: 5.25rem;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 12ch;
}

.hero-copy > p:not(.eyebrow) {
  color: rgba(248, 251, 247, 0.82);
  font-size: 1.12rem;
  margin: 1.15rem 0 0;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.proof-line {
  color: rgba(248, 251, 247, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.proof-line span {
  background: rgba(248, 251, 247, 0.08);
  border: 1px solid rgba(248, 251, 247, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.42rem 0.68rem;
}

.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.hero .eyebrow,
.patterns-section .eyebrow,
.data-section .eyebrow {
  color: #90ded1;
}

main {
  background: var(--paper);
}

h2 {
  color: var(--ink);
  font-size: 3.05rem;
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0;
}

.receipt-section,
.pilot-section,
.data-section,
.request-section {
  padding: 5.8rem 2rem;
}

.receipt-section,
.pilot-section,
.request-section {
  margin: 0 auto;
  max-width: 82rem;
}

.section-intro {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 1.2rem;
}

.section-intro h2 {
  max-width: 14ch;
}

.section-intro p {
  color: #53615f;
  font-size: 1.02rem;
  margin: 0;
  max-width: 40rem;
}

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

.receipt-grid article {
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  min-height: 17rem;
  padding: 1.25rem;
}

.receipt-grid article span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #f8fbf7;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.receipt-grid article h2 {
  font-size: 1.6rem;
}

.receipt-grid article p,
.patterns-copy p,
.pilot-grid p,
.data-section li,
.request-copy p,
.form-note {
  color: #53615f;
  font-size: 1rem;
  margin: 0;
}

.patterns-section {
  background: var(--graphite-2);
  color: #f8fbf7;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  padding: 6.2rem max(2rem, calc((100vw - 78rem) / 2));
}

.patterns-copy h2,
.data-section h2 {
  color: #f8fbf7;
}

.patterns-copy p:not(.eyebrow) {
  color: rgba(248, 251, 247, 0.68);
  margin-top: 1rem;
  max-width: 34rem;
}

.pattern-marquee {
  align-content: start;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pattern-marquee span {
  background: rgba(248, 251, 247, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: rgba(248, 251, 247, 0.9);
  font-size: 1rem;
  font-weight: 820;
  min-height: 4.4rem;
  padding: 1rem;
}

.pattern-marquee span:nth-child(2),
.pattern-marquee span:nth-child(5) {
  border-left: 4px solid var(--teal);
}

.pattern-marquee span:nth-child(3),
.pattern-marquee span:nth-child(8) {
  border-left: 4px solid var(--amber);
}

.pattern-marquee span:nth-child(4),
.pattern-marquee span:nth-child(7) {
  border-left: 4px solid var(--rose);
}

.pilot-head {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  margin-bottom: 1.2rem;
}

.pilot-head h2 {
  max-width: 10ch;
}

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

.pilot-grid article {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  min-height: 12rem;
  padding: 1.15rem;
}

.pilot-grid strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.data-section {
  background: #112326;
  color: #f8fbf7;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1fr);
  padding-left: max(2rem, calc((100vw - 78rem) / 2));
  padding-right: max(2rem, calc((100vw - 78rem) / 2));
}

.data-section ul {
  border-top: 1px solid var(--line-dark);
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.data-section li {
  border-bottom: 1px solid var(--line-dark);
  color: rgba(248, 251, 247, 0.78);
  font-weight: 720;
  padding: 1.05rem 0;
}

.data-section li::before {
  color: var(--teal);
  content: "Verified";
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 880;
  margin-right: 0.9rem;
  min-width: 4.2rem;
}

.request-section {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
}

.request-copy h2 {
  max-width: 14ch;
}

.request-copy p {
  font-size: 1.05rem;
  max-width: 43rem;
}

.request-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.field-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.chip-fieldset legend {
  color: #53615f;
  font-size: 0.78rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  background: #ffffff;
  border: 1px solid #cad5d1;
  border-radius: 6px;
  color: var(--ink);
  min-height: 2.85rem;
  padding: 0.75rem 0.82rem;
  width: 100%;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-deep);
  outline: 2px solid rgba(34, 199, 173, 0.18);
}

.request-panel {
  align-self: start;
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.request-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 1.25rem;
}

.request-panel summary::-webkit-details-marker {
  display: none;
}

.request-panel summary span {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 850;
}

.request-panel summary small {
  color: #53615f;
  font-size: 0.78rem;
  font-weight: 760;
}

.request-panel summary::after {
  color: var(--teal-deep);
  content: "Open";
  font-size: 0.78rem;
  font-weight: 880;
}

.request-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.request-panel[open] summary::after {
  content: "Close";
}

.chip-fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 1rem;
}

.chip-fieldset legend {
  padding: 0 0.35rem;
}

.chip-fieldset p {
  color: #53615f;
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
}

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

.checkbox-grid label {
  align-items: center;
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  font-size: 0.92rem;
  font-weight: 750;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.75rem;
}

.checkbox-grid label:has(input:checked) {
  background: rgba(34, 199, 173, 0.12);
  border-color: rgba(15, 118, 110, 0.26);
}

.checkbox-grid input {
  accent-color: var(--teal-deep);
  height: 1rem;
  width: 1rem;
}

.request-form .primary-button {
  justify-self: start;
  background: var(--ink);
  color: #f8fbf7;
}

.form-note {
  font-size: 0.86rem;
}

@media (prefers-reduced-motion: no-preference) {
  .ledger-strip {
    animation: ledger-drift 11s ease-in-out infinite;
  }

  .strip-b {
    animation-delay: -2s;
  }

  .strip-c {
    animation-delay: -4s;
  }
}

@keyframes ledger-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(var(--drift-x), var(--drift-y), 0);
  }
}

@media (max-width: 1100px) {
  .hero-copy h1 {
    font-size: 4.15rem;
  }

  .report-surface {
    opacity: 0.86;
    right: -5rem;
    top: 32%;
  }

  .ledger-strip {
    opacity: 0.58;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 92svh;
    padding: 1rem 1rem 4rem;
  }

  .nav {
    align-items: start;
  }

  .nav-links {
    display: none;
  }

  .hero-copy {
    margin-top: 4.6rem;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
    max-width: 11ch;
  }

  .ledger-scene {
    height: 13rem;
    inset: auto 1rem 1rem;
    margin-top: 0;
    position: absolute;
  }

  .ledger-strip {
    display: none;
  }

  .report-surface {
    left: 0;
    max-width: none;
    opacity: 1;
    right: 0;
    top: 0;
    width: auto;
  }

  .route-lines span:nth-child(1),
  .route-lines span:nth-child(2),
  .route-lines span:nth-child(3) {
    left: -12rem;
    right: auto;
  }

  .receipt-section,
  .pilot-section,
  .data-section,
  .request-section,
  .patterns-section {
    padding: 4.2rem 1rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .receipt-grid,
  .section-intro,
  .patterns-section,
  .pilot-head,
  .pilot-grid,
  .data-section,
  .request-section,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .receipt-grid article,
  .pilot-grid article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 96svh;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 2.35rem;
    padding: 0.56rem 0.72rem;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

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

  .proof-line {
    display: none;
  }

  .ledger-scene {
    height: 10rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .pattern-marquee {
    grid-template-columns: 1fr;
  }

  .surface-table div {
    align-items: start;
    gap: 0.2rem 0.65rem;
    grid-template-columns: minmax(0, 1fr) 5.2rem;
  }

  .surface-table small {
    grid-column: 1 / -1;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .request-form .primary-button {
    align-self: stretch;
  }
}
