/* static/welcome.css */
:root {
  --bg-0: #0e1e2b;
  --bg-1: #143a52;
  --bg-2: #1f5f7a;
  --blue-deep: #1f6fd6;
  --blue: #2f8fe8;
  --blue-bright: #3fb4f2;
  --blue-electric: #5acbff;
  --blue-glow: #8edfff;
  --blue-highlight: #c7eeff;
  --blue-soft: #eaf8ff;
  --neutral: #5b7f99;
  --neutral-muted: #7fa6bf;
  --shadow: #3a4f63;
  --text: #eaf8ff;
  --muted: rgba(199, 238, 255, 0.75);
  --page-gutter: 32px;
}

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

body.welcome-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 720px at 12% -8%, rgba(90, 203, 255, 0.35), transparent 62%),
    radial-gradient(900px 620px at 88% 8%, rgba(63, 180, 242, 0.35), transparent 65%),
    radial-gradient(900px 760px at 40% 55%, rgba(31, 111, 214, 0.22), transparent 70%),
    radial-gradient(1200px 900px at 65% 110%, rgba(20, 58, 82, 0.4), transparent 70%),
    linear-gradient(175deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  display: flex;
  flex-direction: column;
}

.welcome-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--page-gutter);
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.welcome-nav.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-left {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.welcome-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.welcome-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 1.15rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(245, 247, 251, 0.35);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-login:hover {
  transform: translateY(-1px);
  background: rgba(245, 247, 251, 0.08);
  border-color: rgba(245, 247, 251, 0.6);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.welcome-brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-shell {
  width: 100%;
  margin: 0;
  padding: 40px var(--page-gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 120px;
  flex: 1;
}

.hero {
  position: relative;
  text-align: left;
  max-width: 920px;
  padding: 48px 0 20px;
}

.hero-glow {
  position: absolute;
  inset: -60px -20px;
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 1.35rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 12px 26px rgba(63, 180, 242, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
  align-self: center;
  border: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(63, 180, 242, 0.5);
}

.hero-note {
  font-size: 0.86rem;
  color: rgba(245, 247, 251, 0.6);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 24px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  height: min(90vh, 720px);
  background: #0b1226;
  border: 1px solid rgba(58, 160, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 0;
  overflow: hidden;
}

.modal-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f1a33;
}

.login-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 50px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.login-card {
  width: min(520px, 100%);
  padding: 34px 32px;
  border-radius: 20px;
  background: rgba(11, 18, 38, 0.88);
  border: 1px solid rgba(58, 160, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.login-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.login-actions .cta {
  align-self: flex-start;
}

.info-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 90vh;
  scroll-margin-top: 120px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: var(--blue-electric);
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  line-height: 1.15;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 760px;
}

.section-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  font-size: 1.1rem;
}

.section-list li {
  line-height: 1.5;
}

@media (max-width: 900px) {
  .welcome-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .welcome-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-shell {
    padding: 30px 20px 50px;
    gap: 80px;
  }

  .info-section {
    min-height: auto;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .hero-shell {
    padding: 20px 20px 48px;
  }
}
