/* ============================================
   Alerta Digital — Grupo N8 UNIPAR 2026
   Engenharia de Software
   style.css
============================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #080d18;
  --bg2:       #0d1528;
  --bg3:       #111c35;
  --blue:      #4fc3f7;
  --blue2:     #0ea5e9;
  --purple:    #a78bfa;
  --purple2:   #7c3aed;
  --cyan:      #22d3ee;
  --red:       #f87171;
  --green:     #4ade80;
  --yellow:    #fbbf24;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --border:    rgba(79,195,247,0.15);
  --glass:     rgba(13,21,40,0.7);
  --glow-blue: 0 0 40px rgba(79,195,247,0.25);
  --glow-purple: 0 0 40px rgba(167,139,250,0.25);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple2); border-radius: 3px; }

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(79,195,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb1 { width:500px;height:500px;background:var(--purple2);top:-150px;right:-100px;animation-delay:0s; }
.orb2 { width:400px;height:400px;background:var(--blue2);bottom:-100px;left:-100px;animation-delay:-4s; }
.orb3 { width:300px;height:300px;background:var(--cyan);top:40%;left:40%;animation-delay:-8s; }
@keyframes orbFloat {
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(30px,-30px) scale(1.05)}
  66%{transform:translate(-20px,20px) scale(0.95)}
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  background: rgba(8,13,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  transition: all 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.5px;
}
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue2), var(--purple2));
  color: #fff; padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 2rem 80px;
  text-align: center;
}
.hero-inner { max-width: 860px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(79,195,247,0.3);
  background: rgba(79,195,247,0.08);
  padding: 6px 16px; border-radius: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px; color: var(--blue);
  margin-bottom: 2rem;
  animation: fadeDown 0.6s ease both;
}
.hero-badge .live { width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 8px var(--red);animation:pulse 1.5s infinite; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-sub {
  font-size: 1.1rem; color: #94a3b8; max-width: 600px; margin: 0 auto 2.5rem;
  line-height: 1.7; animation: fadeUp 0.7s 0.2s ease both;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; animation: fadeUp 0.7s 0.3s ease both; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue2), var(--purple2));
  color: #fff; padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(14,165,233,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(14,165,233,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); padding: 14px 32px;
  border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--blue); background: rgba(79,195,247,0.06); }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: rgba(79,195,247,0.4); transform: translateY(-4px); }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; padding: 100px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 2px; color: var(--purple); text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: #94a3b8; max-width: 600px; line-height: 1.7; margin-bottom: 3rem; }

/* ===== GOLPES ===== */
.golpes-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.5rem; }
.golpe-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.golpe-card:hover { border-color: rgba(79,195,247,0.45); transform: translateY(-6px); box-shadow: var(--glow-blue); }
.golpe-card.open { border-color: rgba(167,139,250,0.5); box-shadow: var(--glow-purple); }
.golpe-header {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
}
.golpe-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; position: relative; overflow: hidden;
}
.golpe-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: inherit; opacity: 0.15;
}
.icon-blue { background: rgba(79,195,247,0.2); }
.icon-purple { background: rgba(167,139,250,0.2); }
.icon-red { background: rgba(248,113,113,0.2); }
.icon-yellow { background: rgba(251,191,36,0.2); }
.icon-green { background: rgba(74,222,128,0.2); }
.icon-pink { background: rgba(244,114,182,0.2); }
.golpe-title-wrap { flex: 1; }
.golpe-name { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.golpe-tagline { font-size: 12px; color: var(--muted); }
.golpe-risk {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 1px; padding: 3px 8px; border-radius: 4px;
  border: 1px solid; flex-shrink: 0;
}
.risk-alto { color: var(--red); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.1); }
.risk-muito { color: var(--yellow); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.1); }
.risk-grave { color: var(--purple); border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.1); }

.golpe-body {
  display: none; padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}
.golpe-card.open .golpe-body { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

.golpe-desc { font-size: 14px; color: #94a3b8; line-height: 1.7; padding: 1rem 0; }
.golpe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.gcol-title {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ct-red { color: var(--red); } .ct-green { color: var(--green); }
.gsinal {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #94a3b8; margin-bottom: 6px; line-height: 1.5;
}
.gdot { width: 4px; height: 4px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.dot-red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.example-box {
  margin-top: 1rem; padding: 12px 16px;
  background: rgba(167,139,250,0.07);
  border: 1px solid rgba(167,139,250,0.2);
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  font-size: 13px; color: #c4b5fd; line-height: 1.6;
}
.example-box strong { color: var(--purple); font-weight: 600; }

.chevron {
  font-size: 18px; color: var(--muted);
  transition: transform 0.25s, color 0.25s;
  margin-left: auto; flex-shrink: 0;
}
.golpe-card.open .chevron { transform: rotate(180deg); color: var(--blue); }

/* ===== PROTEGER ===== */
.proteger-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; }
.prot-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, transform 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.prot-card:hover { border-color: rgba(74,222,128,0.35); transform: translateY(-4px); }
.prot-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.prot-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; }
.prot-text { font-size: 13px; color: #94a3b8; line-height: 1.6; }

/* ===== QUIZ ===== */
#quiz { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }
.quiz-wrapper {
  max-width: 700px; margin: 0 auto;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem;
  backdrop-filter: blur(20px);
}
.quiz-progress-bar {
  width: 100%; height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 2px; margin-bottom: 2rem; overflow: hidden;
}
.quiz-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue2), var(--purple2));
  transition: width 0.5s ease;
}
.quiz-counter {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: var(--muted); margin-bottom: 1.5rem; letter-spacing: 1px;
}
.quiz-scene {
  background: rgba(8,13,24,0.8); border: 1px solid rgba(248,113,113,0.25);
  border-left: 3px solid var(--red); border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin-bottom: 1.5rem;
  font-family: 'Space Mono', monospace; font-size: 12px; color: #fca5a5;
  line-height: 1.7; white-space: pre-line; display: none;
}
.quiz-scene.show { display: block; }
.quiz-q {
  font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 1.5rem; line-height: 1.4;
}
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  padding: 14px 20px; border: 1px solid var(--border);
  border-radius: 10px; background: rgba(255,255,255,0.03);
  color: var(--text); font-size: 14px; cursor: pointer; text-align: left;
  transition: all 0.2s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--blue); background: rgba(79,195,247,0.07); }
.quiz-opt.correct { border-color: var(--green); background: rgba(74,222,128,0.1); color: var(--green); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(248,113,113,0.1); color: var(--red); }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback {
  margin-top: 1.25rem; padding: 14px 18px; border-radius: 10px;
  font-size: 14px; line-height: 1.6; display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.ok { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #86efac; }
.quiz-feedback.nok { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #fca5a5; }
.quiz-actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; }
.quiz-next {
  background: linear-gradient(135deg, var(--blue2), var(--purple2));
  color: #fff; padding: 12px 28px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; display: none;
  transition: transform 0.2s, opacity 0.2s;
}
.quiz-next:hover { transform: translateY(-2px); opacity: 0.9; }
.quiz-next.show { display: block; }
.quiz-result { text-align: center; padding: 1rem 0; }
.quiz-result-score {
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.5rem;
}
.quiz-result-msg { font-size: 1.1rem; color: #94a3b8; margin-bottom: 1.5rem; }
.quiz-restart {
  background: transparent; color: var(--blue); border: 1px solid rgba(79,195,247,0.3);
  padding: 10px 24px; border-radius: 8px; font-size: 14px; cursor: pointer;
  transition: background 0.2s;
}
.quiz-restart:hover { background: rgba(79,195,247,0.08); }

/* ===== FUI VÍTIMA ===== */
.vitima-alert {
  background: linear-gradient(135deg, rgba(248,113,113,0.08), rgba(251,191,36,0.05));
  border: 1px solid rgba(248,113,113,0.25); border-radius: 16px;
  padding: 2rem; margin-bottom: 3rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.alert-icon { font-size: 2.5rem; flex-shrink: 0; }
.alert-title { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.alert-text { font-size: 14px; color: #94a3b8; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.step-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; display: flex; gap: 1rem;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: rgba(248,113,113,0.35); transform: translateY(-3px); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(248,113,113,0.3);
}
.step-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.step-text { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.recursos-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; }
.rec-card {
  background: rgba(79,195,247,0.05); border: 1px solid rgba(79,195,247,0.15);
  border-radius: 10px; padding: 1.25rem; text-align: center;
}
.rec-name { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.rec-info { font-size: 12px; color: var(--muted); line-height: 1.5; }
.rec-contact { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--cyan); margin-top: 6px; }

/* ===== FOOTER ===== */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem; text-align: center;
  background: rgba(8,13,24,0.95);
}
.footer-logo {
  font-family: 'Space Mono', monospace; font-size: 14px;
  color: var(--blue); font-weight: 700; margin-bottom: 1rem;
}
.footer-text { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-members {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.member-badge {
  background: rgba(79,195,247,0.08); border: 1px solid rgba(79,195,247,0.15);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--blue);
  font-family: 'Space Mono', monospace;
}
.footer-divider { width: 60px; height: 1px; background: var(--border); margin: 1.5rem auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(8,13,24,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.mobile-menu a:hover { color: var(--blue); }
.mobile-close { position: absolute; top: 20px; right: 24px; font-size: 28px; cursor: pointer; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr; }
  .golpes-grid { grid-template-columns: 1fr; }
  .golpe-cols { grid-template-columns: 1fr; }
  .proteger-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .recursos-grid { grid-template-columns: 1fr 1fr; }
  .quiz-wrapper { padding: 1.5rem; }
  .vitima-alert { flex-direction: column; }
  section { padding: 70px 1.25rem; }
}
@media (max-width: 480px) {
  .proteger-grid { grid-template-columns: 1fr; }
  .recursos-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-members { flex-direction: column; align-items: center; }
}

/* ===== DIVIDER ===== */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}
/* ===== SCAN LINE ===== */
.scanline {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}