/* ===========================================
   FORKWISE — Theme Styles
   =========================================== */

:root {
  --green-deep: #1E3A14;
  --green-primary: #2D5016;
  --green-mid: #3D6B1E;
  --green-light: #4D7C22;
  --cream: #F5F0E3;
  --cream-dark: #EDE6D6;
  --amber: #D4930D;
  --amber-light: #F0B429;
  --text-dark: #1A1A18;
  --text-mid: #4A4A44;
  --text-light: #8A8A82;
  --white: #FFFFFF;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 227, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 20, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-deep);
}

/* Section base */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4D7C22 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #D4930D 0%, transparent 70%);
  bottom: 50px; right: 20%;
}
.hero-blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2D5016 0%, transparent 70%);
  bottom: -150px; left: -100px;
  opacity: 0.2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 28px;
  line-height: 1.05;
}
.hero-headline em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.7;
}

/* Phone mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-screen {
  width: 280px;
  background: var(--green-deep);
  border-radius: 36px;
  padding: 20px 16px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1) inset,
    0 40px 80px rgba(30, 58, 20, 0.4),
    0 10px 30px rgba(30, 58, 20, 0.3);
  font-family: 'DM Sans', sans-serif;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.phone-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.phone-badge {
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--amber);
  color: var(--green-deep);
  padding: 2px 8px;
  border-radius: 20px;
}

.meal-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}
.meal-day {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.meal-row span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
}
.meal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.breakfast { background: #F0B429; }
.lunch { background: #4D7C22; }
.dinner { background: #8B5E3C; }

.grocery-section {
  margin-top: 16px;
}
.grocery-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.grocery-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
}
.check {
  width: 14px; height: 14px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Problem section */
.problem {
  background: var(--green-deep);
  color: var(--cream);
}
.problem .section-inner {
  padding: 100px 32px;
}
.problem-headline {
  margin-bottom: 60px;
}
.problem-headline h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--cream);
  margin-top: 16px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 60px;
}
.problem-stat {
  background: rgba(255,255,255,0.06);
  padding: 32px 24px;
  text-align: center;
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(245, 240, 227, 0.6);
  line-height: 1.4;
}

.problem-quote {
  border-left: 3px solid var(--amber);
  padding-left: 24px;
}
.problem-quote p {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245, 240, 227, 0.75);
  line-height: 1.7;
}

/* How it works */
.how {
  background: var(--cream);
}
.how .section-inner {
  padding: 100px 32px;
  text-align: center;
}
.how h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--green-deep);
  margin-bottom: 60px;
  margin-top: 16px;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.step {
  padding: 0 20px;
}
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.step-icon {
  width: 64px;
  height: 64px;
  background: var(--green-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--cream);
}
.step-icon svg { width: 32px; height: 32px; }
.step h3 {
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.step p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--amber));
  margin-top: 32px;
  flex-shrink: 0;
}

/* Features */
.features {
  background: var(--cream-dark);
}
.features .section-inner {
  padding: 100px 32px;
}
.features h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--green-deep);
  margin-bottom: 60px;
  margin-top: 16px;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature {
  background: var(--cream);
  padding: 32px 28px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h4 {
  font-size: 1rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Manifesto */
.manifesto {
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}
.manifesto-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.manifesto-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  top: -200px; right: -150px;
  opacity: 0.15;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  bottom: -150px; left: 20%;
  opacity: 0.2;
}
.manifesto .section-inner {
  padding: 120px 32px;
  position: relative;
  z-index: 1;
}
.manifesto-statement {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

/* Closing */
.closing {
  background: var(--cream);
}
.closing .section-inner {
  padding: 100px 32px;
  text-align: center;
}
.closing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  background: rgba(45, 80, 22, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.closing h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--green-deep);
  margin-bottom: 20px;
}
.closing p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 60px;
}
.closing-visual {
  display: flex;
  justify-content: center;
}
.visual-ring {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--green-primary);
}
.ring-item svg {
  width: 48px; height: 48px;
  stroke: var(--green-primary);
}
.ring-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* Footer */
.footer {
  background: var(--green-deep);
  color: var(--cream);
}
.footer .section-inner {
  padding: 40px 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--cream);
}
.footer-brand p {
  font-size: 0.8rem;
  color: rgba(245, 240, 227, 0.5);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 227, 0.4);
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }
  .hero-content { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-visual { order: -1; }
  .phone-screen { width: 240px; }

  .section-inner { padding: 60px 20px; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.5rem; }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step-connector {
    width: 2px; height: 32px;
    background: linear-gradient(to bottom, var(--green-light), var(--amber));
    margin: 0 auto;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .visual-ring { gap: 20px; }
}