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

:root {
  --bg: #0c0c0e;
  --surface: #141418;
  --surface2: #1c1c22;
  --border: #ffffff0f;
  --border2: #ffffff18;
  --accent: #00e5ff;
  --accent2: #ff3d6b;
  --text: #f2f2ee;
  --text2: #9090a0;
  --text3: #505060;
  --good: #00e676;
  --warning: #ffb300;
  --critical: #ff3d6b;
  --radius: 12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── Header ─────────────────────────────────────────────── */

header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,14,0.92);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.05em;
  color: var(--text);
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  font-size: 14px; font-weight: 400;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text) !important;
  font-weight: 500 !important;
  transition: border-color 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  border-color: var(--accent) !important;
  background: rgba(0,229,255,0.05) !important;
}

/* ── Hero ────────────────────────────────────────────────── */

main { position: relative; z-index: 2; }

.hero {
  min-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

/* Background grid lines */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none !important;
  z-index: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  background: rgba(0,229,255,0.05);
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent2);
  position: relative;
}

.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--text2); line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── Scan box ────────────────────────────────────────────── */

.scan-box {
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column; gap: 12px;
}

.scan-input-row {
  display: flex; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  transition: border-color 0.2s;
}

.scan-input-row:focus-within { border-color: var(--accent); }

.url-input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 4px;
}

.url-prefix {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 300;
  color: var(--text3);
  white-space: nowrap;
}

#urlInput {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 300;
  color: var(--text);
  min-width: 0;
}

#urlInput::placeholder { color: var(--text3); }

#scanBtn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0c0c0e;
  border: none; border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}

#scanBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,229,255,0.25);
}

#scanBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.scan-note {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 300;
  color: var(--text3); text-align: center;
}

/* ── Scanning state ──────────────────────────────────────── */

.scanning-state { width: 100%; max-width: 640px; }

.scan-progress {
  display: flex; align-items: center; gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 24px 28px;
}

.scan-ring {
  position: relative; width: 80px; height: 80px; flex-shrink: 0;
}

.scan-ring svg { width: 80px; height: 80px; }

#progressCircle {
  transition: stroke-dashoffset 0.5s ease;
  animation: rotate-progress 2s linear infinite;
}

@keyframes rotate-progress {
  from { stroke-dashoffset: 213; }
  to { stroke-dashoffset: 0; }
}

.scan-ring-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.scan-messages { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.scan-message {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--text);
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.scan-url-display {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 300;
  color: var(--accent);
}

/* ── Checks section ──────────────────────────────────────── */

.checks-section {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.checks-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--text3); text-align: center;
  margin-bottom: 48px;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.check-item {
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.check-item:hover { background: var(--surface2); }

.check-icon { font-size: 24px; margin-bottom: 12px; }

.check-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 8px;
}

.check-desc {
  font-size: 13px; font-weight: 300;
  color: var(--text2); line-height: 1.6;
}

/* ── Proof section ───────────────────────────────────────── */

.proof-section {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.proof-stat {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.proof-num {
  font-family: var(--font-display);
  font-size: 64px; letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.proof-label {
  font-size: 13px; font-weight: 300;
  color: var(--text2); line-height: 1.5;
}

.proof-divider {
  width: 1px; height: 80px;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.05em;
  color: var(--text3);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text3);
}

/* ── Utilities ───────────────────────────────────────────── */

.hidden { display: none !important; }


/* ── Click fix ───────────────────────────────────────────── */
input, button, textarea, a, select {
  position: relative;
  z-index: 10;
  pointer-events: all !important;
}

.scan-box, .scan-input-row, .url-input-wrap {
  position: relative;
  z-index: 10;
}

.hero {
  position: relative;
  z-index: 2;
}
