/* static/welcome.css */
:root {
  --bg-0: #e3edff;
  --bg-1: #d3e2ff;
  --bg-2: #bdd5ff;
  --blue-deep: #245fe0;
  --blue: #3a7bff;
  --blue-bright: #6aa0ff;
  --blue-electric: #2f6fe8;
  --blue-glow: #c5dcff;
  --blue-highlight: #eef4ff;
  --blue-soft: #f4f8ff;
  --neutral: #3f5874;
  --neutral-muted: #5c6f86;
  --shadow: #6b84ab;
  --text: #0e1b33;
  --muted: rgba(14, 27, 51, 0.68);
  --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(1100px 680px at 10% -10%, rgba(58, 123, 255, 0.28), transparent 62%),
    radial-gradient(980px 640px at 92% 6%, rgba(36, 95, 224, 0.26), transparent 60%),
    radial-gradient(820px 620px at 24% 50%, rgba(106, 160, 255, 0.2), transparent 66%),
    radial-gradient(980px 760px at 72% 58%, rgba(90, 150, 255, 0.18), transparent 68%),
    radial-gradient(520px 420px at 18% 72%, rgba(36, 95, 224, 0.2), transparent 62%),
    radial-gradient(480px 380px at 84% 72%, rgba(58, 123, 255, 0.22), transparent 60%),
    radial-gradient(360px 300px at 12% 22%, rgba(36, 95, 224, 0.18), transparent 62%),
    radial-gradient(360px 300px at 90% 26%, rgba(106, 160, 255, 0.2), transparent 62%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
  display: flex;
  flex-direction: column;
}

body.legal-page {
  background:
    radial-gradient(900px 620px at 15% -10%, rgba(58, 123, 255, 0.22), transparent 62%),
    radial-gradient(820px 540px at 88% 8%, rgba(36, 95, 224, 0.2), transparent 60%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
}

.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(36, 95, 224, 0.25);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, #9cc4ff, #6fa2ff);
  box-shadow: 0 10px 22px rgba(58, 123, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  position: relative;
  overflow: hidden;
}

.nav-signup::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 55%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  opacity: 0.55;
  pointer-events: none;
}

.nav-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(58, 123, 255, 0.5);
  filter: saturate(1.05);
}

.nav-login:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(36, 95, 224, 0.45);
}

.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;
}

.legal-shell {
  width: 100%;
  margin: 0;
  padding: 32px var(--page-gutter) 80px;
  display: flex;
  justify-content: center;
}

.legal-card {
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(36, 95, 224, 0.18);
  border-radius: 26px;
  padding: 36px 36px 28px;
  box-shadow: 0 18px 40px rgba(36, 80, 160, 0.12);
  backdrop-filter: blur(6px);
}

.legal-title {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  font-weight: 600;
  color: var(--neutral-muted);
  margin-bottom: 24px;
}

.legal-section {
  margin-top: 22px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--page-gutter) 40px;
  border-top: 1px solid rgba(36, 95, 224, 0.18);
  color: var(--neutral-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

.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, #9cc4ff, #6fa2ff);
  box-shadow: 0 12px 26px rgba(58, 123, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  align-self: center;
  border: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 60%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  opacity: 0.6;
  pointer-events: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(58, 123, 255, 0.5);
  filter: saturate(1.05);
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.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(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 95, 224, 0.2);
  box-shadow: 0 22px 46px rgba(36, 95, 224, 0.2);
}

.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-deep);
}

.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;
  }
}
