:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --line: #d8dee8;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --violet: #6d28d9;
}

* { 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);
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.command,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 720;
  font-size: 14px;
}

.command,
.primary {
  color: white;
  background: var(--ink);
}

.secondary {
  border: 1px solid var(--line);
  background: white;
}

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(26px, 5vw, 72px);
  min-height: 620px;
  padding: clamp(44px, 8vw, 110px) clamp(18px, 5vw, 72px) 38px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, .10), transparent 35%),
    linear-gradient(180deg, #fff, #eef3f8);
}

.hero-copy {
  align-self: center;
  max-width: 880px;
  min-width: 0;
}

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

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

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 690px;
  color: #475569;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.hero-panel {
  align-self: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.panel-head,
.offer-top,
.offer-meta,
.offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.panel-head strong { color: var(--ink); }

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

.signal-grid div,
.focus-card,
.metrics article,
.lanes article,
.trust-grid article,
.offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.signal-grid div {
  padding: 12px;
}

.signal-grid span,
.offer p,
.offer-foot,
.metrics p,
.lanes p,
.trust-grid p {
  color: var(--muted);
}

.signal-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.focus-card {
  margin-top: 12px;
  padding: 18px;
  background: #101827;
  color: white;
}

.focus-card span { color: #93c5fd; font-weight: 800; }
.focus-card h2 { margin: 10px 0 8px; font-size: 28px; }
.focus-card p { color: #cbd5e1; }

.map-preview {
  display: block;
  width: 100%;
  height: 190px;
  margin-top: 12px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 8px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
}

.metrics,
.workspace,
.workflow,
.trust,
.modules {
  padding: 54px clamp(18px, 5vw, 72px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #111827;
}

.metrics article {
  min-height: 150px;
  padding: 18px;
  background: #172033;
  border-color: rgba(255, 255, 255, .1);
}

.metrics span { color: #93c5fd; font-weight: 800; }
.metrics strong { display: block; margin: 16px 0 8px; color: white; font-size: 18px; }
.metrics p { margin-bottom: 0; color: #cbd5e1; line-height: 1.45; }

.perspectives {
  background: white;
}

.role-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef2f7;
}

.role-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.role-tab.active {
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}

.perspective-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 14px;
  align-items: stretch;
}

.persona-main,
.path-card,
.pain-card,
.persona-stats article,
.module-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.persona-main {
  grid-row: span 2;
  padding: clamp(22px, 4vw, 38px);
  background: #101827;
  color: white;
}

.persona-main h3 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.persona-main p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.5;
}

blockquote {
  margin: 22px 0;
  padding-left: 18px;
  border-left: 3px solid #38bdf8;
  color: #e0f2fe;
  font-size: 20px;
  line-height: 1.45;
}

.persona-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.persona-stats article {
  padding: 16px;
}

.persona-stats span,
.module-grid span,
.roadmap-grid span,
.pricing-strip span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.persona-stats strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 30px;
}

.persona-stats p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.path-card,
.pain-card {
  padding: 18px;
}

.path-card strong,
.pain-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.path-card ol,
.pain-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.modules {
  background: #eef3f8;
}

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

.module-grid article {
  min-height: 240px;
  padding: 18px;
}

.module-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

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

.module-grid span {
  display: block;
  margin-top: 18px;
  color: var(--teal);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #475569;
  font-weight: 720;
  font-size: 14px;
}

.tab.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.tab span {
  font-size: 12px;
  opacity: .72;
}

.search {
  flex: 1 1 280px;
  min-width: 220px;
}

.search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font: inherit;
}

.offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 230px;
}

.offer {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

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

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.open { background: var(--teal); }
.badge.requested { background: var(--blue); }
.badge.process { background: var(--amber); }
.badge.done { background: var(--green); }

.offer h3 {
  margin-bottom: -6px;
  font-size: 21px;
  line-height: 1.12;
}

.offer p { line-height: 1.45; }
.offer-meta { margin-top: auto; }
.offer-foot { font-size: 13px; }
.offer-foot span:first-child { color: var(--ink); font-weight: 800; }

.empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
}

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

.lanes article,
.trust-grid article {
  padding: 18px;
}

.lanes span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lanes h3,
.trust-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 18px;
}

.lanes p,
.trust-grid p { margin-bottom: 0; line-height: 1.45; }

.trust { padding-bottom: 80px; background: white; }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.roadmap-grid article span {
  color: var(--amber);
}

.pricing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pricing-strip div {
  padding: 18px;
  background: #f8fafc;
}

.pricing-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
}

.pricing-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .metrics, .offers, .lanes, .trust-grid, .module-grid, .pricing-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perspective-panel { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 620px) {
  .topbar { gap: 12px; }
  .brand span:last-child { display: none; }
  .command {
    width: 40px;
    min-width: 40px;
    padding: 0;
    margin-left: auto;
    overflow: hidden;
    font-size: 0;
  }
  .command::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 38px;
  }
  .hero-panel { border-radius: 12px; }
  .signal-grid, .metrics, .offers, .lanes, .trust-grid, .module-grid, .persona-stats, .pricing-strip { grid-template-columns: 1fr; }
  .role-switch { display: grid; width: 100%; }
  .section-title { display: block; }
  h1 {
    max-width: min(100%, 340px);
    font-size: 31px;
    line-height: 1.04;
  }
  .lede {
    max-width: min(100%, 340px);
    font-size: 18px;
  }
  .panel-head strong { display: none; }
}

/* Per-offer status transitions. */
.offer-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.offer-actions button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.offer-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
