:root {
  --ink: #17211c;
  --muted: #58645e;
  --line: #d9e1da;
  --surface: #f6f8f3;
  --paper: #ffffff;
  --mint: #1e8a6a;
  --mint-dark: #11664d;
  --gold: #d79b2f;
  --blue: #2d6cdf;
  --coral: #d85f4c;
  --shadow: 0 24px 70px rgba(24, 38, 31, 0.14);
}

* {
  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(--surface);
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(246, 248, 243, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 225, 218, 0.8);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  background: var(--mint);
  box-shadow: 0 10px 24px rgba(30, 138, 106, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta,
.primary-button,
.secondary-button,
.secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.nav-cta,
.primary-button {
  color: white;
  background: var(--mint);
  box-shadow: 0 12px 28px rgba(30, 138, 106, 0.22);
}

.secondary-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.secondary-light {
  color: var(--mint-dark);
  border-color: var(--line);
  background: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 148px);
  display: flex;
  align-items: center;
  padding: 54px clamp(20px, 6vw, 78px) 84px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 18, 14, 0.9) 0%, rgba(8, 22, 18, 0.68) 42%, rgba(8, 20, 17, 0.16) 100%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
}

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

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

.metrics-band div {
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--paper);
}

.metrics-band span {
  display: block;
  color: var(--mint-dark);
  font-size: 2rem;
  font-weight: 900;
}

.metrics-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.app-shell,
.corridors,
.compliance,
.stack {
  padding: 76px clamp(18px, 5vw, 70px);
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 98px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.side-item span {
  color: var(--mint-dark);
  font-weight: 900;
}

.side-item.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(24, 38, 31, 0.08);
}

.workspace {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.panel {
  display: none;
  margin-top: 28px;
}

.panel.active {
  display: block;
}

.quote-grid,
.recipient-layout,
.ops-grid,
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.transfer-form,
.form-card,
.checklist-card,
.quote-card,
.ops-grid article,
.compliance-grid article,
.corridor-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.transfer-form,
.form-card,
.checklist-card,
.quote-card {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(30, 138, 106, 0.13);
}

.quote-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quote-topline span {
  color: var(--muted);
  font-weight: 800;
}

.quote-topline strong {
  display: block;
  margin-top: 10px;
  color: var(--mint-dark);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.quote-breakdown {
  display: grid;
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quote-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: white;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.wide {
  width: 100%;
  border: 0;
}

.quote-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.rate-status {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.form-card h3,
.checklist-card h3,
.ops-grid h3,
.compliance-grid h3 {
  margin: 0 0 18px;
}

.check-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.check-list span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 5px white, 0 0 0 1px var(--mint);
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  min-height: 96px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 28px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline > li > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
  background: white;
  border: 2px solid var(--line);
  z-index: 1;
}

.timeline li.done > span {
  background: var(--mint);
  border-color: var(--mint);
}

.timeline li.current > span {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline strong {
  display: block;
  font-size: 1.12rem;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.ops-grid article,
.compliance-grid article,
.corridor-grid article {
  padding: 22px;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.green {
  background: var(--mint);
}

.amber {
  background: var(--gold);
}

.blue {
  background: var(--blue);
}

.ops-grid p,
.compliance-grid p,
.corridor-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.corridor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.corridor-grid span {
  color: var(--coral);
  font-weight: 900;
}

.corridor-grid strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 1.18rem;
}

.compliance-grid {
  margin-top: 28px;
}

.stack-table {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.stack-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.5fr;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.stack-row:first-child {
  border-top: 0;
}

.stack-row.header {
  color: white;
  background: var(--mint-dark);
  font-weight: 900;
}

.stack-row span:first-child {
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.8);
  background: #111a16;
}

.footer p {
  margin: 0;
}

.footer a {
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

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

  .metrics-band,
  .quote-grid,
  .recipient-layout,
  .compliance-grid,
  .corridor-grid,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 138px);
    padding: 38px 20px 54px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 18, 14, 0.92), rgba(8, 22, 18, 0.58));
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .metrics-band,
  .quote-grid,
  .recipient-layout,
  .compliance-grid,
  .corridor-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .corridors,
  .compliance,
  .stack {
    padding: 52px 16px;
  }

  .sidebar {
    grid-template-columns: repeat(4, 170px);
  }

  .quote-breakdown div,
  .stack-row {
    grid-template-columns: 1fr;
  }

  dd {
    text-align: left;
  }
}
