:root {
  --bg: #0d0f0f;
  --panel: #161818;
  --panel-strong: #202321;
  --text: #fff7ec;
  --muted: #c9bfb1;
  --line: rgba(255, 247, 236, 0.16);
  --copper: #c9824b;
  --copper-strong: #e1a064;
  --teal: #62d6c5;
  --ivory: #fff7ec;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.site-header,
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(13, 15, 15, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ivory);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(225, 160, 100, 0.45);
  border-radius: 8px;
  background: rgba(225, 160, 100, 0.12);
  color: var(--copper-strong);
  font-size: 0.82rem;
}

.header-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 247, 236, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links .header-link {
  color: var(--text);
}

.header-link:hover {
  border-color: rgba(225, 160, 100, 0.54);
  background: rgba(225, 160, 100, 0.16);
  color: var(--text);
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav {
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 247, 236, 0.055);
}

.language-switch a {
  display: inline-flex;
  min-width: 36px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switch a:hover,
.language-switch a.is-active {
  background: rgba(98, 214, 197, 0.13);
  color: var(--ivory);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 76px) 72px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("/assets/career-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 15, 0.96) 0%, rgba(13, 15, 15, 0.76) 38%, rgba(13, 15, 15, 0.24) 100%),
    linear-gradient(0deg, rgba(13, 15, 15, 0.9) 0%, rgba(13, 15, 15, 0.1) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  padding-top: 28px;
}

.profile-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.profile-photo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgba(225, 160, 100, 0.55);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.profile-name {
  margin: 0;
  color: var(--ivory);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 900px;
  font-size: 4.75rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 3.25rem;
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 700px;
  font-size: 1.28rem;
}

.hero-actions,
.private-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--copper-strong);
  color: #17100a;
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: rgba(255, 247, 236, 0.08);
  color: var(--text);
}

.section {
  padding: 86px clamp(20px, 6vw, 76px);
}

.highlights-section {
  background: #101312;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

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

.highlight-card,
.document-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.075), rgba(255, 247, 236, 0.035));
  box-shadow: var(--shadow);
}

.document-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
}

.document-card h2 {
  font-size: 2.45rem;
}

.document-card-accent {
  border-color: rgba(225, 160, 100, 0.48);
  background:
    linear-gradient(135deg, rgba(225, 160, 100, 0.18), rgba(98, 214, 197, 0.1)),
    rgba(255, 247, 236, 0.04);
}

.card-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--copper-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-section {
  background:
    linear-gradient(180deg, #0d0f0f 0%, #141716 100%);
}

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

.company-logo {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(13, 15, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 232, 220, 0.92)),
    var(--ivory);
  color: #121514;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.company-logo::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 18px;
  width: 34px;
  height: 10px;
  border-top: 1px solid rgba(12, 107, 97, 0.48);
  border-right: 1px solid rgba(12, 107, 97, 0.48);
  opacity: 0.88;
}

.company-logo-img {
  display: block;
  width: min(168px, calc(100% - 34px));
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.company-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 107, 97, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(226, 245, 241, 0.95)),
    var(--ivory);
}

.company-logo span:last-child {
  color: rgba(18, 21, 20, 0.68);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.company-logo strong,
.company-logo small {
  display: block;
}

.company-logo strong {
  color: #121514;
  font-size: 0.9rem;
}

.company-logo small {
  margin-top: 2px;
  color: rgba(18, 21, 20, 0.56);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.access-section {
  background:
    radial-gradient(circle at 16% 22%, rgba(98, 214, 197, 0.16), transparent 34%),
    linear-gradient(180deg, #151715, #0d0f0f);
}

.access-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 42px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.055);
  box-shadow: var(--shadow);
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  color: var(--ivory);
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.code-row input {
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(13, 15, 15, 0.78);
  color: var(--text);
  outline: none;
}

.code-row input:focus {
  border-color: rgba(98, 214, 197, 0.72);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--copper-strong);
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 15, 0.94);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-contact span {
  color: var(--ivory);
  font-weight: 850;
}

.footer-contact a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(98, 214, 197, 0.28);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(98, 214, 197, 0.08);
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-contact a:hover {
  border-color: rgba(98, 214, 197, 0.58);
  background: rgba(98, 214, 197, 0.14);
}

.site-footer p {
  max-width: 980px;
  margin: 0;
  color: rgba(201, 191, 177, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer p a {
  color: var(--teal);
  font-weight: 750;
}

.private-page,
.agent-page,
.doc-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(98, 214, 197, 0.16), transparent 30%),
    radial-gradient(circle at 10% 26%, rgba(225, 160, 100, 0.13), transparent 26%),
    #0d0f0f;
}

.private-shell,
.agent-shell,
.doc-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.private-hero,
.agent-copy {
  max-width: 820px;
  margin-bottom: 36px;
}

.private-hero {
  max-width: 920px;
  margin-bottom: 30px;
}

.private-hero h1 {
  max-width: 860px;
  font-size: 3.25rem;
  line-height: 1.02;
}

.private-hero p {
  max-width: 760px;
}

.private-page .document-card {
  min-height: 210px;
}

.agent-shell {
  width: min(1560px, calc(100% - 32px));
  min-height: 100vh;
  padding: 92px 0 16px;
}

.agent-stage {
  min-height: calc(100vh - 116px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.055);
  box-shadow: var(--shadow);
}

.agent-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 116px);
  min-height: 560px;
  border: 0;
}

.agent-empty {
  display: grid;
  min-height: calc(100vh - 116px);
  place-content: center;
  padding: 36px;
  text-align: center;
}

.agent-empty h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.1;
}

.references-section {
  margin-top: 44px;
}

.references-section .section-heading {
  margin-bottom: 18px;
}

.references-section .section-heading h2 {
  font-size: 2rem;
}

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

.reference-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.045);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reference-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 160, 100, 0.5);
  background: rgba(225, 160, 100, 0.08);
}

.reference-card h3 {
  margin-bottom: 8px;
}

.reference-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.doc-shell {
  max-width: 860px;
}

.doc-content {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.055);
  box-shadow: var(--shadow);
}

.doc-content h1 {
  margin-bottom: 28px;
  font-size: 3.5rem;
}

.doc-content h2 {
  margin-top: 34px;
  font-size: 1.5rem;
}

.doc-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(98, 214, 197, 0.14), transparent 30%),
    radial-gradient(circle at 10% 22%, rgba(225, 160, 100, 0.12), transparent 26%),
    #0d0f0f;
}

.admin-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 80px;
}

.admin-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.055);
  box-shadow: var(--shadow);
}

.admin-login {
  max-width: 560px;
}

.admin-login h1,
.admin-heading h1 {
  margin-bottom: 14px;
  font-size: 2.6rem;
  line-height: 1;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.admin-form label {
  color: var(--ivory);
  font-weight: 800;
}

.admin-form input {
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(13, 15, 15, 0.78);
  color: var(--text);
  outline: none;
}

.admin-form input:focus {
  border-color: rgba(98, 214, 197, 0.72);
}

.admin-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-heading p {
  margin-bottom: 0;
}

.admin-alert,
.admin-message {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(225, 160, 100, 0.36);
  border-radius: 8px;
  background: rgba(225, 160, 100, 0.1);
  color: var(--ivory);
}

.admin-alert code {
  color: var(--teal);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 1780px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 247, 236, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--ivory);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td strong {
  color: var(--ivory);
}

.admin-table code {
  color: var(--ivory);
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-cell-input,
.admin-cell-textarea {
  width: 100%;
  min-width: 150px;
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(13, 15, 15, 0.72);
  color: var(--text);
  outline: none;
}

.admin-cell-input:focus,
.admin-cell-textarea:focus {
  border-color: rgba(98, 214, 197, 0.62);
}

.admin-cell-textarea {
  min-height: 72px;
  resize: vertical;
}

.admin-url-input {
  min-width: 220px;
}

.admin-date-input {
  min-width: 118px;
}

.admin-action-stack {
  display: grid;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 850;
}

.status-used {
  background: rgba(225, 160, 100, 0.2);
  color: var(--copper-strong);
}

.status-unused {
  background: rgba(98, 214, 197, 0.14);
  color: var(--teal);
}

.table-button,
.nav-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.table-button {
  min-height: 34px;
  padding: 0 12px;
}

.nav-button {
  min-height: 38px;
  padding: 0 14px;
}

.table-button:hover,
.nav-button:hover {
  border-color: rgba(98, 214, 197, 0.48);
  background: rgba(98, 214, 197, 0.12);
}

@media (max-width: 900px) {
  .highlight-grid,
  .document-grid,
  .reference-grid,
  .company-grid,
  .access-panel,
  .agent-shell {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-stage,
  .agent-frame,
  .agent-empty {
    min-height: 560px;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2,
  .private-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 620px) {
  .site-header,
  .topbar {
    position: absolute;
    min-height: 64px;
    padding: 14px 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .header-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88vh;
    padding: 96px 20px 56px;
  }

  h1,
  .private-hero h1 {
    font-size: 2.72rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .agent-page .topbar {
    position: fixed;
  }

  .agent-shell {
    width: calc(100% - 24px);
    padding-top: 86px;
  }

  .agent-stage,
  .agent-frame,
  .agent-empty {
    min-height: calc(100vh - 108px);
  }

  .agent-frame {
    height: calc(100vh - 108px);
  }

  .section {
    padding: 64px 20px;
  }

  .admin-heading {
    display: grid;
  }
}
