:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --text: #eef2ff;
  --muted: #a7b0c8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7c9cff;
  --accent-2: #4de2c5;
  --good: #3ddc97;
  --bad: #ff6b81;
  --warn: #ffd166;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 156, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(77, 226, 197, 0.12), transparent 24%),
    linear-gradient(180deg, #0b1020 0%, #0d1325 100%);
  color: var(--text);
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 16px 0 18px;
  max-width: 11ch;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 28px;
}

.hero-card h2 {
  margin: 14px 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9f78ff);
  color: white;
  box-shadow: 0 14px 34px rgba(124, 156, 255, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.mini-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.mini-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.mini-value {
  font-size: 1.45rem;
  font-weight: 800;
}

.mini-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.section {
  padding: 24px 0 64px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.panel p.lead {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  color: var(--muted);
}

.field input[type="number"],
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
}

.field select {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.field select option {
  background-color: #0b1020;
  color: #ffffff;
}

.field select option:checked {
  background-color: #7c9cff;
  color: #ffffff;
}

.field input[type="number"]:focus,
.field select:focus {
  border-color: rgba(124, 156, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 156, 255, 0.12);
}

.slider-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.slider-full {
  grid-column: span 2;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.slider-top span:last-child {
  color: var(--accent-2);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.priority-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}

.actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.result-shell {
  position: sticky;
  top: 16px;
}

.result-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.pill-good {
  background: rgba(61, 220, 151, 0.15);
  color: var(--good);
}

.pill-bad {
  background: rgba(255, 107, 129, 0.16);
  color: var(--bad);
}

.pill-warn {
  background: rgba(255, 209, 102, 0.16);
  color: var(--warn);
}

.result-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}

.result-summary {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

.score-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.score-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.score-item small {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.score-item strong {
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-item {
  display: grid;
  gap: 8px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.bar-head span:first-child {
  color: var(--muted);
}

.bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 50%;
  transition: width 0.35s ease;
  opacity: 0.45;
}

.bar-money {
  background: linear-gradient(90deg, #7c9cff, #9f78ff);
}

.bar-time {
  background: linear-gradient(90deg, #4de2c5, #32d4bd);
}

.bar-quality {
  background: linear-gradient(90deg, #ffd166, #ffb347);
}

.bar-growth {
  background: linear-gradient(90deg, #ff8fab, #ff6b81);
}

.bar-benefits {
  background: linear-gradient(90deg, #9be15d, #00e3ae);
}

.insights {
  display: grid;
  gap: 10px;
}

.insight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
}

.empty-state {
  margin: auto 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .result-shell {
    position: static;
  }

  .result-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .fields,
  .score-box,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .slider-full {
    grid-column: span 1;
  }

  .hero {
    padding-top: 44px;
  }

  .panel,
  .result-card,
  .hero-card {
    padding: 18px;
  }

  h1 {
    max-width: none;
  }
}