:root {
  --bg: #050507;
  --card: #0a0b10;
  --card2: #0d0e14;
  --border: rgba(255,255,255,.06);
  --text: #f0f2f8;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #6366f1;
  --accent2: #818cf8;
  --pink: #ec4899;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;
  --radius: 14px;
}

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

body {
  font-family: Inter, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient orbs */
.orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; z-index: 0; }
.o1 { width: 500px; height: 500px; background: var(--accent); top: -10%; left: -5%; animation: float 12s ease-in-out infinite; }
.o2 { width: 400px; height: 400px; background: var(--pink); bottom: 10%; right: -8%; animation: float 15s ease-in-out infinite reverse; }
.o3 { width: 300px; height: 300px; background: var(--cyan); top: 50%; left: 40%; animation: float 18s ease-in-out infinite 3s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(25px,-20px); } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,7,.75); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { font-family: Outfit; font-weight: 800; font-size: 1.1rem; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: .82rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-btn { padding: 6px 16px !important; border-radius: 8px; background: var(--accent) !important; color: #fff !important; font-weight: 600 !important; }

/* Hero */
.hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: 140px 20px 60px;
  max-width: 640px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.15);
  font-size: .72rem; font-weight: 600; color: var(--accent2);
  margin-bottom: 20px;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-family: Outfit; font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.grad { background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--text2); max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }

/* Buttons */
.btn {
  padding: 13px 26px; border-radius: 12px; font-family: inherit; font-weight: 700;
  font-size: .9rem; cursor: pointer; text-decoration: none; transition: all .2s;
  border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.25); }
.btn-primary:hover { box-shadow: 0 6px 28px rgba(99,102,241,.35); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero stats */
.hero-stats { display: flex; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat-num { font-family: Outfit; font-weight: 900; font-size: 1.8rem; color: var(--accent2); }
.stat-label { font-size: .72rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Sections */
.section-title { font-family: Outfit; font-size: 1.8rem; font-weight: 900; text-align: center; margin-bottom: 8px; }
.section-title span { color: var(--accent); }
.section-sub { text-align: center; color: var(--text2); font-size: .92rem; margin-bottom: 32px; }

/* Features */
.features { position: relative; z-index: 1; padding: 80px 20px; max-width: 900px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all .2s;
}
.feature-card:hover { border-color: rgba(99,102,241,.15); transform: translateY(-2px); }
.fc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.feature-card h3 { font-family: Outfit; font-weight: 800; font-size: .92rem; margin-bottom: 4px; }
.feature-card p { font-size: .75rem; color: var(--text2); line-height: 1.5; }

/* How section */
.how-section { position: relative; z-index: 1; padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; flex: 1; min-width: 180px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: #fff; font-family: Outfit; font-weight: 800; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.step h3 { font-family: Outfit; font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.step p { font-size: .75rem; color: var(--text2); }
.step-arrow { color: var(--text3); font-size: 1.2rem; }

/* Audit section */
.audit-section { position: relative; z-index: 1; padding: 80px 20px; max-width: 800px; margin: 0 auto; }
.audit-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; }
.audit-input {
  flex: 1; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: .88rem; outline: none;
}
.audit-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.scan-btn { white-space: nowrap; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.demo-notice {
  font-size: .72rem; color: var(--text3); background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.1); border-radius: 8px; padding: 8px 12px; margin-bottom: 20px;
}
.mode-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.mode-tab {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent;
  color: var(--text2); font-family: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.mode-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.html-textarea {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; outline: none; resize: vertical;
}
.html-textarea:focus { border-color: var(--accent); }

/* Results */
.results { margin-top: 20px; }
.report-header {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px; text-align: center;
}
.score-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 12px; }
.score-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.score-bg { stroke: rgba(255,255,255,.06); }
.score-fill { transition: stroke-dashoffset 1s ease; }
.score-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Outfit; font-weight: 900; font-size: 2rem; }
.report-url { font-family: 'JetBrains Mono'; font-size: .78rem; color: var(--text2); margin-bottom: 4px; word-break: break-all; }
.report-time { font-size: .68rem; color: var(--text3); }

.category-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 16px; }
.cat-score {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.cat-mini-score {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: Outfit; font-weight: 800; font-size: .82rem; flex-shrink: 0;
}
.cat-name { font-size: .75rem; font-weight: 600; }
.cat-count { font-size: .62rem; color: var(--text3); }

.check-group {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.check-group-header {
  padding: 14px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: Outfit; font-weight: 800; font-size: .88rem;
}
.check-group-header:hover { background: rgba(255,255,255,.01); }
.check-group-toggle { font-size: .72rem; color: var(--text3); transition: transform .2s; }
.check-group.open .check-group-toggle { transform: rotate(180deg); }
.check-group-body { display: none; border-top: 1px solid var(--border); }
.check-group.open .check-group-body { display: block; }

.check-item {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 8px; font-size: .8rem;
}
.check-item:last-child { border-bottom: none; }
.check-icon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; }
.check-pass { background: rgba(34,197,94,.1); color: var(--green); }
.check-warn { background: rgba(245,158,11,.1); color: var(--amber); }
.check-fail { background: rgba(239,68,68,.1); color: var(--red); }
.check-info { background: rgba(99,102,241,.1); color: var(--accent2); }
.check-body { flex: 1; }
.check-title { font-weight: 600; margin-bottom: 1px; }
.check-desc { font-size: .72rem; color: var(--text2); }
.check-code { font-family: 'JetBrains Mono'; font-size: .68rem; background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 4px; color: var(--text2); margin-top: 3px; display: inline-block; }

.export-bar { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* Footer */
.footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 32px 20px; text-align: center; margin-top: 40px;
}
.footer p { font-size: .78rem; color: var(--text2); margin-top: 6px; }
.copy { font-size: .68rem !important; color: var(--text3) !important; margin-top: 12px !important; }

@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 2rem; }
  .audit-input-wrap { flex-direction: column; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .hero-stats { gap: 20px; }
  .category-scores { grid-template-columns: 1fr 1fr; }
}
