/* =========================
   BASE (DARK SYSTEM CORE)
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: #02040a;
  color: #e5e7eb;
  overflow-x: hidden;
}

/* =========================
   GLOBAL SECURITY GRID OVERLAY
========================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    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;
  pointer-events: none;
  z-index: 0;
}

/* moving “threat fog” */
body::before {
  content: "";
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,157,255,0.12), transparent 60%);
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* =========================
   HERO = COMMAND CENTER
========================= */
.hero {
  padding: 140px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* animated threat sky */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,157,255,0.25), transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(255,0,80,0.2), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(124,58,237,0.15), transparent 60%);
  animation: pulseSky 10s infinite alternate ease-in-out;
}

@keyframes pulseSky {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.2); filter: brightness(1.3); }
}

/* scanning war beam */
.hero::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 120px;
  top: 40%;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(0,157,255,0.35), transparent);
  transform: rotate(8deg);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% { left: -50%; }
  100% { left: 100%; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
}

/* text “lock-in” effect */
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-shadow: 0 0 25px rgba(0,157,255,0.2);
  animation: glitchIn 1s ease forwards;
}

.hero p {
  color: #94a3b8;
  margin-top: 10px;
  animation: fadeUp 1.2s ease forwards;
}

@keyframes glitchIn {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================
   CTA = ARMED BUTTONS
========================= */
.cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta a {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.cta a:first-child {
  background: #009dff;
  color: white;
}

.cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0,157,255,0.4);
}

/* =========================
   GRID = SECURITY MATRIX
========================= */
.grid {
  max-width: 1150px;
  margin: auto;
  padding: 70px 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =========================
   CARDS = ACTIVE DEFENSE NODES
========================= */
.card {
  background: rgba(17, 26, 46, 0.9);
  padding: 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.05);

  transform-style: preserve-3d;
  transition: 0.25s ease;
}

/* energy border */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;

  background: linear-gradient(120deg, #009dff, #ff0050, #7c3aed, #00f0ff);
  background-size: 400% 400%;
  animation: borderFlow 5s linear infinite;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* scanning line (VERY IMPORTANT FEELING) */
.card::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0,157,255,0.8);
  top: -10%;
  left: 0;
  opacity: 0;
}

.card:hover::after {
  opacity: 1;
  animation: scanLine 1.2s linear;
}

@keyframes scanLine {
  from { top: -10%; }
  to { top: 110%; }
}

/* hover = SYSTEM ALERT */
.card:hover {
  transform: scale(1.06) rotateX(6deg) rotateY(-6deg);
  box-shadow:
    0 0 40px rgba(0,157,255,0.3),
    0 0 90px rgba(255,0,80,0.15);
}

/* text */
.card h3 {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.card p {
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

/* =========================
   INFO = CONTROL PANELS
========================= */
.info {
  max-width: 1000px;
  margin: auto;
  padding: 70px 20px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  background: rgba(17, 26, 46, 0.9);
  padding: 26px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.05);

  opacity: 0;
  transform: translateY(60px);
  transition: 0.5s;
}

.info-box.show {
  opacity: 1;
  transform: translateY(0);
}

.info-box:hover {
  box-shadow: 0 0 40px rgba(0,157,255,0.25);
  transform: translateY(-6px);
}

/* =========================
   ALERT PULSE (REAL THREAT FEEL)
========================= */
@keyframes alertPulse {
  0% { box-shadow: 0 0 0 rgba(255,0,80,0); }
  50% { box-shadow: 0 0 60px rgba(255,0,80,0.25); }
  100% { box-shadow: 0 0 0 rgba(255,0,80,0); }
}

.card:nth-child(5) {
  animation: alertPulse 2.5s infinite;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .info {
    grid-template-columns: 1fr;
  }
}
/* =========================
   PYRAMIDE SYSTEM GRID
========================= */

.system-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* rij wrapper */
.system-grid .row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   BASE CARD (FANCY BLOCKS)
========================= */

.system-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 22px;

  color: white;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 140px;
  min-height: 70px;

  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  overflow: hidden;
}

/* hover */
.system-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* =========================
   PYRAMIDE SIZES
========================= */

/* top (1 blok) */
.secure {
  width: 220px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
}

/* middle (2 blokken) */
.keeper,
.data {
  width: 180px;
}

/* bottom row (3 blokken) */
.web,
.cloud,
.comm {
  width: 160px;
}

/* support (full width bar) */
.support {
  width: min(700px, 90%);
  min-height: 90px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-size: 1.1rem;
}

/* =========================
   COLORS PER BLOCK
========================= */

.keeper {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.data {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.web {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.cloud {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.comm {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .system-card {
    width: 160px;
  }

  .support {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .system-grid .row {
    flex-direction: column;
  }

  .system-card {
    width: 100%;
  }
}