﻿/* TerraTrend - splash.css
   Splash screen and launch button */

/* ---------- Splash screen (LAUNCH gate) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 640px at 50% 28%, rgba(109, 75, 255, 0.16), transparent 65%),
    radial-gradient(800px 500px at 78% 82%, rgba(255, 94, 168, 0.10), transparent 65%),
    radial-gradient(700px 460px at 16% 78%, rgba(34, 224, 238, 0.08), transparent 65%),
    rgba(5, 5, 15, 0.78);
  transition: opacity 0.7s ease, visibility 0.7s;
}
.splash.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }

/* Full-width editorial layout */
.splash-inner {
  width: 100%;
  max-width: 1100px;
  padding: 36px 52px;
}

/* Per-element staggered entrance */
.splash-topbar { animation: splashRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
.splash-hero   { animation: splashRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both; }
.splash-rule   { animation: splashRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.30s both; }
.splash-bottom { animation: splashRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both; }

@keyframes splashRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top bar */
.splash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(140, 150, 255, 0.14);
  margin-bottom: 42px;
}
.splash-wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--text);
}
.splash-mark-glyph {
  color: var(--accent-2);
  text-shadow: 0 0 14px rgba(34, 224, 238, 0.8);
}
.splash-wordmark span {
  background: linear-gradient(92deg, var(--grad-a), var(--grad-b), var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.splash-topbar-tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* Hero row */
.splash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 26px;
}

/* Gradient rule divider */
.splash-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--grad-a) 0%, var(--grad-b) 38%, var(--grad-c) 75%, transparent 100%);
  opacity: 0.55;
  margin-bottom: 32px;
}

/* Bottom row */
.splash-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
.splash-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

/* Orbital widget (right side of hero) */
.splash-orbital {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.splash-orbital::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.45) 0%, rgba(34, 224, 238, 0.2) 45%, transparent 70%);
  filter: blur(22px);
  animation: logoPulse 3.2s ease-in-out infinite;
}
@keyframes logoPulse {
  50% { transform: scale(1.22); opacity: 0.8; }
}
.splash-logo {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: #fff;
  text-shadow:
    0 0 14px rgba(139, 124, 255, 0.9),
    0 0 42px rgba(139, 124, 255, 0.55);
}
.splash-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(34, 224, 238, 0.45);
  border-radius: 50%;
  animation: orbitSpin 14s linear infinite;
}
.splash-orbit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2), 0 0 26px var(--accent-2);
}
.splash-orbit-2 {
  inset: -16px;
  border-color: rgba(255, 94, 168, 0.3);
  animation: orbitSpin 24s linear infinite reverse;
}
.splash-orbit-2::before {
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 26px var(--pink);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* (splash-kicker removed; replaced by .splash-topbar-tag in new layout) */
.splash-title {
  font-size: clamp(5rem, 14vw, 9.5rem);
  letter-spacing: -0.03em;
  line-height: 0.86;
  font-weight: 800;
  background: linear-gradient(96deg, #fff 12%, var(--grad-a) 42%, var(--grad-b) 66%, var(--grad-c) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 44px rgba(139, 124, 255, 0.3));
}
.splash-title span { /* inline; gradient spans the full word */ }
.splash-lede {
  color: var(--text);
  max-width: 42ch;
  line-height: 1.72;
  font-size: var(--text-base);
  margin: 0;
}

/* ── Mobile splash: centered full-screen layout ────────────── */
@media (max-width: 700px) {
  .splash-inner {
    padding: 0 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100dvh;
    min-height: 100vh;
    gap: 0;
  }

  /* Hide desktop top-bar: header logo already identifies the brand */
  .splash-topbar  { display: none; }
  .splash-rule    { display: none; }

  /* Orbital: centered, prominent */
  .splash-hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
  }
  .splash-orbital { width: 140px; height: 140px; }

  /* Title: centered, scales cleanly */
  .splash-title {
    font-size: clamp(2.4rem, 13vw, 5rem);
    text-align: center;
    filter: drop-shadow(0 0 56px rgba(139, 124, 255, 0.4));
  }

  /* Bottom: centered column */
  .splash-bottom {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
  }
  .splash-lede {
    text-align: center;
    font-size: 0.9rem;
    max-width: none;
    color: var(--text-secondary);
    opacity: 0.9;
  }
  .splash-cta {
    align-items: center;
    gap: 10px;
  }
  .launch-btn {
    height: 58px;
    padding: 0 48px;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
  }

  /* Event tag below button instead of overflowing header */
  .splash-hint { display: none; }
  .splash-topbar-tag { display: none; }
}

/* LAUNCH button */
.launch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: inherit;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  letter-spacing: 0.22em;
  padding: 0 52px;
  height: 62px;
  color: #fff;
  cursor: pointer;
  /* gradient fill instead of transparent */
  background: linear-gradient(110deg, rgba(34, 224, 238, 0.15) 0%, rgba(139, 124, 255, 0.2) 55%, rgba(255, 94, 168, 0.15) 100%);
  border: 1px solid rgba(160, 170, 255, 0.45);
  border-radius: 999px;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s, border-color 0.2s;
}
/* gradient glow halo */
.launch-btn::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, var(--grad-a), var(--grad-b), var(--grad-c));
  filter: blur(26px);
  opacity: 0.38;
  transition: opacity 0.28s;
}
/* solid gradient border ring */
.launch-btn::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, var(--grad-a), var(--grad-b) 48%, var(--grad-c));
  opacity: 0.7;
}
.launch-btn:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 22px 60px -10px rgba(139, 124, 255, 0.45);
  border-color: rgba(160, 170, 255, 0.7);
}
.launch-btn:hover::after { opacity: 0.6; }
.launch-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2), 0 0 28px rgba(34, 224, 238, 0.4);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(34, 224, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 224, 238, 0); }
}
.splash-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  opacity: 0.55;
  text-align: right;
  margin: 0;
}
