:root {
  color-scheme: light;
  --ink: #080c14;
  --muted: #586174;
  --line: #dfe4ec;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --navy: #071225;
  --navy-2: #0d1b31;
  --gold: #c9981a;
  --gold-2: #f0cf68;
  --green: #1a8c5a;
  --red: #b94b4b;
  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(--paper);
  color: var(--ink);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 32px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 6px;
  font-weight: 850;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold-2);
}

.brand-name {
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

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

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

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

.language-switcher,
.auth-actions {
  display: flex;
  border: 1px solid var(--line);
  background: var(--paper);
}

.auth-links {
  display: flex;
  gap: 8px;
}

.lang-button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.lang-button:last-child {
  border-right: 0;
}

.lang-button.active {
  background: var(--ink);
  color: var(--paper);
}

.hero,
.operating-system {
  min-height: calc(100vh - 64px);
  padding: 72px 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: 64px;
  align-items: center;
  background:
    linear-gradient(140deg, rgba(201, 152, 26, 0.18), transparent 34%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: var(--paper);
}

.hero-copy,
.workbench,
.section-intro,
.trust-grid,
.apply-panel,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  margin-right: 0;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.button-primary {
  background: var(--gold);
  color: #140f00;
}

.button-primary:hover {
  background: var(--gold-2);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.principles span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 750;
}

.workbench {
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.workbench-header strong {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 7px solid rgba(240, 207, 104, 0.25);
  border-top-color: var(--gold-2);
  border-right-color: var(--green);
  border-radius: 50%;
  color: var(--paper);
  font-size: 22px;
}

.opportunity {
  padding: 28px 22px 8px;
}

.opportunity > p {
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.opportunity h2 {
  color: var(--paper);
  font-size: 32px;
}

dl {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: rgba(255, 255, 255, 0.13);
}

dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: rgba(7, 18, 37, 0.7);
  padding: 16px;
}

dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.agent-note {
  margin: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.agent-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.agent-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.operating-system {
  background: var(--paper);
}

.section-intro {
  margin-bottom: 34px;
}

.section-intro h2 {
  max-width: 760px;
}

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

.trust-grid article {
  min-height: 230px;
  background: var(--paper);
  padding: 28px;
}

.trust-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.trust-grid p,
.apply-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.apply-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: start;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.apply-card {
  border: 1px solid var(--line);
  background: var(--soft);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.tab:last-child {
  border-right: 0;
}

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

.apply-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
}

.apply-form.active {
  display: grid;
}

.apply-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
  color: var(--ink);
  outline: none;
  font-size: 14px;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 152, 26, 0.14);
}

textarea {
  resize: vertical;
}

.apply-form .button {
  width: 100%;
}

.summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 16px 20px;
}

.summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.text-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  padding: 8px 10px;
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.text-button:hover {
  border-color: rgba(255, 255, 255, 0.56);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 26px 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.site-footer a:hover {
  color: var(--gold);
}

.small-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.small-link.active,
.small-link:hover {
  border-color: #c7ceda;
}

.small-link-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.small-link-dark:hover {
  background: var(--navy-2);
  color: var(--paper);
}

.app-page {
  min-height: calc(100vh - 64px);
  background: var(--soft);
  padding: 44px 32px 72px;
}

.page-hero,
.toolbar,
.opportunity-board,
.two-column,
.deal-layout,
.metric-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 34px;
}

.page-hero.compact {
  padding: 28px 34px;
}

.page-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-lede {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.chip,
.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.chip.active {
  background: var(--ink);
  color: var(--paper);
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 9px;
}

.toolbar-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.product-card,
.panel,
.pipeline-column,
.metric-grid div {
  border: 1px solid var(--line);
  background: var(--paper);
}

.product-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
}

.product-card h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.product-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.score-line {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.score-line span:first-child {
  color: var(--green);
  font-weight: 900;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.button-light {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 30px;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.status-list {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  padding: 13px 0;
}

.status-list span {
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.recommendation-list,
.review-list,
.failure-list,
.activity-feed {
  display: grid;
  gap: 12px;
}

.recommendation-item,
.review-item,
.failure-item {
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 18px;
}

.recommendation-item h3,
.review-item h3,
.failure-item h3 {
  margin-top: 12px;
}

.deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-column {
  min-height: 420px;
  padding: 18px;
}

.pipeline-column h2 {
  margin-bottom: 18px;
  font-size: 21px;
}

.pipeline-item {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.activity-feed {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.activity-feed p {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-grid div {
  padding: 20px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 34px;
}

.brief-output {
  min-height: 250px;
  white-space: pre-line;
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.search-layout {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 auto 18px;
}

.search-console textarea {
  min-height: 180px;
}

.search-output {
  display: flex;
  flex-direction: column;
}

.compact-list {
  margin-top: auto;
}

.compact-list div {
  padding: 13px;
}

.compact-list strong {
  max-width: 62%;
  text-align: right;
  line-height: 1.4;
}

.result-grid {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.path-list {
  display: grid;
  gap: 12px;
}

.path-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 18px;
}

.path-card h3,
.path-card p {
  margin-bottom: 0;
}

.path-card .button {
  width: fit-content;
  margin-top: 4px;
}

.compliance-note {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 16px;
}

.compliance-note strong {
  display: block;
  margin-bottom: 8px;
}

.compliance-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-page {
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(135deg, rgba(201, 152, 26, 0.12), transparent 34%),
    var(--soft);
  padding: 56px 32px 72px;
}

.auth-layout {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  gap: 36px;
  align-items: center;
  margin: 0 auto;
}

.auth-copy h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 68px);
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.auth-proof div {
  min-height: 120px;
  background: var(--paper);
  padding: 18px;
}

.auth-proof span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.auth-proof strong {
  display: block;
  line-height: 1.35;
}

.login-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 26px;
  box-shadow: 0 22px 70px rgba(8, 12, 20, 0.08);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.role-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.role-grid legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.role-card {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfe;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.role-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.role-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.role-card.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.role-card.active span {
  color: var(--gold-2);
}

.auth-note {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 48px));
  transform: translateY(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .hero,
  .operating-system {
    min-height: auto;
    padding: 58px 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy,
  .workbench {
    margin: 0 auto;
  }

  .trust-grid,
  .apply-panel,
  .opportunity-board,
  .two-column,
  .search-layout,
  .result-grid,
  .deal-layout,
  .pipeline,
  .metric-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 40px;
    height: 28px;
  }

  .header-actions {
    width: 100%;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-self: stretch;
  }

  .language-switcher,
  .auth-links,
  .auth-actions {
    width: 100%;
  }

  .lang-button {
    flex: 1;
  }

  .auth-links .small-link,
  .auth-actions .small-link {
    flex: 1;
    justify-content: center;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero,
  .operating-system {
    padding: 42px 18px;
  }

  .hero {
    gap: 24px;
  }

  .lede {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  .principles {
    gap: 8px;
  }

  .principles span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .workbench-header {
    padding: 14px 16px;
  }

  .workbench-header strong {
    width: 48px;
    height: 48px;
    border-width: 6px;
    font-size: 18px;
  }

  .opportunity {
    padding: 18px 16px;
  }

  .opportunity h2 {
    margin-bottom: 0;
    font-size: 26px;
  }

  .opportunity dl,
  .agent-note {
    display: none;
  }

  .section-intro {
    margin-bottom: 22px;
  }

  .trust-grid article {
    min-height: auto;
    padding: 20px;
  }

  .trust-grid span {
    margin-bottom: 14px;
  }

  .trust-grid p,
  .apply-copy p {
    font-size: 14px;
  }

  .apply-panel {
    gap: 22px;
    margin-top: 28px;
    padding-top: 28px;
  }

  .apply-form {
    gap: 12px;
    padding: 16px;
  }

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

  .button {
    width: 100%;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-page {
    padding: 24px 16px 48px;
  }

  .auth-page {
    padding: 34px 16px 48px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .page-hero,
  .page-hero.compact,
  .panel,
  .product-card,
  .login-panel {
    padding: 20px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .toolbar-status {
    width: 100%;
    margin-left: 0;
  }

  .pipeline-column {
    min-height: auto;
  }

  .compact-list strong {
    max-width: none;
    text-align: left;
  }

  .path-card .button {
    width: 100%;
  }
}
