/* ===================================================
   ANCETRA — DESIGN SYSTEM
   Premium warm palette: cream backgrounds, charcoal text,
   amber/gold accent, soft terracotta secondary.
   Fonts: Playfair Display (serif headlines) + Inter (UI)
   =================================================== */

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

:root {
  /* Core palette */
  --bg:           #FAF7F2;
  --bg-warm:      #F5F0E8;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #FFFDF9;

  /* Text */
  --fg:           #1A1A1A;
  --fg-mid:       #3D3530;
  --fg-muted:     #7A6E65;
  --fg-faint:     #B0A59C;

  /* Accent: rich amber/gold */
  --accent:       #C9A84C;
  --accent-deep:  #A8862E;
  --accent-soft:  rgba(201,168,76,0.12);
  --accent-glow:  rgba(201,168,76,0.25);

  /* Secondary: warm terracotta */
  --terra:        #B88B6E;
  --terra-soft:   rgba(184,139,110,0.12);

  /* Borders */
  --border:       rgba(26,26,26,0.08);
  --border-mid:   rgba(26,26,26,0.12);
  --border-accent: rgba(201,168,76,0.3);

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(26,26,26,0.06);
  --shadow-md:    0 4px 20px rgba(26,26,26,0.08), 0 1px 4px rgba(26,26,26,0.04);
  --shadow-lg:    0 8px 40px rgba(26,26,26,0.1), 0 2px 8px rgba(26,26,26,0.05);
  --shadow-accent: 0 4px 24px rgba(201,168,76,0.2);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Radii */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  /* Animation */
  --ease-spring:  cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: var(--font-body); }

/* ============================================================
   LANDING HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF7F2 0%, #F5F0E8 55%, #EDE4D8 100%);
}

/* Floating decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(201,168,76,0.13) 0%,
    rgba(184,139,110,0.07) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob1 14s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -8%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(ellipse at 60% 60%,
    rgba(184,139,110,0.1) 0%,
    rgba(201,168,76,0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob2 18s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 30px) scale(1.04); }
  66% { transform: translate(15px, -20px) scale(0.97); }
}
@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(25px, -35px) scale(1.06); }
  70% { transform: translate(-15px, 20px) scale(0.96); }
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}

.hero-lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-deep);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  max-width: 170px;
  line-height: 1.45;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border-mid);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  padding: 7rem 2rem;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.features-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 3.5rem;
}

.features h2 em {
  font-style: italic;
  color: var(--accent-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), border-color 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--accent-soft);
  border: 1px solid rgba(201,168,76,0.2);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how {
  padding: 7rem 2rem;
  background: var(--bg);
  position: relative;
}

.how-inner {
  max-width: 820px;
  margin: 0 auto;
}

.how h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 4rem;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical connector line */
.how-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-glow) 0%, var(--border) 100%);
}

.how-step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  position: relative;
}

.step-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-deep);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 0.6rem;
  padding-top: 0.75rem;
}

.step-content p {
  font-size: 1.02rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 500px;
}

/* ============================================================
   TESTIMONIAL / QUOTE
   ============================================================ */

.testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #F5F0E8 0%, #EDE4D8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '\201C';
  position: absolute;
  top: -0.2em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 18rem;
  color: var(--border-accent);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.testimonials-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--fg-mid);
  margin-bottom: 2rem;
}

.testimonial-author {
  font-size: 0.88rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-author strong {
  display: block;
  color: var(--fg);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */

.closing {
  padding: 9rem 2rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse at 50% 80%,
    rgba(201,168,76,0.09) 0%,
    rgba(184,139,110,0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing h2 em {
  font-style: italic;
  color: var(--accent-deep);
}

.closing-text {
  font-size: 1.12rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.closing-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent-deep);
  margin-bottom: 3rem;
}

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

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 3.5rem 2rem;
  background: var(--fg);
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE — LANDING
   ============================================================ */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-stat-divider { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .how-steps::before {
    left: 27px;
  }

  .features,
  .how,
  .closing,
  .testimonials {
    padding: 5rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .features h2,
  .how h2,
  .closing h2 { font-size: 2rem; }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .how-step {
    gap: 1.5rem;
  }

  .how-steps::before { display: none; }
}
