/* RESET & TOKENS */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #09070d;
  --bg-soft: #120d18;
  --surface: #140f1f;
  --surface-soft: #1b1626;
  --border-subtle: rgba(111, 74, 166, 0.35);
  --border-strong: rgba(212, 106, 31, 0.7);

  --primary: #d46a1f;       /* main CTA orange */
  --primary-soft: rgba(212, 106, 31, 0.12);
  --accent-purple: #6f4aa6; /* ambient glow */
  --accent-purple-soft: rgba(111, 74, 166, 0.35);

  --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"] {
  /* optional light mode if you wire it later */
  --bg: #f5efe6;
  --bg-soft: #f4f0ff;
  --surface: #ffffff;
  --surface-soft: #f0e6ff;
  --border-subtle: rgba(111, 74, 166, 0.3);
  --border-strong: rgba(212, 106, 31, 0.6);
  --text: #1a0a22;
  --text-soft: #3a234e;
  --text-muted: #6a5a83;
}

/* BASE ELEMENTS */

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

input {
  font: inherit;
  color: inherit;
}

/* FORM CONTROLS */

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);
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

/* BUTTONS */

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;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 14px 40px rgba(212, 106, 31, 0.45);
}

.primary-btn:hover {
  background: #f08a33;
}

.ghost-btn {
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  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);
}

/* LAYOUT: LANDING */

.landing {
  min-height: 100vh;
  padding: 2.5rem 1.75rem 2rem;
  background:
    radial-gradient(ellipse at top, #1a0533 0%, #09070d 55%, #050308 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Fog layers (subtle, slow) */

.fog-layer {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 20% 0%, rgba(111, 74, 166, 0.9), transparent 65%),
    radial-gradient(circle at 80% 100%, rgba(212, 106, 31, 0.7), transparent 65%);
  filter: blur(26px);
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

.fog-layer--mid {
  opacity: 0.18;
  animation: fog-drift 60s linear infinite alternate;
}

.fog-layer--back {
  opacity: 0.12;
  animation: fog-drift 80s linear infinite alternate-reverse;
}

.fog-layer--front {
  opacity: 0.22;
  animation: fog-drift 45s linear infinite alternate;
}

@keyframes fog-drift {
  from {
    transform: translate3d(-20px, 0, 0);
  }
  to {
    transform: translate3d(32px, -12px, 0);
  }
}

/* HEADER / BRAND */

.landing-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.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 */

.hero {
  position: relative;
  z-index: 1;
  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 */

.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);
}

/* PREVIEW / HERO CARD */

.hero-card {
  position: relative;
}

.hero-card-glow {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at top, rgba(111, 74, 166, 0.6), transparent 65%),
    radial-gradient(circle at bottom, rgba(212, 106, 31, 0.35), transparent 60%);
  filter: blur(26px);
  opacity: 0.85;
  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);
}

.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);
}

.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;
}

.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;
}

.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;
}

/* FEATURES SECTION */

.section-grid {
  position: relative;
  z-index: 1;
  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;
}

.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 */

.story-band {
  position: relative;
  z-index: 1;
  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;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.stat-card span {
  color: var(--text-muted);
}

/* CTA PANEL */

.cta-panel {
  position: relative;
  z-index: 1;
  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;
}

.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;
}

/* FOOTER */

.landing-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* UTILITIES */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* SCROLLBAR (optional) */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(69, 58, 98, 0.9);
  border-radius: 999px;
}

/* RESPONSIVE */

@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;
  }
}