/* Spam & Phishing Site Detector — site styles */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --brand: #1d4ed8;
  --brand-dark: #0f1f4b;
  --green: #059669;
  --red: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* --- nav --- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
}
.nav img { width: 30px; height: 30px; }
.nav .brand { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; flex: 1; }
.nav a.link { text-decoration: none; font-weight: 600; font-size: 14px; margin-left: 16px; color: var(--ink); }
.nav a.link:hover { color: var(--brand); }

/* --- hero --- */
.hero {
  background: linear-gradient(135deg, #0f1f4b, #1d4ed8 65%, #3b82f6);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
}
.hero img.logo { width: 84px; height: 84px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; margin: 18px auto 14px; max-width: 760px; }
.hero p.sub { font-size: 18px; opacity: .92; max-width: 640px; margin: 0 auto 30px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-weight: 700; text-decoration: none; margin: 6px 8px;
  transition: transform .12s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.primary { background: #fff; color: var(--brand-dark); }
.btn.ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hero .note { font-size: 13px; opacity: .8; margin-top: 14px; }

/* --- sections --- */
section { padding: 56px 0; }
section h2 { font-size: 30px; text-align: center; margin: 0 0 10px; }
section p.lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.card .emoji { font-size: 26px; }
.card h3 { margin: 10px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shots img { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(15,23,42,.10); }

.steps { counter-reset: step; max-width: 680px; margin: 0 auto; }
.step { display: flex; gap: 16px; margin: 20px 0; align-items: flex-start; }
.step .n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 4px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- article pages --- */
.article { max-width: 720px; margin: 0 auto; padding: 40px 20px 24px; }
.article h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.25; }
.article .byline { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.article h2 { font-size: 23px; margin-top: 36px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin: 8px 0; }
.article blockquote {
  border-left: 4px solid var(--brand); margin: 20px 0; padding: 10px 18px;
  background: #eef2ff; border-radius: 0 10px 10px 0; color: #1e293b;
}
.article code { background: #e2e8f0; border-radius: 6px; padding: 2px 7px; font-size: 14px; }
.good { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }

.cta-box {
  background: linear-gradient(135deg, #0f1f4b, #1d4ed8);
  color: #fff; border-radius: 16px; padding: 28px;
  text-align: center; margin: 44px 0 10px;
}
.cta-box h3 { margin: 0 0 8px; font-size: 21px; }
.cta-box p { margin: 0 0 18px; opacity: .9; }

/* --- footer --- */
footer {
  border-top: 1px solid var(--border); background: #fff;
  padding: 28px 0; margin-top: 40px;
  color: var(--muted); font-size: 14px; text-align: center;
}
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav a.link { margin-left: 10px; }
  section { padding: 40px 0; }
}
