:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-soft: #0c1018;
  --panel: #101722;
  --panel-2: #131d2b;
  --line: rgba(148, 163, 184, 0.22);
  --text: #eef5ff;
  --muted: #a9b8cc;
  --faint: #708098;
  --cyan: #36d6ff;
  --green: #6ef0ad;
  --amber: #ffd166;
  --coral: #ff7a90;
  --violet: #a78bfa;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(rgba(54, 214, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 214, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(54, 214, 255, 0.11), transparent 28%),
    linear-gradient(240deg, rgba(110, 240, 173, 0.08), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(8, 10, 15, 0.78) 72%);
  z-index: -1;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54, 214, 255, 0.52);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(54, 214, 255, 0.18), rgba(110, 240, 173, 0.12));
  box-shadow: inset 0 0 24px rgba(54, 214, 255, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.site-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 82px;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 24, 0.98);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(54, 214, 255, 0.12);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 48px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 52px 0 34px;
}

.hero-grid {
  display: grid;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(110, 240, 173, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(110, 240, 173, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.35rem, 8vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #061016;
  background: var(--cyan);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.success {
  color: #05130b;
  background: var(--green);
}

.button.warning {
  color: #1b1100;
  background: var(--amber);
}

.button.full {
  width: 100%;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b111a;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.86);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three,
.grid.two {
  grid-template-columns: 1fr;
}

.card,
.tool-panel,
.question-card,
.result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 23, 34, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.card {
  padding: 22px;
}

.card .kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card p,
.result-panel p,
.tool-panel p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(110, 240, 173, 0.62);
}

.page-hero {
  padding: 54px 0 28px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.05rem, 6vw, 4rem);
}

.quiz-shell {
  display: grid;
  gap: 18px;
  align-items: start;
}

.quiz-sidebar {
  position: static;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 24, 0.92);
}

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

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 180ms ease;
}

.progress-copy {
  margin: 10px 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.question-card {
  padding: 20px;
}

.question-card + .question-card {
  margin-top: 14px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.beginner {
  color: var(--green);
  border-color: rgba(110, 240, 173, 0.36);
}

.pill.intermediate {
  color: var(--amber);
  border-color: rgba(255, 209, 102, 0.36);
}

.pill.advanced {
  color: var(--coral);
  border-color: rgba(255, 122, 144, 0.36);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.option:hover,
.option:has(input:checked) {
  color: var(--text);
  border-color: rgba(54, 214, 255, 0.58);
  background: rgba(54, 214, 255, 0.09);
}

.option input {
  margin-top: 4px;
  accent-color: var(--cyan);
}

.notice {
  display: none;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 122, 144, 0.38);
  border-radius: 8px;
  color: #ffd6dd;
  background: rgba(255, 122, 144, 0.1);
}

.notice.show {
  display: block;
}

.meter {
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--score, 0%), rgba(255, 255, 255, 0.08) 0);
}

.meter-inner {
  width: 74%;
  height: 74%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  text-align: center;
}

.meter-score {
  font-size: clamp(2.4rem, 10vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
}

.meter-label {
  color: var(--muted);
  font-weight: 800;
}

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

.breakdown-row {
  display: grid;
  gap: 8px;
}

.breakdown-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

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

.mini-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.tool-panel {
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.field textarea {
  min-height: 190px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(54, 214, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(54, 214, 255, 0.12);
}

.output-box {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 15, 0.54);
}

.score-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.score-line strong {
  font-size: 2.4rem;
  line-height: 1;
}

.recommendation {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.recommendation + .recommendation {
  margin-top: 10px;
}

.recommendation strong {
  display: block;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contact-card {
  max-width: 780px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  background: rgba(8, 10, 15, 0.86);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.hide {
  display: none !important;
}

@media (min-width: 720px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-panel {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .quiz-shell {
    grid-template-columns: 280px 1fr;
  }

  .quiz-sidebar {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 440px) {
  .nav-wrap,
  .container {
    width: min(100% - 24px, var(--max));
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  .section {
    padding: 54px 0;
  }

  .question-card,
  .card {
    padding: 16px;
  }
}
