:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(14, 30, 49, 0.82);
  --panel-solid: #0e1e31;
  --panel-light: #13263b;
  --text: #eef7ff;
  --muted: #a6b8c8;
  --subtle: #72879a;
  --border: rgba(148, 184, 207, 0.18);
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --blue: #60a5fa;
  --warning: #fbbf24;
  --danger: #fb7185;
  --success: #5eead4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  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;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(45, 212, 191, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 14%, rgba(59, 130, 246, 0.13), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #05201f;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}


.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 96px 0 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 5.3rem;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: 3.35rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h3 {
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 780;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:focus-visible,
.quick-skill:focus-visible,
.skill-token:focus-visible,
.combobox-option:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 2px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #22c1c3 48%, var(--blue));
  color: #041416;
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.18);
}

.button-secondary,
.button-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(19, 38, 59, 0.88), rgba(8, 23, 39, 0.92));
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.1);
  filter: blur(20px);
}

.engine-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card {
  position: absolute;
  z-index: 3;
  width: min(230px, 72%);
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.signal-card span {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 3px;
  font-size: 0.91rem;
}

.signal-input {
  left: 24px;
  top: 30px;
}

.signal-output {
  right: 24px;
  bottom: 30px;
}

.metrics-strip {
  border-block: 1px solid var(--border);
  background: rgba(11, 23, 40, 0.68);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-grid > div {
  min-height: 110px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--border);
}

.metrics-grid > div:last-child {
  border-right: 0;
}

.metrics-grid strong {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.metrics-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 96px 0;
}

.recommender-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 58px;
}

.section-heading > p:last-child,
.centered > p:last-child,
.transparency-grid > div > p:last-child {
  color: var(--muted);
}

.section-heading.centered {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.profile-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(18, 39, 61, 0.94), rgba(10, 24, 41, 0.94));
  box-shadow: var(--shadow);
}

.field-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.field-header label,
.field-group label {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
}

.field-header p,
.field-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.selection-counter {
  min-width: 92px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}

.selection-counter strong {
  color: var(--accent);
  font-size: 1.7rem;
}

.selection-counter span {
  color: var(--subtle);
  font-size: 0.74rem;
}

.combobox {
  position: relative;
}

.input-shell {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 14, 26, 0.76);
}

.input-shell svg {
  color: var(--subtle);
  flex: 0 0 auto;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.input-shell input::placeholder,
textarea::placeholder {
  color: #637a8d;
}

.combobox-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 310px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b1728;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
}

.combobox-option {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.combobox-option:hover,
.combobox-option.is-active {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent);
}

.quick-select {
  margin-top: 16px;
}

.quick-select > span {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-skill-row,
.selected-skills,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-skill,
.skill-token {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
}

.quick-skill:hover {
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--accent);
}

.selected-skills {
  min-height: 62px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed rgba(148, 184, 207, 0.26);
  border-radius: 14px;
  background: rgba(4, 14, 26, 0.34);
}

.skill-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.08);
  color: #bffbf2;
}

.skill-token span:last-child {
  font-size: 1.1rem;
  line-height: 1;
}

.selected-empty {
  margin: 0;
  color: var(--subtle);
  font-size: 0.85rem;
}

.field-group {
  margin-top: 24px;
}

.field-group label span {
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 600;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 14, 26, 0.76);
  color: var(--text);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.validation-message {
  max-width: 330px;
  margin: 0;
  color: var(--warning);
  font-size: 0.83rem;
}

.validation-message[data-state="ready"] {
  color: var(--success);
}

.results-section {
  min-height: 420px;
  border-block: 1px solid var(--border);
  background: rgba(8, 20, 35, 0.72);
}

.empty-results {
  max-width: 670px;
  margin: 0 auto;
  text-align: center;
}

.empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 22px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent);
  font-size: 2rem;
}

.empty-results p:last-child {
  color: var(--muted);
}

.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.results-heading > div:first-child {
  max-width: 720px;
}

.results-heading p:last-child {
  color: var(--muted);
}

.goal-context {
  max-width: 320px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.goal-context > span {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recommendation-card {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(18, 39, 61, 0.96), rgba(9, 24, 40, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.card-rank {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--subtle);
  font-weight: 900;
}

.score-ring {
  --score: 0;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255,255,255,.08) 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--panel-solid);
}

.score-ring span {
  position: relative;
  font-size: 0.96rem;
  font-weight: 900;
}

.role-category {
  margin: 28px 0 4px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recommendation-card h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.role-summary {
  min-height: 88px;
  color: var(--muted);
  font-size: 0.89rem;
}

.card-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.card-section h4 {
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.card-section p {
  color: var(--muted);
  font-size: 0.82rem;
}

.match-pill,
.tool-pill,
.gap-pill,
.context-pill,
.muted-inline {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.match-pill,
.context-pill {
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(45, 212, 191, 0.08);
  color: #bffbf2;
}

.tool-pill {
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.08);
  color: #cfe4ff;
}

.gap-pill {
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
}

.muted-inline {
  color: var(--subtle);
  padding-left: 0;
}

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

.pipeline-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 31, 50, 0.66);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent);
  font-weight: 900;
}

.pipeline-grid h3 {
  margin-bottom: 8px;
}

.pipeline-grid p {
  color: var(--muted);
  font-size: 0.88rem;
}

.transparency-section {
  padding-top: 36px;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 64px;
}

.formula-card {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    rgba(15, 31, 50, 0.72);
  background-size: 28px 28px;
}

.formula-card > span {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.fraction {
  display: grid;
  justify-items: center;
  font-size: 1.4rem;
}

.fraction strong {
  min-width: 150px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--text);
  text-align: center;
}

.fraction span {
  padding-top: 7px;
}

.formula-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: rgba(4, 12, 22, 0.84);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner p {
  margin: 0;
}

.error-panel {
  max-width: 720px;
  margin: 80px auto;
  padding: 32px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 20px;
  background: rgba(127, 29, 29, 0.18);
  color: var(--text);
}

.error-panel code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .recommender-layout,
  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
  }

  .metrics-grid,
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid > div:nth-child(2) {
    border-right: 0;
  }

  .metrics-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

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

  .role-summary {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .signal-card {
    width: 76%;
  }

  .section {
    padding: 70px 0;
  }

  .metrics-grid,
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metrics-grid > div:last-child {
    border-bottom: 0;
  }

  .profile-panel,
  .recommendation-card {
    padding: 22px;
  }

  .field-header,
  .form-footer,
  .results-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .selection-counter {
    justify-content: flex-start;
  }

  .form-actions,
  .form-actions .button {
    width: 100%;
  }

  .goal-context {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
