.gd-page-shell {
  background:
    radial-gradient(circle at top, rgba(12, 42, 72, 0.96) 0%, #04111f 34%, #020810 100%);
}

.gd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.gd-hero__media,
.gd-hero__overlay,
.gd-hero__grid,
.gd-hero__scan {
  position: absolute;
  inset: 0;
}

.gd-hero__media {
  background:
    linear-gradient(118deg, rgba(3, 12, 22, 0.48), rgba(3, 12, 22, 0.12)),
    url('assets/images/global-divide-hero-banner.png') 62% center / cover no-repeat;
  transform: scale(1.04);
  transform-origin: center;
  animation: heroDrift 18s ease-in-out infinite alternate;
  filter: contrast(1.08) brightness(1.05);
}

.gd-hero__overlay {
  background:
    radial-gradient(circle at 54% 14%, rgba(3, 10, 20, 0.2) 0%, rgba(3, 10, 20, 0.6) 48%, rgba(3, 10, 20, 0.85) 100%),
    linear-gradient(90deg, rgba(3, 10, 20, 0.85) 0%, rgba(3, 10, 20, 0.65) 30%, rgba(3, 10, 20, 0.25) 60%, rgba(3, 10, 20, 0.75) 100%),
    linear-gradient(180deg, rgba(3, 10, 20, 0.1) 0%, rgba(3, 10, 20, 0.8) 100%);
}

.gd-hero__grid {
  background-image:
    linear-gradient(rgba(62, 167, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 167, 255, 0.04) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 24%, rgba(0,0,0,1) 100%);
}

.gd-hero__scan {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.gd-hero__content {
  position: relative;
  z-index: 1;
  padding: 146px 0 118px;
  width: min(820px, 100%);
}

.gd-hero h1 {
  margin: 0;
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.94;
  max-width: 10ch;
  text-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.gd-hero h1 span {
  color: #8fd2ff;
}

.gd-hero__copy {
  margin: 26px 0 0;
  width: min(640px, 100%);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.8;
  color: var(--muted);
}

.gd-hero .hero-actions {
  margin-top: 30px;
}

.gd-hero .btn {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.gd-hero .btn-secondary {
  background: rgba(8, 23, 37, 0.72);
  border-color: rgba(255,255,255,0.12);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 0.6%, 0);
  }
}

.gd-hero__meta {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gd-stat,
.gd-panel,
.gd-era-card,
.gd-faction-card,
.gd-system-item,
.gd-dossier-card,
.gd-volume-card,
.gd-cta__panel {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 20, 36, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.gd-stat {
  padding: 18px 20px;
  border-radius: 18px;
}

.gd-stat__label,
.gd-panel__label {
  display: block;
  font-family: Orbitron, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(143, 210, 255, 0.86);
}

.gd-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.45;
}

.gd-overview {
  background:
    radial-gradient(circle at 16% 10%, rgba(62,167,255,0.12), transparent 24%),
    linear-gradient(180deg, #071524 0%, #081725 100%);
}

.gd-heading--tight {
  margin-bottom: 40px;
}

.gd-overview__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.gd-panel {
  border-radius: 24px;
  padding: 30px;
}

.gd-panel--feature {
  background:
    linear-gradient(145deg, rgba(10, 32, 56, 0.92), rgba(6, 18, 32, 0.88));
}

.gd-panel h3,
.gd-era-card h3,
.gd-faction-card h3,
.gd-system-item h3,
.gd-dossier-card h3,
.gd-volume-card h3,
.gd-cta h2 {
  margin: 12px 0 0;
  font-family: Orbitron, Inter, sans-serif;
  line-height: 1.08;
}

.gd-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.gd-panel p,
.gd-era-card p,
.gd-faction-card p,
.gd-system-item p,
.gd-dossier-card p,
.gd-volume-card p,
.gd-cta p {
  line-height: 1.75;
  color: var(--muted);
}

.gd-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.gd-timeline {
  position: relative;
  background:
    linear-gradient(180deg, #081725 0%, #091321 100%);
}

.gd-timeline__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.gd-timeline__rail {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(62,167,255,0.12), rgba(62,167,255,0.82), rgba(62,167,255,0.12));
  margin: 18px 0 32px;
  box-shadow: 0 0 26px rgba(62,167,255,0.24);
}

.gd-timeline__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(62,167,255,0.6),
    transparent
  );
  animation: timelinePulse 4s linear infinite;
}

@keyframes timelinePulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.gd-era-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 22px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gd-era-card:hover,
.gd-faction-card:hover,
.gd-system-item:hover,
.gd-dossier-card:hover,
.gd-volume-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.4), 0 0 32px rgba(62,167,255,0.14);
  border-color: rgba(143,210,255,0.24);
}

.gd-era-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.9rem;
  color: #d9f0ff;
  background: linear-gradient(135deg, rgba(62,167,255,0.34), rgba(18, 88, 180, 0.56));
  box-shadow: 0 10px 24px rgba(26, 110, 205, 0.32);
}

.gd-era-card--active {
  background: linear-gradient(145deg, rgba(14, 41, 69, 0.96), rgba(6, 18, 33, 0.9));
  border-color: rgba(143,210,255,0.28);
}

.gd-factions {
  background:
    radial-gradient(circle at 80% 14%, rgba(62,167,255,0.1), transparent 22%),
    linear-gradient(180deg, #071320 0%, #081522 100%);
}

.gd-faction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gd-faction-card {
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gd-faction-card--blue {
  background: linear-gradient(145deg, rgba(11, 39, 68, 0.92), rgba(6, 20, 35, 0.86));
}

.gd-faction-card--crimson {
  background: linear-gradient(145deg, rgba(70, 18, 26, 0.74), rgba(18, 16, 25, 0.88));
}

.gd-system-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gd-system-item {
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gd-system-item span {
  display: inline-flex;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.88rem;
  color: rgba(143, 210, 255, 0.8);
}

.gd-characters {
  background: linear-gradient(180deg, #081624 0%, #050f1b 100%);
}

.gd-character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.gd-dossier-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gd-dossier-card__figure {
  height: 320px;
  padding: 24px 16px 0;
  display: flex;
  align-items: end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(14, 37, 63, 0.66), rgba(8, 21, 35, 0.12));
}

.gd-dossier-card__figure img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,0.3));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gd-dossier-card:hover .gd-dossier-card__figure img {
  transform: scale(1.05);
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.42));
}

.gd-dossier-card__body {
  padding: 24px 20px 26px;
}

.gd-dossier-card--command {
  background: linear-gradient(145deg, rgba(28, 30, 38, 0.92), rgba(8, 17, 29, 0.9));
}

.gd-volumes {
  background:
    radial-gradient(circle at 16% 14%, rgba(62,167,255,0.12), transparent 18%),
    linear-gradient(180deg, #06111d 0%, #081624 100%);
}

.gd-volume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 24px;
}

.gd-volume-card {
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gd-volume-card__cover {
  display: flex;
  justify-content: center;
}

.gd-volume-card__cover img {
  width: 150px;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.42);
  transform: rotateY(-10deg);
  transform-origin: center left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gd-volume-card:hover .gd-volume-card__cover img {
  transform: rotateY(-14deg) scale(1.05);
  box-shadow: 0 24px 52px rgba(0,0,0,0.52);
}

.gd-volume-card--future {
  grid-template-columns: 1fr;
  background: linear-gradient(145deg, rgba(25, 31, 40, 0.92), rgba(9, 16, 25, 0.92));
}

.gd-cta {
  background: linear-gradient(180deg, #081421 0%, #050d16 100%);
}

.gd-cta__panel {
  border-radius: 28px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1180px) {
  .gd-overview__grid,
  .gd-volume-grid,
  .gd-timeline__grid,
  .gd-character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-volume-card--future,
  .gd-overview__grid > :first-child {
    grid-column: span 2;
  }

  .gd-system-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gd-faction-grid,
  .gd-overview__grid,
  .gd-volume-grid,
  .gd-character-grid,
  .gd-system-strip,
  .gd-timeline__grid {
    grid-template-columns: 1fr;
  }

  .gd-volume-card,
  .gd-cta__panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gd-volume-card--future,
  .gd-overview__grid > :first-child {
    grid-column: auto;
  }

  .gd-hero {
    min-height: auto;
  }

  .gd-hero__content {
    padding: 120px 0 92px;
  }

  .gd-hero__media {
    background-position: 70% center;
  }
}

@media (max-width: 640px) {
  .gd-hero__content {
    padding: 88px 0 82px;
  }

  .gd-hero__media {
    background-position: 74% center;
    transform: scale(1.02);
  }

  .gd-hero h1 {
    max-width: 8ch;
  }

  .gd-panel,
  .gd-era-card,
  .gd-faction-card,
  .gd-system-item,
  .gd-volume-card,
  .gd-cta__panel {
    padding: 22px;
  }

  .gd-dossier-card__figure {
    height: 280px;
  }

  .gd-volume-card__cover img {
    width: 132px;
  }
}


/* === Interaction Upgrade Pass === */

.gd-hero .btn,
.nav-links a,
.gd-stat,
.gd-panel,
.gd-era-card,
.gd-faction-card,
.gd-system-item,
.gd-dossier-card,
.gd-volume-card,
.gd-cta__panel {
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease,
    filter 0.32s ease,
    opacity 0.32s ease;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(62,167,255,0), rgba(143,210,255,0.9), rgba(62,167,255,0));
  transform: scaleX(0.24);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.gd-hero .btn:hover,
.gd-hero .btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 28px rgba(62,167,255,0.18);
}

.gd-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(143,210,255,0.24);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34), 0 0 30px rgba(62,167,255,0.12);
}

.gd-panel,
.gd-era-card,
.gd-faction-card,
.gd-system-item,
.gd-dossier-card,
.gd-volume-card {
  overflow: hidden;
}

.gd-panel::before,
.gd-era-card::before,
.gd-faction-card::before,
.gd-system-item::before,
.gd-dossier-card::before,
.gd-volume-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(143,210,255,0.12), transparent 42%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.gd-panel:hover::before,
.gd-era-card:hover::before,
.gd-faction-card:hover::before,
.gd-system-item:hover::before,
.gd-dossier-card:hover::before,
.gd-volume-card:hover::before {
  opacity: 1;
}

.gd-panel:hover,
.gd-panel:focus-within,
.gd-era-card:hover,
.gd-faction-card:hover,
.gd-system-item:hover,
.gd-dossier-card:hover,
.gd-volume-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 28px 90px rgba(0,0,0,0.4), 0 0 38px rgba(62,167,255,0.16);
  border-color: rgba(143,210,255,0.24);
}

.gd-panel__label,
.gd-stat__label {
  transition: color 0.28s ease, letter-spacing 0.28s ease, transform 0.28s ease;
}

.gd-panel:hover .gd-panel__label,
.gd-era-card:hover .gd-panel__label,
.gd-faction-card:hover .gd-panel__label,
.gd-system-item:hover span,
.gd-dossier-card:hover .gd-panel__label,
.gd-volume-card:hover .gd-panel__label,
.gd-stat:hover .gd-stat__label {
  color: #bce7ff;
  letter-spacing: 0.16em;
  transform: translateY(-2px);
}

.gd-timeline__rail {
  position: relative;
  overflow: hidden;
}

.gd-timeline__rail::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(143,210,255,0.92) 50%, transparent 100%);
  filter: blur(1px);
  animation: timelinePulse 4s linear infinite;
}

@keyframes timelinePulse {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { transform: translateX(100%); opacity: 0; }
}

.gd-era-card__index {
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.gd-era-card:hover .gd-era-card__index {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(26, 110, 205, 0.44), 0 0 18px rgba(143,210,255,0.24);
  filter: brightness(1.08);
}

.gd-faction-card--blue:hover {
  box-shadow: 0 30px 95px rgba(0,0,0,0.42), 0 0 42px rgba(62,167,255,0.18);
}

.gd-faction-card--crimson:hover {
  box-shadow: 0 30px 95px rgba(0,0,0,0.42), 0 0 42px rgba(255,90,90,0.14);
  border-color: rgba(255,137,137,0.24);
}

.gd-system-item span {
  transition: color 0.28s ease, transform 0.28s ease;
}

.gd-dossier-card__figure {
  position: relative;
}

.gd-dossier-card__figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(3,10,20,0.58));
  pointer-events: none;
}

.gd-dossier-card:hover .gd-dossier-card__body {
  background: linear-gradient(180deg, rgba(7,20,36,0), rgba(7,20,36,0.08));
}

.gd-volume-card__cover img {
  transition: transform 0.38s ease, box-shadow 0.38s ease, filter 0.38s ease;
}

.gd-volume-card:hover .gd-volume-card__cover img {
  filter: brightness(1.05) contrast(1.04);
}

.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.show .gd-era-card,
.fade-in.show .gd-faction-card,
.fade-in.show .gd-system-item,
.fade-in.show .gd-dossier-card,
.fade-in.show .gd-volume-card {
  animation: cardLiftIn 0.66s ease both;
}

.fade-in.show .gd-era-card:nth-child(2),
.fade-in.show .gd-faction-card:nth-child(2),
.fade-in.show .gd-system-item:nth-child(2),
.fade-in.show .gd-dossier-card:nth-child(2),
.fade-in.show .gd-volume-card:nth-child(2) { animation-delay: 0.06s; }

.fade-in.show .gd-era-card:nth-child(3),
.fade-in.show .gd-faction-card:nth-child(3),
.fade-in.show .gd-system-item:nth-child(3),
.fade-in.show .gd-dossier-card:nth-child(3),
.fade-in.show .gd-volume-card:nth-child(3) { animation-delay: 0.12s; }

.fade-in.show .gd-era-card:nth-child(4),
.fade-in.show .gd-faction-card:nth-child(4),
.fade-in.show .gd-system-item:nth-child(4),
.fade-in.show .gd-dossier-card:nth-child(4),
.fade-in.show .gd-volume-card:nth-child(4) { animation-delay: 0.18s; }

.fade-in.show .gd-era-card:nth-child(5),
.fade-in.show .gd-dossier-card:nth-child(5) { animation-delay: 0.24s; }

@keyframes cardLiftIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-hero__media,
  .gd-timeline__rail::after,
  .fade-in,
  .fade-in.show .gd-era-card,
  .fade-in.show .gd-faction-card,
  .fade-in.show .gd-system-item,
  .fade-in.show .gd-dossier-card,
  .fade-in.show .gd-volume-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .fade-in,
  .fade-in.show {
    opacity: 1 !important;
  }
}
