/* ============================================================
   SafetyPages.com — Main Stylesheet
   www.safetypages.com
   ============================================================ */

:root {
  --ink: #0a0e17;
  --paper: #f4f1eb;
  --accent: #e84040;
  --gold: #f0a500;
  --cyan: #00c9c9;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e2ddd6;
  --green: #22c55e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  height: 64px;
  border-bottom: 2px solid var(--accent);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--paper);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--paper); border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 6vw 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,64,64,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,64,64,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { from { transform: translateY(0); } to { transform: translateY(60px); } }

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--paper);
  line-height: 0.92;
  letter-spacing: 0.02em;
  animation: fadeUp 0.9s 0.1s ease both;
  position: relative;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  max-width: 640px;
  margin: 2rem auto 0;
  color: #9ca3af;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s 0.3s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,64,64,0.4); }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--paper); transform: translateY(-2px); }

.hero-stats {
  margin-top: 5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s 0.4s ease both;
  position: relative;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: #6b7280; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.25rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── SECTION COMMON ── */
section { padding: 6rem 6vw; }
.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.section-sub {
  max-width: 600px;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 300;
  font-size: 1.02rem;
}
.section-header { margin-bottom: 3.5rem; }

/* ── THREATS ── */
#threats { background: var(--ink); color: var(--paper); }
#threats .section-title { color: var(--paper); }
#threats .section-sub { color: #9ca3af; }
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  border: 1.5px solid rgba(255,255,255,0.07);
}
.threat-card {
  background: #0f1520;
  padding: 2.2rem;
  border: 1.5px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.threat-card:hover { background: #141c2e; }
.threat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.threat-card:hover::before { transform: scaleX(1); }
.threat-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.threat-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.threat-card p { color: #9ca3af; font-size: 0.92rem; line-height: 1.65; }
.threat-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
  background: rgba(255,255,255,0.05);
  color: var(--card-accent, var(--accent));
  border: 1px solid currentColor;
}

/* ── AI AWARENESS ── */
#ai { background: var(--paper); }
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.ai-visual {
  background: var(--ink);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ai-pulse {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,64,64,0.3) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 3rem;
}
.ai-pulse::before, .ai-pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(232,64,64,0.3);
  animation: pulseRing 2.5s ease-out infinite;
}
.ai-pulse::before { width: 150px; height: 150px; }
.ai-pulse::after { width: 190px; height: 190px; animation-delay: 0.8s; }
@keyframes pulseRing { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.ai-scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,201,201,0.03) 3px, rgba(0,201,201,0.03) 4px);
  pointer-events: none;
}
.ai-label {
  margin-top: 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}
.ai-tips { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.ai-tip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ai-tip:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateX(4px); }
.ai-tip-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.ai-tip h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.ai-tip p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.ai-log-item {
  font-size: 0.7rem;
  font-family: 'Space Mono', monospace;
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 0.6rem;
}
.ai-log-item.normal { color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.ai-log-item.alert { color: rgba(232,64,64,0.7); background: rgba(232,64,64,0.05); }
.ai-log-item.safe { color: rgba(0,201,201,0.7); background: rgba(0,201,201,0.05); }

/* ── SCAMS ── */
#scams { background: #fdf8f0; }
.scam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.scam-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.scam-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.09); transform: translateY(-4px); }
.scam-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.scam-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.scam-card h3 { font-size: 1.05rem; font-weight: 700; }
.scam-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.scam-card ul { margin-top: 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.scam-card ul li { font-size: 0.84rem; color: var(--muted); }
.warning-strip {
  background: var(--accent);
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.warning-strip span:first-child { font-size: 1.5rem; }

/* ── PHYSICAL / SKIMMERS ── */
#physical { background: var(--ink); color: var(--paper); }
#physical .section-title { color: var(--paper); }
#physical .section-sub { color: #9ca3af; }
.physical-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.phy-panel {
  background: #0f1520;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 2.2rem;
}
.phy-panel-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.phy-panel-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.phy-panel h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.04em; color: var(--paper); }
.phy-panel p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.65; }
.phy-list { display: flex; flex-direction: column; gap: 0.75rem; }
.phy-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.phy-item:hover { background: rgba(255,255,255,0.06); border-left-color: var(--gold); }
.phy-check { color: var(--green); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.phy-item-text { font-size: 0.88rem; color: #d1d5db; line-height: 1.55; }

/* ── DEEPFAKE ── */
#deepfake { background: #fdf8f0; }
.deepfake-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.deepfake-signs { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.sign-item {
  display: flex; gap: 1rem; padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  align-items: flex-start;
}
.sign-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1; color: var(--border); min-width: 2rem; }
.sign-item h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.25rem; }
.sign-item p { font-size: 0.84rem; color: var(--muted); }
.deepfake-panel {
  background: var(--ink);
  border-radius: 12px;
  padding: 2.5rem;
  color: var(--paper);
  position: sticky;
  top: 90px;
}
.deepfake-panel h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; margin-bottom: 1rem; letter-spacing: 0.04em; }
.deepfake-panel ul { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; }
.deepfake-panel li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.88rem; color: #d1d5db; line-height: 1.6; }
.deepfake-panel li::before { content: '→'; color: var(--accent); font-family: 'Space Mono', monospace; flex-shrink: 0; }
.rule-box { margin-top: 1.5rem; background: #fff3cd; border: 1px solid #fcd34d; border-radius: 8px; padding: 1.5rem; }
.rule-box h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.rule-box p { font-size: 0.86rem; color: #92400e; line-height: 1.6; }

/* ── PROTECT INFO ── */
#protect { background: var(--ink); color: var(--paper); }
#protect .section-title { color: var(--paper); }
#protect .section-sub { color: #9ca3af; }
.protect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.protect-card {
  background: #0f1520;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.protect-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.protect-card-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.protect-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--paper); margin-bottom: 0.75rem; }
.protect-card p { color: #9ca3af; font-size: 0.88rem; line-height: 1.65; }
.protect-card .tip-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; list-style: none; }
.protect-card .tip-list li { font-size: 0.82rem; color: #6b7280; display: flex; gap: 0.5rem; align-items: flex-start; }
.protect-card .tip-list li::before { content: '▸'; color: var(--gold); flex-shrink: 0; font-size: 0.7rem; margin-top: 3px; }

/* ── CHECKLIST ── */
#checklist { background: var(--paper); }
.checklist-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.check-group h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.check-items { display: flex; flex-direction: column; gap: 0.6rem; }
.check-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.check-item.done { background: #f0fdf4; border-color: #86efac; color: #166534; text-decoration: line-through; text-decoration-color: #86efac; }
.check-item .cb {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.check-item.done .cb { background: var(--green); border-color: var(--green); color: #fff; }
.progress-bar-wrap { margin-top: 2rem; }
.progress-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; font-family: 'Space Mono', monospace; }
.progress-bar-bg { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 99px; width: 0%; transition: width 0.4s ease; }

/* ── CTA / NEWSLETTER ── */
#cta { background: var(--accent); text-align: center; padding: 5rem 6vw; color: #fff; }
#cta h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.04em; margin-bottom: 1rem; }
#cta p { max-width: 540px; margin: 0 auto 2.5rem; opacity: 0.9; font-weight: 300; }
.subscribe-form { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; max-width: 500px; margin: 0 auto; }
.subscribe-form input {
  flex: 1; min-width: 220px;
  padding: 0.9rem 1.2rem;
  border-radius: 4px; border: none;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.subscribe-form button {
  padding: 0.9rem 1.8rem;
  background: var(--ink); color: #fff;
  border: none; border-radius: 4px;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.subscribe-form button:hover { background: #1a2540; }

/* ── FOOTER ── */
footer {
  background: #050810;
  color: #4b5563;
  padding: 3rem 6vw;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--paper); letter-spacing: 0.06em; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #4b5563; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
footer p { font-size: 0.78rem; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ai-layout, .physical-layout, .checklist-layout, .deepfake-layout { grid-template-columns: 1fr; }
  .protect-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ink);
    padding: 1.5rem 6vw; gap: 1.5rem;
    border-bottom: 2px solid var(--accent);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .ai-visual { aspect-ratio: auto; min-height: 260px; }
  .deepfake-panel { position: static; }
}
@media (max-width: 600px) {
  .protect-grid { grid-template-columns: 1fr; }
  .threat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
}
