/* Hero Background */
.hero-bg {
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 229, 160, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(0, 180, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Shield Visual */
.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.shield-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.ring-1 {
  width: 200px; height: 200px;
  border-color: rgba(0, 229, 160, 0.3);
  animation: pulse-ring 3s ease-in-out infinite;
}

.ring-2 {
  width: 280px; height: 280px;
  border-color: rgba(0, 180, 255, 0.2);
  animation: pulse-ring 3s ease-in-out infinite 1s;
}

.ring-3 {
  width: 360px; height: 360px;
  border-color: rgba(124, 58, 237, 0.1);
  animation: pulse-ring 3s ease-in-out infinite 2s;
}

.shield-core {
  position: relative;
  z-index: 10;
  width: 100px; height: 100px;
  background: rgba(0, 229, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.2);
}

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

/* Floating Stats */
.floating-stat {
  position: absolute;
  background: rgba(15, 23, 41, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  z-index: 20;
}

.stat-1 { top: 20px; right: 20px; animation: float 6s ease-in-out infinite; }
.stat-2 { bottom: 60px; left: 0; animation: float 6s ease-in-out infinite 2s; }
.stat-3 { top: 50%; right: -10px; animation: float 6s ease-in-out infinite 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Navbar scroll */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Security cards hover */
.security-card {
  transition: transform 0.2s, border-color 0.2s;
}

.security-card:hover {
  transform: translateY(-2px);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(0, 229, 160, 0.3);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0f1a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #00e5a0;
  outline-offset: 2px;
}

/* ─── Scroll reveal animations ─────────────────────────────── */

/* Base state: hidden before reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-28px);
}

.reveal.reveal-right {
  transform: translateX(28px);
}

.reveal.reveal-scale {
  transform: scale(0.94);
  transform-origin: center bottom;
}

/* Visible state */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children inside a reveal-group */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal-group .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-group .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ─── Back to top hover glow ────────────────────────────────── */
#back-to-top:hover {
  border-color: rgba(0, 229, 160, 0.7) !important;
  box-shadow: 0 0 18px rgba(0, 229, 160, 0.25), 0 4px 16px rgba(0,0,0,0.4) !important;
}

#back-to-top.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* ─── Parallax hero wrapper ──────────────────────────────────── */
.parallax-hero {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ─── Smooth scrollbar ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ─── Section separator gradient ────────────────────────────── */
.section-fade-top {
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}
