/* SceneWeaver marketing site — shared stylesheet.
   Palette and type pulled directly from the app icon: deep navy ground,
   warm gilt accents, off-white body text. Serif headlines (Playfair) echo
   the "first chapter of a novel" feel; sans body (Inter) keeps reading
   modern and clean. Mobile-first, single-column at narrow widths,
   constrained max-width on wide screens for line-length comfort. */

/* ----- Resets & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #ECE5D2;
  background: radial-gradient(ellipse at 50% -10%, #2A3E63 0%, #142039 60%, #0B1428 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #E8C97A; text-decoration: none; }
a:hover, a:focus { color: #F5E6B8; text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #F5E6B8;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 1.5em; }
h3 { font-size: 1.25rem; color: #ECE5D2; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { color: #F5E6B8; font-weight: 600; }
hr {
  border: none;
  border-top: 1px solid rgba(217,184,115,0.2);
  margin: 3rem 0;
}

/* ----- Layout shell ----- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding: 2rem 0 5rem; }

/* ----- Header / nav ----- */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(217,184,115,0.18);
  background: rgba(11,20,40,0.55);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: #F5E6B8;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { text-decoration: none; color: #F5E6B8; }

nav.primary ul {
  display: flex; gap: 1.5rem; padding: 0; margin: 0;
  list-style: none; flex-wrap: wrap;
}
nav.primary a {
  color: #ECE5D2; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a.active {
  color: #F5E6B8; text-decoration: none;
  border-bottom-color: #D9B873;
}

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 3rem 0 1rem;
}
.hero img.emblem {
  width: clamp(220px, 38vw, 380px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.hero .tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #E8C97A;
  max-width: 38ch;
  margin: 1rem auto 2rem;
  line-height: 1.45;
}
.hero .cta-row {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #F5E6B8 0%, #D9B873 100%);
  color: #142039;
}
.btn-primary:hover { background: linear-gradient(180deg, #FFF1C6 0%, #E8C97A 100%); color: #0B1428; }
.btn-secondary {
  background: transparent;
  color: #F5E6B8;
  border-color: rgba(217,184,115,0.6);
}
.btn-secondary:hover { background: rgba(217,184,115,0.08); color: #F5E6B8; }

/* ----- Card grid ----- */
.grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,184,115,0.18);
  border-radius: 10px;
  padding: 1.5rem;
}
.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #F5E6B8; margin-top: 0;
}
.card p:last-child { margin-bottom: 0; }

/* ----- Feature lists ----- */
.feature-section {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(217,184,115,0.15);
}
.feature-section h2 { margin-top: 0; }
.feature-section ul {
  list-style: none; padding-left: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem 1.5rem;
}
.feature-section li::before {
  content: "✦  ";
  color: #D9B873;
}

/* ----- Pull quote / callout ----- */
.callout {
  border-left: 3px solid #D9B873;
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  background: rgba(217,184,115,0.06);
  font-style: italic;
  color: #ECE5D2;
}

/* ----- Version-history table ----- */
.changelog .release {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(217,184,115,0.15);
}
.changelog .release h3 {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: #F5E6B8;
}
.changelog .release .date {
  font-size: 0.9rem; color: #B8B0A0; font-weight: normal;
  font-family: 'Inter', sans-serif;
}

/* ----- Footer ----- */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(217,184,115,0.18);
  font-size: 0.9rem;
  color: #B8B0A0;
}
.site-footer .container {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer a { color: #D9B873; }

/* ----- Small-screen tweaks ----- */
@media (max-width: 600px) {
  nav.primary ul { gap: 0.9rem; }
  nav.primary a { font-size: 0.88rem; }
  .hero { padding-top: 1.5rem; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
