/* ============================================================
   Stay Safe Online — cybersecurity awareness site
   Sayeed Bin Akhter · ICT171 · CC BY 4.0
   ============================================================ */

:root {
  --ink:      #16181d;
  --paper:    #f7f3ec;
  --paper-2:  #efe9df;
  --navy:     #0e1b2e;
  --navy-2:   #16294a;
  --amber:    #e0a13c;
  --red:      #d2483d;
  --green:    #2f9468;
  --muted:    #5d6470;
  --line:     #ddd5c8;
  --radius:   14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; letter-spacing: -0.01em; }

a { color: inherit; }

code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.86em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.brand span { color: var(--amber); }
.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: 0.2s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-2) 0%, var(--navy) 55%);
  color: var(--paper);
  padding: clamp(64px, 11vw, 130px) clamp(20px, 6vw, 80px) clamp(56px, 8vw, 96px);
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; color: var(--amber);
  margin-bottom: 22px; opacity: 0; animation: rise 0.7s ease forwards;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 600; max-width: 16ch;
  opacity: 0; animation: rise 0.7s ease 0.08s forwards;
}
.hero h1 em { color: var(--amber); font-style: italic; }
.lede {
  margin-top: 26px; max-width: 56ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: #cfd6e2; opacity: 0; animation: rise 0.7s ease 0.16s forwards;
}
.hero-cards {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px;
  opacity: 0; animation: rise 0.7s ease 0.24s forwards;
}
.hero-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 16px 22px; min-width: 200px; flex: 1;
  transition: 0.22s;
}
.hero-card:hover { background: rgba(224, 161, 60, 0.14); border-color: var(--amber); transform: translateY(-3px); }
.hero-card .num { font-family: "IBM Plex Mono", monospace; color: var(--amber); font-size: 1.1rem; }
.hero-card .lbl { font-family: "Fraunces", serif; font-size: 1.15rem; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Intro ---------- */
.intro {
  max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 40px);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem); text-align: center; color: #3a3f49;
}

/* ---------- Threat sections ---------- */
.threat { padding: clamp(40px, 6vw, 78px) clamp(20px, 6vw, 80px); border-top: 1px solid var(--line); }
.threat.alt { background: var(--paper-2); }
.threat-head { max-width: 900px; margin: 0 auto 30px; }
.tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); background: rgba(210, 72, 61, 0.1);
  border: 1px solid rgba(210, 72, 61, 0.25); border-radius: 999px; padding: 5px 13px;
}
.threat-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 600; margin: 18px 0 6px; }
.threat-sub { color: var(--muted); font-size: 1.1rem; }
.threat-body { max-width: 760px; margin: 0 auto; }
.threat-body > p { margin-bottom: 22px; font-size: 1.05rem; }
.threat-body h3 { font-size: 1.35rem; margin: 26px 0 12px; }
.threat-body ul { list-style: none; }
.threat-body ul li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.threat-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}

.action {
  margin-top: 30px; background: rgba(47, 148, 104, 0.08);
  border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}
.action h4 {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}

/* ---------- Checklist ---------- */
.checklist {
  background: var(--navy); color: var(--paper);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 6vw, 80px);
}
.checklist h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 40px; }
.checklist ul {
  list-style: none; max-width: 820px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.checklist li {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px; padding: 15px 18px 15px 46px; position: relative; font-size: 0.98rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 17px; top: 14px;
  color: var(--green); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a131f; color: #9aa6b6;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 6vw, 80px); text-align: center; font-size: 0.92rem;
}
.foot-title { font-family: "Fraunces", serif; color: var(--paper); font-size: 1.3rem; margin-bottom: 8px; }
.site-footer p { margin-bottom: 6px; }
.licence { max-width: 620px; margin: 14px auto 0; font-size: 0.85rem; }
.licence a { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-card { min-width: 100%; }
}

/* ---------- Threat illustrations ---------- */
.threat-figure {
  margin: 0 0 30px; padding: 22px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.threat.alt .threat-figure { background: #ffffff; }
.threat-figure svg { width: 100%; max-width: 330px; height: auto; }
