/* The Chief Negotiators — GPU Portal */

:root {
  --bg: #0A0908;
  --bg-1: #100E0C;
  --bg-2: #14110F;
  --bg-3: #1B1714;
  --line: #2A2521;
  --line-2: #3A332C;
  --copper: #C6986C;
  --copper-bright: #DDB082;
  --copper-dim: #8A6A4A;
  --text: #F5F1EC;
  --text-2: #B9B0A4;
  --text-3: #7A7268;
  --text-4: #4D463F;
  --ok: #7FB28E;
  --warn: #D9B36A;
  --bad: #C77268;

  --serif: "Cormorant Garamond", "Garamond", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient warm grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(198, 152, 108, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(198, 152, 108, 0.03), transparent 60%);
  z-index: 0;
}

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-bright); }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--copper); color: var(--bg); }

/* ------- Layout ------- */

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ------- Nav ------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .brand-logo { height: 44px; }
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-word span { color: var(--copper); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 120ms ease, background 120ms ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--copper); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--copper);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 12px;
  border: 1px solid var(--copper);
  transition: background 120ms ease, transform 120ms ease;
}
.nav-cta:hover { background: var(--copper-bright); color: var(--bg); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  position: relative;
  cursor: pointer;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -5px);
  transition: transform 200ms ease, background 200ms ease;
}
.nav-toggle::after { transform: translate(-50%, 4px); }
.nav-toggle.open::before { transform: translate(-50%, 0) rotate(45deg); background: var(--copper); }
.nav-toggle.open::after { transform: translate(-50%, 0) rotate(-45deg); background: var(--copper); }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; left: 0; right: 0; top: 92px;
    flex-direction: column; align-items: stretch;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    padding: 16px 24px; gap: 2px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }
  .nav-links.open .nav-link {
    padding: 14px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open .nav-link:last-of-type { border-bottom: 0; }
  .nav-cta { margin-left: 0; align-self: stretch; margin-top: 12px; text-align: center; justify-content: center; }
}
@media (max-width: 600px) {
  .nav-inner { height: 76px; }
  .nav-links.open { top: 76px; }
  .brand-word { font-size: 15px; letter-spacing: 0.24em; }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
  .nav-inner { height: 72px; }
  .nav-links.open { top: 72px; }
}

/* ------- Page header ------- */
.page-head {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  .page-head { padding: 48px 0 28px; }
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--copper);
  box-shadow: 0 0 0 0 rgba(198, 152, 108, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 152, 108, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(198, 152, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 152, 108, 0); }
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 18px 0 16px;
  text-wrap: balance;
}
.page-title em { font-style: italic; color: var(--copper); font-weight: 400; }
.page-sub {
  color: var(--text-2);
  font-size: 17px;
  max-width: 640px;
  text-wrap: pretty;
}

/* ------- Footer ------- */
.foot {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  color: var(--text-3);
  font-size: 13px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-3); margin: 0 0 14px; font-weight: 600;
}
.foot a { color: var(--text-2); display: block; padding: 4px 0; font-size: 13px; }
.foot a:hover { color: var(--copper); }
.foot-tagline {
  font-family: var(--serif); font-size: 18px; color: var(--text); letter-spacing: 0.04em;
}
.foot-legal {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 140ms ease;
}
.btn-primary { background: var(--copper); color: var(--bg); border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-bright); border-color: var(--copper-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn-sm { padding: 7px 12px; font-size: 11px; }
.btn-lg { padding: 14px 24px; font-size: 13px; }

/* ------- Forms ------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: span 1; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field label .req { color: var(--copper); }
.field input, .field select, .field textarea {
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
  font-size: 14px;
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--copper);
  background: var(--bg-2);
}
.field-help { font-size: 12px; color: var(--text-3); }

/* ------- Cards ------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
@media (max-width: 600px) {
  .card { padding: 22px; }
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: 0.005em;
}
.card-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}

/* ------- Status pills ------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: var(--bg-1);
}
.pill .pdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: rgba(127, 178, 142, 0.3); }
.pill.warn { color: var(--warn); border-color: rgba(217, 179, 106, 0.3); }
.pill.bad { color: var(--bad); border-color: rgba(199, 114, 104, 0.3); }
.pill.copper { color: var(--copper); border-color: rgba(198, 152, 108, 0.4); }

/* ------- Mono number ------- */
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------- Utilities ------- */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.hr-thin { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--text-3); }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper);
}
.kbd {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 2px;
  padding: 2px 6px; border-radius: 3px; color: var(--text-2);
}

/* ------- Animations ------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 600ms ease both; }
.fade-up.d1 { animation-delay: 80ms; }
.fade-up.d2 { animation-delay: 160ms; }
.fade-up.d3 { animation-delay: 240ms; }
.fade-up.d4 { animation-delay: 320ms; }

/* ------- Toast ------- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-2); border: 1px solid var(--copper);
  color: var(--text); padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0; transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .t-title { font-weight: 600; margin-bottom: 4px; }
.toast .t-body { color: var(--text-2); font-size: 12px; }

/* ------- Modal ------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); max-width: 640px; width: 100%;
  padding: 32px; max-height: 90vh; overflow-y: auto;
  position: relative;
}
@media (max-width: 600px) {
  .modal { padding: 24px 20px; max-height: 94vh; }
  .modal-backdrop { padding: 12px; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--text-3);
  font-size: 20px; line-height: 1; padding: 6px; border-radius: 4px;
}
.modal-close:hover { color: var(--copper); background: var(--bg-2); }
