:root {
  --deep-blue: #0B0D19;
  --white: #FDFDFD;
  --dark-sky: #27354A;
  --muted-blue: #596379;
  --gray: #979AA4;
  --silver: #C7C8C9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--deep-blue);
  color: var(--white);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Stars ---------- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star-layer {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  animation: drift linear infinite;
  will-change: transform;
}
@keyframes drift {
  to { transform: translateX(-50%); }
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  animation: twinkle var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, .6); }
  50% { opacity: calc(var(--o, .6) * .25); }
}

/* ---------- Moon ---------- */
.moon {
  position: fixed;
  top: 50%;
  left: 0;
  width: min(110vh, 70vw);
  aspect-ratio: 1;
  transform: translate(-52%, -50%);
  z-index: 1;
  filter: drop-shadow(0 0 60px rgba(199, 200, 201, .18))
          drop-shadow(0 0 140px rgba(89, 99, 121, .25));
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.moon svg { width: 100%; height: 100%; display: block; }
@keyframes rise {
  from { opacity: 0; transform: translate(-60%, -50%); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; right: 0;
  padding: 28px 40px;
  display: flex;
  gap: 32px;
  z-index: 10;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10vw;
}
.hero-content { max-width: 560px; }
.eyebrow {
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 12px;
}
.title {
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.title span { display: block; color: var(--silver); font-weight: 300; }
.tagline {
  margin-top: 28px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.7;
  max-width: 380px;
}
.orb {
  /* Light source direction: the moon sits to the left (above on mobile). */
  --lx: -1;
  --ly: 0;
  margin-top: 48px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at calc(50% - var(--lx) * 30%) calc(50% - var(--ly) * 30%),
              #151C27 0%, var(--deep-blue) 65%);
  color: var(--silver);
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  box-shadow:
    /* crisp rim where the moonlight wraps the edge */
    inset calc(var(--lx) * -3px) calc(var(--ly) * -3px) 2px -1px rgba(253, 253, 253, .85),
    inset calc(var(--lx) * -14px) calc(var(--ly) * -14px) 22px -10px rgba(218, 220, 224, .45),
    /* halo spilling around the back */
    calc(var(--lx) * 18px) calc(var(--ly) * 18px) 40px rgba(218, 220, 224, .35),
    calc(var(--lx) * 30px) calc(var(--ly) * 30px) 90px rgba(158, 165, 174, .3),
    0 0 50px rgba(89, 99, 121, .35);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, color .4s;
}
.orb:hover {
  transform: scale(1.06);
  color: var(--white);
  box-shadow:
    inset calc(var(--lx) * -3px) calc(var(--ly) * -3px) 2px -1px rgba(253, 253, 253, 1),
    inset calc(var(--lx) * -18px) calc(var(--ly) * -18px) 26px -10px rgba(218, 220, 224, .6),
    calc(var(--lx) * 22px) calc(var(--ly) * 22px) 50px rgba(218, 220, 224, .5),
    calc(var(--lx) * 36px) calc(var(--ly) * 36px) 120px rgba(158, 165, 174, .4),
    0 0 70px rgba(89, 99, 121, .5);
}

/* ---------- Document pages ---------- */
.page {
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: min(640px, 100%);
  margin-right: 10vw;
  padding: 140px 0 96px;
}
.page h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.page .updated {
  margin-top: 12px;
  color: var(--muted-blue);
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.page h2 {
  margin-top: 44px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--silver);
}
.page p, .page li {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.75;
}
.page p + p { margin-top: 14px; }
.page ul { padding-left: 20px; }
.page a { color: var(--white); text-underline-offset: 3px; }
.card {
  margin-top: 40px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(11, 13, 25, .72);
  border: 1px solid rgba(89, 99, 121, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card > h2:first-child { margin-top: 0; }

footer {
  position: relative;
  z-index: 2;
  padding: 0 10vw 32px;
  text-align: right;
  color: var(--muted-blue);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .nav { left: 0; justify-content: center; padding: 24px 16px; }
  .nav a { color: var(--dark-sky); font-weight: 500; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--deep-blue); }
  .moon {
    width: 150vw;
    top: 0;
    left: 50%;
    transform: translate(-50%, -62%);
    animation: none;
  }
  .hero {
    justify-content: center;
    text-align: center;
    align-items: flex-end;
    padding: 0 16px 80px;
  }
  .tagline { margin-left: auto; margin-right: auto; }
  .orb { --lx: 0; --ly: -1; }
  .page { margin: 0; padding: 45vw 16px 64px; }
  .card { padding: 28px 20px; }
  footer { text-align: center; padding: 0 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .star, .star-layer, .moon { animation: none; }
}
