/* ============================
   FRAMESCRIPT — Custom Theme
   ============================ */

:root {
  --bg: #f8f3ea;
  --bg-alt: #f0ebe0;
  --fg: #1a2e1a;
  --fg-muted: #4a5c48;
  --accent: #c9953a;
  --accent-dark: #a07828;
  --green-deep: #1a3d2e;
  --green-mid: #2d5a3d;
  --green-light: #4a7c59;
  --border: #d4c9b8;
  --shadow: rgba(26, 46, 26, 0.08);
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  background: rgba(248, 243, 234, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--green-deep);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

/* HERO */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 55%;
  height: 120%;
  background: var(--green-deep);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 8%;
  width: 38%;
  height: 75%;
  background: var(--green-mid);
  clip-path: polygon(12% 0%, 100% 5%, 100% 95%, 0% 100%);
  z-index: 0;
  opacity: 0.6;
}

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

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

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 480px;
}

/* Hero Visual — Paper Stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  position: relative;
  z-index: 1;
}

.paper-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.paper {
  position: absolute;
  width: 230px;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.paper-1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.paper-2 {
  top: 30px;
  left: 25px;
  transform: rotate(2deg);
  z-index: 2;
}

.paper-3 {
  top: 60px;
  left: 10px;
  transform: rotate(-1deg);
  z-index: 3;
}

.paper-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.paper-badge {
  display: inline-block;
  background: var(--green-deep);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-top: 0.75rem;
}

.paper-line {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.paper-line.long   { width: 100%; }
.paper-line.medium { width: 75%; }
.paper-line.short  { width: 55%; }

/* Hero Strip */
.hero-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 2.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.hero-strip span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* MANIFESTO */
.manifesto {
  padding: 7rem 2.5rem;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.03);
  transform: rotate(-6deg);
}

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

.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: #e8dcc8;
  line-height: 1.45;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.manifesto-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #9ab08e;
  max-width: 680px;
}

/* FEATURES */
.features {
  padding: 7rem 2.5rem;
  background: var(--bg);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 2.5rem 2.5rem;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-alt);
}

.feature-icon {
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

/* OUTCOMES */
.outcomes {
  padding: 7rem 2.5rem;
  background: var(--bg-alt);
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.outcome {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.outcome:last-child {
  border-right: none;
}

.outcome-stat {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.outcome-label {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* CLOSING */
.closing {
  padding: 8rem 2.5rem;
  background: var(--green-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(201,149,58,0.08) 0%, transparent 70%);
}

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

.closing-mark {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
}

.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #e8dcc8;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.closing-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #9ab08e;
}

/* FOOTER */
.footer {
  padding: 3rem 2.5rem;
  background: #12251a;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9b898;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #6a7a64;
  margin-left: auto;
}

.footer-meta {
  font-size: 0.75rem;
  color: #4a5c48;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero::before, .hero::after {
    display: none;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-visual {
    height: 300px;
  }

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

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

  .outcome {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .outcome:last-child {
    border-bottom: none;
  }

  .manifesto, .features, .outcomes, .closing {
    padding: 5rem 1.5rem;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-tagline {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-strip {
    gap: 0.75rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .hero-strip::-webkit-scrollbar {
    display: none;
  }

  .nav {
    padding: 1rem 1.5rem;
  }
}