/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: #000;
  text-align: center;
}

a { color: #9ecbff; text-decoration: none; }
a:hover { color: #cfe3ff; text-decoration: underline; }

/* ===== Back button ===== */
.back-button {
  position: absolute;
  left: 12px; 
  top: 12px;
  font-size: 0.9rem;
  color: #9ecbff;
  text-decoration: none;
  background: #0b0b0b;
  border: 1px solid #1b1b1b;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.back-button i { margin-right: 6px; }
.back-button:hover {
  background: #141a22;
  color: #cfe3ff;
}

/* ===== Header ===== */
.header {
  position: relative;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #111;
  padding: 28px 16px 40px;
}
.header-content h1 {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
  letter-spacing: .5px;
}
.header-content h5 { margin: 6px 0 0; color: #cfcfcf; font-weight: 500; }

/* ===== Hamburger Menu ===== */
.hamburger {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 36px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Nav Links ===== */
.nav-links {
  display: none;
  position: absolute;
  right: 16px;
  top: 60px;
  background: rgba(0,0,0,0.95);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 10px 12px;
  width: 230px;
  max-height: 70vh;
  overflow-y: auto;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,.6);
  z-index: 1000;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  color: #dfe9ff;
  text-decoration: none;
}

.nav-links a:hover {
  background: #141a22;
  color: #9ecbff;
}

/* ===== Intro / Content ===== */
.content { padding: 26px 16px; }
.intro { padding: 8px 0 22px; }
.intro h6 { margin: 0; color: #a8c6ff; letter-spacing: .4px; }

/* ===== Features (cards) ===== */
.features{
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
}

.feature-box {
  display:block;
  background:#111;
  border:1px solid #1b1b1b;
  border-radius:12px;
  padding: 20px 16px;
  color:inherit;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.feature-box:hover {
  transform: translateY(-6px) scale(1.02);
  background:#161616;
  border-color:#22324a;
  box-shadow:0 12px 30px rgba(0,0,0,.55);
}

.feature-box h3 { margin: 10px 0 10px; font-size: 1.25rem; color:#fff; }
.feature-box p  { margin: 0; color:#eaeaea; }

/* Card icons */
.feature-box .icon{
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px; margin: 0 auto 8px;
  border-radius: 12px; background:#0f0f0f; border:1px solid #1d2533;
}
.feature-box .icon i { font-size: 20px; color:#e9f1ff; }

/* ===== Mobile/Desktop (tablet) centered boxes 600–899px ===== */
@media (min-width: 600px) and (max-width: 899px) {
    .feature-box {
        width: 90%;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Desktop Y-layout (3x2 grid) */
@media (min-width: 900px){
  .features.y-layout{
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 16px 32px;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(70,110,170,0.25) 0%,
    rgba(70,110,170,0.08) 35%,
    rgba(0,0,0,0) 65%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-shield {
  display: block;
  margin: 0 auto clamp(12px, 2vw, 20px);
  width: clamp(120px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.6));
  animation: shieldFloat 8s ease-in-out infinite;
}

.hero-title { margin: 6px 0 4px; font-size: clamp(1.9rem, 2.2vw + 1rem, 3rem); color: #fff; letter-spacing: .5px; }
.hero-sub { margin: 0; color: #cfe0ff; font-style: italic; }

.bolt {
  position: absolute;
  width: clamp(26px, 4vw, 40px);
  height: clamp(52px, 8vw, 80px);
  right: clamp(18%, 12vw, 22%);
  top: clamp(6%, 5vw, 10%);
  opacity: .95;
  pointer-events: none;
}
.bolt-path {
  fill: #9ecbff;
  stroke: #dff1ff;
  stroke-width: 1.5;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 6px rgba(130,170,255,.85));
  animation: boltFlicker 1.35s infinite steps(2, end),
             boltZap 2.8s cubic-bezier(.25,.1,.25,1) infinite;
}

/* ===== Animated/Video Logo =====*/
.logo-video {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}

/* ====== FOOTER ====== */
footer{
  background:#000; color:#fff; border-top:1px solid #111;
  padding: 20px 10px 26px;
  position: relative;
  isolation: isolate;
}
footer p { margin:6px 0; }
footer a { color:#9ecbff; }
footer a:hover { color:#66a3ff; }

footer::before {
  content: "";
  position: absolute;
  inset: -10px 0 -20px 0;
  margin: 0 auto;
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  background: url('img/bwslogo1.mp4') center/contain no-repeat;
  opacity: .08;
  filter: grayscale(10%) contrast(120%);
  z-index: -1;
}

/* ====== KEYFRAMES ====== */
@keyframes glowPulse { 0%,100% { opacity: .65; transform: scale(1); } 50% { opacity: .9;  transform: scale(1.04); } }
@keyframes shieldFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes boltFlicker { 0%, 19%, 21%, 59%, 61%, 100% { opacity: 1; } 20%, 60% { opacity: .35; } }
@keyframes boltZap { 0% { transform: translateY(0) rotate(-2deg) scale(1); } 40% { transform: translateY(4px) rotate(2deg)  scale(1.03); } 70% { transform: translateY(-3px) rotate(-3deg) scale(1.05); } 100% { transform: translateY(0) rotate(-2deg) scale(1); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-shield, .bolt-path { animation: none !important; }
}