/*
 * Sustainable IT — Website Stylesheet
 * Built following W3C Web Sustainability Guidelines (WSG)
 *
 * Sustainability choices:
 *   - System font stack (zero network requests for fonts)
 *   - CSS custom properties for dark mode
 *   - CSS-only animations (no JS animation libraries)
 *   - Minimal specificity, small file size
 *   - prefers-reduced-motion respected
 *   - prefers-color-scheme for automatic dark mode
 */

/* ============================================
   CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */

:root {
  /* Colors — Light Theme */
  --c-bg:        #FAFAF9;
  --c-bg-alt:    #F5F5F4;
  --c-surface:   #FFFFFF;
  --c-text:      #1C1917;
  --c-text-2:    #57534E;
  --c-text-3:    #A8A29E;
  --c-border:    #E7E5E4;
  --c-border-2:  #D6D3D1;

  --c-accent:    #059669;
  --c-accent-dk: #064E3B;
  --c-accent-lt: #D1FAE5;
  --c-amber:     #D97706;
  --c-blue:      #3B82F6;

  --c-dark-bg:   #1C1917;
  --c-dark-text: #E7E5E4;

  /* Typography — System Font Stack */
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --f-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

  /* Spacing */
  --w-max: 1120px;
  --r: 0.75rem;          /* border-radius */
  --r-lg: 1rem;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:        #0C0A09;
    --c-bg-alt:    #1C1917;
    --c-surface:   #292524;
    --c-text:      #E7E5E4;
    --c-text-2:    #A8A29E;
    --c-text-3:    #78716C;
    --c-border:    #44403C;
    --c-border-2:  #57534E;
    --c-accent-lt: #064E3B;

    --c-dark-bg:   #000000;
    --c-dark-text: #F5F5F4;
  }
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--c-accent-dk); }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  text-wrap: balance;
}


/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 0.5rem;
}


/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--c-bg-alt);
}

.section-dark {
  background: var(--c-dark-bg);
  color: var(--c-dark-text);
}


/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--c-accent); }

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--c-text-2);
  line-height: 1.7;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover {
  background: var(--c-accent-dk);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

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

.btn-cta {
  background: white;
  color: var(--c-accent-dk);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}
.btn-cta:hover {
  background: var(--c-accent-lt);
  color: var(--c-accent-dk);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 0.85rem 2.25rem;
  font-size: 0.95rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--c-accent);
  color: white;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
}
.nav-links a.btn-nav { color: white; }
.btn-nav:hover { background: var(--c-accent-dk); color: white; }
.nav-links a.btn-nav:hover { color: white; }


/* ============================================
   SECTION CTA
   ============================================ */

.section-cta {
  text-align: center;
  margin-top: 3rem;
}


/* ============================================
   BADGE
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--c-accent-lt);
  color: var(--c-accent-dk);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.badge svg { flex-shrink: 0; }


/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(12, 10, 9, 0.92);
  }
}

.navbar.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--c-text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--c-text); }
.nav-logo strong { font-weight: 700; color: var(--c-accent); }

.nav-leaf {
  color: var(--c-accent);
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--c-text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--c-accent); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hamburger { display: none !important; }
}


/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  color: var(--c-text-2);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 0.75rem; text-align: center; }

@media (min-width: 960px) {
  .mobile-menu { display: none !important; }
}


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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 3rem;
  overflow: hidden;
  background: var(--c-bg);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr auto;
    text-align: left;
    gap: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-content .badge {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.text-accent { color: var(--c-accent); }
.text-primary { color: var(--c-accent); }
.text-white { color: white; }

.hero-subtitle {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--c-text-2);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-formats {
  font-size: 0.8rem;
  color: var(--c-text-3);
  letter-spacing: 0.02em;
}

/* Book Cover in Hero */
.hero-cover {
  display: flex;
  justify-content: center;
  justify-self: center;
  animation: fadeUp 0.8s var(--ease) 0.15s both;
}

.hero-cover-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-cover-img:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .hero-cover-img {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-cover-img {
    max-width: 400px;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-text-3);
  animation: bounce 2s infinite;
}


/* ============================================
   PROOF BAR
   ============================================ */

.proof-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1.5rem 0;
}

.proof-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.proof-item {
  text-align: center;
}
.proof-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--c-text);
}
.proof-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--c-text-3);
}


/* ============================================
   STATS GRID (IL PROBLEMA)
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }

.stat-number {
  font-family: var(--f-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-card h3 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.875rem;
  color: var(--c-text-2);
  line-height: 1.6;
}


/* ============================================
   SOLUTION BLOCK
   ============================================ */

.solution-block {
  background: var(--c-accent-lt);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.solution-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.solution-block > p {
  color: var(--c-text-2);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.check-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--c-text);
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  position: relative;
  top: 0.45em;
}


/* ============================================
   TRIPLE BOTTOM LINE COMPONENT
   ============================================ */

.tbl-component {
  max-width: 700px;
  margin: 0 auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tbl-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
}

.tbl-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tbl-tab:hover { background: var(--c-bg-alt); }
.tbl-tab.active { color: var(--c-text); }
.tbl-tab[data-pillar="planet"].active { border-bottom-color: var(--c-accent); }
.tbl-tab[data-pillar="people"].active { border-bottom-color: var(--c-blue); }
.tbl-tab[data-pillar="profit"].active { border-bottom-color: var(--c-amber); }

.tbl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tbl-dot--green { background: var(--c-accent); }
.tbl-dot--blue { background: var(--c-blue); }
.tbl-dot--amber { background: var(--c-amber); }

.tbl-panel {
  padding: 2rem;
  animation: fadeIn 0.3s var(--ease);
}
.tbl-panel[hidden] { display: none; }

.tbl-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.tbl-panel ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tbl-panel li {
  font-size: 0.95rem;
  color: var(--c-text-2);
  line-height: 1.6;
}
.tbl-panel li strong {
  color: var(--c-text);
}


/* ============================================
   TABLE OF CONTENTS GRID
   ============================================ */

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.toc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.toc-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.toc-card:nth-child(2) { transition-delay: 0.05s; }
.toc-card:nth-child(3) { transition-delay: 0.1s; }
.toc-card:nth-child(4) { transition-delay: 0.15s; }
.toc-card:nth-child(5) { transition-delay: 0.2s; }
.toc-card:nth-child(6) { transition-delay: 0.25s; }

.toc-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.toc-num {
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.toc-card h3 {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.toc-card > p {
  font-size: 0.875rem;
  color: var(--c-text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.toc-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.toc-card li {
  font-size: 0.8rem;
  color: var(--c-text-3);
  padding-left: 1rem;
  position: relative;
}
.toc-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c-accent);
  opacity: 0.5;
}


/* ============================================
   SOFT FRAMEWORK
   ============================================ */

.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.soft-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s var(--ease);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s;
}
.soft-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.soft-card:nth-child(2) { transition-delay: 0.1s; }
.soft-card:nth-child(3) { transition-delay: 0.2s; }
.soft-card:nth-child(4) { transition-delay: 0.3s; }

.soft-card:hover {
  border-color: var(--c-accent);
}

.soft-letter {
  font-family: var(--f-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.soft-card h3 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.soft-card p {
  font-size: 0.875rem;
  color: var(--c-text-2);
  line-height: 1.6;
}


/* ============================================
   AUDIENCE GRID
   ============================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.audience-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.audience-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.audience-card:nth-child(2) { transition-delay: 0.1s; }
.audience-card:nth-child(3) { transition-delay: 0.2s; }

.audience-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.audience-card h3 {
  font-family: var(--f-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.6;
}


/* ============================================
   IMPACT (DARK SECTION)
   ============================================ */

.impact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.impact-layout.visible {
  opacity: 1;
  transform: translateY(0);
}

.impact-content .eyebrow { color: var(--c-accent); }
.impact-content h2 { color: white; }
.impact-content p {
  color: var(--c-text-3);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.impact-content em { font-style: italic; color: var(--c-accent); }

.impact-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}
.impact-num {
  display: block;
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.1;
}
.impact-stats span {
  font-size: 0.8rem;
  color: var(--c-text-3);
}

.impact-visual {
  display: flex;
  justify-content: center;
}

.impact-chart {
  width: 100%;
  max-width: 420px;
  color: var(--c-dark-text);
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s var(--ease) forwards;
  animation-play-state: paused;
}
.impact-layout.visible .chart-line {
  animation-play-state: running;
}
.impact-layout.visible .chart-line:nth-child(6) {
  animation-delay: 0.3s;
}

@media (min-width: 768px) {
  .impact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .section-dark {
    background: #000000;
  }
}


/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.2s; }
.feature-item:nth-child(4) { transition-delay: 0.3s; }

.feature-item h3 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--c-text-2);
  line-height: 1.6;
}


/* ============================================
   AUTHOR
   ============================================ */

.author-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.author-layout.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .author-layout {
    grid-template-columns: auto 1fr;
  }
}

.author-photo-wrap {
  display: flex;
  justify-content: center;
}

.author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--c-border);
}

.author-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.author-bio blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-text-2);
  border-left: 3px solid var(--c-accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.author-bio p {
  font-size: 0.95rem;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.author-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.author-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
}
.author-links a:hover { color: var(--c-accent-dk); }


/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-layout {
  max-width: 600px;
  text-align: center;
}

.newsletter-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.newsletter-content p {
  color: var(--c-text-2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}


/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--c-accent);
  color: white;
  text-align: center;
  padding: 5rem 1.25rem;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-formats {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 1.25rem !important;
}


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

.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--c-text-3);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--c-accent); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--c-text-3);
  margin-bottom: 0.5rem;
}
.footer-sustainability {
  font-size: 0.75rem !important;
  color: var(--c-text-3);
}
.footer-sustainability a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}


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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .section-header,
  .stat-card,
  .toc-card,
  .soft-card,
  .audience-card,
  .feature-item,
  .author-layout,
  .impact-layout {
    opacity: 1 !important;
    transform: none !important;
  }
}
