@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700;800&display=swap");

/* Hack N Learn 2.0 — Custom Styles & Bootstrap 5 Enhancements */

:root {
  --bg-main: #060a17;
  --bg-elevated: #0d1326;
  --bg-card: #101830;
  --bg-card-glass: rgba(16, 24, 48, 0.85);
  --border-color: #1c2540;
  --border-glow: rgba(59, 130, 246, 0.4);

  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --teal: #14b8a6;
  --green: #22c55e;

  --text-main: #f5f7fb;
  --text-muted: #8b93ab;
  --text-lead: #b8c1d4;

  --gradient: linear-gradient(90deg, var(--blue), var(--purple));
  --font-heading:
    "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --card-radius: 16px;
  --container-max-width: 1140px;
}

.container-xl {
  max-width: var(--container-max-width, 1140px) !important;
  transition: max-width 0.3s ease;
}

/* =========================================================
   CONFIGURATION PRESETS & DYNAMIC MODES
   ========================================================= */

/* --- 1. Typography (SecOps Mono) --- */
body.font-secops {
  --font-heading: "JetBrains Mono", monospace;
}

/* --- 2. Atmosphere: Cyber Grid Matrix --- */
body.bg-grid-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 35%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  animation: gridFloat 24s linear infinite;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

body.bg-grid-pulse::before {
  animation:
    gridFloat 24s linear infinite,
    gridPulseFade 5.5s ease-in-out infinite alternate !important;
}

@keyframes gridFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

@keyframes gridPulseFade {
  0% {
    opacity: 0.12;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.45));
  }
  100% {
    opacity: 0.12;
    filter: drop-shadow(0 0 0 transparent);
  }
}

/* --- Glow Intensity Levels --- */
body.glow-minimal {
  --border-glow: rgba(59, 130, 246, 0.15);
}
body.glow-minimal * {
  box-shadow: none !important;
  text-shadow: none !important;
}

body.glow-overdrive {
  --border-glow: rgba(59, 130, 246, 0.9);
}
body.glow-overdrive .audience-card,
body.glow-overdrive .flip-card-front,
body.glow-overdrive .flip-card-back,
body.glow-overdrive .btn-primary-custom,
body.glow-overdrive .section-cta-box {
  box-shadow:
    0 0 25px var(--border-glow),
    0 20px 40px rgba(0, 0, 0, 0.8) !important;
}

/* --- Glassmorphism Modes --- */
body.glass-deep {
  --bg-card-glass: rgba(8, 12, 28, 0.96);
}

body.glass-crisp {
  --bg-card-glass: rgba(16, 24, 48, 0.58);
}
body.glass-crisp .audience-card,
body.glass-crisp .flip-card-front,
body.glass-crisp .flip-card-back,
body.glass-crisp .benefit-item-box,
body.glass-crisp .feature-item-box,
body.glass-crisp .section-cta-box {
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
}

/* --- 3. Card Geometry & Radius Modes --- */
body.radius-sharp {
  --card-radius: 4px;
}
body.radius-modern {
  --card-radius: 16px;
}
body.radius-pill {
  --card-radius: 28px;
}

.audience-card,
.flip-card-inner,
.flip-card-front,
.flip-card-back,
.benefit-item-box,
.pathway-card-custom,
.feature-item-box,
.intro-card,
.section-cta-box {
  border-radius: var(--card-radius, 16px) !important;
  transition:
    border-radius 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* --- Card Border Modes --- */
body.border-neon .audience-card,
body.border-neon .flip-card-front,
body.border-neon .flip-card-back,
body.border-neon .benefit-item-box,
body.border-neon .pathway-card-custom,
body.border-neon .feature-item-box {
  border: 1.5px solid var(--cyan) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3) !important;
}

body.border-solid .audience-card,
body.border-solid .flip-card-front,
body.border-solid .flip-card-back,
body.border-solid .benefit-item-box,
body.border-solid .pathway-card-custom,
body.border-solid .feature-item-box {
  border: none !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8) !important;
}

/* --- 5. Container Width Modes --- */
body.width-standard {
  --container-max-width: 1140px;
}
body.width-wide {
  --container-max-width: 1320px;
}
body.width-ultra {
  --container-max-width: 1480px;
}

/* --- 6. Button Style Variations --- */
body.btn-style-pill .btn-custom,
body.btn-style-pill .btn-primary-custom,
body.btn-style-pill .btn-outline-custom {
  border-radius: 50px !important;
}

body.btn-style-chamfer .btn-custom,
body.btn-style-chamfer .btn-primary-custom,
body.btn-style-chamfer .btn-outline-custom {
  border-radius: 0 !important;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  ) !important;
}

body.btn-style-glass .btn-custom,
body.btn-style-glass .btn-primary-custom,
body.btn-style-glass .btn-outline-custom {
  border-radius: 8px !important;
  background: rgba(13, 19, 38, 0.8) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
}

body.btn-style-glass .btn-primary-custom:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

body.btn-style-neon .btn-custom,
body.btn-style-neon .btn-primary-custom,
body.btn-style-neon .btn-outline-custom {
  border-radius: 8px !important;
  border: 1.5px solid var(--blue) !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45) !important;
}

body.btn-style-cyber-glitch .btn-custom,
body.btn-style-cyber-glitch .btn-primary-custom,
body.btn-style-cyber-glitch .btn-outline-custom {
  border-radius: 2px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  border: 1px solid var(--cyan) !important;
  background: linear-gradient(
    90deg,
    rgba(6, 182, 212, 0.25) 0%,
    rgba(59, 130, 246, 0.25) 100%
  ) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35) !important;
}

body.btn-style-cyber-glitch .btn-primary-custom:hover {
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--blue) 100%
  ) !important;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.7) !important;
  transform: translateY(-2px);
}

body.btn-style-skeuomorph .btn-custom,
body.btn-style-skeuomorph .btn-primary-custom,
body.btn-style-skeuomorph .btn-outline-custom {
  border-radius: 8px !important;
  box-shadow:
    0 4px 0 rgba(15, 23, 42, 0.95),
    0 8px 20px rgba(0, 0, 0, 0.6) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.7) !important;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

body.btn-style-skeuomorph .btn-primary-custom:active {
  transform: translateY(3px) !important;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.95),
    0 3px 10px rgba(0, 0, 0, 0.6) !important;
}

body.btn-style-gradient-flow .btn-custom,
body.btn-style-gradient-flow .btn-primary-custom,
body.btn-style-gradient-flow .btn-outline-custom {
  border-radius: 12px !important;
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple),
    var(--cyan),
    var(--blue)
  ) !important;
  background-size: 300% 300% !important;
  animation: gradientFlowSweep 6s ease infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45) !important;
}

@keyframes gradientFlowSweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body.btn-style-ghost-minimal .btn-custom,
body.btn-style-ghost-minimal .btn-primary-custom,
body.btn-style-ghost-minimal .btn-outline-custom {
  border-radius: 6px !important;
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

body.btn-style-ghost-minimal .btn-primary-custom:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important;
}

/* --- 7. Background Modes --- */
body.bg-mode-nebula {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    #060a17 url("../background/lighter_blue_background.png") no-repeat top
      center fixed !important;
  background-size: cover !important;
}

body.bg-mode-oled {
  background: #000000 !important;
  background-image: none !important;
}

body.bg-mode-slate {
  background: #040816 !important;
  background-image: radial-gradient(
    circle at 50% 15%,
    #0d1733 0%,
    #040816 80%
  ) !important;
  background-attachment: fixed !important;
}

/* --- 8. CTA Lock Modes --- */
body.cta-lock-interactive .cta-lock-wrapper {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

body.cta-lock-interactive .cta-lock-wrapper:hover {
  transform: scale(1.06);
}

body.cta-lock-interactive .cta-lock-wrapper::after {
  content: "🔒 Click to Unlock";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 19, 38, 0.95);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  animation: pulseDot 2s infinite;
}

body.cta-lock-interactive .cta-lock-wrapper.is-unlocked::after {
  display: none !important;
}

body.cta-lock-shield .lock-flash-burst,
body.cta-lock-shield .lock-ripple {
  display: none !important;
}

body.cta-lock-shield #ctaSection h2,
body.cta-lock-shield #ctaSection p,
body.cta-lock-shield #ctaSection .d-flex {
  opacity: 1 !important;
  transform: none !important;
}

/* Base setup */
html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    #060a17 url("../background/lighter_blue_background.png") no-repeat top
      center fixed;
  background-size: cover;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.home-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 84px - 75px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accent gradient text */
.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

/* =========================================================
   HEADER STYLES & ALTERNATIVES
   ========================================================= */

/* Base Header Properties */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-toggler {
  border: none;
  background: transparent !important;
  padding: 6px 4px;
  box-shadow: none !important;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: relative;
  z-index: 1050;
  transition: opacity 0.2s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.9;
}

.navbar-toggler .toggler-bar {
  display: block;
  width: 24px;
  height: 2.4px;
  background-color: #ffffff;
  border-radius: 4px;
  transform-origin: center;
}

.navbar-toggler .toggler-bar:not(:last-child) {
  margin-bottom: 5px;
}

@media (min-width: 992px) {
  .site-header .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
}

.site-header.hide-header {
  transform: translateY(-100%);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
  }
}

.navbar-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

@media (min-width: 992px) {
  .navbar-nav .nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.nav-link-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

@media (min-width: 992px) {
  .nav-link-custom {
    display: inline-flex;
    justify-content: center;
    padding: 8px 16px;
  }
}

.nav-link-custom:hover,
.nav-link-custom.active,
.nav-link-custom[aria-current="page"] {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.12);
}

/* Capsule header (header-style-1) is position:fixed - reserve top space
   so page content clears it (previously applied via JS). */
body {
  padding-top: 72px;
}

/* --- OPTION 1: Floating Glass Capsule ("Dynamic Island") --- */
.site-header.header-style-1 {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 16px;
  z-index: 1040;
}

.site-header.header-style-1 .container-xl {
  background: rgba(10, 16, 35, 0.84);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2px 24px;
  max-width: 1344px;
}

.site-header.header-style-1 .navbar {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

.site-header.header-style-1 .nav-link-custom {
  border-radius: 30px;
  padding: 6px 18px;
}

.site-header.header-style-1 .nav-link-custom:hover,
.site-header.header-style-1 .nav-link-custom.active {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.site-header.header-style-1 .btn-primary-custom {
  border-radius: 30px;
  padding: 8px 22px;
}

/* --- OPTION 2: Cyber Command HUD ("Cyber Edge & Neon Grid") --- */
.site-header.header-style-2 {
  position: sticky;
  top: 0;
  background: rgba(4, 8, 20, 0.96);
  border-bottom: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 1040;
}

.site-header.header-style-2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--blue) 25%,
    var(--cyan) 50%,
    var(--purple) 75%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.85);
}

.site-header.header-style-2 .nav-link-custom {
  position: relative;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-header.header-style-2 .nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header-style-2 .nav-link-custom:hover::after,
.site-header.header-style-2 .nav-link-custom.active::after {
  transform: translateX(-50%) scaleX(1);
}

.site-header.header-style-2 .btn-primary-custom {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* --- OPTION 3: Minimalist Frosted Studio ("Ultra-Clean Glass") --- */
.site-header.header-style-3 {
  position: sticky;
  top: 0;
  background: rgba(6, 10, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 1040;
}

.site-header.header-style-3 .navbar {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.site-header.header-style-3 .nav-link-custom {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 14px;
}

.site-header.header-style-3 .nav-link-custom:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.site-header.header-style-3 .nav-link-custom.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.header-style-3 .btn-primary-custom {
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  padding: 7px 18px;
  font-size: 0.88rem;
}

/* --- OPTION 4: Segmented Pro Console ("Dual Segmented Console") --- */
.site-header.header-style-4 {
  position: sticky;
  top: 0;
  background: rgba(8, 14, 30, 0.92);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 1040;
}

.site-header.header-style-4 .navbar-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 18, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 30px;
  padding: 3px 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.site-header.header-style-4 .nav-link-custom {
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

.site-header.header-style-4 .nav-link-custom:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.site-header.header-style-4 .nav-link-custom.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.site-header.header-style-4 .btn-primary-custom {
  border-radius: 20px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  padding: 8px 20px;
}

/* --- OPTION 5: Neo Cyber Grid ("Matrix Grid Glass") --- */
.site-header.header-style-5 {
  position: sticky;
  top: 0;
  background: rgba(3, 7, 18, 0.96);
  border-bottom: 1px solid rgba(6, 182, 212, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.85),
    inset 0 -1px 0 rgba(6, 182, 212, 0.25);
  z-index: 1040;
}

.site-header.header-style-5 .navbar {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.site-header.header-style-5 .navbar-nav {
  gap: 8px;
}

.site-header.header-style-5 .nav-link-custom {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #94a3b8;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header-style-5 .nav-link-custom:hover {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(6, 182, 212, 0.12);
  box-shadow:
    0 0 15px rgba(6, 182, 212, 0.3),
    inset 0 0 10px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

.site-header.header-style-5 .nav-link-custom.active {
  color: #fff;
  border-color: var(--cyan);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.25) 0%,
    rgba(59, 130, 246, 0.25) 100%
  );
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.site-header.header-style-5 .btn-primary-custom {
  border-radius: 4px;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
  border: 1px solid var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.site-header.header-style-5 .btn-primary-custom:hover {
  background: linear-gradient(90deg, #22d3ee 0%, #60a5fa 100%);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.7);
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER STYLES & ALTERNATIVES
   ========================================================= */

/* Base Footer & Column Lists */
.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(3, 6, 17, 0.96);
  padding: 48px 0 28px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .container-xl {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .row.g-4 {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.site-footer .row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  margin: 0;
}

.footer-links-list li a {
  color: #94a3b8;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links-list li a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
}

.footer-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  justify-content: center !important;
  text-align: center;
}

.site-footer .footer-bottom-bar > div {
  justify-content: center;
}

/* --- FOOTER 1: Minimal Glass Bar --- */
.site-footer.footer-style-1 {
  background: rgba(4, 7, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- FOOTER 2: Cyber Terminal Console --- */
.site-footer.footer-style-2 {
  border-top: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent,
      #06b6d4,
      #3b82f6,
      transparent
    )
    1;
  background: rgba(2, 5, 14, 0.98);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.site-footer.footer-style-2 .footer-col-title {
  color: var(--cyan);
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
}

.site-footer.footer-style-2 .footer-links-list li a {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- FOOTER 3: Multi-Column Pro --- */
.site-footer.footer-style-3 {
  border-top: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(
    180deg,
    rgba(8, 14, 30, 0.97) 0%,
    rgba(2, 4, 12, 0.99) 100%
  );
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.site-footer.footer-style-3 .footer-col-title {
  color: #60a5fa;
}

/* --- FOOTER 4: Floating Glass Dock --- */
.site-footer.footer-style-4 {
  margin: 50px 0 30px 0;
  padding: 0 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-footer.footer-style-4 .container-xl {
  background: rgba(10, 16, 35, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 28px;
  padding: 36px 32px 24px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- FOOTER 5: Accent Frame Shield --- */
.site-footer.footer-style-5 {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(3, 6, 18, 0.98) 75%
  );
  border-top: 2px solid transparent;
  box-shadow:
    0 -15px 35px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(6, 182, 212, 0.12);
  position: relative;
}

.site-footer.footer-style-5 .footer-col-title {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer.footer-style-5 .footer-col-title::before {
  content: "▸";
  color: var(--purple);
  font-size: 0.85rem;
}

/* Language Switcher */
.lang-switch-container {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 19, 38, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px 6px;
  gap: 2px;
  backdrop-filter: blur(8px);
}

/* =========================================================
   PRODUCTS DROPDOWN MEGA-DRAWER
   ========================================================= */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-link-dropdown .dropdown-chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown .dropdown-chevron,
.nav-item-dropdown.show .nav-link-dropdown .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(8, 14, 32, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 16px;
  width: 590px;
  max-width: calc(100vw - 20px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.92),
    0 0 30px rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
  z-index: 1060;
}

/* Invisible hover bridge to prevent premature closing */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.show .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Single-column variant used by the split Solutions / Products dropdowns */
@media (min-width: 992px) {
  .nav-dropdown-menu--single {
    width: 340px;
    grid-template-columns: 1fr;
  }
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 0 4px;
  margin-bottom: 2px;
}

.nav-dropdown-card {
  display: flex;
  flex-direction: column;
  background: rgba(13, 19, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-card:hover {
  background: rgba(20, 30, 64, 0.95);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.dropdown-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dropdown-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dropdown-card-icon.icon-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.dropdown-card-icon.icon-purple {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.dropdown-card-icon.icon-orange {
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

.dropdown-card-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.dropdown-card-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dropdown-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.dropdown-card-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dropdown-card-badge.badge-role-edu {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.dropdown-card-badge.badge-role-org {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.dropdown-card-badge.badge-role-platform {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

.dropdown-card-badge.badge-role-accent {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.dropdown-card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: rgba(8, 14, 32, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 18px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .site-header.header-style-1 .navbar-collapse {
    border-radius: 20px;
  }

  .site-header .navbar-collapse .d-flex.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
  }

  .site-header .navbar-collapse .lang-switch-container {
    align-self: center;
  }

  .site-header .navbar-collapse .btn-custom {
    width: 100%;
    justify-content: center;
  }

  /* Mobile Dropdown Menu (Accordion style on tap) */
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(13, 19, 42, 0.7);
    border-radius: 14px;
    padding: 12px;
    margin-top: 8px;
    gap: 12px;
  }

  .nav-item-dropdown.show .nav-dropdown-menu {
    display: grid !important;
  }

  .nav-dropdown-menu::before {
    display: none;
  }
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.lang-divider {
  color: var(--border-color);
  font-size: 0.75rem;
  user-select: none;
}

/* Custom Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary-custom {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn-primary-custom:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-outline-custom {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: rgba(11, 17, 36, 0.6);
}

.btn-outline-custom:hover {
  border-color: var(--blue);
  background: rgba(15, 23, 48, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow-icon {
  height: 28px;
  width: auto;
  display: block;
}

/* Hero Section */
.hero {
  padding: clamp(40px, 6vw, 70px) 0;
}

.home-main .hero {
  padding: clamp(30px, 4vw, 50px) 0 clamp(20px, 3vw, 35px) 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.hero p.lead,
.page-hero p.lead {
  color: var(--text-lead);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 32px;
}

.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    -20px 30px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(59, 130, 246, 0.12);
  transform: perspective(1700px) rotateY(-8deg) rotateX(2deg) scale(1.03);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.dashboard-mock:hover {
  transform: perspective(1700px) rotateY(-2deg) rotateX(1deg) scale(1.05);
  box-shadow:
    -10px 20px 70px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(59, 130, 246, 0.25);
}

.dashboard-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature Flip Cards */
.feature-cards-row {
  margin-top: clamp(20px, 3vw, 40px);
  padding-bottom: 70px;
}

.home-main .feature-cards-row {
  margin-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.flip-card-wrapper {
  perspective: 1200px;
  height: 600px;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-wrapper.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.flip-card-face::-webkit-scrollbar {
  display: none;
}

.flip-card-wrapper:hover .card-blue {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(59, 130, 246, 0.2);
}

.flip-card-wrapper:hover .card-orange {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(249, 115, 22, 0.2);
}

.flip-card-wrapper:hover .card-purple {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(139, 92, 246, 0.2);
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: #090f20;
  text-align: center;
}

.flip-card-back .card-top-tag {
  margin-left: auto;
  margin-right: auto;
}

.flip-card-back .highlights-list {
  text-align: left;
  display: inline-block;
  margin: 8px auto 14px auto;
  padding: 0;
  width: 100%;
  max-width: 320px;
}

.card-blue.flip-card-back {
  border-color: rgba(59, 130, 246, 0.4);
}

.card-orange.flip-card-back {
  border-color: rgba(249, 115, 22, 0.4);
}

.card-purple.flip-card-back {
  border-color: rgba(139, 92, 246, 0.4);
}

.card-blue .highlights-list li::before {
  color: var(--blue);
}
.card-orange .highlights-list li::before {
  color: var(--orange);
}
.card-purple .highlights-list li::before {
  color: var(--purple);
}

/* Card Top Tags */
.card-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  width: fit-content;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.tag-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fdba74;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.pulse-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.tag-blue .pulse-dot-sm {
  background-color: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}
.tag-orange .pulse-dot-sm {
  background-color: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}
.tag-purple .pulse-dot-sm {
  background-color: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* Card Visual Pedestal */
.card-front-visual {
  position: relative;
  border-radius: 14px;
  padding: 16px 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  width: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.card-blue .card-front-visual {
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(59, 130, 246, 0.02) 60%,
    transparent 75%
  );
  border-color: rgba(59, 130, 246, 0.15);
}

.card-orange .card-front-visual {
  background: radial-gradient(
    circle at center,
    rgba(249, 115, 22, 0.12) 0%,
    rgba(249, 115, 22, 0.02) 60%,
    transparent 75%
  );
  border-color: rgba(249, 115, 22, 0.15);
}

.card-purple .card-front-visual {
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(139, 92, 246, 0.02) 60%,
    transparent 75%
  );
  border-color: rgba(139, 92, 246, 0.15);
}

.flip-card-wrapper:hover .card-blue .card-front-visual {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
}

.flip-card-wrapper:hover .card-orange .card-front-visual {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.15);
}

.flip-card-wrapper:hover .card-purple .card-front-visual {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.card-logo {
  max-height: 100px;
  width: auto;
  max-width: 90%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-spacecraft-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-spacecraft-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.flip-card-wrapper:hover .card-spacecraft-icon {
  transform: scale(1.06) rotate(6deg);
}

.flip-card-wrapper:hover .card-logo {
  transform: scale(1.05);
}

.card-front-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-front-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Feature Chips on Card Front */
.card-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 18px;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 19, 38, 0.8);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-lead);
  font-weight: 500;
}

/* Card Bottom Action Area */
.card-bottom-action {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-img-plain {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.highlights-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-lead);
}

.highlights-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--blue);
  font-weight: bold;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.learn-more:hover {
  gap: 10px;
}

/* Page Hero (Platform, Education, Organizations) */
.page-hero {
  padding: 60px 0 40px 0;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}

.back-home:hover {
  color: var(--text-main);
}

.mini-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mini-features .mini-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mini-features h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--text-main);
}

.mini-features p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Carousel (Platform page) */
.carousel-wrapper-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.carousel-custom-container {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-img-custom {
  width: 100%;
  height: auto;
  display: none;
  border-radius: 8px;
}

.carousel-img-custom.active {
  display: block;
}

.carousel-dots-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.dot-custom {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.dot-custom.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* Sections & Highlight Boxes */
.section-custom {
  padding: 60px 0;
}

.section-custom h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 30px;
}

.intro-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 36px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.intro-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.intro-card h2,
.intro-card p,
.intro-card .intro-card-icon {
  position: relative;
  z-index: 3;
}

.intro-card-image {
  position: relative;
  z-index: 1;
  max-width: 220px;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

/* Intro Card Background: Clean Subtle Cyber Matrix Grid */
.intro-card-grid-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 80% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 80% 50%, black 20%, transparent 80%);
  transition: opacity 0.4s ease;
}

.intro-card:hover .intro-card-grid-watermark {
  opacity: 0.75;
}

.grid-line-horiz {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.grid-line-horiz.h1 { top: 25%; animation: pulseGlow 4s ease-in-out infinite alternate; }
.grid-line-horiz.h2 { top: 55%; animation: pulseGlow 5s ease-in-out infinite alternate 1s; }
.grid-line-horiz.h3 { top: 80%; animation: pulseGlow 6s ease-in-out infinite alternate 2s; }

.grid-line-vert {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

.grid-line-vert.v1 { right: 35%; animation: pulseGlow 4.5s ease-in-out infinite alternate; }
.grid-line-vert.v2 { right: 20%; animation: pulseGlow 5.5s ease-in-out infinite alternate 1.5s; }
.grid-line-vert.v3 { right: 8%; animation: pulseGlow 6.5s ease-in-out infinite alternate 0.5s; }

.grid-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: nodePulse 3s infinite ease-in-out;
}

.grid-node.n1 { right: 35%; top: 25%; animation-delay: 0s; }
.grid-node.n2 { right: 20%; top: 55%; animation-delay: 0.8s; }
.grid-node.n3 { right: 8%; top: 25%; animation-delay: 1.6s; }
.grid-node.n4 { right: 20%; top: 80%; animation-delay: 2.2s; }

@keyframes pulseGlow {
  0% { opacity: 0.2; }
  100% { opacity: 0.9; }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.3; box-shadow: 0 0 4px var(--cyan); }
  50% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 14px var(--cyan); }
}

.highlight-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 28px;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.highlight-box:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(59, 130, 246, 0.15);
}

.flip-card-wrapper .highlight-box:hover {
  transform: none;
}

.highlight-box h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.highlight-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Feature Item Numbers (Platform page) */
.feature-item-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 32px 28px;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.feature-item-box:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 14px;
}

/* Benefits list */
.benefit-item-box {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.benefit-item-box:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
}

.benefit-icon {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
}

/* Pathways */
.pathway-card-custom {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 30px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.pathway-card-custom:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(59, 130, 246, 0.15);
}

.pathway-icon-custom {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

/* Audience Cards (Who It's For) */
.audience-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.7;
}

.audience-card.card-edu::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.audience-card.card-org::before {
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.audience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(59, 130, 246, 0.15);
}

.audience-card.card-org:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(139, 92, 246, 0.15);
}

.audience-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.audience-card p.desc {
  color: var(--text-lead);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.audience-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-lead);
}

.audience-checklist li .check-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

/* CTA Section */
.section-cta-box {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15)),
    var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  padding: 50px 36px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Site Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(3, 6, 17, 0.95);
  padding: 28px 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text-main);
}

/* Modal Custom Styling */
.modal-content-custom {
  background: #090f20;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(16px);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

.form-control-custom {
  background: rgba(13, 19, 38, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 14px;
}

.form-control-custom:focus {
  background: rgba(13, 19, 38, 0.95);
  border-color: var(--blue);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ============================================
   LIGHTWEIGHT SECTION ENTRANCE ANIMATIONS
   ============================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   PAGE HERO h1 CONSISTENCY
   ============================================ */
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

/* ============================================
   SECTION HEADING ACCENT BAR
   ============================================ */
.section-custom h2,
.feature-cards-row h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  text-shadow: none !important;
  transform: none !important;
  letter-spacing: -0.01em;
}

.section-custom h2::after,
.feature-cards-row h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
  opacity: 0.85;
}

/* CTA boxes keep centered text — center the bar */
.section-cta-box h2 {
  display: block;
}

.section-cta-box h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   ENHANCED HOVER MICRO-ANIMATIONS
   ============================================ */
.highlight-box:hover {
  transform: translateY(-4px) scale(1.015);
}

.benefit-item-box:hover {
  transform: translateY(-3px) scale(1.012);
}

.pathway-card-custom:hover {
  transform: translateY(-4px) scale(1.015);
}

.feature-item-box:hover {
  transform: translateY(-4px) scale(1.012);
}

.section-cta-box {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.section-cta-box:hover {
  transform: translateY(-3px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(59, 130, 246, 0.12);
}

/* ============================================
   LEGAL PAGE TEXT STYLING
   ============================================ */
.legal-content h2 {
  position: relative;
  padding-bottom: 10px;
  margin-top: 8px;
}

.legal-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  opacity: 0.7;
}

.legal-content .text-lead {
  color: var(--text-lead);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content .highlights-list li {
  margin-bottom: 10px;
}

/* ============================================
   HERO SECTION — GAMES BOX & FEATURES
   ============================================ */

.hero-games-box {
  border: 2px solid rgba(59, 130, 246, 0.6);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(13, 19, 38, 0.8), rgba(59, 130, 246, 0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.hero-games-box:hover {
  border-color: rgba(59, 130, 246, 0.9);
  background: linear-gradient(135deg, rgba(13, 19, 38, 0.95), rgba(59, 130, 246, 0.2));
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.games-box-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.games-box-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  padding-right: 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.games-box-number::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(6, 182, 212, 0.8), transparent);
}

.games-box-text {
  padding-left: 20px;
}

.games-box-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  background: linear-gradient(90deg, #60a5fa, #06b6d4, #8b5cf6, #60a5fa);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShimmer 3s ease infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 4px rgba(6, 182, 212, 0.3));
}

@keyframes gradientShimmer {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.games-box-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Hero Intro Text */
.hero-intro-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 100%;
}

/* Hero Features Grid */
.hero-features-grid {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.hero-feature-item:hover {
  transform: translateY(-4px);
}

.hero-feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  animation: iconSparkle 2s ease-in-out infinite;
}

@keyframes iconSparkle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

/* Color variations for each feature - matching platform colors with transparency */
.hero-feature-item:nth-child(1) .feature-icon {
  background: rgba(59, 130, 246, 0.35);
  border: 2px solid rgba(96, 165, 250, 0.7);
}

.hero-feature-item:nth-child(1) .feature-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
  animation: glowPulse1 2s ease-in-out infinite;
}

.hero-feature-item:nth-child(2) .feature-icon {
  background: rgba(249, 115, 22, 0.35);
  border: 2px solid rgba(251, 146, 60, 0.7);
}

.hero-feature-item:nth-child(2) .feature-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.3) 0%, transparent 70%);
  animation: glowPulse2 2s ease-in-out infinite;
}

.hero-feature-item:nth-child(3) .feature-icon {
  background: rgba(139, 92, 246, 0.35);
  border: 2px solid rgba(168, 85, 247, 0.7);
}

.hero-feature-item:nth-child(3) .feature-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  animation: glowPulse3 2s ease-in-out infinite;
}

@keyframes glowPulse1 {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

@keyframes glowPulse2 {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

@keyframes glowPulse3 {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

/* Hero Info Card — fades out to the right */
.hero-info-card {
  position: relative;
  border: none;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.03) 50%,
    transparent 85%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background 0.3s ease;
}

/* Gradient border: strong on the left, fades to nothing on the right */
.hero-info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* border thickness */
  background: linear-gradient(
    90deg,
    rgba(129, 140, 248, 0.9) 0%,
    rgba(96, 165, 250, 0.45) 35%,
    rgba(96, 165, 250, 0.1) 65%,
    transparent 85%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-info-card:hover {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.16) 0%,
    rgba(59, 130, 246, 0.05) 50%,
    transparent 85%
  );
}

.info-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.info-card-divider {
  width: 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), transparent);
  height: 60px;
  align-self: center;
}

.info-card-text {
  flex: 1;
  padding-top: 4px;
}

.info-card-text p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & small desktop */
@media (max-width: 991.98px) {
  .dashboard-mock {
    transform: none !important;
    margin-top: 30px;
  }
  .flip-card-wrapper {
    height: 580px;
  }

  .games-box-content {
    gap: 16px;
  }

  .games-box-number {
    font-size: 2.8rem;
    padding-right: 16px;
  }

  .games-box-text {
    padding-left: 16px;
  }

  .games-box-text h3 {
    font-size: 1.15rem;
  }

  .games-box-text p {
    font-size: 0.85rem;
  }

  .hero-info-card {
    padding: 18px;
  }

  .info-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .info-card-text p {
    font-size: 0.9rem;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hero {
    padding: 32px 0;
    text-align: center;
  }

  .home-main .hero {
    padding: 24px 0 16px 0;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero .d-flex.flex-wrap {
    justify-content: center;
  }

  .hero-games-box {
    margin-bottom: 20px;
    padding: 20px;
  }

  .games-box-content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .games-box-number {
    font-size: 2.2rem;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.6);
    border-right: none;
  }

  .games-box-number::after {
    display: none;
  }

  .games-box-text {
    padding-left: 0;
    padding-top: 12px;
  }

  .games-box-text h3 {
    font-size: 1rem;
  }

  .games-box-text p {
    font-size: 0.8rem;
  }

  .hero-features-grid {
    gap: 20px;
    justify-content: center;
  }

  .hero-feature-item {
    min-width: 0;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .hero-info-card {
    padding: 16px;
    margin-top: 24px;
  }

  .info-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .info-card-icon {
    font-size: 1.2rem;
  }

  .info-card-divider {
    width: 60%;
    height: 2px;
    min-height: auto;
  }

  .info-card-text p {
    font-size: 0.85rem;
  }


  .page-hero {
    padding: 40px 0 28px 0;
    text-align: center;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  }

  .flip-card-wrapper {
    height: 540px;
    margin-bottom: 16px;
  }

  .section-custom {
    padding: 40px 0;
  }

  .section-cta-box {
    padding: 36px 20px;
  }

  .section-cta-box h2 {
    font-size: 1.35rem;
  }

  .intro-card {
    padding: 24px;
  }

  .site-footer {
    text-align: center;
  }

  .mini-features {
    align-items: flex-start;
  }

  .mini-features li {
    text-align: left;
  }

  /* Center accent bar on mobile for centered text */
  .page-hero .section-custom h2::after,
  .page-hero h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* =========================================================
   CTA Section Cyber Lock Emblem & Animation Styles
   ========================================================= */
.cta-lock-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.cta-lock-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.85))
    drop-shadow(0 0 10px rgba(59, 130, 246, 0.9));
  overflow: visible;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.cta-lock-wrapper:hover .cta-lock-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 35px rgba(6, 182, 212, 1))
    drop-shadow(0 0 20px rgba(59, 130, 246, 1));
}

.lock-shackle {
  transform-origin: 32px 50px;
  transform-box: fill-box;
}

.lock-flash-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -240px;
  margin-left: -240px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.95) 0%,
    rgba(59, 130, 246, 0.6) 45%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
}

.lock-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -160px;
  margin-left: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid rgba(6, 182, 212, 0.95);
  box-shadow:
    0 0 35px rgba(6, 182, 212, 0.9),
    inset 0 0 20px rgba(59, 130, 246, 0.6);
  opacity: 0;
  pointer-events: none;
}

.section-cta-box {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   FLIP CARD FIX v3 — replaces FLIP CARD FIX v2
   ========================================================= */
.flip-card-inner {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: auto;
}

/* Faces must ALWAYS be stacked on top of each other.
   !important + higher specificity beats Bootstrap's .position-relative */
.flip-card-wrapper .flip-card-face {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    border-radius 0.25s ease !important;
}

/* Lock face orientation + 1px Z offset so the faces are never coplanar */
.flip-card-wrapper .flip-card-front,
.flip-card-wrapper .flip-card-front:hover {
  transform: rotateY(0deg) translateZ(1px) !important;
}

.flip-card-wrapper .flip-card-back,
.flip-card-wrapper .flip-card-back:hover {
  transform: rotateY(180deg) translateZ(1px) !important;
}

/* Child layers (icons, logos) must hide together with their face */
.flip-card-wrapper .flip-card-face * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Big faded watermark icon in the corner (education.html cards) */
.flip-card-watermark-icon {
  position: absolute;
  right: -12px;
  bottom: -24px;
  font-size: 9rem;
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.flip-card-face > :not(.flip-card-watermark-icon) {
  position: relative;
  z-index: 1;
}

/* No clicks while the card is rotating */
.flip-card-wrapper.is-animating {
  pointer-events: none;
}

@media (hover: none) {
  .flip-card-wrapper:hover .card-spacecraft-icon,
  .flip-card-wrapper:hover .card-logo {
    transform: none;
  }
}

/* =========================================================
   HERO — "Learn by doing" handwritten note + arrow
   ========================================================= */
.learn-by-doing {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-top: 26px;
  transform: translateX(-6%) rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.lbd-text {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  color: #e2e8f0;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
}

.lbd-arrow {
  width: 72px;
  height: 48px;
  margin-bottom: 12px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

/* Hand-drawn "stroke" animation when the hero fades in */
.lbd-arrow-line {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
}
.lbd-arrow-head {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.hero.is-visible .lbd-arrow-line {
  animation: lbdDraw 0.9s ease-out 0.5s forwards;
}
.hero.is-visible .lbd-arrow-head {
  animation: lbdDraw 0.3s ease-out 1.35s forwards;
}

@keyframes lbdDraw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lbd-arrow-line,
  .lbd-arrow-head {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
}

@media (max-width: 767.98px) {
  .learn-by-doing {
    transform: rotate(-6deg);
    margin-top: 18px;
  }
  .lbd-arrow {
    width: 56px;
    height: 38px;
  }
}