/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0A0F;
  --bg-card: #111118;
  --bg-card-hover: #16161F;
  --fg: #E8E8EC;
  --fg-muted: #6B6B7A;
  --accent: #39FF14;
  --accent-dim: rgba(57, 255, 20, 0.12);
  --critical: #FF3B3B;
  --high: #FF9D00;
  --medium: #00B4D8;
  --low: #39FF14;
  --border: rgba(255,255,255,0.07);
  --radius: 10px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { font-size: 1.4rem; color: var(--accent); font-family: var(--font-mono); }
.nav-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }

.nav-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.status-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  position: relative;
  padding: 100px 48px 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-label { margin-bottom: 28px; }
.label-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
}

.hero-headline {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.headline-accent { color: var(--accent); }

.hero-right { padding-top: 8px; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-val { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; color: var(--fg); }
.stat-key { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* === SCAN CARD SECTION === */
.scan-section { padding: 0 48px 80px; }
.scan-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.scan-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.08) inset,
    0 24px 64px rgba(0,0,0,0.5);
}

.scan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(57, 255, 20, 0.04);
}

.scan-url { display: flex; align-items: center; gap: 12px; }
.scan-domain { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg); }
.scan-status-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 59, 59, 0.15);
  color: var(--critical);
  border: 1px solid rgba(255, 59, 59, 0.3);
}

.scan-score { text-align: right; }
.score-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 500; color: var(--critical); line-height: 1; }
.score-denom { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg-muted); }

.scan-issues { padding: 8px 0; }

.issue-row {
  display: grid;
  grid-template-columns: 20px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.issue-row:last-child { border-bottom: none; }
.issue-row:hover { background: var(--bg-card-hover); }

.issue-dot { width: 8px; height: 8px; border-radius: 50%; }
.issue-critical .issue-dot { background: var(--critical); box-shadow: 0 0 6px var(--critical); }
.issue-high .issue-dot { background: var(--high); }
.issue-medium .issue-dot { background: var(--medium); }
.issue-low .issue-dot { background: var(--low); }

.issue-type { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--fg); letter-spacing: 0.04em; }
.issue-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted); }
.issue-priority { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-muted); text-align: right; }

.scan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.scan-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-muted); }
.scan-sell-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.25);
  padding: 4px 12px;
  border-radius: 4px;
}

/* === FEATURES === */
.features {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--bg-card);
  padding: 36px 32px;
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.feature-body {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.hiw-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 56px;
  text-align: center;
}

.hiw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.hiw-step { text-align: center; max-width: 240px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--fg); }
.step-body { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.65; }

.hiw-connector {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin: 0 24px;
  flex-shrink: 0;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.03), transparent);
}

.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto-line {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.accent-line { color: var(--accent); }

/* === CLOSING === */
.closing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.closing-sub { font-size: 1rem; color: var(--fg-muted); line-height: 1.75; }

/* === FOOTER === */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { font-size: 1.2rem; color: var(--accent); font-family: var(--font-mono); }
.footer-name { font-weight: 700; font-size: 1rem; }
.footer-tagline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }
.footer-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--fg-muted); opacity: 0.5; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { padding-top: 0; }
  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps { flex-direction: column; gap: 32px; }
  .hiw-connector { width: 1px; height: 40px; background: linear-gradient(180deg, var(--border), var(--accent), var(--border)); margin: 0; }
}

@media (max-width: 600px) {
  .navbar, .hero, .features, .how-it-works, .manifesto, .closing, .footer { padding-left: 24px; padding-right: 24px; }
  .scan-section { padding-left: 24px; padding-right: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .scan-card-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .scan-score { text-align: left; }
  .issue-row { grid-template-columns: 16px 1fr auto; gap: 10px; }
  .issue-count { display: none; }
  .scan-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}