/* Homepage feature sections — Guides, Studios, Hosting, LAN */

/* ——— Guides: open manual spread ——— */
.hp-guide {
  position: relative;
  margin: 0 auto 72px;
  padding: 0 20px;
  max-width: 1180px;
}

.hp-guide-spine {
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(152, 186, 227, 0.35) 15%, rgba(152, 186, 227, 0.35) 85%, transparent);
  pointer-events: none;
}

.hp-guide-sheet {
  position: relative;
  padding: 40px clamp(24px, 4vw, 48px);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(152, 186, 227, 0.04) 0%, transparent 8%),
    linear-gradient(155deg, rgba(28, 42, 62, 0.96), rgba(12, 20, 32, 0.98));
  box-shadow:
    inset 28px 0 40px -28px rgba(0, 0, 0, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(152, 186, 227, 0.14);
}

.hp-guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2, #98BAE3);
}

.hp-guide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #5981B1);
}

.hp-guide-sublabel {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hp-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hp-guide-title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hp-guide-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
}

.hp-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hp-guide-figure {
  margin: 0;
  position: relative;
}

.hp-guide-figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(1.25deg);
  transition: transform 0.35s ease;
}

.hp-guide:hover .hp-guide-figure img {
  transform: rotate(0deg) translateY(-3px);
}

.hp-guide-empty {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 24px;
  text-align: center;
}

/* ——— Studios: aurora + dual projects (mirrors /studios/) ——— */
.hp-studios {
  position: relative;
  align-self: stretch;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 80px;
  padding: 72px 20px 80px;
  overflow: hidden;
  background: #15273c;
  box-sizing: border-box;
}

.hp-studios-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hp-studios-aurora span {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  opacity: 0.55;
}

.hp-studios-aurora span:nth-child(1) {
  top: -55vmax;
  left: -45vmax;
  background: radial-gradient(circle, rgba(54, 84, 117, 0.55), transparent 58%);
  animation: hp-studios-drift-1 18s ease-in-out infinite alternate;
}

.hp-studios-aurora span:nth-child(2) {
  top: -30vmax;
  right: -50vmax;
  background: radial-gradient(circle, rgba(89, 1, 177, 0.35), transparent 58%);
  animation: hp-studios-drift-2 22s ease-in-out infinite alternate;
}

.hp-studios-aurora span:nth-child(3) {
  bottom: -55vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(2, 4, 8, 0.65), transparent 60%);
  animation: hp-studios-drift-3 20s ease-in-out infinite alternate;
}

@keyframes hp-studios-drift-1 {
  from { transform: translate(0, 0); }
  to { transform: translate(8vw, 6vh); }
}

@keyframes hp-studios-drift-2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-6vw, 4vh); }
}

@keyframes hp-studios-drift-3 {
  from { transform: translate(0, 0); }
  to { transform: translate(5vw, -5vh); }
}

.hp-studios-shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.hp-studios-head {
  text-align: center;
  margin-bottom: 48px;
}

.hp-studios-hatch {
  width: clamp(140px, 22vw, 180px);
  height: auto;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.hp-studios-tagline {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: rgba(188, 209, 238, 0.85);
  font-style: italic;
}

.hp-studios-lead {
  margin: 0 auto 24px;
  max-width: 54ch;
  line-height: 1.65;
  color: var(--muted);
}

.hp-studios-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.hp-studios-project {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(152, 186, 227, 0.16);
  background: rgba(8, 14, 24, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hp-studios-project:hover {
  transform: translateY(-6px);
  border-color: rgba(152, 186, 227, 0.38);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.hp-studios-project-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(89, 129, 177, 0.18), transparent 70%);
}

.hp-studios-showcase {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hp-studios-showcase__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity;
}

.hp-studios-showcase__layer.is-active {
  opacity: 1;
}

.hp-studios-showcase__layer--video {
  padding: 0;
}

.hp-studios-showcase__layer--video video {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.hp-studios-project--astrozaar .hp-studios-project-art {
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.15), transparent 70%);
}

.hp-studios-project--fishnom .hp-studios-project-art {
  background: radial-gradient(circle at 50% 40%, rgba(52, 211, 153, 0.12), transparent 70%);
}

.hp-studios-showcase__layer--logo img {
  max-width: min(100%, 280px);
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

.hp-studios-project:hover .hp-studios-showcase__layer--logo.is-active img {
  transform: scale(1.04);
}

.hp-studios-project-copy {
  padding: 20px 22px 24px;
}

.hp-studios-project-copy h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.hp-studios-project-copy p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.hp-studios-project-btn {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--accent-2, #98BAE3);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.hp-studios-project-btn:hover {
  background: #b3cef0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(152, 186, 227, 0.35);
}

/* ——— Hosting: full-bleed hero + glass panel (mirrors /hosting/) ——— */
.hp-hosting {
  position: relative;
  width: min(calc(100% - 40px), 1400px);
  max-width: 1400px;
  margin: 0 auto 80px;
  min-height: clamp(420px, 55vh, 560px);
  overflow: hidden;
  border-radius: 18px;
  box-sizing: border-box;
}

.hp-hosting-scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hp-hosting:hover .hp-hosting-scene {
  transform: scale(1.06);
}

.hp-hosting-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 12, 22, 0.92) 0%, rgba(10, 16, 28, 0.72) 42%, rgba(8, 12, 22, 0.35) 100%),
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(255, 220, 160, 0.07), transparent 55%);
  pointer-events: none;
}

.hp-hosting-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 20px;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.hp-hosting-panel {
  width: min(100%, 440px);
  padding: clamp(28px, 4vw, 36px);
  border-radius: 16px;
  background: rgba(14, 18, 28, 0.52);
  border: 1px solid rgba(160, 200, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(100, 160, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hp-hosting-tag {
  display: block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.9);
}

.hp-hosting-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hp-hosting-status {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 210, 140, 0.85);
}

.hp-hosting-lead {
  margin: 0 0 14px;
  line-height: 1.7;
  color: rgba(232, 238, 249, 0.88);
  font-size: 1.02rem;
}

.hp-hosting-detail {
  margin: 0 0 24px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f6fb;
}

.hp-hosting-cta {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(89, 129, 177, 0.95), rgba(54, 84, 117, 0.95));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(152, 186, 227, 0.35);
}

.hp-hosting-cta:hover {
  filter: brightness(1.08);
}

/* ——— LAN: split hero (mirrors /lan/ intro) ——— */
.hp-lan {
  position: relative;
  align-self: stretch;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 95% 75% at 12% 18%, rgba(152, 186, 227, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 65% 55% at 92% 35%, rgba(89, 129, 177, 0.28) 0%, transparent 52%),
    linear-gradient(168deg, #5981b1 0%, #365475 45%, #15273c 82%, #0a1420 100%);
}

.hp-lan-hero {
  padding: clamp(32px, 5vw, 48px) 20px clamp(56px, 8vw, 72px);
}

.hp-lan-hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.hp-lan-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(188, 209, 238, 0.9);
}

.hp-lan-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(2, 4, 8, 0.35);
}

.hp-lan-mission {
  margin: 0 0 18px;
  line-height: 1.7;
  color: rgba(232, 238, 249, 0.9);
  max-width: 52ch;
}

.hp-lan-quote {
  margin: 0 0 24px;
  padding: 0 0 0 16px;
  border-left: 3px solid rgba(152, 186, 227, 0.45);
  font-style: italic;
  line-height: 1.65;
  color: rgba(188, 209, 238, 0.95);
  font-size: 0.98rem;
}

.hp-lan-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-lan-btn {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5981B1, #365475);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(152, 186, 227, 0.35);
}

.hp-lan-btn:hover {
  filter: brightness(1.06);
}

.hp-lan-btn--ghost {
  background: rgba(14, 22, 35, 0.45);
  border-color: rgba(152, 186, 227, 0.3);
}

.hp-lan-hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(152, 186, 227, 0.22);
  box-shadow:
    0 0 0 1px rgba(2, 4, 8, 0.2) inset,
    0 16px 44px rgba(2, 4, 8, 0.45);
  aspect-ratio: 16 / 9;
  background: #0a0d12;
}

.hp-lan-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 960px) {
  .hp-guide-spine {
    display: none;
  }

  .hp-guide-grid {
    grid-template-columns: 1fr;
  }

  .hp-guide-figure {
    order: -1;
  }

  .hp-guide-figure img {
    transform: none;
  }

  .hp-studios-projects {
    grid-template-columns: 1fr;
  }

  .hp-lan-hero-grid {
    grid-template-columns: 1fr;
  }

  .hp-lan-hero-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .hp-hosting-shell {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hp-hosting-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-studios-aurora span,
  .hp-hosting-scene {
    animation: none;
    transition: none;
  }

  .hp-studios-showcase__layer {
    transition: none;
  }

  .hp-studios-showcase__layer--video {
    display: none;
  }
}
