/* ===================================
   Stay Safe Online — Global Stylesheet
   Theme: Dark background, neon pink accent
   =================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* --- CSS Variables --- */
:root {
  --pink:          #FF2D9B;
  --pink-light:    #FF6FC8;
  --pink-glow:     rgba(255, 45, 155, 0.18);
  --pink-subtle:   rgba(255, 45, 155, 0.08);
  --bg:            #0D0D0F;
  --bg-card:       #141417;
  --bg-card-hover: #1A1A1F;
  --border:        rgba(255, 255, 255, 0.08);
  --border-pink:   rgba(255, 45, 155, 0.35);
  --text-primary:  #F0EEF5;
  --text-secondary:#A89EBB;
  --text-muted:    #665E7A;
  --green:         #00E5A0;
  --amber:         #FFB830;
  --red:           #FF4D6A;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 500; }

p { color: var(--text-secondary); }

a {
  color: var(--pink-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--pink); }

strong { color: var(--text-primary); font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 201;
  position: relative;
}
.nav-logo span { color: var(--pink); }

/* --- Hamburger button --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Desktop nav links --- */
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--pink); }

/* --- Desktop dropdown --- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.7rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1F;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 220px;
  z-index: 200;
  padding-top: 10px;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: transparent;
}
.dropdown-menu-inner {
  background: #1A1A1F;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,45,155,0.07); color: var(--pink); }

/* --- Mobile overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(13,13,15,0.97);
  backdrop-filter: blur(16px);
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-overlay.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.overlay-links > li {
  border-bottom: 1px solid var(--border);
}

/* Top-level overlay links */
.overlay-links > li > a,
.overlay-links > li > .overlay-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.overlay-links > li > a:hover,
.overlay-links > li > .overlay-section-label:hover { color: var(--pink); }
.overlay-links > li > a.active { color: var(--pink); }

.overlay-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.overlay-section-label.expanded .overlay-chevron { transform: rotate(180deg); }

/* Sub-links inside overlay groups */
.overlay-sub {
  list-style: none;
  display: none;
  flex-direction: column;
  padding: 0 0 0.75rem 0.5rem;
  gap: 0;
}
.overlay-sub.open { display: flex; }
.overlay-sub li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.overlay-sub li a:hover { color: var(--pink); background: rgba(255,45,155,0.05); }

/* Overlay footer links */
.overlay-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.overlay-footer a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.overlay-footer a:hover { color: var(--pink); }

/* --- Responsive breakpoint --- */
@media (max-width: 820px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
}

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--pink-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid var(--border-pink);
  background: var(--pink-subtle);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero h1 .accent { color: var(--pink); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--pink-light); color: #fff; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Section layout --- */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); max-width: 560px; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-pink);
  background: var(--bg-card-hover);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.card p { font-size: 0.9rem; line-height: 1.65; }

/* Card accent borders */
.card.accent-pink  { border-left: 3px solid var(--pink); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.card.accent-green { border-left: 3px solid var(--green); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.card.accent-amber { border-left: 3px solid var(--amber); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.card.accent-red   { border-left: 3px solid var(--red);   border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-pink   { background: var(--pink-subtle);          color: var(--pink-light); border: 1px solid var(--border-pink); }
.badge-green  { background: rgba(0,229,160,0.08);        color: var(--green);      border: 1px solid rgba(0,229,160,0.25); }
.badge-amber  { background: rgba(255,184,48,0.08);       color: var(--amber);      border: 1px solid rgba(255,184,48,0.25); }
.badge-red    { background: rgba(255,77,106,0.08);       color: var(--red);        border: 1px solid rgba(255,77,106,0.25); }

/* --- Do / Don't --- */
.do-dont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.do-box, .dont-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.do-box   { background: rgba(0,229,160,0.06); border: 1px solid rgba(0,229,160,0.2); }
.dont-box { background: rgba(255,77,106,0.06); border: 1px solid rgba(255,77,106,0.2); }

.do-box .box-label   { color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.dont-box .box-label { color: var(--red);   font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }

.do-box ul, .dont-box ul { list-style: none; }
.do-box li, .dont-box li { font-size: 0.875rem; padding: 5px 0; line-height: 1.5; }
.do-box li   { color: #9af5d8; }
.do-box li::before   { content: '✓  '; color: var(--green); font-weight: 700; }
.dont-box li { color: #ffb3bc; }
.dont-box li::before { content: '✗  '; color: var(--red); font-weight: 700; }

/* --- Password strength demo --- */
.pw-demo {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1rem;
}

.pw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.pw-row:last-child { border-bottom: none; }
.pw-label { color: var(--text-secondary); font-family: monospace; font-size: 0.85rem; }

/* --- Checklist --- */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist .check { color: var(--green); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* --- Alert box --- */
.alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,184,48,0.07);
  border: 1px solid rgba(255,184,48,0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.alert-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.alert p { font-size: 0.875rem; color: #ffe0a0; line-height: 1.6; }

/* --- Resource cards --- */
.resource-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s;
  text-decoration: none;
}
.resource-card:hover { border-color: var(--border-pink); }

.resource-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pink);
}

.resource-content {}
.resource-content .badge { margin-bottom: 6px; }
.resource-content h3 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text-primary); }
.resource-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }
.resource-link { font-size: 0.8rem; color: var(--pink-light); margin-top: 6px; display: inline-block; }

/* --- Quick wins highlight box --- */
.quick-wins-box {
  background: var(--pink-subtle);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.quick-wins-box h2 { color: var(--text-primary); margin-bottom: 0.25rem; }
.quick-wins-box .section-eyebrow { margin-bottom: 0.25rem; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
footer p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
footer .footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
footer .footer-logo span { color: var(--pink); }

/* --- About page --- */
.about-hero {
  padding: 5rem 0 4rem;
  position: relative;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at top left, var(--pink-glow) 0%, transparent 70%);
  pointer-events: none;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.about-avatar {
  position: sticky;
  top: 5rem;
}
.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--pink-subtle);
  border: 2px solid var(--border-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}
.about-meta { list-style: none; }
.about-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.about-meta li:last-child { border-bottom: none; }
.about-meta .meta-icon { font-size: 1rem; flex-shrink: 0; }
.about-body h2 { margin-bottom: 1rem; }
.about-body p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.75; }
.about-body p:last-child { margin-bottom: 0; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.value-card .value-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.value-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-primary); }
.value-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }
.ai-intro-box {
  background: var(--bg-card);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.ai-intro-box h3 { margin-bottom: 0.5rem; }
.ai-intro-box p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.ai-intro-box p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-avatar { position: static; display: flex; align-items: center; gap: 1.5rem; }
  .about-values { grid-template-columns: 1fr; }
}

/* --- Jump-to cards (homepage) --- */
.jump-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  height: 100%;
}
.jump-card:hover {
  border-color: var(--border-pink);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.jump-card-pink { border-color: var(--border-pink); background: var(--pink-subtle); }
.jump-card-pink:hover { background: rgba(255,45,155,0.12); }
.jump-icon  { font-size: 1.4rem; margin-bottom: 0.5rem; }
.jump-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 3px; }
.jump-sub   { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .do-dont-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
}
