:root {
  --bg: #050817;
  --bg-2: #0a1230;
  --text: #f7efe0;
  --muted: rgba(247, 239, 224, 0.72);
  --gold: #f7c86a;
  --gold-2: #ffe7a9;
  --cyan: #77e2ff;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(119, 226, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(247, 200, 106, 0.20), transparent 32%),
    linear-gradient(180deg, #050817 0%, #09122c 48%, #050817 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.stars,
.stars::before,
.stars::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,226,166,.75) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 260px 260px;
  background-position: 0 0, 80px 120px;
  opacity: .32;
  z-index: -3;
}
.stars::before { content: ""; transform: scale(1.4); opacity: .32; animation: drift 26s linear infinite; }
.stars::after { content: ""; transform: scale(1.9); opacity: .18; animation: drift 42s linear infinite reverse; }

.aurora {
  position: fixed;
  inset: auto -20% 0 -20%;
  height: 45vh;
  background: radial-gradient(ellipse at center, rgba(247, 200, 106, .23), transparent 68%);
  filter: blur(24px);
  z-index: -2;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  letter-spacing: .02em;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
.top-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: .25s ease;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* Language Selector Styles */
.lang-selector {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.lang-btn.active {
  background: var(--gold);
  color: #050817;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 38px auto 40px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(40px, 7vw, 86px);
  min-height: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  line-height: .86;
  margin-bottom: 28px;
  letter-spacing: -.08em;
  max-width: 820px;
  text-shadow: 0 0 46px rgba(247, 200, 106, .16);
}
h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 18px;
}
h3 { line-height: 1.06; letter-spacing: -.02em; }
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s ease;
}
.button-primary {
  color: #16100a;
  background: linear-gradient(135deg, #ffe7a9, #f7c86a 45%, #ffb442);
  box-shadow: 0 16px 38px rgba(247, 200, 106, .28);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(247, 200, 106, .34); }
.button-ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.button-ghost:hover { background: rgba(255,255,255,.1); }

.hero-art {
  position: relative;
  min-height: 640px;
}
.poster {
  position: absolute;
  inset: 34px 42px 50px 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,8,23,.08), rgba(5,8,23,.78)),
    linear-gradient(135deg, rgba(119,226,255,.20), rgba(247,200,106,.22)),
    var(--image) center/cover no-repeat;
  box-shadow: var(--shadow), inset 0 0 80px rgba(255,255,255,.04);
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 20%, rgba(255,255,255,.24), transparent 30%);
  mix-blend-mode: screen;
}
.poster-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: rgba(5,8,23,.48);
  backdrop-filter: blur(22px);
}
.poster-overlay span { display: block; color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; margin-bottom: 10px; }
.poster-overlay strong { display: block; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.02; max-width: 500px; }

.floating-card {
  position: absolute;
  width: 210px;
  height: 270px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(5,8,23,.75)),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(247,200,106,.18)),
    var(--image) center/cover no-repeat;
  box-shadow: 0 24px 58px rgba(0,0,0,.42);
  animation: float 5.5s ease-in-out infinite;
}
.floating-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  background: rgba(5,8,23,.56);
  backdrop-filter: blur(14px);
}
.card-one { left: 0; top: 0; transform: rotate(-8deg); }
.card-two { right: 0; bottom: 0; transform: rotate(7deg); animation-delay: -2.5s; }

.bridge-scene {
  width: min(1180px, calc(100% - 40px));
  height: 380px;
  margin: 40px auto 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 80px rgba(247,200,106,.08);
}

.bridge-logo {
  max-width: 420px;
  width: 85%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(247, 200, 106, 0.25));
}

.bridge-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
          ellipse at center,
          rgba(247,200,106,0.25),
          transparent 70%
  );
  filter: blur(40px);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 105px;
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.centered { max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered .eyebrow::before { display: none; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
code { color: var(--gold-2); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 3px 8px; border-radius: 999px; }

.world-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 280px 280px;
  gap: 22px;
}
.world-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(5,8,23,.06), rgba(5,8,23,.86)),
    linear-gradient(135deg, rgba(119,226,255,.16), rgba(247,200,106,.16)),
    var(--image) center/cover no-repeat;
  box-shadow: 0 26px 62px rgba(0,0,0,.25);
}
.world-card.large { grid-row: span 2; }
.world-card span { color: var(--gold-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; }
.world-card h3 { font-size: clamp(1.45rem, 2.4vw, 2.35rem); margin: 10px 0 0; max-width: 520px; }

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.character-card {
  padding: 14px 14px 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 32px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.character-image {
  aspect-ratio: 1 / 1.12;
  border-radius: 24px;
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, transparent, rgba(5,8,23,.35)),
    linear-gradient(135deg, rgba(119,226,255,.16), rgba(247,200,106,.22)),
    var(--image) center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.12);
}
.character-card h3 { font-size: 1.35rem; margin: 0 10px 8px; }
.character-card p { color: var(--muted); line-height: 1.55; margin: 0 10px; }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 38px;
  background:
    radial-gradient(circle at 90% 10%, rgba(247,200,106,.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.contact-panel p { color: var(--muted); line-height: 1.75; max-width: 720px; }
.launch-badge {
  width: 180px;
  height: 180px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  color: #171005;
  background: linear-gradient(145deg, #fff0bd, #f7c86a 58%, #d98b25);
  box-shadow: 0 18px 70px rgba(247, 200, 106, .26), inset 0 0 40px rgba(255, 255, 255, .28);
}
.launch-badge span { font-size: 1.9rem; font-weight: 950; letter-spacing: -.04em; }
.launch-badge strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-top: 6px; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(247,239,224,.55);
  border-top: 1px solid rgba(255,255,255,.10);
}
.site-footer p { margin: 0; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
@keyframes drift {
  from { background-position: 0 0, 80px 120px; }
  to { background-position: 180px 180px, 340px 380px; }
}

@media (max-width: 980px) {
  .site-header { flex-direction: column; align-items: center; gap: 16px; }
  .header-controls { flex-direction: column; gap: 12px; }
  .top-nav { display: flex; } /* Shown on tablet for accessibility */
  .hero { grid-template-columns: 1fr; min-height: unset; margin-top: 20px; }
  .hero-art { min-height: 560px; }
  .world-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .world-card.large { grid-row: auto; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header, .hero, .section, .bridge-scene, .site-footer { width: min(100% - 26px, 1180px); }
  h1 { font-size: clamp(3.2rem, 17vw, 4.8rem); }
  .hero-art { min-height: 520px; }
  .poster { inset: 30px 4px 82px 4px; border-radius: 30px; }
  .floating-card { width: 160px; height: 210px; border-radius: 26px; }
  .card-two { right: 4px; }
  .character-grid { grid-template-columns: 1fr; }
  .bridge-scene { height: 150px; margin-bottom: 70px; }
  .site-footer { flex-direction: column; }
  .top-nav { display: none; } /* Hide on very small screens to save space */
}