:root {
  --bg: #0d0f12;
  --panel: #171a1f;
  --panel-2: #20242b;
  --text: #f5f7fa;
  --muted: #a7afbc;
  --line: #303640;
  --red: #e1262f;
  --red-dark: #a91620;
  --white: #ffffff;
  --green: #35c486;
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(13, 15, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 190px;
  max-width: 48vw;
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(13, 15, 18, 0.82), rgba(13, 15, 18, 0.48)),
    radial-gradient(circle at 80% 30%, rgba(225, 38, 47, 0.22), transparent 26%),
    linear-gradient(135deg, #0d0f12 0%, #191d23 55%, #0d0f12 100%);
}

.hero h1,
.page-shell h1,
.admin-shell h1,
.interview-shell h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: 0;
}

.hero p,
.form-intro p,
.complete p,
.interview-head p {
  color: var(--muted);
  max-width: 720px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
}

.button:hover {
  border-color: var(--white);
}

.hero-panel {
  min-height: 280px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero-panel img {
  width: 140px;
}

.hero-panel div {
  display: grid;
  gap: 6px;
  text-align: center;
}

.hero-panel span {
  color: var(--muted);
}

.band,
.process,
.page-shell,
.admin-shell,
.interview-shell {
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.form-intro h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin: 0;
}

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

.job-card,
.panel,
.process > div {
  border: 1px solid var(--line);
  background: var(--panel);
}

.job-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.job-card h3,
.process h3,
.panel h2,
.panel h3 {
  margin: 0 0 10px;
}

.job-card p,
.process p,
.panel p,
.notice p {
  color: var(--muted);
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

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

.process > div {
  padding: 24px;
}

.process span {
  color: var(--red);
  font-weight: 900;
}

.page-shell.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.form-intro {
  margin-bottom: 24px;
}

.panel {
  padding: 24px;
}

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

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.form .wide,
.form h2,
.form p,
.form .notice,
.form .checkbox,
.form .form-error {
  grid-column: 1 / -1;
}

.single-column {
  grid-template-columns: 1fr;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  border-left: 3px solid var(--red);
  background: rgba(225, 38, 47, 0.08);
  color: var(--white);
  padding: 12px 14px;
}

.captcha-field input {
  max-width: 220px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f1216;
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: start;
  gap: 12px !important;
  text-transform: none !important;
  font-size: 15px !important;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.notice {
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

.interview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.interview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 20px;
  align-items: start;
}

.avatar-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #050608;
  overflow: hidden;
}

.avatar-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.empty-state {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.side-form {
  grid-template-columns: 1fr;
  align-self: start;
}

.interview-layout.automatic {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.interview-status {
  min-height: 180px;
}

.status-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.status-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  animation: pulse 1.2s infinite ease-in-out;
}

.status-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.status-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.complete {
  text-align: center;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: #11151a;
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 20px;
}

.jobs-admin-grid {
  margin-bottom: 20px;
}

.admin-notice {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-actions span,
.job-list-compact span {
  color: var(--muted);
  font-size: 13px;
}

.job-list-compact {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow: auto;
}

.job-list-compact > div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.score-line strong {
  font-size: 56px;
}

.score-line span {
  color: var(--green);
  text-transform: uppercase;
  font-weight: 900;
}

.traits {
  display: grid;
  gap: 12px;
}

.traits article {
  border: 1px solid var(--line);
  padding: 14px;
  background: #11151a;
}

blockquote {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--red);
  color: var(--muted);
}

pre {
  white-space: pre-wrap;
  color: var(--muted);
  max-height: 520px;
  overflow: auto;
}

.resume-panel {
  margin-top: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero,
  .job-grid,
  .process,
  .interview-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

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

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