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

:root {
  --bg: #faf4ee;
  --bg-alt: #f4e6da;
  --panel: #fffbf5;
  --ink: #2e2119;
  --muted: #8c7a6e;
  --accent-1: #b8763f;
  --accent-2: #8c3f52;
  --gold: #c9a24b;
  --line: #ecdccb;
  --shadow: rgba(60, 32, 32, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.landing {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  position: relative;
}

/* subtle warm texture across the whole page */
.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(184, 118, 63, 0.14) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.5;
}

.landing > * { position: relative; z-index: 1; }

/* ---------- Divider / ornament ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  margin: 0 auto 18px;
}
.ornament::before, .ornament::after {
  content: '';
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Nav ---------- */

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 56px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease;
}

/* Logo mark: brand image + wordmark text */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.footer-brand .brand-logo img { height: 38px; }

.brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-text span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent-2); }
.nav-links .btn { padding: 10px 22px; font-size: 13px; }

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ---------- Hero ---------- */

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 40px 56px 90px;
  position: relative;
}

.hero-content { max-width: 560px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 22px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--accent-2);
}

.hero-content p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), #a85a6c);
  color: #fdf6ea;
  box-shadow: 0 10px 26px -10px rgba(140, 63, 82, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(140, 63, 82, 0.6); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--accent-2);
}
.hero-stats div span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 30px 60px -24px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.hero-visual .frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  opacity: 0.55;
}
.hero-visual svg { width: 100%; height: auto; position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .frame { animation: rise 7s ease-in-out infinite; }
}
@keyframes rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Section shell ---------- */

.section {
  padding: 88px 56px;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
}
.section-head h2 em { font-style: italic; color: var(--accent-2); }
.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -18px var(--shadow);
  border-color: var(--gold);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- Template gallery ---------- */

.template-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.template-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px var(--shadow);
  border-color: var(--gold);
}
.template-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(155deg, var(--accent-1), var(--accent-2));
}
.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.template-card:hover .template-thumb img { transform: scale(1.04); }
/* cycle a few hue variations across the grid using nth-child */
.template-card:nth-child(5n+2) .template-thumb { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%), linear-gradient(155deg, #93A67F, #5f6f4c); }
.template-card:nth-child(5n+3) .template-thumb { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%), linear-gradient(155deg, #c9a24b, #a97c34); }
.template-card:nth-child(5n+4) .template-thumb { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%), linear-gradient(155deg, #c78a9a, #8c3f52); }
.template-card:nth-child(5n+5) .template-thumb { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%), linear-gradient(155deg, #8a93a6, #4c5a6f); }
.template-thumb::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 6px;
}
.template-thumb-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: #fdf6ea;
  letter-spacing: 0.02em;
}
.template-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.template-info strong {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
}
.template-info span {
  font-size: 12px;
  color: var(--muted);
}
.template-card:hover .template-info span { color: var(--accent-2); }

@media (max-width: 960px) {
  .template-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Steps ---------- */

.steps {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.step {
  text-align: center;
  padding: 0 14px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--accent-2);
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--panel);
}
.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 10px;
}
.step p {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  position: relative;
}
.testimonial-card .quote-mark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.testimonial-card p.quote {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
}
.testimonial-who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), var(--accent-2));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-who strong { display: block; font-size: 13.5px; }
.testimonial-who span { font-size: 12px; color: var(--muted); }

/* ---------- CTA banner ---------- */

.cta-banner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(150deg, #f4e6da, #ecd4c2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.35;
}
.cta-banner::before { top: -110px; left: -80px; }
.cta-banner::after { bottom: -110px; right: -80px; }
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
  position: relative;
}
.cta-banner p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 30px;
  position: relative;
}
.cta-banner .cta-row { justify-content: center; margin-bottom: 0; position: relative; }

/* ---------- Footer ---------- */

.landing-footer {
  padding: 64px 56px 0;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .brand-logo {
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 320px;
  margin: 0;
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .landing-hero { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    box-shadow: 0 16px 30px -18px var(--shadow);
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn {
    margin-top: 10px;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .landing-nav, .landing-hero, .section, .landing-footer { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; }
  .btn { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}