:root {
  --warm-cream: #fdf6ec;
  --rich-brown: #3c2415;
  --soft-gold: #c9a96e;
  --muted-sage: #8a9a7b;
  --dusty-rose: #c4908a;
  --paper-white: #fefcf8;
  --ink: #2b1d11;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--warm-cream);
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 144, 138, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 32px rgba(60, 36, 21, 0.15);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--rich-brown);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--soft-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.name-origin {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--rich-brown);
  opacity: 0.35;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--rich-brown);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rich-brown);
  color: var(--warm-cream);
  padding: 0.9rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(60, 36, 21, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(60, 36, 21, 0.3);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--rich-brown);
  padding: 0.9rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--soft-gold);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.1);
}

/* ── Features ── */

.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--rich-brown);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--rich-brown);
  opacity: 0.65;
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--paper-white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(60, 36, 21, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(60, 36, 21, 0.1);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--rich-brown);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--rich-brown);
  opacity: 0.7;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── Spotlight Features ── */

.spotlight {
  background: var(--paper-white);
  padding: 6rem 2rem;
}

.spotlight > .section-title {
  margin-bottom: 3.5rem;
}

.spotlight-features {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.spotlight-feature {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.spotlight-screenshot {
  flex: 1;
  min-width: 0;
}

.spotlight-screenshot .phone-frame {
  max-width: 280px;
}

.spotlight-detail {
  flex: 1;
  min-width: 0;
}

.spotlight-detail h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--rich-brown);
  margin-bottom: 0.75rem;
}

.spotlight-detail p {
  color: var(--rich-brown);
  opacity: 0.7;
  line-height: 1.65;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .spotlight-feature {
    flex-direction: column;
  }

  .spotlight-screenshot .showcase-placeholder {
    max-width: 100%;
  }
}

/* ── Showcase: Layout Engine ── */

.showcase {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-alt {
  background: var(--paper-white);
  max-width: 100%;
  padding: 6rem 2rem;
}

.showcase-alt > .section-title,
.showcase-alt > .section-subtitle,
.showcase-alt > .editor-features {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.showcase-item {
  text-align: center;
}

.showcase-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.showcase-placeholder span {
  color: var(--soft-gold);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
  background: linear-gradient(145deg, var(--paper-white), #f0e8da);
  border: 2px dashed var(--soft-gold);
  border-radius: 36px;
  aspect-ratio: 9 / 19.5;
  width: 100%;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  position: relative;
  display: inline-block;
  max-width: 260px;
  width: 100%;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 8px 32px rgba(60, 36, 21, 0.15), 0 0 0 8px #1a1a1a, 0 0 0 10px #333;
}

.page-frame {
  display: inline-block;
  max-width: 300px;
  width: 100%;
}

.page-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(60, 36, 21, 0.15);
  box-shadow: 0 4px 24px rgba(60, 36, 21, 0.18), 0 1px 4px rgba(60, 36, 21, 0.1);
}

.showcase-caption {
  font-size: 0.9rem;
  color: var(--rich-brown);
  opacity: 0.65;
  line-height: 1.55;
  max-width: 320px;
  margin: 1.25rem auto 0;
}

/* ── Showcase: Editor Tools ── */

.editor-features {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.editor-feature {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.editor-feature.reverse {
  flex-direction: row-reverse;
}

.editor-screenshot {
  flex: 1;
  min-width: 0;
}

.editor-screenshot .phone-frame {
  max-width: 280px;
}

.editor-detail {
  flex: 1;
  min-width: 0;
}

.editor-detail h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--rich-brown);
  margin-bottom: 0.75rem;
}

.editor-detail p {
  color: var(--rich-brown);
  opacity: 0.7;
  line-height: 1.65;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .editor-feature,
  .editor-feature.reverse {
    flex-direction: column;
  }
}

/* ── How It Works ── */

.how-it-works {
  background: var(--paper-white);
  padding: 6rem 2rem;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft-gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.step h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--rich-brown);
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--rich-brown);
  opacity: 0.7;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Preview Badge ── */

.preview-badge {
  display: inline-block;
  background: var(--soft-gold);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ── Notify Section ── */

.notify-section {
  background: var(--paper-white);
  padding: 6rem 2rem;
  text-align: center;
}

.notify-content {
  max-width: 540px;
  margin: 0 auto;
}

.notify-description {
  color: var(--rich-brown);
  opacity: 0.75;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.notify-form input[type="email"] {
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--soft-gold);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--ink);
  min-width: 260px;
  outline: none;
  transition: border-color 0.2s;
}

.notify-form input[type="email"]:focus {
  border-color: var(--rich-brown);
}

.notify-form .btn-primary {
  white-space: nowrap;
}

.notify-note {
  font-size: 0.85rem;
  color: var(--rich-brown);
  opacity: 0.5;
  margin-top: 1.25rem;
}

/* ── Footer ── */

footer {
  background: var(--rich-brown);
  color: var(--warm-cream);
  padding: 3rem 2rem;
  text-align: center;
}

footer a {
  color: var(--soft-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    padding: 2rem 1.5rem;
  }
}
