/* =========================================================
   GUARDIANOS V19 — CINEMATIC HOMEPAGE / SIMULATION
========================================================= */

html {
  background: #02070c;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(92,188,246,.055), transparent 24%),
    radial-gradient(circle at 86% 34%, rgba(62,208,154,.035), transparent 20%),
    #02070c;
}

.site-header {
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,188,246,.20), transparent);
  opacity: .65;
}

.guardian {
  --scene-blue: rgba(92,188,246,.18);
  --scene-green: rgba(62,208,154,.11);
  --scene-red: rgba(255,81,87,.08);
  isolation: isolate;
  box-shadow:
    inset 0 -100px 120px rgba(0,0,0,.18),
    0 30px 80px rgba(0,0,0,.18);
}

.guardian::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, var(--scene-blue), transparent 34%),
    radial-gradient(circle at 18% 30%, var(--scene-green), transparent 24%);
  opacity: .7;
  mix-blend-mode: screen;
  transition: background .7s ease, opacity .7s ease;
}

.guardian[data-phase="detected"] {
  --scene-blue: rgba(92,188,246,.10);
  --scene-green: rgba(62,208,154,.035);
  --scene-red: rgba(255,81,87,.19);
}

.guardian[data-phase="verified"],
.guardian[data-phase="assessed"] {
  --scene-blue: rgba(92,188,246,.23);
  --scene-green: rgba(62,208,154,.055);
  --scene-red: rgba(255,81,87,.08);
}

.guardian[data-phase="responding"] {
  --scene-blue: rgba(92,188,246,.19);
  --scene-green: rgba(62,208,154,.12);
  --scene-red: rgba(240,178,75,.07);
}

.guardian[data-phase="contained"],
.guardian[data-phase="brand-reveal"],
.guardian[data-phase="interactive"] {
  --scene-blue: rgba(92,188,246,.13);
  --scene-green: rgba(62,208,154,.16);
  --scene-red: rgba(255,81,87,0);
}

.cinematic-lighting {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cinematic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .46;
  animation: cinematicOrbFloat 14s ease-in-out infinite;
}

.cinematic-orb-blue {
  width: 38vw;
  height: 38vw;
  min-width: 360px;
  min-height: 360px;
  right: -10vw;
  top: 2%;
  background: radial-gradient(circle, rgba(92,188,246,.18), rgba(25,139,207,.04) 48%, transparent 73%);
}

.cinematic-orb-green {
  width: 30vw;
  height: 30vw;
  min-width: 300px;
  min-height: 300px;
  left: -10vw;
  bottom: 4%;
  background: radial-gradient(circle, rgba(62,208,154,.12), rgba(62,208,154,.025) 52%, transparent 74%);
  animation-delay: -6s;
}

.cinematic-beam {
  position: absolute;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,188,246,.42), transparent);
  opacity: .25;
  filter: blur(.2px);
  transform-origin: center;
}

.cinematic-beam-one {
  right: -8%;
  top: 24%;
  transform: rotate(-22deg);
  animation: cinematicBeamOne 7s ease-in-out infinite;
}

.cinematic-beam-two {
  left: -12%;
  bottom: 24%;
  transform: rotate(17deg);
  background: linear-gradient(90deg, transparent, rgba(62,208,154,.30), transparent);
  animation: cinematicBeamTwo 9s ease-in-out infinite;
}

.cinematic-ring {
  position: absolute;
  width: 460px;
  height: 460px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(92,188,246,.045);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: cinematicRingPulse 7s ease-in-out infinite;
}

.cinematic-ring-two {
  width: 670px;
  height: 670px;
  border-style: dashed;
  opacity: .42;
  animation-delay: -3.5s;
}

.cinematic-pointer-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  left: calc(var(--ambient-x, 50%) - 190px);
  top: calc(var(--ambient-y, 45%) - 190px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,188,246,.095), rgba(92,188,246,.018) 44%, transparent 70%);
  filter: blur(8px);
  opacity: .8;
  transition: left .18s linear, top .18s linear;
}

.environment {
  z-index: 0;
}

.facility {
  filter: drop-shadow(0 28px 60px rgba(0,0,0,.22));
}

.building {
  box-shadow:
    inset 0 0 32px rgba(92,188,246,.025),
    0 20px 48px rgba(0,0,0,.18);
}

.security-node {
  filter: drop-shadow(0 0 16px rgba(92,188,246,.045));
}

.security-node.node-active,
.security-node.node-alert {
  filter: drop-shadow(0 0 24px rgba(92,188,246,.13));
}

.hud-card {
  box-shadow:
    0 22px 54px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.018) inset,
    0 0 30px rgba(92,188,246,.025);
  backdrop-filter: blur(18px);
}

.hud-card.show {
  animation: hudCinematicIn .46s cubic-bezier(.18,.8,.2,1);
}

.askari-card.show {
  box-shadow:
    0 24px 60px rgba(0,0,0,.30),
    0 0 44px rgba(92,188,246,.055);
}

.command-card.show {
  box-shadow:
    0 24px 60px rgba(0,0,0,.30),
    0 0 44px rgba(62,208,154,.04);
}

.simulation-autoplay-badge {
  position: absolute;
  z-index: 12;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(92,188,246,.10);
  border-radius: 999px;
  background: rgba(3,14,22,.68);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}

.simulation-autoplay-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(62,208,154,.55);
  animation: autoBadgePulse 1.6s ease-in-out infinite;
}

.simulation-autoplay-badge span,
.simulation-autoplay-badge strong {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
}

.simulation-autoplay-badge span {
  color: #53788b;
}

.simulation-autoplay-badge strong {
  color: #91c6df;
  font-weight: 500;
}

.simulation-narrative {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 40px));
  padding: 11px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  border: 1px solid rgba(92,188,246,.085);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(4,18,28,.76), rgba(3,12,19,.84));
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
  backdrop-filter: blur(14px);
  transition: .28s ease;
}

.simulation-narrative small {
  grid-row: 1 / 3;
  align-self: center;
  color: #4f7285;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: .09em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.simulation-narrative strong {
  color: #d6edf8;
  font-size: 10px;
}

.simulation-narrative span {
  margin-top: 3px;
  color: #648698;
  font-size: 8px;
  line-height: 1.45;
}

.simulation-narrative.story-pulse {
  border-color: rgba(92,188,246,.18);
  background: linear-gradient(180deg, rgba(7,29,42,.86), rgba(4,15,23,.88));
  transform: translateX(-50%) translateY(-2px);
}

.sim-control {
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
}

.sim-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.20), 0 0 20px rgba(92,188,246,.045);
}

.network-bridge,
.company-profile-section,
.services-section,
.industries-section,
.partners-section,
.askari-section,
.contact-section {
  position: relative;
  isolation: isolate;
}

.network-bridge::before,
.company-profile-section::before,
.services-section::before,
.industries-section::before,
.partners-section::before,
.askari-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .22;
  pointer-events: none;
}

.network-bridge::before,
.industries-section::before,
.askari-section::before {
  right: -14vw;
  top: 10%;
  background: radial-gradient(circle, rgba(92,188,246,.12), transparent 68%);
}

.company-profile-section::before,
.services-section::before,
.partners-section::before,
.contact-section::before {
  left: -15vw;
  top: 18%;
  background: radial-gradient(circle, rgba(62,208,154,.075), transparent 68%);
}

.button {
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

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

.button-primary:hover,
.button-light:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,.18), 0 0 26px rgba(92,188,246,.085);
}

@keyframes cinematicOrbFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-22px,18px,0) scale(1.08); }
}

@keyframes cinematicBeamOne {
  0%,100% { opacity: .12; transform: rotate(-22deg) translateX(-10%); }
  50% { opacity: .48; transform: rotate(-22deg) translateX(12%); }
}

@keyframes cinematicBeamTwo {
  0%,100% { opacity: .10; transform: rotate(17deg) translateX(-8%); }
  50% { opacity: .36; transform: rotate(17deg) translateX(12%); }
}

@keyframes cinematicRingPulse {
  50% { transform: translate(-50%,-50%) scale(1.055); opacity: .42; }
}

@keyframes autoBadgePulse {
  50% { transform: scale(1.35); opacity: .62; }
}

@keyframes hudCinematicIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 780px) {
  .simulation-autoplay-badge {
    top: 78px;
  }

  .simulation-narrative {
    bottom: 122px;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-orb,
  .cinematic-beam,
  .cinematic-ring,
  .simulation-autoplay-badge i {
    animation: none !important;
  }
}


body::after {
  content: "";
  position: fixed;
  z-index: 999;
  width: 420px;
  height: 420px;
  left: calc(var(--page-light-x, 50vw) - 210px);
  top: calc(var(--page-light-y, 20vh) - 210px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,188,246,.028), transparent 68%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.section-in-view {
  transition: filter .5s ease;
  filter: brightness(1.018);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}
