:root {
  --bg: #0b1020;
  --bg-deep: #07101c;
  --panel: rgba(12, 25, 37, 0.78);
  --panel-strong: rgba(9, 33, 42, 0.92);
  --line: rgba(125, 255, 246, 0.18);
  --text: #f1fffc;
  --muted: #a7c8c8;
  --teal: #36e2d6;
  --teal-bright: #88fff7;
  --teal-dark: #0ea5a7;
  --gold: #f2b84b;
  --danger: #ff827d;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(54, 226, 214, 0.18), transparent 28rem),
    linear-gradient(180deg, #0b1020 0%, #07101c 58%, #081821 100%);
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 16, 32, 0.8);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-bright);
  text-decoration: none;
  font-weight: 700;
  width: 190px;
  min-width: 190px;
}

.brand-lockup img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-tabs a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-tabs a.active,
.nav-tabs a:hover {
  color: var(--text);
  background: rgba(136, 255, 247, 0.08);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

select,
input {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  color: #031d1f;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  box-shadow: 0 0 22px rgba(54, 226, 214, 0.18);
  font-weight: 700;
}

.secondary-btn {
  color: var(--teal-bright);
  background: rgba(136, 255, 247, 0.08);
  border: 1px solid rgba(136, 255, 247, 0.28);
  box-shadow: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-actions-top {
  display: grid;
  grid-template-columns: 1fr;
  margin: 16px 0 18px;
}

.ghost-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.screen {
  display: none;
  padding: 44px 0 70px;
}

.screen.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: 620px;
}

.hero-copy,
.hero-panel,
.assessment-card,
.result-panel,
.chat-window,
.coach-tools,
.company-form,
.candidate-pipeline,
.pricing-panel,
.modal-card {
  background: linear-gradient(180deg, rgba(14, 38, 50, 0.82), rgba(7, 16, 28, 0.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  padding: 34px;
}

.hero-logo {
  width: min(100%, 680px);
  display: block;
  margin: -22px auto 8px;
  border-radius: 8px;
}

.lead {
  color: #d7fbf7;
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 700px;
}

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

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(136, 255, 247, 0.05);
}

.stat-strip strong {
  display: block;
  color: var(--teal-bright);
  font-size: 1.8rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.floating-match {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 3px;
  padding: 16px 18px 16px 44px;
  border: 1px solid rgba(136, 255, 247, 0.32);
  border-radius: 8px;
  background: rgba(7, 16, 28, 0.76);
  backdrop-filter: blur(14px);
}

.pulse-dot {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 20px var(--teal);
}

.floating-match small {
  color: var(--muted);
}

.section-heading {
  margin: 18px 0 22px;
}

.section-heading.compact {
  max-width: 820px;
}

.section-heading span,
.eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.section-heading h1 {
  max-width: 830px;
  margin: 10px 0 10px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.pathway-card p,
.company-grid p,
.result-panel p,
.coach-tools p {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-grid,
.pathway-grid,
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-grid article,
.pathway-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(9, 33, 42, 0.62);
}

.step-number {
  color: var(--teal-bright);
  font-size: 0.8rem;
  font-weight: 800;
}

.workflow-grid h3,
.pathway-card h3 {
  margin: 10px 0 8px;
}

.assessment-layout,
.coach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.assessment-card,
.result-panel,
.chat-window,
.coach-tools {
  padding: 22px;
}

.question {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.question:last-of-type {
  border-bottom: 0;
}

.question h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.scale label {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.scale input {
  position: absolute;
  opacity: 0;
}

.scale label:has(input:checked) {
  color: #031d1f;
  background: var(--teal-bright);
}

.result-panel {
  position: sticky;
  top: 108px;
}

.score-bars {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.score-bar {
  display: grid;
  gap: 6px;
}

.score-bar span {
  color: #d8fffb;
  font-size: 0.92rem;
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal-dark));
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags span {
  border: 1px solid var(--line);
  color: #d7fffb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  background: rgba(136, 255, 247, 0.06);
}

.pathway-grid {
  grid-template-columns: repeat(5, 1fr);
}

.pathway-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pathway-card.recommended {
  border-color: rgba(136, 255, 247, 0.58);
  background: linear-gradient(180deg, rgba(20, 184, 174, 0.16), rgba(9, 33, 42, 0.72));
  box-shadow: 0 0 30px rgba(54, 226, 214, 0.12);
}

.pathway-card .secondary-btn {
  margin-top: auto;
}

.match-pill {
  width: max-content;
  color: #031d1f;
  background: var(--teal-bright);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.pathway-card .path-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(136, 255, 247, 0.1);
  color: var(--teal-bright);
  font-weight: 800;
}

.pathway-card ul {
  padding-left: 18px;
  color: #c7e8e7;
  line-height: 1.55;
}

.camp-feature {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 33, 42, 0.7);
}

.course-planner {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 33, 42, 0.7);
}

.course-planner h2 {
  margin: 8px 0 6px;
}

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

.advice-grid div,
.session-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.advice-grid strong,
.session-card span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.advice-grid span {
  color: #dffdf9;
  line-height: 1.55;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.session-card h3 {
  margin: 4px 0 8px;
}

.session-card p {
  color: var(--muted);
  line-height: 1.55;
}

.session-card strong {
  color: #dffdf9;
  line-height: 1.45;
}

.camp-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.price-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.price-row span {
  border: 1px solid rgba(242, 184, 75, 0.36);
  color: #ffe1a0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(242, 184, 75, 0.08);
}

.chat-window {
  min-height: 610px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.08);
  color: #dffdf9;
}

.message.user {
  align-self: flex-end;
  color: #031d1f;
  background: var(--teal-bright);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.coach-tools {
  display: grid;
  gap: 16px;
}

.coach-tools label,
.company-form label,
.modal-card label {
  display: grid;
  gap: 8px;
  color: #dffdf9;
}

.interview-output {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.04);
}

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

.company-form,
.candidate-pipeline,
.pricing-panel {
  padding: 22px;
}

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

.pipeline-step {
  margin: 12px 0;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-step.done {
  color: #cffcf8;
  border-color: rgba(136, 255, 247, 0.28);
}

.pipeline-step.active {
  color: #031d1f;
  background: var(--teal-bright);
}

.pricing-panel {
  display: grid;
  gap: 14px;
}

.pricing-panel div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.pricing-panel strong {
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
}

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

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(520px, calc(100vw - 28px));
  padding: 24px;
  color: var(--text);
  position: relative;
  display: grid;
  gap: 14px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-switch button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.role-switch button.active {
  color: #031d1f;
  background: var(--teal-bright);
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .top-actions {
    margin-left: auto;
  }

  .hero-grid,
  .assessment-layout,
  .coach-layout,
  .camp-feature,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .pathway-grid,
  .advice-grid,
  .session-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .top-actions select {
    grid-column: 1 / -1;
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 420px;
  }

  .workflow-grid,
  .pathway-grid,
  .advice-grid,
  .session-grid,
  .stat-strip,
  .scale {
    grid-template-columns: 1fr;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .section-heading h1 {
    font-size: 2.4rem;
  }
}
