:root {
  --bg: #030406;
  --panel: rgba(18, 18, 22, 0.82);
  --panel-strong: rgba(36, 9, 17, 0.92);
  --line: rgba(255, 255, 255, 0.11);
  --line-red: rgba(255, 37, 68, 0.52);
  --red: #ff1744;
  --red-dark: #9f0e28;
  --white: #f7f7f8;
  --muted: #b5b5be;
  --soft: #767681;
  --green: #21e68b;
  --shadow: 0 28px 90px rgba(255, 23, 68, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(255, 23, 68, 0.08), transparent 30%),
    radial-gradient(circle at 15% 28%, rgba(255, 23, 68, 0.035), transparent 34%),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 23, 68, 0.36), rgba(24, 4, 9, 0.92));
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--white);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(255, 23, 68, 0.26);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 40px;
  align-items: end;
  min-height: 390px;
  padding: 92px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span,
.funnel-status span,
.criteria-list span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.75);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.25rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.ops-panel {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line-red);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 23, 68, 0.16), transparent 40%),
    rgba(8, 9, 12, 0.82);
  box-shadow: var(--shadow);
}

.ops-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ops-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.terminal {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.72);
  font: 0.86rem/1.7 Consolas, "Courier New", monospace;
}

.terminal p {
  margin: 0;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 23, 68, 0.2), transparent);
  height: 120px;
  animation: scan 4s linear infinite;
}

.signal-grid {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(6, 10px);
  gap: 9px;
}

.signal-grid i {
  display: block;
  width: 10px;
  height: 10px;
  background: rgba(255, 23, 68, 0.48);
}

@keyframes scan {
  from {
    transform: translateY(-140px);
  }
  to {
    transform: translateY(280px);
  }
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
}

.section-title {
  margin-bottom: 18px;
}

.section-title p {
  margin: 0 0 6px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

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

.problem-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.problem-card:hover,
.problem-card.is-selected {
  border-color: var(--red);
  background: linear-gradient(140deg, rgba(255, 23, 68, 0.11), rgba(255, 255, 255, 0.03));
}

.problem-card:hover {
  transform: translateY(-2px);
}

.problem-card span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-red);
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.problem-card strong {
  align-self: end;
  font-size: 1rem;
}

.problem-card small {
  color: var(--muted);
  line-height: 1.45;
}

.card-preview {
  grid-column: 1 / -1;
  display: none;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #08090d;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.problem-card.is-preview-open .card-preview {
  display: block;
  animation: previewIn 0.18s ease-out;
}

.card-preview img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
}

.card-preview-empty {
  min-height: 190px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(255, 23, 68, 0.25), transparent 48%),
    #07080b;
  background-size: 22px 22px, 22px 22px, auto, auto;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.card-preview-empty strong {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line-red);
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.16);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.card-preview-empty small {
  color: var(--muted);
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.funnel-card {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line-red);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 23, 68, 0.09), rgba(255, 255, 255, 0.03) 44%),
    var(--panel);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.funnel-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 900;
}

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

label,
legend {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 3, 6, 0.7);
  color: var(--white);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.16);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.segment {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.segment.is-active {
  border-color: var(--red);
  background: rgba(255, 23, 68, 0.2);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.lead-note {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(33, 230, 139, 0.36);
  border-radius: 8px;
  background: rgba(33, 230, 139, 0.09);
}

.lead-note.is-warning {
  border-color: rgba(255, 198, 66, 0.42);
  background: rgba(255, 198, 66, 0.09);
}

.lead-note.is-blocked {
  border-color: rgba(255, 23, 68, 0.45);
  background: rgba(255, 23, 68, 0.1);
}

.lead-note span {
  color: var(--muted);
  line-height: 1.45;
}

.submit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff284d, #c40f31);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(255, 23, 68, 0.24);
}

.submit-cta.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.5);
}

.info-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  margin: 86px 0 0;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.benefit-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.benefit-grid strong {
  display: block;
  margin-bottom: 8px;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.criteria {
  padding: 70px 0 92px;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.criteria-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .diagnostic-layout,
  .info-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 54px;
  }

  .funnel-card {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 62px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.4rem);
  }

  .hero {
    gap: 24px;
    padding-top: 36px;
  }

  .ops-panel {
    min-height: 190px;
  }

  .problem-grid,
  .criteria-list {
    grid-template-columns: 1fr;
  }

  .card-preview img {
    height: 290px;
  }

  .problem-card {
    min-height: 96px;
  }

  .info-band {
    margin-top: 54px;
  }
}
