:root {
  color-scheme: dark;
  --ink: #f9fbff;
  --muted: rgba(235, 242, 255, 0.74);
  --line: rgba(209, 226, 255, 0.22);
  --glass: rgba(7, 15, 42, 0.35);
  --aqua: #86e8ff;
  --violet: #bca8ff;
  --gold: #ffd99a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #08122f;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #08122f;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: #08122f;
  background-image: url("/assets/lumina-everlight-city.webp");
  background-position: center center;
  background-size: cover;
  transform: scale(1.015);
  animation: breathe 18s ease-in-out infinite alternate;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 42%, transparent 0 28%, rgba(3, 9, 27, 0.12) 61%),
    linear-gradient(90deg, rgba(3, 9, 29, 0.94) 0%, rgba(4, 10, 32, 0.77) 26%, rgba(4, 10, 32, 0.23) 58%, rgba(3, 8, 25, 0.08) 100%),
    linear-gradient(180deg, rgba(3, 8, 28, 0.34), transparent 36%, rgba(3, 8, 24, 0.48));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.13em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: visible;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 12px rgba(99, 224, 255, 0.46));
}

.brand-spark {
  fill: rgba(161, 234, 255, 0.18);
  stroke: var(--violet);
  stroke-width: 1.2;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 760;
}

.brand-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.brand-world {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.language-switch button {
  min-width: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: transparent;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-switch button[aria-pressed="true"] {
  color: #07122f;
  background: linear-gradient(135deg, var(--aqua), #c3b3ff);
  box-shadow: 0 0 24px rgba(134, 232, 255, 0.24);
}

.hero {
  display: flex;
  align-items: center;
  width: min(1440px, calc(100% - 72px));
  min-height: calc(100svh - 180px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero-copy {
  width: min(620px, 50vw);
  text-wrap: balance;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 23px;
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.eyebrow::before {
  width: 42px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--aqua), transparent);
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 7.1vw, 7.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.28);
}

.headline-line {
  display: block;
  white-space: nowrap;
}

html[lang="es"] .hero-copy {
  width: min(860px, 58vw);
}

html[lang="es"] h1 {
  max-width: 860px;
  font-size: clamp(3.6rem, 5.2vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 420;
  line-height: 1.65;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 14px 20px;
  border: 1px solid rgba(189, 220, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, rgba(126, 230, 255, 0.18), rgba(187, 161, 255, 0.15));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 14px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 217, 154, 0.58);
  animation: pulse 2.6s ease-out infinite;
}

.platform {
  margin: 18px 0 0;
  color: rgba(240, 246, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.025em;
}

.promise {
  max-width: 540px;
  margin: 38px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(241, 246, 255, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

footer {
  position: fixed;
  right: 36px;
  bottom: 24px;
  left: 36px;
  display: flex;
  justify-content: space-between;
  color: rgba(235, 242, 255, 0.5);
  font-size: 0.64rem;
  font-weight: 680;
  letter-spacing: 0.1em;
}

@media (min-width: 821px) and (min-height: 740px) {
  body {
    height: 100svh;
    overflow-y: hidden;
  }

  .hero {
    height: calc(100svh - 91px);
    min-height: 0;
    padding-top: clamp(38px, 5vh, 72px);
    padding-bottom: clamp(64px, 7vh, 96px);
  }
}

@keyframes breathe {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-0.25%, -0.2%, 0); }
}

@keyframes pulse {
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 217, 154, 0); }
}

@media (max-width: 820px) {
  .scene {
    background-position: 65% center;
  }

  .veil {
    background:
      linear-gradient(180deg, rgba(3, 9, 29, 0.62) 0%, rgba(3, 9, 29, 0.34) 30%, rgba(3, 9, 29, 0.92) 68%, rgba(3, 9, 29, 0.98) 100%),
      linear-gradient(90deg, rgba(3, 9, 29, 0.54), rgba(3, 9, 29, 0.1));
  }

  .site-header,
  .hero {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    padding: 18px 0;
  }

  .brand-divider,
  .brand-world {
    display: none;
  }

  .hero {
    align-items: flex-end;
    min-height: calc(100svh - 92px);
    padding: 48px 0 70px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 5.5rem);
  }

  html[lang="es"] .hero-copy {
    width: 100%;
  }

  html[lang="es"] h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.5rem);
    letter-spacing: -0.045em;
  }

  .intro {
    max-width: 520px;
    margin-top: 22px;
  }

  .promise {
    margin-top: 26px;
    padding-top: 18px;
  }

  footer {
    position: static;
    width: min(100% - 36px, 680px);
    margin: -48px auto 0;
    padding: 0 0 20px;
  }

  .footer-note {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .hero {
    padding-top: 38px;
    padding-bottom: 62px;
  }

  h1 {
    font-size: clamp(3.8rem, 6.2vw, 6.2rem);
  }

  .intro {
    margin-top: 22px;
  }

  .coming-soon {
    margin-top: 24px;
  }

  .promise {
    margin-top: 24px;
    padding-top: 18px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .hero,
  footer {
    width: calc(100% - 28px);
  }

  .brand {
    gap: 8px;
  }

  .language-switch button {
    min-width: 40px;
    padding-right: 10px;
    padding-left: 10px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.1rem);
  }

  html[lang="es"] h1 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
