:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #53615d;
  --surface: #f7f5ef;
  --panel: rgba(255, 255, 255, 0.9);
  --line: #d8ddd6;
  --green: #1d6f50;
  --green-dark: #114b38;
  --blue: #235d86;
  --coral: #c95740;
  --yellow: #f2c14e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(23, 33, 31, 0.12);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  min-height: 42px;
  padding: 3px;
  border: 1px solid rgba(23, 33, 31, 0.18);
  border-radius: 8px;
  background: white;
}

.language-option {
  min-width: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.language-option[aria-pressed="true"] {
  background: var(--green-dark);
  color: white;
}

.login-button,
.quick-actions button {
  min-height: 42px;
  border: 1px solid rgba(23, 33, 31, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
  padding: 0 16px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 116px clamp(18px, 5vw, 72px) 54px;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 24, 22, 0.78), rgba(16, 24, 22, 0.42) 52%, rgba(16, 24, 22, 0.1)),
    linear-gradient(0deg, rgba(16, 24, 22, 0.45), rgba(16, 24, 22, 0));
}

.hero-content {
  align-self: end;
  width: min(920px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  width: min(700px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.route-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 120px minmax(180px, 0.8fr) auto;
  gap: 12px;
  width: min(980px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-action {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--coral);
  color: white;
  font-weight: 800;
  padding: 0 18px;
  white-space: nowrap;
}

.route-status {
  min-height: 26px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--green-dark);
}

.quick-actions button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.content-band {
  padding: 74px clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.matches-band {
  background: #ffffff;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
  background: #fdf9f2;
}

.profile-copy p:not(.eyebrow),
.profile-status {
  color: var(--muted);
  line-height: 1.65;
}

.provider-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.provider-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.provider-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #edf4f1;
  color: var(--green-dark);
  font-size: 0.82rem;
}

.profile-status {
  min-height: 28px;
  margin: 16px 0 0;
  font-weight: 700;
}

.profile-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-preview strong,
.profile-preview span {
  display: block;
}

.profile-preview span {
  margin-top: 4px;
  color: var(--muted);
}

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

.trust-settings {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--green-dark);
}

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

.match-card,
.trust-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
}

.match-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.match-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf4f1;
}

.match-card button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.route-detail {
  color: var(--muted);
  line-height: 1.45;
}

.company-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 42px;
  align-items: center;
  background: #e9f2ef;
}

.company-band p,
.trust-band p,
.insights-band p {
  color: var(--muted);
  line-height: 1.65;
}

.company-form,
.invite-form {
  display: grid;
  gap: 12px;
}

.company-form {
  margin-top: 24px;
}

.company-workspace {
  display: grid;
  gap: 14px;
}

.company-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf4f1;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.company-facts,
.insight-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.company-facts div,
.insight-card dl div {
  min-height: 86px;
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: #fbfaf6;
}

.company-facts dt,
.insight-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-facts dd,
.insight-card dd {
  margin: 6px 0 0;
  font-weight: 850;
}

.invite-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.invite-form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

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

.invite-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.metrics div {
  min-height: 144px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: white;
}

.metrics dt {
  font-size: 2.1rem;
  font-weight: 900;
}

.metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.trust-band {
  background: #fbfaf6;
}

.insights-band {
  background: #ffffff;
}

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

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

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 96vh;
    padding-top: 148px;
  }

  .route-panel,
  .quick-actions,
  .profile-band,
  .provider-list,
  .field-grid,
  .match-grid,
  .company-band,
  .metrics,
  .company-facts,
  .invite-form,
  .insight-grid,
  .insight-card dl,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

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

  .header-actions,
  .login-button {
    width: 100%;
  }

  .language-switcher {
    flex: 1;
  }

  .language-option {
    flex: 1;
  }

  .nav-links {
    font-size: 0.86rem;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .route-panel {
    padding: 12px;
  }
}
