:root {
  --ink: #202124;
  --muted: #636a73;
  --line: #dfe3e8;
  --soft: #f6f7f8;
  --paper: #ffffff;
  --brand: #1f6f5b;
  --brand-strong: #15513f;
  --accent: #c46a2a;
  --blue: #315c9b;
  --danger: #b42318;
  --shadow: 0 12px 32px rgba(31, 42, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-weight: 800;
}

.brand-line,
.muted,
.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav {
  display: flex;
  gap: 0.9rem;
}

.top-nav a,
.header-cta,
.btn {
  text-decoration: none;
}

.top-nav a {
  color: var(--muted);
  font-weight: 650;
}

.header-cta,
.btn,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.primary,
.header-cta {
  background: var(--brand);
  color: #fff;
}

.primary:hover,
.header-cta:hover {
  background: var(--brand-strong);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.full {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.78fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 4.25rem);
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  background:
    linear-gradient(120deg, rgba(31, 111, 91, 0.14), rgba(196, 106, 42, 0.1)),
    linear-gradient(180deg, #ffffff, #edf3ef);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: #3d4650;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin: 1.5rem 0 0;
}

.hero-metrics div,
.visual-panel,
.feature-card,
.panel,
.signup-form,
.signup-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-metrics div {
  padding: 0.85rem;
}

.hero-metrics dt {
  font-size: 1.55rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  background: #202124;
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  gap: 0.35rem;
  padding: 0 0 0.8rem;
}

.visual-toolbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #f1f3f4;
}

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

.visual-panel {
  min-height: 7rem;
  padding: 0.9rem;
}

.visual-panel.wide {
  grid-column: 1 / -1;
}

.visual-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.visual-amount,
.visual-kpi {
  margin-top: 0.35rem;
  font-size: 2rem;
  font-weight: 850;
}

.visual-bars {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  height: 5.5rem;
  margin-top: 0.7rem;
}

.visual-bars span {
  flex: 1;
  min-width: 1rem;
  border-radius: 6px 6px 0 0;
  background: var(--brand);
}

.visual-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.visual-row:last-child {
  border-bottom: 0;
}

.platform-band,
.network-band,
.signup-section,
.app-shell {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 62rem;
  margin: 0 auto 1.2rem;
}

.section-heading.compact {
  margin-bottom: 0.8rem;
}

.section-heading h2,
.network-band h2,
.signup-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.feature-grid {
  max-width: 72rem;
  margin: 0 auto;
}

.feature-card,
.llh-card,
.panel {
  padding: 1rem;
}

.feature-icon,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  background: #e6f2ee;
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.feature-card h3,
.llh-card h3,
.panel h3 {
  margin: 0.5rem 0 0.45rem;
}

.feature-card p,
.llh-card p,
.panel p,
.llh-card li {
  color: var(--muted);
}

.app-shell {
  background: #eef2f1;
}

.portal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0.9rem;
  max-width: 78rem;
  margin: 0 auto;
}

.side-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-group {
  margin: 0.45rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-btn {
  min-height: 2.3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.nav-btn:hover {
  border-color: var(--line);
  background: var(--soft);
}

.nav-btn.active {
  background: var(--brand);
  color: #fff;
}

.portal-content {
  min-width: 0;
}

.status {
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  display: none;
}

.section.visible {
  display: grid;
  gap: 0.85rem;
}

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

.summary-tile {
  padding: 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.summary-tile strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.55rem;
}

.panel {
  min-width: 0;
  box-shadow: 0 1px 3px rgba(32, 33, 36, 0.05);
}

.llh-lead {
  margin-top: 0;
}

.callout,
.action-error,
.err {
  border-radius: 8px;
  padding: 0.75rem;
}

.callout {
  background: #fff7ed;
  color: #6d3a12;
}

.action-error,
.err {
  background: #fef3f2;
  color: var(--danger);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.52rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.table-action {
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  background: #f0f6ff;
  color: var(--blue);
  border-color: #bfd2f1;
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.inline-form,
.signup-form {
  display: grid;
  gap: 0.75rem;
}

.inline-form {
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.7rem;
  color: var(--ink);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.network-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  background: #fff;
}

.network-list {
  display: grid;
  gap: 0.75rem;
}

.network-list p {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.55fr);
  gap: 1rem;
}

.signup-copy,
.signup-form {
  padding: 1rem;
}

.blog-wrap { max-width: 70rem; margin: 0 auto; padding: 1rem; }
.blog-hero { padding: 1.25rem 0 1rem; }
.blog-kicker { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.blog-hero h1 { margin: 0 0 0.5rem; font-size: 2rem; line-height: 1.1; }
.blog-hero p { max-width: 42rem; margin: 0; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.9rem; }
.blog-post { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.blog-post h2 { margin: 0.4rem 0 0.65rem; font-size: 1.2rem; line-height: 1.2; }
.blog-post h3 { margin: 1rem 0 0.35rem; color: var(--ink); font-size: 0.9rem; }
.blog-post p, .blog-post li, .blog-definition-list { color: var(--muted); font-size: 0.9rem; }
.blog-post ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.blog-post code { font-size: 0.84em; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.blog-meta span { display: inline-block; padding: 0.14rem 0.45rem; border-radius: 999px; background: #e9ecef; color: var(--muted); font-size: 0.72rem; }
.blog-definition-list { display: grid; gap: 0.65rem; margin: 0.5rem 0 0; }
.blog-definition-list div { padding-top: 0.55rem; border-top: 1px solid var(--line); }
.blog-definition-list dt { color: var(--ink); font-weight: 700; }
.blog-definition-list dd { margin: 0.15rem 0 0; }

.auth-page,
.dashboard-page {
  background: var(--soft);
  color: var(--ink);
}

.auth-shell {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.auth-brand {
  width: max-content;
}

.auth-panel {
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-panel p {
  color: var(--muted);
}

.auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: #fff;
}

.dashboard-brand {
  margin-bottom: 1.25rem;
}

.dashboard-nav,
.dashboard-nav-group {
  display: grid;
  gap: 0.42rem;
}

.dashboard-nav {
  gap: 1rem;
}

.dashboard-nav-label {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-nav-btn {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.dashboard-nav-btn:hover {
  border-color: var(--line);
  background: var(--soft);
}

.dashboard-nav-btn.active {
  background: var(--brand);
  color: #fff;
}

.dashboard-main {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.dashboard-topbar,
.topbar-actions,
.topbar-account,
.meta-row,
.bid-row,
.contractor-card-top,
.directory-filter-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dashboard-topbar {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-topbar h1 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-account {
  min-height: 2.5rem;
  padding: 0.28rem 0.65rem 0.28rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.topbar-account strong,
.topbar-account span {
  display: block;
  white-space: nowrap;
}

.topbar-account span {
  color: var(--muted);
  font-size: 0.76rem;
}

.topbar-initials {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-panel,
.ops-card,
.directory-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-panel {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.dashboard-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.ops-grid,
.directory-card-grid,
.roadmap-stage-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.ops-card {
  min-width: 0;
  padding: 0.9rem;
}

.ops-card h3,
.directory-hero h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1rem;
}

.ops-card p,
.timeline-item p {
  color: var(--muted);
}

.dashboard-form,
.project-update-form {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.checkline {
  display: flex;
  align-items: center;
}

.checkline input {
  width: auto;
}

.meta-row,
.bid-row {
  justify-content: space-between;
}

.meta-row span,
.bid-row span,
.card-kicker,
.timeline-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.bid-table,
.timeline-list {
  display: grid;
  gap: 0.6rem;
}

.bid-row {
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.timeline-item {
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand);
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(8rem, 0.25fr));
  gap: 0.75rem;
  align-items: stretch;
}

.directory-metric {
  display: grid;
  align-content: center;
  min-height: 6rem;
  padding: 0.8rem;
  background: #202124;
  color: #fff;
}

.directory-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.directory-metric strong {
  font-size: 1.55rem;
}

.directory-filter-row {
  flex-wrap: wrap;
}

.directory-sort-control {
  width: min(100%, 18rem);
  margin-left: auto;
}

.filter-chip,
.roadmap-stage-btn {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.roadmap-stage-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.contractor-directory-card {
  display: grid;
  gap: 0.55rem;
}

.vendor-status {
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: var(--brand-strong);
  background: #e6f2ee;
  font-size: 0.74rem;
  font-weight: 820;
}

.directory-score {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.directory-score strong {
  font-size: 1.4rem;
}

.roadmap-upload-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  width: max-content;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: var(--brand-strong);
  background: #eef7f4;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.roadmap-upload-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

  .menu-toggle {
    display: grid;
    gap: 0.22rem;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.55rem;
  }

  .menu-toggle span {
    height: 2px;
    background: var(--ink);
  }

  .site-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.menu-open .site-menu {
    display: flex;
  }

  .top-nav {
    flex-direction: column;
  }

  .hero,
  .network-band,
  .signup-section,
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-metrics,
  .feature-grid,
  .llh-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .dashboard-shell,
  .dashboard-topbar,
  .directory-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    z-index: 25;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-brand {
    margin-bottom: 0;
  }

  .dashboard-menu-toggle {
    display: grid;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .dashboard-nav {
    display: none;
    margin-top: 1rem;
  }

  .dashboard-sidebar.menu-open .dashboard-nav {
    display: grid;
  }

  .dashboard-topbar,
  .topbar-actions,
  .meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-sort-control {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .side-nav {
    width: 100%;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}
