:root {
  --bg: #0b0b0e;
  --bg-elev: #101018;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --muted: rgba(244, 246, 255, 0.72);
  --accent: #ff6a00;
  --accent-2: #ff8a2b;
  --danger: #ff3b3b;
  --ok: #2cff86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-lg: 28px;
  --container: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background: radial-gradient(1200px 680px at 20% 0%, rgba(255, 106, 0, 0.22), transparent 55%),
    radial-gradient(900px 540px at 90% 15%, rgba(255, 138, 43, 0.12), transparent 55%),
    radial-gradient(900px 560px at 50% 100%, rgba(100, 120, 255, 0.08), transparent 65%), var(--bg);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(255, 106, 0, 0.75);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #15151a;
  font-weight: 800;
  z-index: 999;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 14, 0.68);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(255, 106, 0, 0.22);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 10px;
  background: rgba(11, 11, 14, 0.85);
}

.brand-text {
  font-size: 0.98rem;
}

.brand-footer .brand-text {
  font-size: 0.92rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding: clamp(2.3rem, 4.5vw, 4rem) 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
}

.kicker {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 246, 255, 0.76);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-title {
  margin: 0.9rem 0 0.55rem;
  line-height: 1.04;
  font-size: clamp(2.2rem, 4.7vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #15151a;
  box-shadow: 0 20px 55px rgba(255, 106, 0, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 26px 70px rgba(255, 106, 0, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: rgba(16, 16, 24, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 106, 0, 0.5);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fineprint {
  margin: 0;
  color: rgba(244, 246, 255, 0.6);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 0, 0.55), transparent 55%);
  filter: blur(12px);
  animation: pulse 2.9s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring {
    animation: none;
  }
}

.hero-badge {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  background: rgba(11, 11, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  min-width: 210px;
}

.badge-top {
  color: rgba(244, 246, 255, 0.7);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.badge-mid {
  margin-top: 0.25rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.badge-bot {
  margin-top: 0.25rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-2);
}

.section {
  padding: 2.6rem 0;
}

.section-alt {
  background: radial-gradient(800px 420px at 10% 10%, rgba(255, 106, 0, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  margin: 0 0 1.2rem;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  letter-spacing: -0.01em;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.25rem;
  align-items: start;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.prose {
  padding: 1.35rem 1.35rem 1.1rem;
}

.prose h3 {
  margin: 1.35rem 0 0.55rem;
  letter-spacing: -0.01em;
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: rgba(244, 246, 255, 0.8);
}

.prose strong {
  color: rgba(244, 246, 255, 0.92);
}

.prose ul,
.prose ol {
  padding-left: 1.1rem;
}

.prose li {
  margin: 0.35rem 0;
}

.callout {
  border-radius: 16px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.08);
  padding: 0.95rem 1rem;
  margin: 1rem 0;
  color: rgba(244, 246, 255, 0.85);
}

.callout.danger {
  border-color: rgba(255, 59, 59, 0.42);
  background: rgba(255, 59, 59, 0.08);
}

.feedback {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 24, 0.55);
  display: grid;
  gap: 0.75rem;
}

.feedback-form {
  display: grid;
  gap: 0.75rem;
}

.feedback-form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  color: rgba(244, 246, 255, 0.72);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 11, 14, 0.55);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(244, 246, 255, 0.45);
}

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

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow:
    0 0 0 3px rgba(255, 106, 0, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.feedback-form-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feedback-title {
  margin: 0;
  letter-spacing: -0.01em;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feedback-actions .btn {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

.feedback-actions .btn.is-selected {
  background: rgba(255, 106, 0, 0.1);
  border-color: rgba(255, 106, 0, 0.55);
}

.feedback-actions .btn.is-selected[data-feedback="no"] {
  background: rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.55);
}

.feedback-actions .btn[disabled] {
  opacity: 0.6;
}

.feedback-actions .btn.is-selected[disabled] {
  opacity: 1;
}

.feedback-status {
  margin: 0;
}

.small {
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.sidebar {
  padding: 1.2rem 1.1rem;
  position: sticky;
  top: 5rem;
}

.sidebar-title {
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.pill-list {
  display: grid;
  gap: 0.55rem;
}

.pill {
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 24, 0.6);
  color: rgba(244, 246, 255, 0.82);
  font-weight: 700;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 1rem 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.65rem 0 0;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  color: rgba(244, 246, 255, 0.78);
}

.checklist li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.3rem;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, var(--ok), rgba(44, 255, 134, 0.55));
  box-shadow: 0 10px 30px rgba(44, 255, 134, 0.12);
  flex: 0 0 auto;
}

.quiz {
  padding: 1.2rem;
}

.quiz-shell {
  display: grid;
  gap: 1rem;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.quiz-title {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.quiz-progress {
  min-width: 168px;
  text-align: right;
  color: rgba(244, 246, 255, 0.7);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.quiz-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 180ms ease;
}

.quiz-body {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 24, 0.55);
  padding: 1rem;
}

.quiz-start {
  display: grid;
  gap: 0.75rem;
}

.quiz-start .btn {
  width: fit-content;
}

.quiz-question {
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-question legend {
  padding: 0;
  margin: 0 0 0.35rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

.quiz-sub {
  margin: 0;
  color: rgba(244, 246, 255, 0.72);
}

.quiz-options {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.quiz-option {
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    transform 110ms ease,
    border-color 110ms ease,
    background 110ms ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 0, 0.5);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option-body {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
}

.quiz-option-title {
  font-weight: 850;
  color: rgba(244, 246, 255, 0.9);
}

.quiz-option-note {
  color: rgba(244, 246, 255, 0.62);
  font-size: 0.92rem;
}

.quiz-option input:focus-visible + .quiz-option-body {
  outline: 3px solid rgba(255, 106, 0, 0.75);
  outline-offset: 3px;
  border-radius: 14px;
}

.quiz-option input:checked + .quiz-option-body {
  background: rgba(255, 106, 0, 0.085);
  box-shadow: inset 0 0 0 2px rgba(255, 106, 0, 0.55);
  border-radius: 14px;
}

.quiz-controls {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
}

.quiz-controls-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.result {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.result-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: rgba(244, 246, 255, 0.82);
}

.result-list li {
  margin: 0.35rem 0;
}

.result-title {
  margin: 0;
  font-size: 1.15rem;
}

.result-meter {
  display: grid;
  gap: 0.45rem;
}

.result-meter-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.result-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 240ms ease;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 24, 0.6);
  color: rgba(244, 246, 255, 0.82);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.tag.ok {
  border-color: rgba(44, 255, 134, 0.35);
}

.tag.warn {
  border-color: rgba(255, 106, 0, 0.45);
}

.tag.danger {
  border-color: rgba(255, 59, 59, 0.45);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.chart {
  margin-top: 0.75rem;
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 24, 0.35);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  color: rgba(244, 246, 255, 0.82);
  font-size: 0.95rem;
}

.table th {
  position: sticky;
  top: 0;
  background: rgba(11, 11, 14, 0.85);
  color: rgba(244, 246, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }

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

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .hero-card {
    min-height: 230px;
  }

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

  .quiz-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-progress {
    text-align: left;
  }
}
