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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.1);
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --orange: #fb923c;
  --radius: 12px;
  --max-w: 960px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === Nav === */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* === Hero === */
.hero { text-align: center; padding: 80px 0 48px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* === Search Box === */
.search-box { max-width: 540px; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%;
  padding: 16px 140px 16px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.search-box button:hover { opacity: 0.85; }

/* === Grade Badges === */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}
.grade-a { background: rgba(74, 222, 128, 0.15); color: var(--green); }
.grade-b { background: rgba(74, 222, 128, 0.1); color: #86efac; }
.grade-c { background: rgba(250, 204, 21, 0.15); color: var(--yellow); }
.grade-d { background: rgba(251, 146, 60, 0.15); color: var(--orange); }
.grade-f { background: rgba(248, 113, 113, 0.15); color: var(--red); }

/* === Feature Grid === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 48px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* === Section === */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }

/* === Bot Page === */
.bot-page { padding: 60px 0; max-width: 720px; margin: 0 auto; }
.bot-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.bot-page h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.bot-page p, .bot-page li { color: var(--text-muted); line-height: 1.7; }
.bot-page ul { padding-left: 20px; margin: 12px 0; }
.bot-page li { margin-bottom: 6px; }
.bot-page code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--accent);
}
.bot-page pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}
.bot-page pre code { background: none; border: none; padding: 0; color: var(--text); }

/* === Info Table === */
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.info-table th, .info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-table th { color: var(--text-muted); font-weight: 600; }
.info-table td { color: var(--text); }

/* === CTA === */
.cta-section { text-align: center; padding: 64px 0; border-top: 1px solid var(--border); }
.cta-section h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* === Sample Report === */
.report-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.report-domain { font-size: 1.5rem; font-weight: 800; }
.report-url { color: var(--text-muted); font-size: 0.9rem; }
.overall-grade {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.report-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.report-grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.report-grade-card h4 { font-size: 0.9rem; font-weight: 600; }
.report-grade-card p { font-size: 0.8rem; color: var(--text-muted); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tech-tag {
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .nav-links { gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .report-header { flex-direction: column; text-align: center; }
  .report-grades { grid-template-columns: 1fr; }
}
