:root {
  --bg: #050712;
  --text: #eef6ff;
  --muted: rgba(238, 246, 255, 0.68);
  --line: rgba(125, 230, 255, 0.15);
  --glow: rgba(55, 220, 255, 0.45);
  --pink: rgba(255, 60, 210, 0.34);
  --violet: rgba(130, 90, 255, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

.stage {
  padding-top: max(clamp(1rem, 4vw, 4rem), 5rem);
}

.has-site-nav h1 {
  padding-bottom: 0.14em;
}

.site-nav.is-collapsible {
  min-height: 52px;
  padding: 0 12px;
}

.site-nav.is-collapsible .site-nav__toggle {
  display: inline-flex;
}

.site-nav.is-collapsible .site-nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(185, 241, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 7, 18, 0.95);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  white-space: normal;
}

.site-nav.is-collapsible.is-open .site-nav__menu {
  display: flex;
}

.site-nav.is-collapsible .site-nav__menu a {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
}

.site-nav.is-collapsible .site-nav__identity {
  max-width: none;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(125, 230, 255, 0.16), transparent 24%),
    radial-gradient(ellipse at 18% 24%, rgba(44, 189, 255, 0.18), transparent 30%),
    radial-gradient(ellipse at 82% 74%, rgba(255, 57, 196, 0.16), transparent 34%),
    radial-gradient(ellipse at 64% 18%, rgba(180, 126, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #03040c 0%, #081226 48%, #050712 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -3;
  background:
    radial-gradient(ellipse at 32% 42%, rgba(40, 201, 255, 0.23), transparent 24%),
    radial-gradient(ellipse at 66% 58%, rgba(255, 82, 216, 0.20), transparent 25%),
    radial-gradient(ellipse at 52% 50%, rgba(180, 126, 255, 0.13), transparent 30%);
  filter: blur(6px);
  opacity: 0.88;
  transform: rotate(-8deg);
  animation: nebulaDrift 28s ease-in-out infinite alternate;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 0 38%, rgba(2, 3, 10, 0.78) 78%);
  pointer-events: none;
}

.starfield {
  position: absolute;
  inset: -20%;
  z-index: -4;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.stars-far {
  background:
    radial-gradient(circle, rgba(255,255,255,0.86) 0 1px, transparent 1.7px) 12px 18px / 130px 120px,
    radial-gradient(circle, rgba(125,230,255,0.76) 0 1px, transparent 1.8px) 70px 44px / 180px 160px,
    radial-gradient(circle, rgba(255,90,220,0.62) 0 1px, transparent 1.9px) 32px 88px / 240px 220px;
  opacity: 0.42;
  animation: starsFar 56s linear infinite;
}

.stars-near {
  background:
    radial-gradient(circle, rgba(255,255,255,0.96) 0 1.3px, transparent 2.2px) 26px 64px / 220px 190px,
    radial-gradient(circle, rgba(145,232,255,0.90) 0 1.2px, transparent 2.1px) 98px 26px / 280px 240px,
    radial-gradient(circle, rgba(246,200,255,0.82) 0 1.1px, transparent 2px) 130px 110px / 340px 300px;
  opacity: 0.58;
  animation: starsNear 34s linear infinite;
}

.constellation-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.74;
  mix-blend-mode: screen;
  pointer-events: none;
}

.meteor {
  position: absolute;
  width: 24rem;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), rgba(145,232,255,0.78), transparent);
  filter: drop-shadow(0 0 12px rgba(125, 230, 255, 0.8));
  opacity: 0;
  pointer-events: none;
  transform: rotate(-24deg);
}

.meteor-one {
  top: 22%;
  left: 66%;
  animation: meteorOne 12s ease-in-out infinite;
}

.meteor-two {
  top: 68%;
  left: 18%;
  width: 18rem;
  animation: meteorTwo 17s ease-in-out infinite 4s;
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(58deg) translateY(12%);
  transform-origin: bottom center;
  opacity: 0.38;
  animation: gridFlow 9s linear infinite;
}

.noise {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  z-index: 3;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.7) 45%, transparent 52%),
    repeating-radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  animation: shimmer 5.8s steps(6) infinite;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -2;
}

.orb-one {
  top: -12vmax;
  left: -8vmax;
  background: var(--glow);
  animation: floatOne 17s ease-in-out infinite;
}

.orb-two {
  right: -13vmax;
  bottom: -11vmax;
  background: var(--pink);
  animation: floatTwo 21s ease-in-out infinite;
}

.orb-three {
  width: 24vmax;
  height: 24vmax;
  left: 48%;
  top: 58%;
  background: var(--violet);
  animation: floatThree 14s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(94vw, 1180px);
  min-height: min(68vh, 720px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(2.5rem, 8vw, 7rem) 0;
  text-align: center;
}

.eyebrow,
.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  margin-bottom: clamp(0.45rem, 1.6vw, 0.85rem);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.subtitle {
  margin-top: clamp(0.85rem, 2.2vw, 1.15rem);
  max-width: min(34rem, 86vw);
  font-size: clamp(0.96rem, 2.6vw, 1.1rem);
  overflow-wrap: anywhere;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.11), transparent 35%),
    radial-gradient(ellipse at 50% 52%, rgba(125, 230, 255, 0.24), transparent 36%),
    radial-gradient(ellipse at 51% 58%, rgba(255, 60, 210, 0.13), transparent 45%);
  filter: blur(18px);
  opacity: 0.82;
  animation: titleAura 11s ease-in-out infinite alternate;
  pointer-events: none;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4.1rem, 13vw, 11.5rem);
  line-height: 0.9;
  padding-bottom: 0.08em;
  letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 0%, #effbff 40%, #f5fdff 72%, #fdf0ff 100%);
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 28px rgba(72, 218, 255, 0.34),
    0 0 90px rgba(255, 58, 213, 0.22);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(2.25rem, 6vh, 4.6rem);
  flex-wrap: wrap;
}

.google-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.94rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 241, 255, 0.34);
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.26),
    inset 0 0 24px rgba(255,255,255,0.04);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.google-button:hover,
.secondary-button:hover {
  border-color: rgba(185, 241, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  transform: translateY(-1px);
}

.secondary-button {
  color: rgba(238, 246, 255, 0.84);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-90px, 70px, 0) rotate(1deg); }
}

@keyframes nebulaDrift {
  from { transform: translate3d(-2vw, -1vh, 0) rotate(-10deg) scale(1); }
  to { transform: translate3d(2vw, 2vh, 0) rotate(-4deg) scale(1.08); }
}

@keyframes starsFar {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-110px, 70px, 0); }
}

@keyframes starsNear {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-190px, 120px, 0); }
}

@keyframes meteorOne {
  0%, 58%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  62% { opacity: 1; }
  72% { opacity: 0; transform: translate3d(-48vw, 28vh, 0) rotate(-24deg); }
}

@keyframes meteorTwo {
  0%, 68%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  72% { opacity: 0.82; }
  82% { opacity: 0; transform: translate3d(44vw, -24vh, 0) rotate(-24deg); }
}

@keyframes titleAura {
  from { transform: scale(0.96); opacity: 0.68; }
  to { transform: scale(1.06); opacity: 0.92; }
}

@keyframes gridFlow {
  from { background-position: 0 0; }
  to { background-position: 0 52px; }
}

@keyframes shimmer {
  0%, 100% { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  50% { transform: translate3d(2%, 1%, 0) rotate(1deg); }
}

@keyframes floatOne {
  0%, 100% { transform: translate(0, 0) scale(1); }
  47% { transform: translate(8vw, 9vh) scale(1.18); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  53% { transform: translate(-10vw, -7vh) scale(0.9); }
}

@keyframes floatThree {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-42%, -62%) scale(1.22); }
}

@media (max-width: 620px) {
  .hero {
    min-height: 74vh;
  }

  h1 {
    font-size: clamp(3.65rem, 21vw, 7rem);
  }

  .google-button,
  .secondary-button {
    width: min(100%, 20rem);
  }
}

@media (max-width: 640px) {
  .hero {
    border-radius: 24px;
  }

  .grid {
    background-size: 38px 38px;
  }
}
