/* Brand tokens: constants/Theme.ts — purple atmosphere kept */
:root {
  --primary: #6e56cf;
  --primary-light: #8b75d1;
  --primary-dark: #5b46b8;
  --secondary: #b674f7;
  --bg-deep: #0a0714;
  --text: #f4f1ff;
  --text-muted: rgba(244, 241, 255, 0.74);
  --text-soft: rgba(244, 241, 255, 0.52);
  --line: rgba(244, 241, 255, 0.14);
  /* Sora sits with the geometric ST mark; Source Sans 3 for body */
  --font-display: "Sora", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 70% at 78% -10%, rgba(182, 116, 247, 0.55), transparent 58%),
    radial-gradient(ellipse 80% 65% at -5% 105%, rgba(110, 86, 207, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(139, 117, 209, 0.22), transparent 70%),
    linear-gradient(
      155deg,
      #07050f 0%,
      #1a1235 28%,
      var(--primary-dark) 52%,
      var(--primary) 78%,
      #120c24 100%
    );
  animation: sky-breathe 16s ease-in-out infinite alternate;
}

.veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 5, 15, 0.15) 0%,
    transparent 35%,
    rgba(7, 5, 15, 0.45) 100%
  );
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
}

.glow-a {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: -12%;
  right: -4%;
  opacity: 0.55;
  background: radial-gradient(circle, rgba(182, 116, 247, 0.85), transparent 68%);
  animation: float-a 18s ease-in-out infinite;
}

.glow-b {
  width: min(50vw, 440px);
  height: min(50vw, 440px);
  bottom: -8%;
  left: -10%;
  opacity: 0.5;
  background: radial-gradient(circle, rgba(110, 86, 207, 0.9), transparent 68%);
  animation: float-b 20s ease-in-out infinite;
}

.glow-c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 38%;
  left: 42%;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(139, 117, 209, 0.7), transparent 70%);
  animation: float-c 22s ease-in-out infinite;
}

.frame {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.top {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
  flex-shrink: 0;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 0 2.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  flex-wrap: nowrap;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 241, 255, 0.16);
  padding: 8px;
  flex-shrink: 0;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: rgba(244, 241, 255, 0.94);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero h1 .line {
  white-space: nowrap;
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

.simple {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.simple h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.85rem;
}

.simple p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

.simple a {
  color: var(--primary-light);
}

.simple.legal {
  max-width: 40rem;
}

.simple.legal .meta {
  font-size: 0.92rem;
  opacity: 0.85;
}

.simple.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}

.simple.legal h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.02rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--text);
}

.simple.legal ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.simple.legal li {
  margin-bottom: 0.35rem;
}

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

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-22px, 18px, 0) scale(1.06);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -14px, 0) scale(1.07);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, 10px, 0) scale(1.08);
  }
}

@keyframes sky-breathe {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.06);
  }
}

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

@media (max-width: 640px) {
  .frame {
    padding: 0 1.25rem;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    padding: 7px;
  }

  .brand-hero {
    font-size: 1.85rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .lede {
    font-size: 1.02rem;
  }

  .hero {
    padding: 2rem 0;
  }
}
