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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: #2a2a3a;
  --text: #e4e4ef;
  --text-dim: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --green: #00d68f;
  --yellow: #ffc048;
  --orange: #ff7b47;
  --red: #ff4757;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(108,92,231,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0,214,143,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 860px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

/* --- NAV --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.nav-logo { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; gap: 8px; }
.nav-link { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 8px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.nav-link:hover, .nav-link.active { border-color: var(--accent); color: var(--accent); }
.nav-cta { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 18px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.nav-cta:hover { background: var(--accent); color: white; }

/* --- TABS --- */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- HERO --- */
.hero { text-align: center; padding: 50px 0 20px; }
.hero-badge { display: inline-block; background: rgba(0,214,143,0.1); border: 1px solid rgba(0,214,143,0.25); color: var(--green); font-size: 0.78rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; }
h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin: 28px 0 10px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

/* --- CHECKER --- */
.checker-section { margin: 32px 0; }
.checker-label { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; }
.input-wrapper { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.input-wrapper input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.input-wrapper input:focus { border-color: var(--accent); }
.input-wrapper input::placeholder { color: var(--text-dim); }
.btn-analyze { background: var(--accent); color: white; border: none; border-radius: var(--radius); padding: 14px 24px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-analyze:hover { background: #7c6cf0; transform: translateY(-1px); }
.btn-analyze:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- COMPARE INPUTS --- */
.compare-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; max-width: 700px; margin: 0 auto; }
.compare-vs { text-align: center; font-weight: 700; color: var(--accent); font-size: 1rem; padding-bottom: 14px; }
.compare-field label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
.compare-field input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text); outline: none; }
.compare-field input:focus { border-color: var(--accent); }
.compare-btn-row { text-align: center; margin-top: 16px; }

/* --- CAPTCHA --- */
.captcha-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.captcha-svg { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.captcha-svg svg { display: block; height: 48px; }
.captcha-input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text); outline: none; width: 140px; }
.captcha-input:focus { border-color: var(--accent); }
.captcha-refresh { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 10px; cursor: pointer; color: var(--text-dim); font-size: 1.1rem; transition: all 0.2s; }
.captcha-refresh:hover { border-color: var(--accent); color: var(--accent); }

/* --- LOADING --- */
.loading { display: none; text-align: center; padding: 40px 20px; }
.loading.active { display: block; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 20px; animation: spin 0.8s linear infinite; }
.loading-text { font-weight: 600; margin-bottom: 16px; }
.loading-step { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; animation: fadeUp 0.3s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ERROR --- */
.error { display: none; background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.2); color: var(--red); padding: 14px 20px; border-radius: var(--radius); text-align: center; margin: 20px 0; }
.error.active { display: block; }

/* --- RESULTS --- */
.results { display: none; margin: 20px 0; }
.results.active { display: block; animation: fadeUp 0.4s ease; }

/* --- SECTION STYLES --- */
.section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.section-sub { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 24px; }

/* --- SCORE HERO --- */
.score-hero { text-align: center; padding: 32px 0 20px; }
.score-url { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 16px; word-break: break-all; }
.score-ring { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: var(--surface2); stroke-width: 10; }
.score-ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 502; transition: stroke-dashoffset 1.2s ease; }
.score-number { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-value { font-size: 2.8rem; font-weight: 800; }
.score-max { font-size: 0.8rem; color: var(--text-dim); }
.score-grade { display: inline-block; font-size: 1rem; font-weight: 700; padding: 5px 18px; border-radius: 20px; margin-bottom: 10px; }
.score-label { color: var(--text-dim); font-size: 0.9rem; }

/* --- SITE PREVIEW --- */
.site-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.site-preview-og { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--surface2); }
.site-preview-og-placeholder { width: 100%; height: 100px; background: linear-gradient(135deg, var(--surface2) 0%, var(--border) 100%); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-dim); opacity: 0.4; }
.site-preview-info { padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.site-preview-favicon { width: 28px; height: 28px; border-radius: 6px; background: var(--surface2); flex-shrink: 0; }
.site-preview-meta { flex: 1; min-width: 0; }
.site-preview-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-preview-desc { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.site-preview-url { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; margin-top: 2px; }
.site-preview-url a { color: var(--accent); text-decoration: none; }

/* --- BREAKDOWN --- */
.breakdown { display: grid; gap: 10px; margin-bottom: 20px; }
.breakdown-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.breakdown-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.breakdown-title { font-weight: 600; font-size: 0.9rem; }
.breakdown-score { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.85rem; }
.breakdown-bar { height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.breakdown-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.breakdown-detail { font-size: 0.78rem; color: var(--text-dim); }

/* --- INSIGHTS --- */
.insights-section { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.insights-header { padding: 16px 20px; font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid var(--border); background: var(--surface2); }
.insights-body { padding: 20px; }
.insight-summary { margin-bottom: 18px; font-size: 0.9rem; line-height: 1.7; }
.insight-group { margin-bottom: 18px; }
.insight-group-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.insight-item { display: flex; gap: 10px; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-dim); }
.insight-icon { flex-shrink: 0; color: var(--green); }

.improvement-card { background: var(--surface2); border-radius: 10px; padding: 14px; margin-bottom: 8px; }
.improvement-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.improvement-title { font-weight: 600; font-size: 0.85rem; }
.priority-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 2px 9px; border-radius: 6px; letter-spacing: 0.5px; }
.priority-high { background: rgba(255,71,87,0.12); color: var(--red); }
.priority-medium { background: rgba(255,192,72,0.12); color: var(--yellow); }
.priority-low { background: rgba(0,214,143,0.12); color: var(--green); }
.improvement-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.improvement-impact { font-size: 0.78rem; color: var(--green); margin-top: 5px; }

/* --- RECOMMENDATIONS --- */
.rec-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.rec-badge { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 6px; }
.rec-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.rec-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.rec-link { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 0.8rem; text-decoration: none; }
.rec-link:hover { text-decoration: underline; }

/* --- BOT GRID --- */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.bot-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface2); border-radius: 8px; }
.bot-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bot-status.allowed { background: var(--green); box-shadow: 0 0 6px rgba(0,214,143,0.4); }
.bot-status.blocked { background: var(--red); box-shadow: 0 0 6px rgba(255,71,87,0.4); }
.bot-status.partial { background: var(--yellow); box-shadow: 0 0 6px rgba(255,192,72,0.4); }
.bot-status.unknown { background: var(--text-dim); }
.bot-name { font-weight: 600; font-size: 0.85rem; }
.bot-owner { color: var(--text-dim); font-size: 0.75rem; }

/* --- ACTIONS --- */
.actions { display: flex; gap: 10px; margin: 28px 0; flex-wrap: wrap; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--accent); background: var(--surface2); }

/* --- BUY BANNER --- */
.buy-banner { background: linear-gradient(135deg, rgba(108,92,231,0.12) 0%, rgba(0,214,143,0.08) 100%); border: 1px solid rgba(108,92,231,0.25); border-radius: 16px; padding: 32px 24px; text-align: center; margin: 28px 0; }
.buy-banner-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.buy-banner-desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 18px; line-height: 1.6; }
.btn-buy { display: inline-block; background: var(--accent); color: white; border: none; border-radius: 10px; padding: 14px 36px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.btn-buy:hover { background: #7c6cf0; transform: translateY(-2px); }
.buy-banner-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-dim); }

/* --- COMPARE RESULTS --- */
.compare-results { display: none; margin: 20px 0; }
.compare-results.active { display: block; animation: fadeUp 0.4s ease; }
.compare-header { text-align: center; margin-bottom: 24px; }
.compare-winner { font-size: 0.85rem; color: var(--green); margin-top: 8px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.compare-card.winner { border-color: var(--green); }
.compare-category-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.compare-category-row:last-child { border: none; }
.compare-cat-name { text-align: center; font-size: 0.82rem; font-weight: 600; }
.compare-cat-score { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 600; text-align: center; }

/* --- FAMOUS SCORES --- */
.famous-section { margin: 40px 0; text-align: center; }
.famous-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.famous-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; transition: border-color 0.2s; cursor: pointer; }
.famous-card:hover { border-color: var(--accent); }
.famous-name { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.famous-score { font-size: 1.4rem; font-weight: 700; }
.famous-grade { font-size: 0.7rem; font-weight: 600; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.famous-callout { margin-top: 16px; padding: 14px 20px; background: rgba(255,71,87,0.06); border: 1px solid rgba(255,71,87,0.15); border-radius: 12px; font-size: 0.85rem; color: var(--text-dim); }
.famous-callout strong { color: var(--red); }

/* --- STEPS --- */
.how-section { margin: 50px 0; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.step-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--accent); color: white; border-radius: 50%; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.step-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.step-desc { font-size: 0.82rem; color: var(--text-dim); }

/* --- CHECKS --- */
.checks-section { margin: 50px 0; text-align: center; }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; text-align: left; }
.check-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.check-icon { font-size: 1.2rem; margin-bottom: 6px; }
.check-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.check-desc { font-size: 0.78rem; color: var(--text-dim); }
.check-pts { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent); margin-top: 5px; }

/* --- USE CASES --- */
.usecases-section { margin: 50px 0; text-align: center; }
.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; text-align: left; }
.usecase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; }
.usecase-who { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.usecase-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.usecase-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; }

/* --- CTA --- */
.cta-section { margin: 50px 0; background: linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(0,214,143,0.06) 100%); border: 1px solid rgba(108,92,231,0.2); border-radius: 20px; padding: 40px 28px; text-align: center; }
.cta-badge { display: inline-block; background: rgba(108,92,231,0.15); color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 12px; margin-bottom: 14px; }
.cta-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.cta-desc { font-size: 0.9rem; color: var(--text-dim); max-width: 480px; margin: 0 auto 10px; line-height: 1.7; }
.cta-features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 18px 0 22px; }
.cta-feat { font-size: 0.8rem; color: var(--text-dim); }
.cta-feat span { color: var(--green); }
.cta-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-dim); }

/* --- FAQ --- */
.faq-section { margin: 50px 0; text-align: center; }
.faq-list { margin-top: 24px; text-align: left; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-q { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.faq-a { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* --- FOOTER --- */
footer { text-align: center; padding: 36px 0; color: var(--text-dim); font-size: 0.82rem; border-top: 1px solid var(--border); margin-top: 36px; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .input-wrapper { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .famous-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .cta-features { flex-direction: column; gap: 6px; }
  .compare-inputs { grid-template-columns: 1fr; }
  .compare-vs { padding: 0; }
  .compare-grid { grid-template-columns: 1fr; }
}
