:root {
  --ink: #081423;
  --ink-2: #132235;
  --ink-3: #20344f;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dbe3ea;
  --muted: #607084;
  --teal: #069b8f;
  --teal-dark: #057a72;
  --red: #c92d2d;
  --red-dark: #941f1f;
  --amber: #bb6b12;
  --green: #198754;
  --blue: #2864a8;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(8, 20, 35, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-body {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 20, 35, 0.84), rgba(8, 20, 35, 0.18));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.site-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.header-action {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-section {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  padding: 140px clamp(16px, 6vw, 80px) 88px;
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 20, 35, 0.96), rgba(8, 20, 35, 0.92) 42%, rgba(8, 20, 35, 0.62) 66%, rgba(8, 20, 35, 0.16)),
    linear-gradient(0deg, rgba(8, 20, 35, 0.92), rgba(8, 20, 35, 0.05) 44%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

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

.hero-content h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
}

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

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn.full {
  width: 100%;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 128px;
  padding: 28px clamp(18px, 4vw, 44px);
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  line-height: 1.55;
}

.section,
.app-preview-section {
  padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 72px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section h2,
.app-preview-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section h3,
.app-preview-copy h3 {
  margin: 0 0 8px;
}

.section p,
.app-preview-copy p,
.clean-list {
  color: var(--muted);
  line-height: 1.65;
}

.steps-grid,
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card,
.pilot-grid > div,
.awareness-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-block;
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 28px;
}

.alt-section {
  background: #edf3f6;
}

.awareness-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.clean-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.clean-list li + li {
  margin-top: 10px;
}

.app-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 7vw, 80px);
  background: #fff;
  overflow: hidden;
}

.app-preview-copy {
  max-width: 680px;
}

.app-preview-copy .btn {
  margin-top: 14px;
}

.phone-preview {
  justify-self: center;
  width: min(330px, 86vw);
  height: 640px;
  border: 12px solid #111b2a;
  border-radius: 42px;
  background: #111b2a;
  box-shadow: var(--shadow);
  padding: 18px;
}

.phone-top {
  width: 92px;
  height: 8px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #2b3c55;
}

.phone-screen {
  height: calc(100% - 24px);
  border-radius: 28px;
  background: var(--paper);
  padding: 20px;
}

.mini-status {
  width: 48%;
  height: 12px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--line);
}

.mini-vehicle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.mini-vehicle span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.mini-vehicle small {
  color: rgba(255, 255, 255, 0.64);
}

.mini-sos {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mini-grid span {
  height: 92px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.pilot-grid {
  grid-template-columns: repeat(3, 1fr);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.app-body {
  min-height: 100vh;
  background: #dfe7ed;
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-shell {
  width: min(430px, 100%);
  min-height: min(860px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px 16px;
  background: var(--ink);
  color: #fff;
}

.app-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.app-topbar h1 {
  margin: 0;
  font-size: 24px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 18px;
}

.app-screen {
  display: none;
}

.app-screen.active {
  display: block;
}

.vehicle-card,
.wallet-card,
.blood-card,
.form-panel,
.info-panel,
.simple-list,
.document-list,
.spot-list {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.vehicle-card {
  padding: 20px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink-3);
}

.small-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 900;
}

.vehicle-card .small-label {
  color: rgba(255, 255, 255, 0.56);
}

.vehicle-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  letter-spacing: 0.1em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vehicle-card > span:last-of-type {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.ok {
  color: #d8f8e9;
  background: rgba(25, 135, 84, 0.2);
}

.pill.warn {
  color: #ffe0ad;
  background: rgba(187, 107, 18, 0.22);
}

.sos-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
  border-radius: var(--radius);
  text-align: left;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.sos-strip small,
.action-tile small,
.simple-list small,
.doc-item small,
.spot-item small,
.blood-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.sos-strip small {
  color: rgba(255, 255, 255, 0.72);
}

.sos-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  position: relative;
}

.sos-dot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.action-tile {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.action-tile svg {
  color: var(--teal);
}

.action-tile span {
  font-weight: 900;
}

.info-panel {
  padding: 16px;
  margin-top: 12px;
}

.info-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-panel label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-2);
}

.form-panel input,
.form-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
}

.form-panel textarea {
  min-height: 82px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.toggle-row input {
  width: 22px;
  height: 22px;
}

.simple-list {
  margin-top: 12px;
  overflow: hidden;
}

.simple-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.simple-list > div:last-child {
  border-bottom: 0;
}

.simple-list span {
  font-weight: 900;
  color: var(--teal-dark);
}

.blood-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--ink);
  border-color: var(--ink-3);
  color: #fff;
}

.blood-card .small-label {
  color: rgba(255, 255, 255, 0.54);
}

.blood-card small {
  color: rgba(255, 255, 255, 0.7);
}

.blood-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.score-row div {
  padding: 16px 10px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.score-row strong {
  display: block;
  font-size: 28px;
}

.score-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-list,
.spot-list {
  overflow: hidden;
}

.doc-item,
.spot-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.spot-item {
  grid-template-columns: 1fr;
}

.doc-item:last-child,
.spot-item:last-child {
  border-bottom: 0;
}

.doc-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.doc-icon.ok {
  background: var(--green);
}

.doc-icon.warn {
  background: var(--amber);
}

.doc-item button {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: #e6f7f5;
  font-weight: 900;
  cursor: pointer;
}

.map-lite {
  position: relative;
  height: 240px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d7e0ea;
  border: 1px solid var(--line);
}

.road {
  position: absolute;
  background: #b9c6d5;
}

.road.h {
  left: 0;
  right: 0;
  height: 5px;
}

.road.v {
  top: 0;
  bottom: 0;
  width: 5px;
}

.r1 { top: 36%; }
.r2 { top: 68%; }
.r3 { left: 32%; }
.r4 { left: 70%; }

.pin {
  position: absolute;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.p1 { top: 22%; left: 18%; }
.p2 { top: 44%; left: 58%; background: var(--teal); }
.p3 { top: 72%; left: 36%; background: var(--muted); }

.you-dot {
  position: absolute;
  top: 52%;
  left: 49%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--blue);
}

.wallet-card {
  padding: 18px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink-3);
}

.wallet-card .small-label {
  color: rgba(255, 255, 255, 0.56);
}

.wallet-card strong {
  display: block;
  margin: 8px 0 18px;
  font-size: 38px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bottom-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: var(--teal-dark);
  background: #e6f7f5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 35, 0.66);
}

.modal.open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(390px, 100%);
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.danger-ring {
  display: block;
  width: 74px;
  height: 74px;
  margin: 12px auto;
  border-radius: 50%;
  border: 10px solid rgba(201, 45, 45, 0.15);
  background: var(--red);
}

.modal-panel h2 {
  margin: 0 0 8px;
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.sos-main {
  width: 140px;
  height: 140px;
  margin: 8px auto 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.status-list {
  display: grid;
  gap: 8px;
  text-align: left;
}

.status-list span {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--green);
  background: #e9f7ef;
  font-weight: 800;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scan-body {
  min-height: 100vh;
  background: #fff4f4;
}

.scan-shell {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  color: #fff;
  background: var(--red-dark);
}

.scan-header a {
  font-weight: 900;
}

.scan-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.scan-alert {
  padding: 34px 18px;
  color: #fff;
  background: var(--red);
}

.scan-alert .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.scan-alert h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 68px);
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.scan-alert p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.scan-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.scan-grid article {
  min-height: 154px;
  padding: 18px;
  background: #fff;
}

.scan-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.scan-grid p,
.scan-grid a {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .metrics-band,
  .steps-grid,
  .pilot-grid,
  .awareness-layout,
  .app-preview-section,
  .scan-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 86vh;
    padding-bottom: 64px;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(8, 20, 35, 0.94), rgba(8, 20, 35, 0.5) 62%, rgba(8, 20, 35, 0.16)),
      linear-gradient(90deg, rgba(8, 20, 35, 0.94), rgba(8, 20, 35, 0.52));
  }

  .app-body {
    padding: 0;
  }

  .app-shell {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-action {
    padding: 9px 10px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .quick-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .doc-item {
    grid-template-columns: auto 1fr;
  }

  .doc-item button {
    grid-column: 2;
    justify-self: start;
  }
}
