:root {
  --night: #070b14;
  --night-elevated: #0d1524;
  --ink: #e8eef6;
  --ink-muted: #8b97a8;
  --ink-subtle: #5c6a7c;
  --paper: #e6eaf1;
  --paper-ink: #0c1220;
  --solar: #c9b07a;
  --glow: #1e3d6b;
  --line: color-mix(in oklab, var(--ink) 14%, transparent);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --tracking-kicker: 0.2em;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(72rem, calc(100% - 4rem)); }
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 200ms var(--ease-out-soft), border-color 200ms var(--ease-out-soft);
}
.site-header.is-solid {
  background: color-mix(in oklab, var(--night) 80%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 640px) {
  .nav-links { display: flex; }
}
.cta-label-short { display: inline; }
.cta-label-long { display: none; }
@media (min-width: 640px) {
  .cta-label-short { display: none; }
  .cta-label-long { display: inline; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  background: var(--ink);
  color: var(--night);
  font-size: 0.9375rem;
  font-weight: 500;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-paper {
  background: var(--paper-ink);
  color: var(--paper);
  border-color: var(--paper-ink);
}
.btn svg { width: 1rem; height: 1rem; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}
.logo .word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo.sm .word { font-size: 1.125rem; }
.logo .mark {
  display: block;
  width: 1.85rem;
  height: auto;
}
.logo.sm .mark { width: 1.45rem; }
.logo.md .mark { width: 1.95rem; }
.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
}
.lockup-stacked {
  display: block;
  width: min(20rem, 82vw);
  height: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.splash-light {
  pointer-events: none;
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in oklab, var(--glow) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 20% at 50% 18%, color-mix(in oklab, var(--solar) 12%, transparent), transparent 70%);
}
.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
.hero-inner {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 4rem;
}
.tagline {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-style: italic;
  color: var(--ink-muted);
}
.lede {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  font-size: 1.0625rem;
}
.meta-row {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.invite-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 640px) {
  .section { padding: 6.5rem 0; }
}
.section h2 {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
}
.section .sub {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
}
.rule-top { border-top: 1px solid var(--line); }
.elevated { background: var(--night-elevated); }

.why-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 5fr 7fr; }
}
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}
.why-list li:first-child { border-top: 0; padding-top: 0; }
.why-list h3,
.product-grid h3,
.luna-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.why-list p { margin: 0.5rem 0 0; max-width: 42rem; color: var(--ink-muted); }

.product-grid,
.luna-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .luna-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-grid article,
.luna-grid article {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.product-grid p,
.luna-grid p { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--ink-muted); }

.show-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .show-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.show-row h2 { max-width: none; font-size: clamp(1.875rem, 5vw, 3rem); }

.solar {
  background: var(--paper);
  color: var(--paper-ink);
  text-align: center;
  padding: 5rem 0;
}
@media (min-width: 640px) {
  .solar { padding: 7rem 0; }
}
.solar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
}
.solar p {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: color-mix(in oklab, var(--paper-ink) 75%, transparent);
}
.solar .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  background: var(--night);
}
.site-footer.paper {
  background: var(--paper);
  color: color-mix(in oklab, var(--paper-ink) 70%, transparent);
  border-top: 0;
}
.foot-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .foot-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a:hover { color: var(--ink); }
.site-footer.paper a:hover { color: var(--paper-ink); }
.legal-note {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-subtle);
}
.site-footer.paper .legal-note {
  color: color-mix(in oklab, var(--paper-ink) 50%, transparent);
}

/* Privacy */
.legal-main { padding: 7rem 0 6rem; max-width: 42rem; }
.legal-main h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
}
.legal-main p { color: var(--ink-muted); }
.legal-main a { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
