:root {
  --bg: #040814;
  --bg-deep: #071120;
  --gold: #f4d28a;
  --gold-strong: #ffd36f;
  --mist: rgba(255, 255, 255, 0.16);
  --panel: rgba(5, 12, 24, 0.58);
  --panel-border: rgba(255, 226, 170, 0.2);
  --text: #f8f3ea;
  --muted: #d3d8e6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.25), rgba(3, 8, 18, 0.92)),
    radial-gradient(circle at top, rgba(255, 214, 132, 0.14), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.15), rgba(4, 8, 20, 0.8)),
    url("./VIEL_STUDIOS/VEIL_TRILOGY_MASTER_IMAGES/03_PREMORTALITY_ANTES_DO_VEU/BV-014_KOLOB/Final_Image.png")
      center top / cover no-repeat;
  z-index: -3;
  transform: scale(1.04);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 248, 220, 0.65) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 16%, rgba(255, 248, 220, 0.5) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 58% 36%, rgba(255, 248, 220, 0.45) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 86% 40%, rgba(255, 248, 220, 0.4) 0 1px, transparent 1px 100%);
  background-size: 240px 240px, 280px 280px, 320px 320px, 360px 360px;
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
}

.site-header,
.hero,
.vision,
.site-footer {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 3;
  padding: 4px 0 24px;
}

.brand img {
  width: clamp(84px, 12vw, 144px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 30px rgba(255, 215, 120, 0.25));
}

.top-link,
.button {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-link {
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 12px 18px;
  border: 1px solid rgba(255, 226, 170, 0.22);
  border-radius: 999px;
  background: rgba(7, 15, 28, 0.45);
  backdrop-filter: blur(10px);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 226, 170, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(7, 15, 28, 0.82), rgba(12, 26, 46, 0.62));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.language-switcher__label,
.footer-label,
.footer-language__label {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.language-switcher__select {
  min-width: 170px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 36px 10px 14px;
  border: 1px solid rgba(255, 226, 170, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 31, 52, 0.96), rgba(10, 18, 34, 0.92));
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%),
    linear-gradient(135deg, rgba(18, 31, 52, 0.96), rgba(10, 18, 34, 0.92));
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    center center;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  outline: none;
}

.language-switcher__select:focus {
  border-color: rgba(255, 226, 170, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 211, 111, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 40px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
  max-width: 9ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  max-width: 13ch;
}

.summary,
.vision-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 60ch;
}

.hero-brandline,
.vision-hierarchy,
.footer-note-strong {
  margin: 0 0 18px;
  color: rgba(255, 232, 183, 0.92);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-brandline,
.footer-note-strong {
  max-width: 56ch;
}

.hero-brandline strong,
.vision-hierarchy strong,
.footer-note-strong strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #1f1406;
  background: linear-gradient(135deg, #fff1c7, var(--gold-strong));
  box-shadow: 0 16px 36px rgba(255, 211, 111, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(9, 18, 34, 0.46);
  border: 1px solid rgba(255, 226, 170, 0.22);
  backdrop-filter: blur(12px);
}

.cosmos-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.celestial-world {
  position: relative;
  width: min(54vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 245, 220, 0.95), rgba(255, 213, 113, 0.25) 30%, rgba(16, 27, 58, 0.5) 60%, rgba(6, 12, 24, 0.95) 100%);
  border: 1px solid rgba(255, 226, 170, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 238, 205, 0.1) inset,
    0 0 120px rgba(255, 208, 109, 0.18),
    0 0 220px rgba(31, 103, 255, 0.1);
  overflow: hidden;
}

.celestial-world::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.85), transparent 34%),
    url("./VIEL_STUDIOS/VEIL_TRILOGY_MASTER_IMAGES/02_SPIRIT_WORLD/BV-007_CELESTIAL_CITY/Final_Image.png")
      center center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.95;
  filter: saturate(0.92) brightness(0.98);
}

.world-core,
.world-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.world-core {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(255, 221, 151, 0.24) 66%, transparent 78%),
    radial-gradient(circle at 52% 50%, rgba(255, 255, 255, 0.22), transparent 58%);
}

.world-ring {
  inset: 5%;
  border: 1px solid rgba(255, 238, 205, 0.38);
  box-shadow: 0 0 18px rgba(255, 222, 140, 0.22), 0 0 54px rgba(255, 222, 140, 0.18) inset;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 227, 170, 0.16);
  transform: rotate(-14deg);
}

.orbit-one {
  width: min(66vw, 520px);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(78vw, 620px);
  aspect-ratio: 1;
}

.sun {
  position: absolute;
  width: clamp(62px, 8vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 10%, rgba(255, 240, 195, 0.96) 18%, rgba(255, 209, 106, 0.88) 44%, rgba(255, 175, 42, 0.4) 62%, rgba(255, 175, 42, 0) 100%);
  box-shadow:
    0 0 24px rgba(255, 233, 171, 0.75),
    0 0 60px rgba(255, 197, 84, 0.55),
    0 0 120px rgba(255, 197, 84, 0.35);
  animation: pulse 7s ease-in-out infinite;
}

.sun::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1px solid rgba(255, 231, 177, 0.16);
}

.sun-one {
  top: 10%;
  left: 18%;
}

.sun-two {
  top: 4%;
  right: 12%;
  animation-delay: 1.6s;
}

.sun-three {
  bottom: 14%;
  right: 8%;
  animation-delay: 3.2s;
}

.vision {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
  padding: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.vision-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 226, 170, 0.16);
}

.vision-card img {
  display: block;
  width: 100%;
  height: auto;
}

.vision-card figcaption {
  padding: 16px 18px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.vision-gallery-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.vision-gallery-intro {
  display: grid;
  gap: 12px;
  max-width: 76ch;
}

.vision-gallery-intro h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  color: var(--text);
}

.vision-gallery-intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.vision-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vision-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 226, 170, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 20, 37, 0.88), rgba(7, 14, 26, 0.72));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.vision-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vision-gallery-card__copy {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
}

.vision-gallery-card__copy span {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vision-gallery-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.site-footer {
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid rgba(255, 226, 170, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 16, 31, 0.9), rgba(6, 13, 24, 0.7)),
    radial-gradient(circle at top left, rgba(255, 212, 122, 0.1), transparent 34%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 28px;
}

.footer-panel {
  padding: 8px 0;
}

.footer-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
  max-width: none;
}

.footer-copy,
.footer-note,
.footer-bottom p,
.footer-bottom a,
.footer-panel-links a {
  color: var(--muted);
  line-height: 1.7;
}

.footer-copy,
.footer-note {
  max-width: 56ch;
}

.footer-note-strong {
  margin-top: 14px;
}

.footer-panel-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-panel-links a,
.footer-contact {
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-panel-links a:hover,
.footer-contact:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-language {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 226, 170, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.footer-language__value {
  color: var(--text);
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 226, 170, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.scroll-top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 170, 0.24);
  border-radius: 50%;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(16, 28, 48, 0.92), rgba(8, 16, 30, 0.78));
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 236, 198, 0.06) inset;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.94);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  z-index: 6;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
  border-color: rgba(255, 226, 170, 0.4);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(255, 210, 109, 0.18);
}

.scroll-top-button:focus-visible {
  outline: none;
  border-color: rgba(255, 226, 170, 0.48);
  box-shadow:
    0 0 0 4px rgba(255, 211, 111, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.32);
}

.scroll-top-button__icon {
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-1px);
}

[dir="rtl"] .site-header,
[dir="rtl"] .footer-bottom {
  direction: rtl;
}

[dir="rtl"] .header-actions {
  justify-content: flex-start;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .vision-copy,
[dir="rtl"] .footer-panel {
  text-align: right;
}

[dir="rtl"] .scroll-top-button {
  right: auto;
  left: 28px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .vision,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .cosmos-stage {
    min-height: 500px;
    order: -1;
  }

  .celestial-world {
    width: min(80vw, 410px);
  }

  .vision {
    padding: 24px;
  }

  .vision-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .site-header,
  .hero,
  .vision,
  .site-footer {
    width: min(1180px, calc(100vw - 36px));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions,
  .language-switcher {
    width: 100%;
  }

  .header-actions {
    justify-content: stretch;
  }

  .top-link,
  .language-switcher__select {
    width: 100%;
  }

  .language-switcher {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .summary,
  .vision-copy p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .vision-gallery {
    grid-template-columns: 1fr;
  }

  .cosmos-stage {
    min-height: 400px;
  }

  .sun {
    width: 58px;
  }

  .site-footer {
    padding: 24px;
  }

  .scroll-top-button {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  [dir="rtl"] .scroll-top-button {
    right: auto;
    left: 18px;
  }
}
