:root {
  --ink: #08111d;
  --dark: #07111e;
  --dark-2: #0c1725;
  --panel: #ffffff;
  --paper: #f7f6f1;
  --text: #f8fbff;
  --muted: #9aa8b8;
  --muted-dark: #617084;
  --line: rgba(255, 255, 255, .13);
  --line-dark: #e4e1da;
  --accent: #1ebde7;
  --accent-2: #69d8f1;
  --orange: #e39b16;
  --red: #d94b3d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(30, 189, 231, .14), transparent 26rem),
    linear-gradient(180deg, #07111e 0%, #091421 55%, #050b13 100%);
  line-height: 1.45;
}
a { color: inherit; }
.hero-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: clamp(34px, 4.4vw, 52px);
}
.hero-logo img {
  display: block;
  width: clamp(230px, 24vw, 318px);
  height: auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(360px, 1.06fr);
  gap: clamp(32px, 5vw, 86px);
  align-items: center;
  padding: clamp(42px, 5vw, 64px) clamp(18px, 5vw, 82px) 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0, transparent 68%);
}
.hero__content, .hero-visual { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: 0;
}
.hero p {
  max-width: 580px;
  margin: 22px 0 30px;
  color: #c6d1dd;
  font-size: 18px;
}

.url-form { max-width: 560px; }
.url-box {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0;
}
.input-icon {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--muted-dark);
  background: #fff;
  border-radius: 8px 0 0 8px;
  border: 1px solid transparent;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #121923;
  background: #fff;
}
.url-box input {
  min-height: 58px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  font-size: 17px;
}
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 3px solid rgba(30, 189, 231, .28);
  outline-offset: 2px;
}
button, .primary-link {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #111827;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(30, 189, 231, .2);
}
.url-box button {
  grid-column: 1 / -1;
  margin-top: 12px;
}
button:disabled { opacity: .62; cursor: wait; }
small { color: var(--muted); }
.url-form small {
  display: block;
  margin-top: 14px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  max-width: 760px;
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}
.metric-strip span {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 16px 8px 0;
  border-right: 1px solid var(--line);
  color: #eef4fb;
  font-size: 13px;
}
.metric-strip span:last-child { border-right: 0; }
.metric-strip i {
  color: var(--accent);
  font-style: normal;
  font-size: 28px;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-self: center;
  transform: translateY(38px);
}
.dash-window {
  width: min(100%, 620px);
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 32, 49, .9), rgba(5, 12, 22, .78));
  box-shadow: var(--shadow);
  position: relative;
  padding: 46px 34px 34px;
}
.window-dots {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 7px;
}
.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.dash-grid {
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.gauge-card, .chart-card, .line-card {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(3, 10, 19, .62);
}
.gauge-card {
  grid-row: span 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
}
.gauge-card strong { font-size: 54px; }
.gauge-card span { color: var(--muted); }
.mini-gauge {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 68%, rgba(255,255,255,.1) 0);
  position: relative;
}
.mini-gauge::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #07111e;
}
.chart-card {
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 22px;
}
.chart-card i {
  width: 16%;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.chart-card i:nth-child(1) { height: 30%; }
.chart-card i:nth-child(2) { height: 42%; }
.chart-card i:nth-child(3) { height: 55%; }
.chart-card i:nth-child(4) { height: 70%; }
.chart-card i:nth-child(5) { height: 88%; }
.line-card {
  display: grid;
  place-items: center;
  padding: 24px;
}
.line-card span {
  width: 100%;
  height: 90px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: skewY(-18deg);
}

.benefit-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 34px clamp(18px, 5vw, 82px);
  background: var(--paper);
  color: #121923;
}
.benefit-band article {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(8px, 2vw, 28px);
}
.benefit-band b {
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
}
.benefit-band strong { display: block; margin-bottom: 4px; }
.benefit-band span { color: #556270; font-size: 14px; }

.section {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 82px);
}
.flow-panel {
  max-width: 1160px;
  margin: 0 auto;
}
.progress {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 29, .78);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 54px);
}
.progress-layout {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}
.scan-ring {
  --progress: 0%;
  width: min(64vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 8px;
  margin: 0 auto;
  text-align: center;
  background: conic-gradient(var(--accent) var(--progress), rgba(255,255,255,.12) 0);
  box-shadow: 0 0 34px rgba(30, 189, 231, .2);
  position: relative;
  transition: background .34s ease;
  animation: scanPulse 1.4s ease-in-out infinite;
}
.scan-ring::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #07111e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.scan-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(30,189,231,.24);
  border-top-color: var(--accent);
  animation: scanRotate 1.1s linear infinite;
}
.scan-ring strong,
.scan-ring span {
  position: relative;
  z-index: 1;
}
.scan-ring strong {
  font-size: clamp(42px, 7vw, 58px);
  line-height: 1;
}
.scan-ring span {
  max-width: 150px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}
@keyframes scanRotate { to { transform: rotate(360deg); } }
@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 26px rgba(30, 189, 231, .16); }
  50% { box-shadow: 0 0 48px rgba(30, 189, 231, .34); }
}
.progress span {
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  display: block;
}
.progress strong {
  display: block;
  color: var(--accent);
  margin-top: 4px;
}
.scan-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.scan-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: #cbd5e1;
  transition: color .24s ease, background .24s ease;
}
.scan-list li:last-child { border-bottom: 0; }
.scan-list li::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
}
.scan-list .current {
  color: #fff;
  background: rgba(30,189,231,.08);
}
.scan-list .current::after {
  border-color: rgba(30,189,231,.28);
  border-top-color: var(--accent);
  animation: scanRotate .8s linear infinite;
}
.scan-list .done::after {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--accent);
  background: var(--accent);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  animation: none;
}

.preview-card, .report-screen {
  color: #121923;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.preview-card { margin-top: 22px; }
.preview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.preview-intro span, .report-hero span { color: #2d3748; font-weight: 800; }
.preview-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0;
}
.preview-score strong {
  font-size: clamp(72px, 12vw, 116px);
  line-height: .9;
}
.preview-score em {
  color: #121923;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
}
.preview-intro b, .report-hero h2 {
  color: var(--orange);
  font-size: 22px;
}
.score-ring {
  --score: 58%;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--accent) var(--score), #e5e5e5 0);
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--paper);
}
.score-ring strong, .score-ring span {
  position: relative;
  z-index: 1;
}
.score-ring strong { font-size: 52px; line-height: 1; }
.score-ring span { color: #111827; font-weight: 900; }
.score-ring.large { width: 190px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  min-height: 118px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 12px;
}
.metric-card i {
  grid-row: span 2;
  font-style: normal;
  font-size: 28px;
}
.metric-card span { color: #344054; font-size: 14px; }
.metric-card strong { font-size: 30px; line-height: 1; }
.metric-card em {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor var(--value), #e5e7eb 0);
}
.metric-card.good { color: var(--accent); }
.metric-card.warn { color: var(--orange); }
.metric-card.bad { color: var(--red); }
.metric-card span, .metric-card i { color: #111827; }
.metric-card.good strong, .metric-card.good em { color: var(--accent); }
.metric-card.warn strong, .metric-card.warn em { color: var(--orange); }
.metric-card.bad strong, .metric-card.bad em { color: var(--red); }

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.preview-card h2, .report-screen h2 {
  margin: 26px 0 14px;
  font-size: 24px;
}
.priority-card {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.priority-card b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111827;
  margin-bottom: 12px;
}
.priority-card h3 { margin: 0 0 8px; font-size: 17px; }
.priority-card p { margin: 0; color: #556270; font-size: 14px; }
.preview-card > button { width: min(100%, 560px); }

.modal-shell[hidden] { display: none; }
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 19, .72);
  backdrop-filter: blur(6px);
}
.lead-form {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  color: #121923;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.lead-form h2 { margin: 0; font-size: 28px; }
.lead-form p { margin: -6px 0 4px; color: #667085; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 26px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.url-form label,
.lead-form label,
.auth label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
}
.check input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.journey article {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #dce6f2;
}
.journey b {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
}

.report-screen {
  margin: clamp(22px, 4vw, 54px) auto 0;
  width: min(100% - 36px, 1120px);
}
.report-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.report-hero h1 {
  font-size: clamp(26px, 4vw, 48px);
  color: #121923;
  margin-top: 2px;
}
.report-hero time {
  color: #667085;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: nowrap;
}
.score-lockup {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
}
.score-lockup p { color: #556270; max-width: 540px; }
.wide { width: min(100%, 620px); }
.report-grid {
  color: #121923;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 22px;
}
.report-grid > div {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 22px;
}
.scores {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.scores li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}
.finding {
  margin-bottom: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.finding span {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
.finding h3 { margin: 6px 0 10px; }
.finding p { color: #4b5563; }
.disclaimer {
  color: var(--muted);
  font-size: 14px;
}
.admin { color: #121923; }
.admin table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line-dark);
}
.admin th, .admin td {
  padding: 12px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}
.auth {
  max-width: 420px;
  margin: 0 auto;
  color: #121923;
}
.auth form {
  display: grid;
  gap: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}
footer {
  padding: 26px clamp(18px, 5vw, 82px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.notice.error {
  padding: 16px;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fff1f1;
  border: 1px solid #ffcaca;
}

@media (max-width: 980px) {
  .hero,
  .progress-layout,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-visual {
    transform: none;
  }
  .metric-grid,
  .benefit-band,
  .priority-grid,
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  h1 { font-size: 42px; }
  .hero { padding-top: 30px; }
  .hero-logo {
    margin-bottom: 34px;
  }
  .hero-logo img {
    width: min(250px, 78vw);
  }
  .hero p { font-size: 17px; }
  .hero-visual { min-height: 300px; }
  .dash-window { min-height: 280px; padding: 42px 18px 22px; }
  .dash-grid { gap: 10px; }
  .metric-strip,
  .metric-grid,
  .benefit-band,
  .priority-grid,
  .journey,
  .fields,
  .preview-intro {
    grid-template-columns: 1fr;
  }
  .score-lockup,
  .report-hero {
    flex-direction: column;
  }
  button, .primary-link { width: 100%; }
  .score-ring.large { width: 160px; }
  .preview-score strong { font-size: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
