/* ============================================================
   NOVA STUDIO — base styles shared by both concepts
   Values mirror the Figma source of truth (file fa0dlDyEaSG7…).
   Palette: oklch ramp (chroma 0.2507 / hue 278.44).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── palette (exact sRGB hex from the oklch ramp) ──────────
     NB: the dark/high-chroma oklch stops are out of the sRGB
     gamut and clamp far too bright (e.g. oklch(9.1% .2507 278)
     renders as #1e005f, not #03001b), so we pin the real hex. */
  --c0:  #000000;
  --c1:  #03001b;   /* base bg */
  --c2:  #0f004a;
  --c3:  #220080;
  --c4:  #3600b9;
  --c5:  #4723dc;
  --c6:  #5b4afc;
  --c7:  #7372ff;
  --c8:  #9199ff;
  --c9:  #b3bcff;
  --c10: #d6ddff;
  --c11: #ffffff;

  /* ── semantic tokens (from Figma) ─────────────────────── */
  --bg:            #03001b;
  --accent:        #9199ff;                  /* button / interactive */
  --accent-soft:   rgba(145, 153, 255, 0.50);
  --accent-bg:     rgba(145, 153, 255, 0.12);
  --text-subtle:   rgba(214, 221, 255, 0.75);/* subtitle */
  --amber:         #dc8f23;
  --amber-bg:      rgba(177, 108, 13, 0.12);

  /* ── tunable layout knobs ─────────────────────────────── */
  --orb-width: min(1040px, 40vw);
  --orb-sink:  48%;          /* ~half the orb sits below the fold */

  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body:    'Geist', system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-subtle);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;            /* single screen, no scroll */
  position: relative;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

#space-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── language toggle (top-right) ──────────────────────────── */
.lang-toggle {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 36px);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--accent-bg);
  border: 1px solid rgba(145, 153, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lang-toggle .glb { width: 15px; height: 15px; margin: 0 4px 0 8px; color: var(--accent-soft); }

.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.lang-btn:hover { color: var(--accent); }
.lang-btn.active { color: var(--accent); background: var(--accent-bg); }

/* ── hero content stack ───────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(64px, 11.5vh, 130px) 24px 0;
}

/* ── wordmark (exact Figma gradients + weights) ───────────── */
.wordmark { display: flex; flex-direction: column; align-items: center; }

.wordmark__line {
  --ls: 0;       /* extra letter-spacing in em, driven by GSAP */
  --blur: 0;     /* px, driven by GSAP */
  --shine: -40;  /* % sheen position, driven by GSAP (rests off-screen) */

  font-family: var(--font-display);
  letter-spacing: calc(var(--ls) * 1em);
  filter: blur(calc(var(--blur) * 1px));
  opacity: 0;    /* GSAP fades in */
  white-space: nowrap;
  will-change: filter, letter-spacing, opacity;

  /* layer 1 = subtle one-time sheen, layer 2 = exact resting gradient */
  background-size: 250% 100%, 100% 100%;
  background-position: calc(var(--shine) * 1%) 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark__nova {
  font-weight: 400;                      /* Geist Regular */
  font-size: clamp(76px, 20vw, 128px);
  line-height: 1.0;
  background-image:
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.20) 50%, transparent 100%),
    linear-gradient(105.2deg, #d6ddff 7%, #828df2 50%, #4723dc 94%);
}

.wordmark__studio {
  font-weight: 200;                      /* Geist ExtraLight */
  font-size: clamp(40px, 10vw, 64px);
  line-height: 1.1;
  margin-top: clamp(2px, 0.5vh, 8px);
  margin-right: -0.42em;                 /* offsets resting tracking → stays centred */
  background-image:
    linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.16) 50%, transparent 100%),
    linear-gradient(98deg, #5b4afc 5%, #472dda 50%, #3600b9 95%);
}

/* ── "coming soon" pill (exact Figma) ─────────────────────── */
.tag-soon {
  margin-top: clamp(8px, 1.4vh, 14px);
  opacity: 0;       /* GSAP */
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: 12px;
  box-shadow:
    0 4px 12.7px -4px rgba(220, 143, 35, 0.22),
    inset 0 0 2.1px 0 rgba(255, 226, 84, 0.22);
}

/* ── subtitle ─────────────────────────────────────────────── */
.subtitle {
  opacity: 0;       /* GSAP */
  margin-top: clamp(28px, 4.5vh, 49px);
  max-width: 640px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.45;
  color: var(--text-subtle);
  text-wrap: balance;
}

/* ── orb / character ──────────────────────────────────────── */
.orb-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1240px, 96vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, 40%);
  z-index: 1;
  opacity: 0;       /* GSAP fades it in with the orb */
  pointer-events: none;
  background:
    radial-gradient(closest-side,
      rgba(115, 114, 255, 0.18) 0%,
      rgba(91, 74, 252, 0.07) 42%,
      transparent 68%);
  filter: blur(10px);
}

.nova-orb-anchor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--orb-width);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%) translateY(var(--orb-sink));
  z-index: 2;
  pointer-events: none;
}
.nova-orb {
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: drop-shadow(0 26px 70px rgba(91, 74, 252, 0.35));
  will-change: transform, filter, opacity;
}
.nova-orb__blob { width: 100%; height: 100%; transform-origin: 50% 100%; }
.nova-orb__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── legibility scrim under the footer (from Figma) ───────── */
.hero__scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28vh;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 0, 25, 0) 0%, #030019 86%);
}

/* ── footer ───────────────────────────────────────────────── */
.hero__footer {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(16px, 3vw, 36px);
  opacity: 0;       /* GSAP */
}

.icon { flex-shrink: 0; }

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}

.footer__info p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent-soft);
}

.footer__info p.footer__owner {
  opacity: 0.8;
  font-size: 12px;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ghost button (Twitter / X) */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border-radius: 18px;
  transition: background .22s ease;
}
.ghost-btn:hover { background: var(--accent-bg); }
.ghost-btn .icon { width: 20px; height: 20px; }

/* link buttons (Privacy / Terms) */
.footer__links { display: flex; align-items: center; gap: 8px; }
.link-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--accent-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .22s ease, background .22s ease;
}
.link-btn:hover { color: var(--accent); background: var(--accent-bg); }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__footer {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px clamp(12px, 3vw, 24px);
  }
  .footer__info {
    align-items: center;
    text-align: center;
  }
  .footer__info p {
    font-size: 11px;
  }
  .footer__info p.footer__owner {
    font-size: 10px;
  }
  .footer__right {
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root { --orb-width: 128vw; --orb-sink: 30%; }
  .hero__content { padding-top: clamp(72px, 13vh, 150px); }
  .orb-glow { width: 170vw; transform: translate(-50%, 44%); }
  .hero__scrim { height: 34vh; }
}

@media (max-width: 430px) {
  .ghost-btn { font-size: 13px; padding: 4px 8px; }
  .ghost-btn .icon { width: 16px; height: 16px; }
  .footer__links { gap: 4px; }
  .link-btn { font-size: 13px; padding: 4px 6px; }
}

@media (max-width: 340px) {
  .ghost-btn span { display: none; }   /* icon-only on the tightest screens */
}

/* short / landscape screens — keep the orb from eating the text */
@media (max-height: 620px) {
  :root { --orb-sink: 56%; }
  .hero__content { padding-top: 52px; }
}

/* ── language switching ───────────────────────────────────── */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="es"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
