@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #06060b;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-solid: #0d0d15;
  --bg-glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #eaeaf0;
  --text-muted: #7a7a95;
  --accent: #6366f1;
  --accent2: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc);
  --glow: rgba(99,102,241,0.12);
  --glow-strong: rgba(99,102,241,0.25);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  padding-top: 70px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,11,0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
nav .container { display: flex; justify-content: center; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo-img { height: 120px; width: auto; border-radius: 50%; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a { color: var(--text-muted); font-size: 13px; font-weight: 500; letter-spacing: 0.2px; }
nav ul li a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient); color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-text-fill-color: #fff;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--glow); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 2px 24px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-strong);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }

/* ── HERO ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, rgba(168,85,247,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── HERO AUDIT FORM ── */
.audit-form-wrap {
  max-width: 600px; margin: 0 auto 36px;
  position: relative;
}
.audit-form {
  display: flex; gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.audit-form:focus-within {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}
.audit-form input {
  flex: 1; padding: 14px 16px;
  background: transparent; border: none;
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; min-width: 0;
}
.audit-form input::placeholder { color: #444; }
.audit-form .btn {
  white-space: nowrap; padding: 12px 24px; border-radius: var(--radius-sm);
}
.keyword-row {
  display: flex; gap: 8px; margin-top: 8px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.keyword-row input {
  flex: 1; padding: 12px 16px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.3s;
}
.keyword-row input:focus { border-color: rgba(99,102,241,0.4); }
.keyword-row input::placeholder { color: #444; }

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  flex-wrap: wrap; margin-top: 48px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 28px; font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label {
  font-size: 12px; color: var(--text-muted);
  margin-top: 4px; letter-spacing: 0.3px;
}

/* ── SCANNING STATE ── */
.scan-state { display: none; text-align: center; padding: 48px 0; }
.scan-state.active { display: block; }
.scan-spinner {
  width: 48px; height: 48px; margin: 0 auto 20px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-status {
  font-size: 15px; color: var(--text-muted);
  animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.scan-bars {
  display: flex; gap: 4px; justify-content: center;
  margin-top: 20px; height: 32px; align-items: flex-end;
}
.scan-bars span {
  width: 4px; border-radius: 2px;
  background: var(--accent);
  animation: bar-dance 1s ease-in-out infinite;
}
.scan-bars span:nth-child(1) { animation-delay: 0s; }
.scan-bars span:nth-child(2) { animation-delay: 0.1s; }
.scan-bars span:nth-child(3) { animation-delay: 0.2s; }
.scan-bars span:nth-child(4) { animation-delay: 0.3s; }
.scan-bars span:nth-child(5) { animation-delay: 0.4s; }
.scan-bars span:nth-child(6) { animation-delay: 0.5s; }
.scan-bars span:nth-child(7) { animation-delay: 0.6s; }
@keyframes bar-dance {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 28px; opacity: 1; }
}

/* ── RESULTS ── */
.results-section { display: none; padding: 60px 0 40px; }
.results-section.active { display: block; }
.results-header {
  display: flex; align-items: center; gap: 36px;
  margin-bottom: 36px; flex-wrap: wrap;
  justify-content: center;
}

/* Score Ring */
.score-ring-wrap { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.score-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 10; }
.score-ring-fill {
  fill: none; stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s;
}
.score-ring-value {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.score-ring-value .score-num {
  font-size: 44px; font-weight: 900; line-height: 1;
}
.score-ring-value .score-max {
  font-size: 16px; color: var(--text-muted); font-weight: 500;
}
.score-ring-value .score-grade {
  font-size: 18px; font-weight: 800; margin-top: 2px;
}

.results-meta { text-align: left; }
.results-meta .results-url {
  font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
  word-break: break-all;
}
.results-meta .results-summary {
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
  max-width: 500px;
}

/* Category Bars */
.category-bars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 36px;
}
.cat-bar {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.cat-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cat-bar-label { font-size: 13px; font-weight: 600; }
.cat-bar-pct { font-size: 13px; font-weight: 800; }
.cat-bar-track {
  height: 6px; background: rgba(255,255,255,0.05);
  border-radius: 3px; overflow: hidden;
}
.cat-bar-fill {
  height: 100%; border-radius: 3px;
  width: 0; transition: width 1.2s ease-out;
}

/* Checks Grid */
.checks-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 36px;
}
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.check-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.check-pass .check-icon { background: rgba(34,197,94,0.15); color: var(--green); }
.check-fail .check-icon { background: rgba(239,68,68,0.15); color: var(--red); }
.check-name { font-weight: 600; }
.check-detail { color: var(--text-muted); font-size: 12px; }

/* Priority Fixes */
.fixes-section { margin-bottom: 36px; }
.fixes-section h3 {
  font-size: 18px; font-weight: 800; margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.fix-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 14px;
}
.fix-num-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.fix-text { font-size: 14px; line-height: 1.5; }

/* Results CTA */
.results-cta {
  text-align: center; padding: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.results-cta h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.results-cta p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ── RECENT AUDITS TICKER ── */
.ticker-section { padding: 24px 0; overflow: hidden; }
.ticker-wrap {
  display: flex; gap: 24px; align-items: center;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item {
  white-space: nowrap; font-size: 13px; color: var(--text-muted);
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.ticker-score {
  font-weight: 800; font-size: 12px;
  padding: 2px 8px; border-radius: 10px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
section { padding: 100px 0; }
.section-label {
  text-transform: uppercase; font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900; letter-spacing: -1.2px; margin-bottom: 14px;
}
section .section-sub {
  color: var(--text-muted); font-size: 16px; max-width: 560px; margin-bottom: 48px;
  line-height: 1.7;
}

/* ── AUDIT CARDS ── */
.audit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.audit-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.audit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.audit-card .card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; margin-bottom: 14px;
  background: var(--gradient); color: #fff;
}
.audit-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.audit-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.audit-card .points {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700;
  background: rgba(99,102,241,0.1); color: var(--accent);
  padding: 4px 10px; border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; counter-reset: step;
}
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.price-card.featured {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 60px rgba(99,102,241,0.08);
  position: relative;
  background: linear-gradient(var(--bg-card-solid), var(--bg-card-solid)) padding-box,
              var(--gradient) border-box;
  border: 1px solid transparent;
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  padding: 4px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.price-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-card .price { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; }
.price-card .price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 24px; }
.price-card ul li {
  font-size: 14px; color: var(--text-muted);
  padding: 7px 0; padding-left: 22px; position: relative;
}
.price-card ul li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 13px;
}
.price-card .btn { width: 100%; justify-content: center; }

/* ── REPORT PREVIEW ── */
.report-preview {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.report-preview-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.02);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.report-preview-body { padding: 28px; }
.score-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.score-bar .bar-label {
  font-size: 13px; color: var(--text-muted);
  width: 180px; flex-shrink: 0;
}
.score-bar .bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.05);
  border-radius: 3px; overflow: hidden;
}
.score-bar .bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.8s ease;
}
.score-bar .bar-score {
  font-size: 13px; font-weight: 700; width: 50px; text-align: right;
}

/* ── FAQ ── */
.faq-list { max-width: 700px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after { content: '\2212'; transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ── ERROR ── */
.error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px; margin-top: 12px;
  font-size: 14px; color: var(--red);
  text-align: center;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .logo-img { height: 100px; }
  .nav-cta { padding: 6px 14px; font-size: 12px; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .audit-form { flex-direction: column; }
  .audit-form .btn { width: 100%; justify-content: center; }
  section { padding: 60px 0; }
  .audit-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .category-bars { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; text-align: center; }
  .results-meta { text-align: center; }
  .score-bar .bar-label { width: 120px; font-size: 12px; }
}

/* ── CONFIRMATION PAGES ── */
.confirm-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.confirm-box {
  max-width: 500px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
}
.confirm-box .icon { font-size: 48px; margin-bottom: 20px; }
.confirm-box h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.confirm-box p { font-size: 16px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
