/* ===== Hero ===== */
.hero { padding-top: 70px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.35em;
}
.hero-sub { font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.hero-progress-note { font-size: 14px; color: var(--accent); max-width: 480px; margin-top: -20px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text-primary); }
.hero-stat-label { font-size: 13px; color: var(--text-faint); }

.hero-visual { position: relative; height: 380px; }
.planet-scene {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  animation: planetEnter 1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes planetEnter {
  from { opacity: 0; transform: scale(0.55) translateY(36px) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
}
.planet {
  width: 220px; height: 220px; border-radius: 50%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #ecdfff, var(--primary-light) 32%, var(--primary) 58%, var(--primary-dark) 84%, #190c38 100%);
  box-shadow: 0 0 90px rgba(155,92,246,0.55), inset -22px -22px 60px rgba(0,0,0,0.4), inset 10px 10px 26px rgba(255,255,255,0.08);
}
.planet::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, var(--primary-light), var(--accent), var(--accent-pink), var(--primary), var(--primary-light));
  mix-blend-mode: soft-light;
  opacity: 0.8;
  animation: rotatePlanetHue 13s linear infinite;
}
@keyframes rotatePlanetHue { to { transform: rotate(360deg); } }

/* Ring drawn as two real, separate elements (not a clipped pseudo split) so
   stacking is unambiguous: a full, softly-glowing ellipse sits behind the
   planet (its middle naturally hidden by the opaque sphere), and a crisp,
   tightly-clipped near-arc sits in front of the planet's lower half — that
   combination is what reads as a ring genuinely wrapping around a sphere. */
.planet-ring {
  position: absolute;
  width: 340px; height: 92px;
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
  border: 3px solid rgba(34, 211, 238, 0.55);
}
.ring-back {
  z-index: 1;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.3);
}
.ring-front {
  z-index: 3;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.3);
  clip-path: inset(50% 0 0 0);
}

.moon {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent-pink) 70%);
  box-shadow: 0 0 24px rgba(244,114,182,0.6);
}
.moon-a { width: 28px; height: 28px; top: 30px; right: 60px; animation: floatOrb 7s ease-in-out infinite; }
.moon-b { width: 16px; height: 16px; bottom: 50px; left: 40px; animation: floatOrb 9s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .planet::before { animation: none; }
  .planet-scene { animation: none; }
}
.hero-screenshot {
  position: relative;
  z-index: 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 240px; order: -1; }
  .planet { width: 150px; height: 150px; }
  .planet-ring { width: 240px; height: 60px; }
}

/* ===== IP panel ===== */
.ip-panel {
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.ip-card { flex: 1; min-width: 0; }
.ip-card-status { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 0 0 auto; }
.ip-label { display: block; font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.ip-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.ip-value:hover { background: rgba(34,211,238,0.16); border-color: rgba(34,211,238,0.4); }
.ip-value:active { transform: scale(0.98); }
.ip-value-text { overflow-wrap: anywhere; }
.ip-copy-icon { flex-shrink: 0; opacity: 0.65; }
.ip-divider { width: 1px; align-self: stretch; background: var(--border); }
@media (max-width: 760px) {
  .ip-panel { flex-direction: column; align-items: stretch; padding: 24px; }
  .ip-divider { width: 100%; height: 1px; }
  .ip-card-status { align-items: stretch; }
  .ip-card-status .btn { width: 100%; }
}

/* ===== Features grid ===== */
.feature-card { display: flex; flex-direction: column; gap: 14px; }
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155,92,246,0.25), rgba(34,211,238,0.15));
  border: 1px solid var(--border);
  color: var(--primary-light);
}
.feature-icon svg { width: 26px; height: 26px; flex-shrink: 0; }
.feature-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.feature-card p { font-size: 14.5px; margin-bottom: 0; }

/* ===== Player activity graph ===== */
.player-graph-panel { padding: 30px 34px; }
.player-graph-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.player-graph-head h2 { margin: 4px 0 0; font-size: 22px; }
.player-graph-stats { display: flex; gap: 26px; }
.player-graph-stat { display: flex; flex-direction: column; align-items: flex-end; }
.player-graph-stat-value { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1.1; }
.player-graph-stat-label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.player-graph-svg { width: 100%; height: 200px; display: block; overflow: visible; }
.player-graph-dot { fill: var(--accent); stroke: var(--bg-panel); stroke-width: 1.5; }
.player-graph-axis-label { fill: var(--text-faint); font-size: 10px; font-family: var(--font-body); }
.player-graph-empty { text-align: center; color: var(--text-faint); padding: 40px 14px; margin: 0; }
@media (max-width: 640px) { .player-graph-panel { padding: 22px; } .player-graph-stats { gap: 18px; } }

/* ===== /cv territory map showcase ===== */
.cv-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
}
.cv-feature-text p { margin: 14px 0 0; }
.cv-feature-visual {
  aspect-ratio: 14 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.cv-feature-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-feature-visual-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 30%, rgba(34,211,238,0.2), transparent 70%), var(--bg-deep);
  color: var(--text-faint);
}
.cv-feature-visual-fallback span { font-size: 13px; }
@media (max-width: 860px) {
  .cv-feature { grid-template-columns: 1fr; padding: 26px; }
  .cv-feature-visual { order: -1; }
}

/* ===== Background spaceship flyby ===== */
.spaceship {
  position: fixed;
  z-index: -1;
  left: -140px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(155,92,246,0.6));
  animation: shipFly var(--ship-duration, 11s) linear forwards;
}
@keyframes shipFly {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  6% { opacity: 0.9; }
  30% { transform: translate(calc(30vw + 40px), calc(var(--ship-drift, -30px) * 0.5)) rotate(-4deg); }
  50% { transform: translate(calc(50vw + 70px), var(--ship-drift, -30px)) rotate(3deg); }
  70% { transform: translate(calc(70vw + 100px), calc(var(--ship-drift, -30px) * 1.5)) rotate(-2deg); }
  94% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(100vw + 280px), calc(var(--ship-drift, -30px) * 2)) rotate(0deg); }
}
.spaceship.reverse {
  left: auto;
  right: -140px;
  animation-name: shipFlyReverse;
}
@keyframes shipFlyReverse {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scaleX(-1); }
  6% { opacity: 0.9; }
  30% { transform: translate(calc(-30vw - 40px), calc(var(--ship-drift, -30px) * 0.5)) rotate(4deg) scaleX(-1); }
  50% { transform: translate(calc(-50vw - 70px), var(--ship-drift, -30px)) rotate(-3deg) scaleX(-1); }
  70% { transform: translate(calc(-70vw - 100px), calc(var(--ship-drift, -30px) * 1.5)) rotate(2deg) scaleX(-1); }
  94% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(-100vw - 280px), calc(var(--ship-drift, -30px) * 2)) rotate(0deg) scaleX(-1); }
}
.ship-flame {
  animation: shipFlameFlicker 0.15s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes shipFlameFlicker {
  from { opacity: 0.8; transform: scaleX(0.9); }
  to { opacity: 1; transform: scaleX(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .ship-flame { animation: none; }
}

/* ===== Spawn showcase gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-panel);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-glow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 13px;
  color: var(--text-primary);
  background: linear-gradient(0deg, rgba(5,3,17,0.9), transparent);
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(ellipse at 50% 30%, rgba(155,92,246,0.25), transparent 70%), var(--bg-deep);
  color: var(--text-faint);
  font-size: 28px;
}
.gallery-placeholder span { font-size: 12px; color: var(--text-faint); padding: 0 16px; text-align: center; }

.gallery-lightbox-box { max-width: 720px; padding: 16px; }
.gallery-lightbox-box img { width: 100%; border-radius: var(--radius-sm); display: block; }
.gallery-lightbox-box p { margin: 14px 4px 0; font-size: 14px; color: var(--text-muted); }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== Q&A ===== */
.qa-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--bg-panel); overflow: hidden; }
.qa-question {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-primary);
  font-family: var(--font-heading); font-weight: 600; font-size: 15.5px;
  padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.qa-question::after { content: "+"; font-size: 20px; color: var(--primary-light); transition: transform 0.25s ease; flex-shrink: 0; }
.qa-item.open .qa-question::after { transform: rotate(45deg); }
.qa-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 22px; }
.qa-item.open .qa-answer { max-height: 260px; padding: 0 22px 20px; }
.qa-answer p { margin: 0; font-size: 14.5px; }

/* ===== CTA ===== */
.cta-panel { text-align: center; padding: 56px 30px; }
