:root {
  color-scheme: dark;
  --bg: #0d1528;
  --bg-card: #162040;
  --bg-card2: #1a2850;
  --orange: #f97316;
  --orange-dark: #ea6b0a;
  --orange-light: #fed7aa;
  --white: #ffffff;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --green-bg: rgba(34, 197, 94, 0.15);
  --green-fg: #4ade80;
  --green-border: rgba(74, 222, 128, 0.3);
  --yellow-bg: rgba(234, 179, 8, 0.15);
  --yellow-fg: #facc15;
  --yellow-border: rgba(250, 204, 21, 0.3);
  --red-bg: rgba(239, 68, 68, 0.15);
  --red-fg: #f87171;
  --red-border: rgba(248, 113, 113, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.14), transparent 28rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-light);
}

.ht-nav {
  background: hsl(222, 47%, 11%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ht-nav__inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ht-nav__logo img,
.ht-footer__logo img {
  width: auto;
  display: block;
}

.ht-nav__logo img {
  height: 38px;
}

.ht-nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.ht-nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.ht-nav__link:hover {
  color: var(--white);
}

.ht-btn {
  background: var(--orange);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.ht-btn:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.ht-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ht-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.ht-nav__mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  background: hsl(217, 33%, 17%);
}

.ht-nav__mobile.open {
  display: flex;
}

.ht-nav__mobile a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.ht-nav__mobile a:last-child {
  margin-top: 12px;
  border-bottom: 0;
  text-align: center;
}

.nis2-subbrand {
  padding: 7px 16px;
  background: hsl(217, 33%, 17%);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.nis2-subbrand strong {
  color: var(--orange);
}

.app-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.intro-copy,
.status-panel,
.wizard,
.result,
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-copy {
  padding: 36px;
  text-align: left;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 16px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.05rem;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.notice {
  max-width: 680px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.07);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.status-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.status-number {
  display: block;
  color: var(--orange);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.status-label {
  color: var(--text-muted);
  font-weight: 700;
}

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

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease;
}

.status-panel p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.info-box {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.info-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.info-box-title {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.assessment {
  display: grid;
  gap: 22px;
}

.wizard,
.result {
  padding: 32px;
}

.wizard {
  overflow: hidden;
}

.wizard-frame {
  overflow: hidden;
  transition: height 240ms ease;
}

.wizard-track {
  display: flex;
  align-items: flex-start;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wizard-slide {
  min-width: 100%;
  display: grid;
  align-content: start;
  min-height: 0;
}

.question-slide {
  padding: 0;
}

.slide-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.question-card {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.question-card h2 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
}

.question-card h2 span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.option:hover,
.option:has(input:checked) {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.12);
  color: var(--white);
}

.option input {
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.option span {
  font-weight: 700;
  line-height: 1.25;
}

.wizard-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.lead-gate {
  display: grid;
  gap: 18px;
  align-content: start;
}

.lead-gate p {
  color: var(--text-muted);
}

.lead-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-fields label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.lead-fields input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.lead-fields input:focus,
.option:focus-within {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.08);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}

.primary-action,
.secondary-action {
  width: fit-content;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.2s, box-shadow 0.15s;
}

.primary-action {
  border: 0;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.primary-action:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.secondary-action {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.secondary-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.form-message {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--red-fg);
  font-weight: 750;
}

.result {
  margin-top: 24px;
  border-top: 3px solid var(--orange);
}

.result p {
  color: var(--text-muted);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.result-grid > div,
.deep-check {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.result-grid strong {
  color: var(--orange-light);
}

.deep-check p {
  color: var(--text-muted);
  line-height: 1.55;
}

.deep-check a {
  color: var(--orange);
  font-weight: 850;
}

.ht-footer {
  margin-top: 60px;
  padding: 48px 24px 24px;
  background: rgb(2, 6, 23);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.ht-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ht-footer__logo img {
  height: 36px;
  margin-bottom: 14px;
}

.ht-footer__desc {
  margin-bottom: 14px;
  line-height: 1.65;
}

.ht-footer__contact a {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
}

.ht-footer h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ht-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ht-footer ul li {
  margin-bottom: 8px;
}

.ht-footer ul a {
  color: rgba(255, 255, 255, 0.65);
}

.ht-footer ul a:hover {
  color: var(--white);
}

.ht-footer__bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .ht-nav__links,
  .ht-nav__btn-desktop {
    display: none;
  }

  .ht-nav__toggle {
    display: flex;
  }

  .app-shell {
    padding: 28px 14px 48px;
  }

  .intro,
  .info-boxes,
  .lead-fields,
  .result-grid,
  .ht-footer__inner {
    grid-template-columns: 1fr;
  }

  .intro-copy,
  .status-panel,
  .wizard,
  .result {
    padding: 22px;
  }

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

  .question-card {
    padding: 18px;
  }

  .wizard-actions {
    grid-template-columns: 1fr 1fr;
  }

  .form-message {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .secondary-action,
  .primary-action {
    width: 100%;
  }

  .ht-footer__inner {
    gap: 28px;
  }

  .ht-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
