:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #10151f;
  --panel-2: #141b27;
  --line: #253144;
  --text: #eef5ff;
  --muted: #9aa9bc;
  --blue: #5fb4ff;
  --green: #52e0a1;
  --amber: #f6c96d;
  --red: #ff7f8a;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(95, 180, 255, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(82, 224, 161, 0.11), transparent 30rem), 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;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(95, 180, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(95, 180, 255, 0.24), rgba(82, 224, 161, 0.16));
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 70px 5vw 40px;
}

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

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.subhead {
  max-width: 720px;
  color: #c7d4e5;
  font-size: 1.18rem;
}

.hero-actions,
.button-row,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.small-button,
.icon-button {
  border: 0;
  cursor: pointer;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #061019;
}

.secondary,
.small-button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel,
.tool-panel,
.features article,
.pricing article,
.export-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 27, 39, 0.92), rgba(13, 18, 27, 0.92));
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.score-ring {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 10px solid rgba(82, 224, 161, 0.3);
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 900;
}

.score-ring span {
  font-size: 3rem;
  line-height: 1;
}

.score-ring small {
  margin-top: -42px;
  color: var(--muted);
}

.panel-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.features,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 5vw 72px;
}

.features article,
.pricing article {
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
}

.workbench,
.pricing {
  padding: 72px 5vw;
}

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

.section-head p:not(.eyebrow),
.features p,
.pricing p,
.export-section p {
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(360px, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.tool-panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h3,
.tool-panel h3 {
  margin-bottom: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  color: #07111a;
  font-weight: 900;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--green);
  color: #07110d;
  font-weight: 800;
}

.stack,
.item-list,
.signal-list {
  display: grid;
  gap: 12px;
}

.applicant-card,
.item-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.item-card {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.item-card label:first-child,
.item-card label:last-child {
  grid-column: span 3;
}

.item-card label.notes {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090d14;
  color: var(--text);
  padding: 9px 10px;
}

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

.meter {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.meter-top,
.stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.meter-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #05070b;
}

.meter-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  transition: width 0.25s ease;
}

.stats span {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.signal-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: rgba(246, 201, 109, 0.08);
  color: #f8e7bd;
}

.signal-list.muted li {
  border-left-color: var(--green);
  background: rgba(82, 224, 161, 0.08);
  color: #c7f4df;
}

.export-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0 5vw 72px;
  padding: 28px;
}

.pricing {
  padding-top: 0;
}

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

.price {
  color: var(--text) !important;
  font-size: 2.5rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.pro {
  border-color: rgba(82, 224, 161, 0.55) !important;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

footer a {
  color: var(--green);
}

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

  .hero {
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: 130px 1fr;
  }

  .score-ring {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 680px) {
  .topbar,
  footer,
  .export-section {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 3.1rem;
  }

  .item-card {
    grid-template-columns: 1fr;
  }

  .item-card label:first-child,
  .item-card label:last-child,
  .item-card label.notes {
    grid-column: auto;
  }

  .pricing-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media print {
  .topbar,
  .hero,
  .features,
  .pricing,
  .export-actions,
  .panel-header button {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .workbench,
  .export-section {
    padding: 0;
    margin: 0;
  }

  .app-grid {
    display: block;
  }

  .tool-panel {
    box-shadow: none;
    border-color: #ccc;
    color: black;
    page-break-inside: avoid;
  }
}
