/* CtrlAltDefeat homepage section navigation + section-divider polish */

/* The hero already explains the site's focus; these badge-like labels read too much like buttons. */
.hero-highlight-row {
  display: none !important;
}

.section-title-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 68px 0 32px;
  padding: 24px 22px 20px;
  border: 1px solid rgba(93, 184, 255, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(8, 11, 16, 0.90), rgba(5, 7, 11, 0.78));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(93, 184, 255, 0.08),
    inset 0 1px 0 rgba(232, 247, 255, 0.06);
  scroll-margin-top: 28px;
}

.section-title-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(93, 184, 255, 0.08), transparent),
    radial-gradient(circle at 50% 15%, rgba(255, 211, 106, 0.06), transparent 42%);
}

.section-title-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(159, 220, 255, 0.78), rgba(255, 211, 106, 0.72), transparent);
  box-shadow: 0 0 12px rgba(93, 184, 255, 0.32), 0 0 12px rgba(255, 211, 106, 0.18);
}

.section-title-frame > h2 {
  margin: 0 !important;
  color: #ffd36a;
  text-shadow:
    0 0 7px rgba(255, 211, 106, 0.22),
    0 0 18px rgba(214, 169, 74, 0.10);
  animation: sectionTitleLetterGlow 2.8s ease-in-out infinite alternate;
}

.section-title-frame > .section-intro {
  max-width: 900px;
  margin: 10px auto 0 !important;
  padding: 0 !important;
}

@keyframes sectionTitleLetterGlow {
  from {
    color: #efc357;
    text-shadow:
      0 0 5px rgba(255, 211, 106, 0.18),
      0 0 13px rgba(214, 169, 74, 0.08);
  }
  to {
    color: #ffe08a;
    text-shadow:
      0 0 9px rgba(255, 225, 143, 0.44),
      0 0 24px rgba(214, 169, 74, 0.22),
      0 0 34px rgba(93, 184, 255, 0.10);
  }
}

.home-section-nav {
  position: fixed;
  top: 76px;
  left: 14px;
  z-index: 132;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 15px 7px 8px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 211, 106, 0.66);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 211, 106, 0.20), transparent 38%),
    linear-gradient(145deg, rgba(8, 12, 18, 0.97), rgba(28, 21, 8, 0.92));
  color: #ffd36a;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(93, 184, 255, 0.20),
    0 0 22px rgba(255, 211, 106, 0.18),
    inset 0 1px 1px rgba(255, 238, 160, 0.14);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-section-nav:hover,
.home-section-nav:focus-visible,
.home-section-nav[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: #9fdcff;
  outline: none;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.66),
    0 0 30px rgba(93, 184, 255, 0.30),
    0 0 28px rgba(255, 211, 106, 0.24),
    inset 0 1px 1px rgba(255, 238, 160, 0.20);
}

.home-section-nav-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #050505;
  background: linear-gradient(to bottom, #fff1a8, #ffd36a);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 13px rgba(255, 211, 106, 0.44), 0 0 15px rgba(93, 184, 255, 0.16);
}

.home-section-nav-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1;
}

.home-section-nav-label {
  color: #fff0b5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.home-section-nav-cue {
  color: rgba(159, 220, 255, 0.84);
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.home-section-menu {
  position: fixed;
  top: 136px;
  left: 14px;
  z-index: 131;
  width: min(250px, calc(100vw - 28px));
  max-height: calc(100vh - 154px);
  padding: 10px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  border: 1px solid rgba(93, 184, 255, 0.34);
  border-radius: 16px;
  background: rgba(7, 10, 15, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68), 0 0 24px rgba(93, 184, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.home-section-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.home-section-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(214, 169, 74, 0.26);
  border-radius: 10px;
  color: #f4efe4;
  background: linear-gradient(145deg, rgba(24, 18, 8, 0.62), rgba(10, 14, 20, 0.88));
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-align: left;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.home-section-menu a:hover,
.home-section-menu a:focus-visible {
  color: #ffe08a;
  border-color: rgba(159, 220, 255, 0.64);
  background: linear-gradient(145deg, rgba(37, 27, 9, 0.78), rgba(10, 18, 27, 0.94));
  outline: none;
}

@media (max-width: 760px) {
  .section-title-frame {
    margin: 44px 0 24px;
    padding: 18px 12px 16px;
    border-radius: 14px;
    scroll-margin-top: 126px;
  }

  .section-title-frame > h2 {
    font-size: clamp(1.18rem, 6vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: 0.065em;
  }

  .section-title-frame > .section-intro {
    margin-top: 8px !important;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .home-section-nav {
    top: calc(max(8px, env(safe-area-inset-top)) + 50px);
    left: max(8px, env(safe-area-inset-left));
    gap: 6px;
    min-height: 40px;
    padding: 6px 10px 6px 6px;
  }

  .home-section-nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 0.72rem;
  }

  .home-section-nav-label {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .home-section-nav-cue {
    display: none;
  }

  .home-section-menu {
    top: calc(max(8px, env(safe-area-inset-top)) + 98px);
    left: max(8px, env(safe-area-inset-left));
    width: min(238px, calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100vh - 118px - env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title-frame > h2 {
    animation: none !important;
  }

  .home-section-nav,
  .home-section-menu {
    transition: none !important;
  }
}
