:root {
  color-scheme: dark;
  --ink: #f1f0ef;
  --muted: #a8a6a5;
  --paper: #080808;
  --panel: #111010;
  --panel-2: #151414;
  --line: #383838;
  --signal: #add5c6;
  --signal-soft: #d9f1e8;
  --heat: #df3336;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: -7vh -7vw;
  pointer-events: none;
  opacity: 0.84;
  background-image:
    linear-gradient(rgba(8, 8, 8, 0.04), rgba(8, 8, 8, 0.36)),
    url("/public/assets/nv-texture.jpg?v=6");
  background-position: 50% 50%;
  background-size: cover;
  filter: contrast(1.18) saturate(0.88);
  animation: textureDrift 22s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(173, 213, 198, 0.1) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: screen;
}

@keyframes textureDrift {
  from {
    transform: scale(1.02) translate3d(-1.1vw, -1.2vh, 0);
    background-position: 45% 44%;
  }

  to {
    transform: scale(1.08) translate3d(1.2vw, 1vh, 0);
    background-position: 55% 58%;
  }
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 36px 0;
}

.intro,
.panel,
.results {
  width: min(860px, 100%);
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.intro::before,
.panel::before,
.results::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.42)),
    url("/public/assets/nv-texture.jpg?v=6");
  background-position: 50% 50%;
  background-size: cover;
}

.intro > *,
.panel > *,
.results > * {
  position: relative;
  z-index: 1;
}

.intro {
  padding: clamp(28px, 7vw, 72px);
}

.brand-logo {
  display: block;
  width: clamp(76px, 11vw, 112px);
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 0 18px rgba(173, 213, 198, 0.26));
}

.brand,
.eyebrow {
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro p,
.panel > p,
.results > div:first-child p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.primary,
.secondary,
.option {
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--ink);
  color: #080808;
  font-weight: 750;
}

.primary:hover {
  background: var(--signal-soft);
}

.secondary {
  padding: 0 16px;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.panel,
.results {
  padding: clamp(22px, 5vw, 48px);
}

.hidden {
  display: none;
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

#progressBar {
  height: 8px;
  overflow: hidden;
  background: #2c2b2b;
  border-radius: 999px;
}

#progressBar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
  transition: width 180ms ease;
}

.panel h2,
.results h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.option {
  min-height: 82px;
  padding: 18px;
  background: var(--panel-2);
  border-color: var(--line);
  text-align: left;
  font-weight: 700;
  line-height: 1.2;
}

.option:hover,
.option.selected {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}

.nav {
  margin-top: 24px;
}

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

.previewGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.previewGrid article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(173, 213, 198, 0.34);
  border-radius: 8px;
  background: rgba(21, 20, 20, 0.84);
}

.previewGrid span {
  display: block;
  margin-bottom: 10px;
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.previewGrid p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #080808;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(173, 213, 198, 0.18);
}

.wide {
  grid-column: 1 / -1;
}

.status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--muted);
  margin: 0;
}

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

.resultGrid article {
  min-height: 158px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.resultGrid span,
.scope > span {
  display: block;
  margin-bottom: 12px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resultGrid p,
.cta p,
.scope li {
  color: var(--muted);
  line-height: 1.5;
}

.resultGrid p {
  margin-bottom: 0;
}

.scope {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.scope ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.scope li {
  margin: 0;
}

.cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cta h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.cta .primary {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .intro,
  .panel,
  .results {
    border-radius: 6px;
  }

  .intro::after {
    width: 90px;
    height: 90px;
    right: 18px;
    bottom: 18px;
  }

  .options,
  .contact,
  .previewGrid,
  .resultGrid {
    grid-template-columns: 1fr;
  }

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