/* ===========================
   FoldFlow Landing Page
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf8f5;
  --cream-dark: #f0ebe2;
  --green-deep: #1a2e1a;
  --green-mid: #2d4a2d;
  --green-light: #3d5c3d;
  --terracotta: #d4552a;
  --terracotta-light: #e8764f;
  --sand: #e8d9c4;
  --sand-dark: #c9b99a;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-muted: #8a8a7a;
  --white: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --pad-x: clamp(24px, 5vw, 64px);
  --pad-section: clamp(64px, 10vw, 120px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--pad-section) var(--pad-x);
  gap: 48px;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* subtle background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(212, 85, 42, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 46, 26, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  color: var(--green-deep);
  display: flex;
  flex-direction: column;
  letter-spacing: -0.02em;
}

.hero-headline .line-1 { font-style: italic; font-weight: 300; color: var(--text-mid); }
.hero-headline .line-2 {
  color: var(--green-deep);
  position: relative;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 460px;
  font-weight: 300;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand);
}

/* HERO VISUAL — folded garment stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 40px 20px;
  position: relative;
}

.folded-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.garment {
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
  cursor: default;
}

.garment:hover { transform: translateX(8px) rotate(-2deg); }

.g1 { width: 240px; background: linear-gradient(135deg, #e8e0d0, #d9cbb8); height: 30px; }
.g2 { width: 220px; background: linear-gradient(135deg, #c8d4c0, #b5c4aa); height: 40px; }
.g3 { width: 230px; background: linear-gradient(135deg, #d4c8b8, #c0b4a0); height: 28px; }
.g4 { width: 215px; background: linear-gradient(135deg, #e0d8c8, #cfc8b8); height: 30px; }
.g5 { width: 200px; background: linear-gradient(135deg, #d8e0d4, #c4d0c0); height: 38px; }
.g6 { width: 180px; background: linear-gradient(135deg, #d0d0d8, #b8b8c4); height: 22px; }

.g-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  display: none;
}

.stack-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(26,46,26,0.15) 0%, transparent 70%);
}

/* --- PROOF / PILLARS --- */
.proof {
  background-color: var(--cream-dark);
  padding: var(--pad-section) var(--pad-x);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.proof-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.proof-quote {
  position: relative;
}

.open-quote {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--terracotta);
  opacity: 0.25;
  line-height: 0.8;
  position: absolute;
  top: -20px;
  left: -10px;
}

.proof-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.proof-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pillar {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
}

.pillar-icon {
  grid-row: 1 / 3;
  color: var(--terracotta);
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
}

.pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* --- HOW IT WORKS --- */
.how {
  padding: var(--pad-section) var(--pad-x);
  background-color: var(--cream);
}

.how-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 16px;
}

.how-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}

.step {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 28px 28px 28px 0;
  border-left: 2px solid var(--sand);
  padding-left: 28px;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--terracotta);
  transition: height 0.4s ease;
}

.step:hover::before { height: 100%; }

.step--offset { border-left-color: transparent; }

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.step-body {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-icon {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  color: var(--sand-dark);
  padding-left: 16px;
}

/* --- MANIFESTO --- */
.manifesto {
  background-color: var(--green-deep);
  padding: var(--pad-section) var(--pad-x);
  text-align: center;
}

.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.manifesto-number {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}

.manifesto-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

.manifesto-line--sm {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* --- CLOSING --- */
.closing {
  padding: var(--pad-section) var(--pad-x);
  background-color: var(--cream);
  border-top: 1px solid var(--sand);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.closing-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--green-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background-color: var(--terracotta);
  transform: translateY(-2px);
}

.cta-btn:active { transform: translateY(0); }

.cta-secondary {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--sand-dark);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-secondary:hover {
  color: var(--green-deep);
  border-color: var(--green-deep);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--green-deep);
  padding: 40px var(--pad-x);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: left;
  }

  .hero-visual { display: none; }

  .hero-headline { font-size: 52px; }

  .hero-meta-row {
    gap: 0;
    flex-wrap: wrap;
  }

  .hero-stat { padding: 0 20px 0 0; }
  .hero-stat:first-child { padding-left: 0; }

  .proof-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .open-quote { font-size: 80px; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step--offset { border-left-color: var(--sand); padding-left: 28px; }

  .closing-inner { align-items: flex-start; }

  .manifesto-number { font-size: 80px; }

  .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .hero-meta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .hero-stat { padding: 0; }
  .closing-cta { flex-direction: column; align-items: flex-start; }
}
