:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-deep: #02070b;
  --text: #f6f8f8;
  --muted: #b1c0c7;
  --quiet: #70818a;
  --line: rgba(220, 239, 246, 0.16);
  --panel: rgba(230, 245, 250, 0.08);
  --panel-strong: rgba(230, 245, 250, 0.13);
  --accent: #9ed9df;
  --accent-deep: #143f47;
  --warm: #f1b875;
  --radius: 22px;
  --max: 1180px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 14%, rgba(158, 217, 223, 0.18), transparent 28rem),
    radial-gradient(circle at 8% 86%, rgba(241, 184, 117, 0.11), transparent 30rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, #122128 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.2px);
  background-position: 10px 18px, 94px 72px;
  background-size: 138px 138px, 214px 214px;
  opacity: 0.26;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100dvh;
  padding: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 44px), var(--max));
  min-height: 68px;
  padding: 22px 0 12px;
  transform: translateX(-50%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

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

.nav-links a:active,
.button:active {
  transform: translateY(1px);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(116px, 12vw, 152px) max(22px, calc((100vw - var(--max)) / 2)) clamp(42px, 8vw, 90px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.92) 0%, rgba(2, 7, 11, 0.7) 30%, rgba(2, 7, 11, 0.22) 62%, rgba(2, 7, 11, 0.36) 100%),
    linear-gradient(180deg, rgba(2, 7, 11, 0.55) 0%, transparent 30%, rgba(2, 7, 11, 0.2) 58%, rgba(2, 7, 11, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 6.4vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 29rem;
  margin-bottom: 30px;
  color: #d6e1e5;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 760;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button.primary {
  color: #061014;
  background: var(--accent);
  box-shadow: 0 24px 62px rgba(77, 160, 169, 0.24);
}

.button.primary:hover {
  background: #b8edf0;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button.secondary:hover {
  border-color: rgba(220, 239, 246, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.1), transparent 44%, rgba(2, 7, 11, 0.28)),
    linear-gradient(180deg, transparent 62%, rgba(2, 7, 11, 0.34));
}

.hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}

.moon-notes,
.closing,
.site-footer {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.moon-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(34px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.note.intro {
  position: sticky;
  top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.note h2,
.closing h2 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.note p,
.closing p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.note-stack {
  display: grid;
  gap: 14px;
}

.note-stack .note {
  min-height: 156px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--panel-strong), var(--panel)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.note-stack .note:nth-child(2) {
  transform: translateX(-32px);
  background:
    radial-gradient(circle at 18% 10%, rgba(158, 217, 223, 0.17), transparent 22rem),
    linear-gradient(135deg, rgba(158, 217, 223, 0.12), rgba(255, 255, 255, 0.04));
}

.note-stack .note:nth-child(3) {
  transform: translateX(28px);
}

.note span {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.note p {
  max-width: 34rem;
  margin-bottom: 0;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 12%, rgba(241, 184, 117, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.closing h2 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 4vw, 4.9rem);
}

.closing p {
  max-width: 32rem;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 10px;
  color: var(--quiet);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art,
  .note-stack .note,
  .closing {
    animation: rise-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-art {
    animation-delay: 110ms;
  }

  .note-stack .note:nth-child(1) {
    animation-delay: 70ms;
  }

  .note-stack .note:nth-child(2) {
    animation-delay: 130ms;
  }

  .note-stack .note:nth-child(3) {
    animation-delay: 190ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (max-width: 1180px) {
  .hero {
    min-height: 100dvh;
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(3.6rem, 18vw, 5.6rem);
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 62px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .nav-links a:first-child {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .moon-notes {
    grid-template-columns: 1fr;
  }

  .note.intro {
    position: static;
  }

  .note-stack .note,
  .note-stack .note:nth-child(2),
  .note-stack .note:nth-child(3) {
    transform: none;
  }

  .closing,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .hero-actions,
  .hero-actions .button,
  .closing .button {
    width: 100%;
  }

  .hero {
    min-height: 92dvh;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 7, 11, 0.9) 0%, rgba(2, 7, 11, 0.62) 55%, rgba(2, 7, 11, 0.28) 100%),
      linear-gradient(180deg, rgba(2, 7, 11, 0.54) 0%, transparent 28%, rgba(2, 7, 11, 0.2) 52%, rgba(2, 7, 11, 0.78) 100%);
  }

  .hero-art img {
    object-position: 64% center;
  }

  .note-stack .note,
  .closing {
    padding: 22px;
    border-radius: 18px;
  }
}
