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

:root {
  --bg: #09070d;
  --surface: #140f1f;
  --surface-soft: #1b1626;
  --border-subtle: rgba(111, 74, 166, 0.35);
  --border-strong: rgba(212, 106, 31, 0.7);
  --primary: #d46a1f;
  --primary-soft: rgba(212, 106, 31, 0.15);
  --accent-purple: #6f4aa6;
  --text: #f3eef8;
  --text-soft: #d7c9f2;
  --text-muted: #9a8db1;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.75);
  --shadow-subtle: 0 10px 36px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.18s ease-out;
}

[data-theme="light"] {
  --bg: #f5efe6;
  --surface: #ffffff;
  --surface-soft: #f0e6ff;
  --border-subtle: rgba(111, 74, 166, 0.3);
  --border-strong: rgba(212, 106, 31, 0.55);
  --primary: #b85510;
  --primary-soft: rgba(184, 85, 16, 0.12);
  --accent-purple: #5a3a92;
  --text: #1a0a22;
  --text-soft: #3a234e;
  --text-muted: #6a5a83;
  --shadow-soft: 0 18px 60px rgba(90, 58, 146, 0.18);
  --shadow-subtle: 0 10px 36px rgba(90, 58, 146, 0.1);
}

html, body {
  height: 100%;
}

body {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--transition-fast), color var(--transition-fast);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

input {
  font: inherit;
  color: inherit;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(111, 74, 166, 0.7);
  background: rgba(12, 10, 20, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="text"] {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(90, 58, 146, 0.35);
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  transition: transform 0.1s ease-out, box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

button:active {
  transform: scale(0.97);
}

.primary-btn {
  background: var(--primary);
  color: #100a10;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 14px 40px rgba(212, 106, 31, 0.4);
}

.primary-btn:hover {
  background: #f08a33;
}

[data-theme="light"] .primary-btn {
  color: #fff7f0;
}

.ghost-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(111, 74, 166, 0.55);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.landing {
  min-height: 100vh;
  padding: 2.5rem 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  isolation: isolate;
  background: radial-gradient(ellipse at top, #1a0533 0%, #09070d 55%, #050308 100%);
}

[data-theme="light"] .landing {
  background: radial-gradient(ellipse at top, #eadcf8 0%, #f5efe6 55%, #ece2d8 100%);
}

.landing::before,
.landing::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}

.landing::before {
  background:
    radial-gradient(circle at 20% 24%, rgba(111, 74, 166, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 82% 78%, rgba(212, 106, 31, 0.18) 0%, transparent 28%);
  filter: blur(24px);
  opacity: 0.9;
  animation: fogFloatOne 18s ease-in-out infinite alternate;
}

.landing::after {
  background:
    radial-gradient(circle at 28% 84%, rgba(255, 255, 255, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 52% 50%, rgba(111, 74, 166, 0.16) 0%, transparent 26%),
    radial-gradient(circle at 10% 10%, rgba(212, 106, 31, 0.1) 0%, transparent 24%);
  filter: blur(32px);
  opacity: 0.85;
  animation: fogFloatTwo 24s ease-in-out infinite alternate;
}

@keyframes fogFloatOne {
  from { transform: translate3d(-18px, 8px, 0) scale(1); }
  to { transform: translate3d(24px, -14px, 0) scale(1.08); }
}

@keyframes fogFloatTwo {
  from { transform: translate3d(14px, -10px, 0) scale(1.02); }
  to { transform: translate3d(-20px, 12px, 0) scale(1.1); }
}

.landing-header,
.hero,
.section-grid,
.story-band,
.cta-panel,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.7rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.hero-text {
  color: var(--text-soft);
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-points {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✦";
  color: var(--primary);
  margin-right: 0.4rem;
}

.waitlist-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.5rem;
}

.waitlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto;
  gap: 0.75rem;
}

.waitlist-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-message {
  font-size: 0.88rem;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.form-message[data-type="success"] {
  color: #b2f2c7;
  background: rgba(80, 200, 120, 0.12);
}

.form-message[data-type="error"] {
  color: #f5abab;
  background: rgba(220, 80, 80, 0.12);
}

[data-theme="light"] .form-message[data-type="success"] {
  color: #1d6b3d;
  background: rgba(80, 200, 120, 0.16);
}

[data-theme="light"] .form-message[data-type="error"] {
  color: #9d1e1e;
  background: rgba(220, 80, 80, 0.12);
}

.hero-card {
  position: relative;
  padding-top: 6.8rem;
}

.moon-scene {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 170px;
  pointer-events: none;
  z-index: 2;
}

.moon-glow {
  position: absolute;
  inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 94, 0.24) 0%, rgba(255, 200, 40, 0.08) 45%, transparent 72%);
  animation: moonPulse 5s ease-in-out infinite alternate;
}

.moon-fog-clip {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
}

.moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #f4d85d 42%, #c89f22 78%, #8b6a0e);
  box-shadow:
    0 0 30px rgba(245, 216, 74, 0.55),
    0 0 70px rgba(245, 216, 74, 0.22),
    inset -8px -6px 18px rgba(120, 80, 0, 0.35);
  animation: moonFloat 8s ease-in-out infinite alternate;
}

.moon::before,
.moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(160, 105, 10, 0.25);
}

.moon::before {
  width: 22%;
  height: 22%;
  top: 30%;
  left: 55%;
}

.moon::after {
  width: 13%;
  height: 13%;
  top: 55%;
  left: 28%;
}

.moon-fog {
  position: absolute;
  border-radius: 40%;
  will-change: transform, opacity;
}

.moon-fog--1 {
  width: 300%;
  height: 40%;
  top: 35%;
  left: -300%;
  background: radial-gradient(ellipse at center, rgba(235, 225, 255, 0.82) 0%, rgba(215, 200, 255, 0.5) 45%, transparent 70%);
  filter: blur(6px);
  animation: fogPass 6s linear infinite;
}

.moon-fog--2 {
  width: 280%;
  height: 32%;
  top: 52%;
  left: -280%;
  background: radial-gradient(ellipse at center, rgba(225, 212, 255, 0.68) 0%, rgba(205, 190, 250, 0.38) 45%, transparent 70%);
  filter: blur(9px);
  animation: fogPass 10s linear infinite;
  animation-delay: -3.5s;
}

.moon-fog--3 {
  width: 260%;
  height: 28%;
  top: 22%;
  left: -260%;
  background: radial-gradient(ellipse at center, rgba(245, 238, 255, 0.6) 0%, rgba(220, 208, 252, 0.34) 45%, transparent 70%);
  filter: blur(5px);
  animation: fogPass 14s linear infinite;
  animation-delay: -6s;
}

@keyframes moonFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(-8px); }
}

@keyframes moonPulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes fogPass {
  0% { transform: translateX(0%); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(220%); opacity: 0; }
}

.hero-card-glow {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at top, rgba(111, 74, 166, 0.55), transparent 65%),
    radial-gradient(circle at bottom, rgba(212, 106, 31, 0.32), transparent 60%);
  filter: blur(26px);
  opacity: 0.82;
  z-index: 0;
}

.preview-window {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(111, 74, 166, 0.32), rgba(10, 7, 18, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.25rem 1.1rem;
  max-width: 420px;
  margin-left: auto;
  backdrop-filter: blur(12px);
}

[data-theme="light"] .preview-window {
  background: radial-gradient(circle at top, rgba(111, 74, 166, 0.12), rgba(255, 252, 248, 0.97));
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(243, 238, 248, 0.4);
}

[data-theme="light"] .preview-dot {
  background: rgba(60, 40, 100, 0.25);
}

.preview-label {
  margin-left: auto;
}

.preview-panel {
  background: rgba(7, 4, 12, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(58, 38, 93, 0.9);
  padding: 0.9rem 0.9rem 0.8rem;
}

[data-theme="light"] .preview-panel {
  background: rgba(255, 252, 248, 0.95);
  border-color: rgba(90, 58, 146, 0.3);
}

.preview-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.preview-chip {
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  background: rgba(9, 7, 13, 0.96);
  border: 1px solid rgba(240, 230, 211, 0.14);
  font-size: 0.78rem;
  color: var(--text-muted);
}

[data-theme="light"] .preview-chip {
  background: rgba(240, 234, 255, 0.9);
  border-color: rgba(90, 58, 146, 0.2);
}

.preview-chip--ghost {
  border-color: rgba(212, 106, 31, 0.7);
}

.preview-time {
  font-variant-numeric: tabular-nums;
}

.preview-post {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.65rem 0.55rem;
  border-radius: 14px;
}

.preview-post + .preview-post {
  margin-top: 0.15rem;
  background: linear-gradient(90deg, rgba(111, 74, 166, 0.08), rgba(212, 106, 31, 0.04));
}

.preview-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(9, 7, 13, 0.95);
  flex: 0 0 34px;
}

.preview-avatar--purple {
  background: radial-gradient(circle at 25% 15%, #f3eef8, #6f4aa6);
}

.preview-avatar--orange {
  background: radial-gradient(circle at 25% 15%, #ffe1c1, #d46a1f);
}

.preview-name {
  font-weight: 600;
}

.preview-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.preview-copy {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.preview-footer-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.section-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: rgba(11, 8, 18, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 63, 121, 0.85);
  padding: 1.15rem 1.2rem 1.1rem;
  box-shadow: var(--shadow-subtle);
  font-size: 0.96rem;
}

[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 58, 146, 0.3);
}

.feature-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.feature-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--text-soft);
}

.story-band {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.story-copy h2 {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.story-copy p {
  color: var(--text-soft);
  max-width: 34rem;
}

.story-stats {
  display: grid;
  gap: 0.75rem;
}

.stat-card {
  background: rgba(11, 7, 20, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(79, 63, 121, 0.9);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 58, 146, 0.25);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.stat-card span {
  color: var(--text-muted);
}

.cta-panel {
  margin-top: 2rem;
}

.cta-panel-inner {
  max-width: 760px;
  padding: 1.3rem 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, rgba(11, 7, 20, 0.96), rgba(212, 106, 31, 0.18));
  box-shadow: var(--shadow-subtle);
  display: grid;
  gap: 0.5rem;
}

[data-theme="light"] .cta-panel-inner {
  background: linear-gradient(120deg, rgba(255, 252, 248, 0.97), rgba(212, 106, 31, 0.08));
}

.cta-panel-inner h2 {
  font-size: 1.35rem;
}

.cta-panel-inner p {
  color: var(--text-soft);
  max-width: 40rem;
}

.waitlist-form--bottom {
  margin-top: 0.9rem;
}

.landing-footer {
  margin-top: 2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(69, 58, 98, 0.9);
  border-radius: 999px;
}

@media (max-width: 960px) {
  .landing {
    padding: 2rem 1.4rem 1.7rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-window {
    margin: 1.2rem auto 0;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .landing {
    padding: 1.75rem 1.1rem 1.4rem;
    gap: 2rem;
  }

  .waitlist-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-points {
    font-size: 0.9rem;
  }

  .moon-scene {
    width: 136px;
    height: 136px;
    top: -1.2rem;
  }

  .hero-card {
    padding-top: 5.2rem;
  }
}