:root {
  --cyan: #00f5ff;
  --purple: #7b2fff;
  --pink: #ff2d78;
  --dark: #020212;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 245, 255, 0.22);
  --text: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.56);
  --text-dim: rgba(255, 255, 255, 0.32);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, rgba(0, 245, 255, 0.06), transparent 30%), var(--dark);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 100%;
}

a {
  color: inherit;
}

.flow-shell {
  min-height: 100vh;
}

.flow-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(2, 2, 18, 0.9);
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}

.flow-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.flow-logo {
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.flow-nav-links a {
  text-decoration: none;
}

.flow-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.68);
  border: 1px solid rgba(0, 245, 255, 0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 1.4rem 0 1rem;
  letter-spacing: -0.02em;
}

.hero-copy p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 640px;
}

.hero-support {
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.7;
}

.flow-card,
.metric-card,
.scan-card,
.finding-card,
.config-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.flow-card {
  padding: 1.5rem;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.hero-side .flow-card {
  padding: 1.35rem;
}

.kicker {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 0.55rem;
}

.subvalue {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.45rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #8bfbff);
  color: #031016;
}

.btn-secondary {
  background: rgba(123, 47, 255, 0.14);
  border: 1px solid rgba(123, 47, 255, 0.35);
  color: #d8ccff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.step-pill {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-pill strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.35rem;
}

.step-pill span {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0.95rem 1rem;
  font: inherit;
}

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

.field-note,
.microcopy {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.section-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.grid-two,
.grid-three {
  display: grid;
  gap: 1rem;
}

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

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

.metric-card,
.scan-card,
.finding-card,
.config-card {
  padding: 1.2rem;
}

.metric-title,
.scan-title,
.finding-title,
.config-title {
  font-size: 1rem;
  font-weight: 600;
}

.metric-copy,
.scan-copy,
.finding-copy,
.config-copy {
  margin-top: 0.55rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.status-list,
.bullet-list,
.score-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.status-row,
.bullet-list li,
.score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.status-row span:first-child,
.score-row span:first-child {
  color: rgba(255, 255, 255, 0.68);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-cyan {
  background: rgba(0, 245, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.22);
}

.badge-warn {
  background: rgba(255, 166, 0, 0.12);
  color: #ffb347;
  border-color: rgba(255, 166, 0, 0.22);
}

.badge-risk {
  background: rgba(255, 82, 82, 0.14);
  color: #ff7c7c;
  border-color: rgba(255, 82, 82, 0.22);
}

.badge-ok {
  background: rgba(104, 211, 145, 0.14);
  color: #8ff0b0;
  border-color: rgba(104, 211, 145, 0.22);
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-step:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  background: rgba(0, 245, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  color: rgba(0, 245, 255, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.timeline-step h3 {
  margin: 0 0 0.35rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-note {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  line-height: 1.7;
  text-align: center;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
}

.trend {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.56);
}

.warning-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.warning-item {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.warning-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
}

.warning-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.warning-item.critical strong {
  color: #ff8c8c;
}

.warning-item.warning strong {
  color: #ffcb76;
}

.warning-item.info strong {
  color: #8fe7ff;
}

@media (max-width: 960px) {
  .hero-block,
  .grid-three {
    grid-template-columns: 1fr;
  }

  .grid-two,
  .form-grid,
  .step-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .flow-nav-inner,
  .flow-page {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .flow-nav-links {
    display: none;
  }

  .results-header {
    align-items: flex-start;
  }
}
