/* Midnight OS — Landing Page Styles */
/* Warm orange on midnight navy. Marmalade's domain. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --bg-deep: #0D1B2A;
  --bg-card: #122233;
  --bg-card-hover: #162a40;
  --orange: #FF8C42;
  --orange-glow: rgba(255, 140, 66, 0.15);
  --cream: #FFF8F0;
  --cream-dim: rgba(255, 248, 240, 0.6);
  --cream-muted: rgba(255, 248, 240, 0.35);
  --border: rgba(255, 140, 66, 0.12);
  --border-bright: rgba(255, 140, 66, 0.3);
  --shadow: rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p { font-size: 1.05rem; color: var(--cream-dim); }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--orange-glow); }
  50%       { box-shadow: 0 0 30px 8px var(--orange-glow); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: gentlePulse 3s ease-in-out infinite;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--cream); text-decoration: none; }
.nav__cta {
  background: var(--orange) !important;
  color: var(--bg-deep) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 140, 66, 0.35);
  text-decoration: none !important;
  color: var(--bg-deep) !important;
}
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,140,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,140,66,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-glow);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero__headline {
  animation: fadeUp 0.6s 0.1s ease both;
  margin-bottom: 20px;
}
.hero__headline em {
  font-style: italic;
  color: var(--orange);
}
.hero__sub {
  animation: fadeUp 0.6s 0.2s ease both;
  font-size: 1.15rem;
  color: var(--cream-dim);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero__marmalade {
  animation: fadeIn 0.8s 0.4s ease both;
}
.hero__marmalade img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.hero__marmalade-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-muted);
  margin-top: 12px;
  font-style: italic;
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 100px; }
  .hero__marmalade { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn--primary {
  background: var(--orange);
  color: var(--bg-deep);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
  text-decoration: none;
  color: var(--bg-deep);
}
.btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-bright);
}
.btn--secondary:hover {
  background: var(--orange-glow);
  text-decoration: none;
  color: var(--cream);
}
.btn--ghost {
  background: transparent;
  color: var(--orange);
  padding: 14px 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.btn--ghost:hover { color: var(--cream); }

/* ── Problem Section ── */
.problem { background: linear-gradient(180deg, var(--bg-deep) 0%, #0a1520 100%); }
.problem__inner { max-width: 740px; }
.problem__headline {
  margin-bottom: 32px;
  color: var(--cream);
}
.problem__body {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 48px;
}
.problem__quote {
  background: var(--bg-card);
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin-top: 32px;
  position: relative;
}
.problem__quote-label {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.problem__quote p {
  font-size: 1.05rem;
  color: var(--cream);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  line-height: 1.7;
}
.problem__quote p::before { content: '"'; color: var(--orange); font-size: 1.4em; }
.problem__quote p::after  { content: '"'; color: var(--orange); font-size: 1.4em; }

/* ── Feature Sections ── */
.feature {
  border-top: 1px solid var(--border);
}
.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.feature__content { padding-top: 8px; }
.feature__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 16px;
}
.feature__headline { margin-bottom: 20px; color: var(--cream); }
.feature__body { margin-bottom: 28px; }
.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--cream-dim);
}
.feature__list li::before {
  content: '→';
  color: var(--orange);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature__example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.example__header {
  background: rgba(255, 140, 66, 0.07);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.example__dots { display: flex; gap: 5px; }
.example__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.4;
}
.example__dots span:first-child { opacity: 1; }
.example__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg--user { align-items: flex-end; }
.msg--app  { align-items: flex-start; }
.msg__bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.msg--user .msg__bubble {
  background: var(--orange);
  color: var(--bg-deep);
  border-bottom-right-radius: 4px;
}
.msg--app .msg__bubble {
  background: var(--bg-card-hover);
  color: var(--cream);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg__label {
  font-size: 0.72rem;
  color: var(--cream-muted);
  margin-top: 2px;
  padding: 0 4px;
}
.msg--app .msg__label { color: var(--orange); opacity: 0.7; }

@media (max-width: 768px) {
  .feature__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Pattern Tracker ── */
.patterns__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.pattern-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.pattern-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.pattern-card__trigger {
  font-size: 0.82rem;
  color: var(--cream-muted);
  margin-bottom: 8px;
}
.pattern-card__loop {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 8px;
  font-weight: 600;
}
.pattern-card__arrow {
  color: var(--orange);
  font-size: 0.8rem;
}
.pattern__report {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 28px 32px;
}
.pattern__report-label {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.pattern__report p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  font-style: italic;
  line-height: 1.7;
}

/* ── Journaling Packs ── */
.packs { background: linear-gradient(180deg, #0a1520 0%, var(--bg-deep) 100%); }
.packs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.pack-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.pack-card__icon {
  width: 44px;
  height: 44px;
  background: var(--orange-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pack-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 600;
}
.pack-card__desc {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
}
.pack-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 4px 12px;
  align-self: flex-start;
}

/* ── Meet Marmalade ── */
.marmalade__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}
.marmalade__img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.4);
}
.marmalade__headline { margin-bottom: 20px; color: var(--cream); }
.marmalade__body { margin-bottom: 32px; }
.marmalade__quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .marmalade__inner { grid-template-columns: 1fr; }
  .marmalade__img { max-width: 280px; }
}

/* ── Reset Kit ── */
.kit { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.kit__badge {
  display: inline-block;
  background: var(--orange);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.kit__price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--cream);
  font-weight: 700;
  margin: 8px 0 20px;
}
.kit__price span {
  font-size: 1rem;
  color: var(--cream-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.kit__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.kit__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--cream-dim);
}
.kit__features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}
.kit__visual {
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2e45 100%);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.kit__visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,140,66,0.12) 0%, transparent 70%);
}
.kit__product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 8px;
}
.kit__product-sub {
  color: var(--cream-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.kit__contents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kit__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--cream-dim);
  padding: 10px 14px;
  background: rgba(255, 248, 240, 0.04);
  border-radius: 8px;
}
.kit__item-icon { font-size: 1.1rem; flex-shrink: 0; }
@media (max-width: 768px) {
  .kit__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Creator Marketplace ── */
.creator { text-align: center; }
.creator__headline { margin-bottom: 20px; }
.creator__sub {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}
.creator__badge {
  display: inline-block;
  background: var(--orange-glow);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 24px;
}

/* ── Waitlist Form ── */
.waitlist {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.waitlist input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  color: var(--cream);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist input::placeholder { color: var(--cream-muted); }
.waitlist input:focus { border-color: var(--orange); }
.waitlist button {
  padding: 14px 22px;
  white-space: nowrap;
}
#waitlist-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  margin-top: 12px;
}
#waitlist-success.show { display: block; }
#waitlist-success p { color: var(--cream); font-size: 0.95rem; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--cream-muted);
  margin-top: 2px;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: var(--cream-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--orange); }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}