/* ============================================================
   CYBER PULSE — Home Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 12px 0 20px;
  line-height: 1.05;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.trust-icon { font-size: 1rem; }

/* ── Glitch text ── */
.glitch-text {
  position: relative;
  color: var(--accent-cyan);
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent-cyan);
}

.glitch-text::before {
  animation: glitch-before 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-2px, 0);
  color: var(--accent-red);
}

.glitch-text::after {
  animation: glitch-after 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(2px, 0);
  color: #00ff88;
}

@keyframes glitch-before {
  0%, 85%, 100% { opacity: 0; transform: translate(0); }
  87% { opacity: 0.7; transform: translate(-3px, 1px); }
  89% { opacity: 0.7; transform: translate(2px, -1px); }
  91% { opacity: 0; }
}

@keyframes glitch-after {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  90% { opacity: 0.7; transform: translate(3px, 1px); }
  92% { opacity: 0.7; transform: translate(-2px, -1px); }
  94% { opacity: 0; }
}

/* ── Shield Graphic ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-graphic {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-outer {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(0, 200, 255, 0.1);
}

.shield-middle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,200,255,0.3), rgba(0,100,200,0.2));
  border: 2px solid rgba(0, 200, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.shield-icon { font-size: 2.8rem; }

/* Orbits */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 300px; height: 300px; animation: orbit-spin 8s linear infinite; }
.orbit-2 { width: 370px; height: 370px; animation: orbit-spin 12s linear infinite reverse; }
.orbit-3 { width: 430px; height: 430px; animation: orbit-spin 18s linear infinite; }

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Float labels */
.float-label {
  position: absolute;
  background: rgba(5, 15, 30, 0.9);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.fl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

.fl-dot.green { background: var(--accent-green); }
.fl-dot.orange { background: var(--accent-orange); }

.label-1 { top: 60px; right: 10px; animation: float 5s ease-in-out infinite 0.5s; }
.label-2 { bottom: 80px; left: 0px; animation: float 5s ease-in-out infinite 1s; }
.label-3 { top: 160px; left: -10px; animation: float 5s ease-in-out infinite 1.5s; }

/* ── Scan line ── */
.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0%, rgba(0, 200, 255, 0.03) 50%, transparent 100%);
  height: 40%;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-cyan);
}

.service-card:hover::before { opacity: 1; }

.featured-service {
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.05);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.1);
}

.service-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), #0088cc);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.service-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--glass-border);
}

.service-features li:last-child { border: none; }

/* ── How It Works ── */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 60px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.how-step {
  flex: 1;
  min-width: 160px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.how-step:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-icon { font-size: 2rem; margin-bottom: 10px; }

.how-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent-cyan);
}

.how-step p { font-size: 0.82rem; line-height: 1.6; }

.step-arrow {
  color: var(--accent-cyan);
  font-size: 1.4rem;
  margin-top: 50px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ── Threat Feed ── */
.threat-feed {
  background: rgba(0, 5, 12, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
}

.tf-header {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.tf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tf-dot.red { background: #ff5f57; }
.tf-dot.orange { background: #febc2e; }
.tf-dot.green { background: #28c840; }

.tf-body { padding: 16px; }

.tf-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.78rem;
  animation: fadeIn 0.5s ease;
}

.tf-time { color: var(--text-muted); flex-shrink: 0; }

.tf-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  flex-shrink: 0;
}

.tf-tag.blocked { background: rgba(255,58,58,0.2); color: #ff3a3a; border: 1px solid rgba(255,58,58,0.3); }
.tf-tag.warn { background: rgba(255,140,0,0.2); color: var(--accent-orange); border: 1px solid rgba(255,140,0,0.3); }
.tf-tag.ok { background: rgba(0,255,136,0.1); color: var(--accent-green); border: 1px solid rgba(0,255,136,0.2); }

.tf-msg { color: var(--text-secondary); font-size: 0.78rem; }

/* ── Blogs grid ── */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── CTA Section ── */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(0,200,255,0.04) 0%, transparent 70%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blogs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc, .hero-trust { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .shield-graphic { width: 300px; height: 300px; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .blogs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid .stat-card:nth-child(2) { border-right: none !important; }
  .stats-grid .stat-card:nth-child(1), .stats-grid .stat-card:nth-child(2) { border-bottom: 1px solid var(--glass-border); }
  .how-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; margin: -8px 0; }
}
