/*
Theme Name: Oluma
Theme URI: https://olumadigital.com
Author: CipherShield
Description: Oluma cybersecurity awareness theme — empowering everyday people to stay safe online.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: oluma
*/

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

:root {
  --void: #050A0F;
  --steel: #0D1B26;
  --panel: #111E2A;
  --cyan: #00E5FF;
  --cyan-dim: #00a8bb;
  --red: #FF2D55;
  --amber: #FFB800;
  --ghost: #E8F4F8;
  --muted: #4A6A7A;
  --border: rgba(0,229,255,0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ghost);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.08) 2px,rgba(0,0,0,0.08) 4px);
  pointer-events: none;
  z-index: 9999;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(5,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ghost);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px; height: 28px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.logo-mark::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 2px;
  animation: pulse-mark 2s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-cta:hover { background: var(--cyan); color: var(--void); }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,229,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,45,85,0.04) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,229,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 48px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1.5px; background: var(--cyan); }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.accent { color: var(--cyan); }
.threat { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(232,244,248,0.65);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--cyan);
  color: var(--void);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover { background: #33eeff; transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--ghost); }

.radar-wrap { display: flex; align-items: center; justify-content: center; }

.radar { width: 360px; height: 360px; position: relative; }

.radar-ring {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.r1 { width: 100%; height: 100%; border-color: rgba(0,229,255,0.15); }
.r2 { width: 70%; height: 70%; border-color: rgba(0,229,255,0.2); }
.r3 { width: 40%; height: 40%; border-color: rgba(0,229,255,0.3); }

.radar-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(0,229,255,0.4);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0,229,255,0.06) 40deg, rgba(0,229,255,0.18) 70deg, transparent 80deg);
  animation: sweep 4s linear infinite;
}

@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.blip {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: blip-pulse 2s ease-in-out infinite;
}

.blip::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: blip-ring 2s ease-in-out infinite;
}

@keyframes blip-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes blip-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }

.blip-red { background: var(--red); color: var(--red); top: 28%; left: 62%; animation-delay: 0.3s; }
.blip-amber { background: var(--amber); color: var(--amber); top: 58%; left: 25%; animation-delay: 1.1s; }
.blip-red2 { background: var(--red); color: var(--red); top: 72%; left: 65%; animation-delay: 0.7s; }
.blip-cyan { background: var(--cyan); color: var(--cyan); top: 35%; left: 35%; animation-delay: 1.8s; }

.radar-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rl-top { top: 8px; left: 50%; transform: translateX(-50%); }
.rl-right { right: 8px; top: 50%; transform: translateY(-50%); }
.rl-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.rl-left { left: 8px; top: 50%; transform: translateY(-50%); }

.radar::before, .radar::after { content: ''; position: absolute; background: rgba(0,229,255,0.1); }
.radar::before { width: 1px; height: 100%; top: 0; left: 50%; }
.radar::after { width: 100%; height: 1px; top: 50%; left: 0; }

#stats {
  background: var(--steel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item { padding: 0 40px; border-right: 1px solid var(--border); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-item:first-child { padding-left: 0; }

.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-num.cyan { color: var(--cyan); }
.stat-num.red { color: var(--red); }
.stat-num.amber { color: var(--amber); }

.stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

#threats { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 64px; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before { content: ''; display: block; width: 24px; height: 1.5px; background: var(--cyan); }

h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }

.section-sub { font-size: 1rem; color: rgba(232,244,248,0.55); max-width: 500px; }

.threat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.threat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.threat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.threat-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-4px); }
.threat-card:hover::before { transform: scaleX(1); }

.tc-red { --card-accent: var(--red); }
.tc-amber { --card-accent: var(--amber); }
.tc-cyan { --card-accent: var(--cyan); }

.card-threat-level { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.dot { width: 6px; height: 6px; border-radius: 50%; animation: dot-blink 1.5s ease-in-out infinite; }
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.level-critical .dot { background: var(--red); }
.level-critical { color: var(--red); }
.level-high .dot { background: var(--amber); }
.level-high { color: var(--amber); }
.level-medium .dot { background: var(--cyan); }
.level-medium { color: var(--cyan); }

.card-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }

.card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }

.card-body { font-size: 0.9rem; color: rgba(232,244,248,0.55); line-height: 1.65; margin-bottom: 24px; }

.card-stat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--border); letter-spacing: 0.04em; }
.card-stat span { font-weight: 700; font-size: 0.85rem; }
.card-stat.red span { color: var(--red); }
.card-stat.amber span { color: var(--amber); }
.card-stat.cyan span { color: var(--cyan); }

#timeline { background: var(--steel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 120px 48px; }

.timeline-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 400px 1fr; gap: 100px; align-items: start; }

.timeline-track { position: relative; padding-left: 32px; }
.timeline-track::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--cyan), transparent); }

.tl-item { margin-bottom: 36px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: -36px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); transition: border-color 0.3s; }
.tl-item.active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.tl-time { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.tl-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.tl-desc { font-size: 0.85rem; color: rgba(232,244,248,0.5); line-height: 1.6; }

.terminal { background: #080F15; border: 1px solid rgba(0,229,255,0.15); border-radius: 8px; overflow: hidden; font-family: var(--font-mono); }

.terminal-bar { background: rgba(0,229,255,0.05); padding: 12px 20px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #FF5F57; }
.t-yellow { background: #FFBD2E; }
.t-green { background: #28C840; }

.terminal-title { font-size: 0.72rem; color: var(--muted); margin-left: 8px; letter-spacing: 0.06em; }
.terminal-body { padding: 24px; font-size: 0.8rem; line-height: 2; }

.t-line { display: flex; gap: 12px; }
.t-prompt { color: var(--cyan); user-select: none; }
.t-cmd { color: var(--ghost); }
.t-out { color: var(--muted); padding-left: 24px; }
.t-warn { color: var(--amber); padding-left: 24px; }
.t-danger { color: var(--red); padding-left: 24px; }
.t-success { color: #00FF88; padding-left: 24px; }

.cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan); margin-left: 4px; vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

#tips { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }

.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }

.tip-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 32px; display: flex; gap: 24px; align-items: flex-start; transition: border-color 0.3s; }
.tip-card:hover { border-color: rgba(0,229,255,0.25); }

.tip-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: rgba(0,229,255,0.12); line-height: 1; flex-shrink: 0; width: 60px; transition: color 0.3s; }
.tip-card:hover .tip-num { color: rgba(0,229,255,0.25); }

.tip-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.tip-content p { font-size: 0.88rem; color: rgba(232,244,248,0.55); line-height: 1.65; }

#cta {
  margin: 0 48px 80px;
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(255,45,85,0.04) 100%);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 16px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(0,229,255,0.08) 1px, transparent 1px); background-size: 32px 32px; }
#cta > * { position: relative; z-index: 1; }
#cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
#cta p { font-size: 1.05rem; color: rgba(232,244,248,0.6); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-actions { display: flex; gap: 16px; justify-content: center; align-items: center; }

.btn-large { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 36px; background: var(--cyan); color: var(--void); border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.btn-large:hover { background: #33eeff; transform: translateY(-2px); }

.btn-outline-large { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 36px; border: 1.5px solid rgba(232,244,248,0.25); color: rgba(232,244,248,0.7); background: transparent; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.btn-outline-large:hover { border-color: var(--ghost); color: var(--ghost); }

footer { background: var(--steel); border-top: 1px solid var(--border); padding: 48px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--font-display); font-weight: 700; color: var(--ghost); font-size: 1rem; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ghost); }
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; }

.alert-banner { background: rgba(255,45,85,0.1); border: 1px solid rgba(255,45,85,0.25); border-radius: 6px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 32px; max-width: max-content; }
.alert-icon { font-family: var(--font-mono); font-size: 0.7rem; color: var(--red); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border: 1px solid var(--red); border-radius: 3px; flex-shrink: 0; }
.alert-text { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(232,244,248,0.7); letter-spacing: 0.04em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }
