:root {
  --dark-green: #0a1f12;
  --green: #0D2818;
  --mid-green: #1A4D2E;
  --light-green: #2D6A4F;
  --gold: #c5a028;
  --gold-light: #d4af37;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  /* Light-page text */
  --text-body: #2a3b30;
  --text-secondary: rgba(10,31,18,0.6);
  --text-hint: rgba(10,31,18,0.4);
  /* Dark-card text (inside dark bg elements) */
  --card-text: rgba(255,255,255,0.85);
  --card-text-light: rgba(255,255,255,0.65);
  --card-text-muted: rgba(255,255,255,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: rgba(197,160,40,0.3); color: var(--dark-green); }

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text-body);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-pattern {
  position: fixed; inset: 0; opacity: 0.025;
  background-image:
    linear-gradient(rgba(10,31,18,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,18,.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index: 0;
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fade-slide-up { animation: fadeSlideUp 0.6s ease both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 360ms; }
.delay-5 { animation-delay: 480ms; }
.delay-6 { animation-delay: 600ms; }
.delay-7 { animation-delay: 700ms; }
.delay-8 { animation-delay: 800ms; }

.shimmer-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ===== HEADER ===== */
.site-header {
  padding: 24px 40px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(10,31,18,0.06);
  position: relative; z-index: 10;
}
.site-header .logo { display: flex; align-items: center; gap: 12px; }
.site-header .logo span {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mid-green); font-weight: 600;
}
.site-header .site-link {
  font-size: 13px; color: var(--text-hint); text-decoration: none;
  padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(10,31,18,0.08);
  transition: all 0.2s ease;
}
.site-header .site-link:hover {
  border-color: var(--gold); color: var(--gold);
}

/* ===== MAIN ===== */
.main-content { max-width: 1120px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* ===== HERO ===== */
.hero { padding-top: 72px; padding-bottom: 64px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(197,160,40,0.1), rgba(197,160,40,0.03));
  border: 1px solid rgba(197,160,40,0.2); border-radius: 100px;
  padding: 8px 20px; margin-bottom: 28px;
}
.badge span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px; font-weight: 600; line-height: 1.15;
  color: var(--dark-green); max-width: 740px; margin: 0 auto 20px;
}
.hero .subtitle {
  font-size: 18px; line-height: 1.7; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 12px; font-weight: 400;
}
.hero .hint { font-size: 14px; color: var(--text-hint); }

/* ===== PILLAR CARDS (dark bg — use card-text vars) ===== */
.pillar-grid {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; padding-bottom: 48px;
}
.pillar-card {
  flex: 1 1 240px; max-width: 300px; min-width: 220px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 32px 24px 28px; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(197,160,40,0.25);
}
.pillar-card .bg-letter {
  position: absolute; top: -30px; right: -30px; font-size: 120px;
  opacity: 0.06; font-weight: 900; line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}
.pillar-card .card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pillar-card .label {
  font-family: 'Playfair Display', Georgia, serif; font-size: 13px;
  color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
}
.pillar-card .title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 22px;
  color: var(--white); font-weight: 400; line-height: 1.2;
}
.pillar-card .tagline {
  font-size: 14px; line-height: 1.7; color: var(--card-text-light); margin: 0 0 20px;
}
.pillar-card .explore-link {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; color: var(--gold); letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.pillar-card:hover .explore-link { transform: translateX(4px); }
.pillar-card .explore-link .arrow {
  font-size: 16px; display: inline-block; transition: transform 0.3s ease;
}
.pillar-card:hover .explore-link .arrow { transform: translateX(4px); }

/* ===== FRAMEWORK BAR ===== */
.framework-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 32px; background: rgba(10,31,18,0.03);
  border-radius: 14px; border: 1px solid rgba(10,31,18,0.06);
  margin-bottom: 48px; flex-wrap: wrap;
}
.framework-bar .letter {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: var(--gold); font-weight: 400;
}
.framework-bar .name { font-size: 14px; color: var(--text-hint); }
.framework-bar .dot { color: rgba(10,31,18,0.15); margin: 0 10px; font-size: 18px; }

/* ===== QUOTE (clickable → manual view) ===== */
.quote-link {
  display: block; text-decoration: none; cursor: pointer;
  margin-bottom: 48px; transition: all 0.3s ease;
}
.quote-link:hover .quote-block {
  border-color: rgba(197,160,40,0.3);
  box-shadow: 0 8px 32px rgba(197,160,40,0.08);
}
.quote-link:hover .quote-block .read-more { color: var(--gold); }
.quote-link:hover .quote-block .read-more .rm-arrow { transform: translateX(4px); }
.quote-block {
  background: linear-gradient(135deg, rgba(197,160,40,0.06), rgba(197,160,40,0.01));
  border-radius: 16px; padding: 36px 40px;
  border: 1px solid rgba(197,160,40,0.12); text-align: center;
  transition: all 0.3s ease;
}
.quote-block p.quote {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: var(--dark-green); font-weight: 400; line-height: 1.5;
  max-width: 640px; margin: 0 auto 8px;
}
.quote-block p.attr { font-size: 13px; color: var(--text-hint); margin-bottom: 14px; }
.quote-block .read-more {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.3s ease;
}
.quote-block .read-more .rm-arrow {
  display: inline-block; transition: transform 0.3s ease;
}

/* ===== MANUAL VIEW ===== */
.manual-view {
  max-width: 680px; margin: 0 auto; padding-top: 40px; padding-bottom: 80px;
}
.manual-content {
  background: linear-gradient(165deg, var(--green), var(--mid-green));
  border-radius: 20px; padding: 56px 48px; text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.manual-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.manual-view h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 32px;
  color: var(--white); font-weight: 600; margin-bottom: 20px; line-height: 1.2;
}
.manual-desc {
  font-size: 16px; color: var(--card-text-light); line-height: 1.8;
  max-width: 540px; margin: 0 auto 32px;
}
.manual-fine {
  font-size: 13px; color: var(--card-text-muted); margin-top: 16px;
}

/* ===== CTA BLOCK (dark bg — use card-text vars) ===== */
.cta-block {
  background: linear-gradient(165deg, var(--green), var(--mid-green));
  border-radius: 20px; padding: 48px 40px; text-align: center;
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 80px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.cta-block h3 {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 4vw, 32px);
  color: var(--white); font-weight: 600; margin-bottom: 12px;
}
.cta-block .desc {
  font-size: 16px; color: var(--card-text-light); max-width: 560px;
  margin: 0 auto 28px; line-height: 1.7; font-weight: 400;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark-green); padding: 14px 32px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.02em; box-shadow: 0 4px 16px rgba(197,160,40,0.2);
  transition: all 0.2s ease; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.cta-btn:hover { box-shadow: 0 6px 24px rgba(197,160,40,0.35); transform: translateY(-1px); }
.cta-btn-sm { padding: 12px 28px; font-size: 14px; gap: 8px; }
.cta-btn-outline {
  background: transparent; border: 1.5px solid var(--gold);
  color: var(--gold); box-shadow: none;
}
.cta-btn-outline:hover { background: rgba(197,160,40,0.08); box-shadow: none; }

/* ===== DETAIL VIEW ===== */
.detail-view { padding-top: 40px; padding-bottom: 80px; max-width: 900px; margin: 0 auto; }

.back-btn {
  background: rgba(10,31,18,0.04); border: 1px solid rgba(10,31,18,0.1);
  color: var(--text-secondary); padding: 10px 20px; border-radius: 10px;
  cursor: pointer; font-size: 14px; display: inline-flex; align-items: center;
  gap: 8px; margin-bottom: 32px; transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.back-btn:hover { background: rgba(10,31,18,0.08); border-color: var(--gold); color: var(--gold); }

/* Detail header — dark bg card */
.detail-header {
  border-radius: 20px; padding: 48px 40px; margin-bottom: 32px;
  border: 1px solid rgba(197,160,40,0.15); position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.detail-header .bg-letter {
  position: absolute; top: -60px; right: -20px; font-size: 220px;
  opacity: 0.06; font-weight: 900; font-family: 'Playfair Display', Georgia, serif; line-height: 1;
}
.detail-header .inner { position: relative; z-index: 1; }
.detail-header .pillar-label {
  font-size: 13px; color: var(--gold); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.detail-header h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 42px;
  color: var(--white); margin: 0 0 12px; font-weight: 400; line-height: 1.1;
}
.detail-header h2 .gold { color: var(--gold); }
.detail-header .tagline {
  font-size: 18px; color: var(--card-text-light); margin: 0;
  max-width: 600px; line-height: 1.6;
}

/* Detail sections — light bg */
.detail-summary {
  background: var(--white); border-radius: 16px;
  padding: 28px 32px; margin-bottom: 32px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.detail-summary p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin: 0; }

.core-principle {
  background: linear-gradient(135deg, rgba(197,160,40,0.08), rgba(197,160,40,0.02));
  border-radius: 16px; padding: 24px 32px; margin-bottom: 32px;
  border: 1px solid rgba(197,160,40,0.15);
}
.core-principle .label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px;
}
.core-principle p {
  font-size: 15px; line-height: 1.7; color: var(--text-secondary);
  margin: 0; font-style: italic;
}

.section-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.section-tab {
  background: rgba(10,31,18,0.03); border: 1px solid rgba(10,31,18,0.08);
  color: var(--text-hint); padding: 10px 18px; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-weight: 400;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s ease;
}
.section-tab.active {
  background: rgba(197,160,40,0.1); border-color: rgba(197,160,40,0.3);
  color: var(--gold); font-weight: 600;
}
.section-tab:hover:not(.active) { border-color: rgba(10,31,18,0.15); color: var(--text-secondary); }

.section-content {
  background: var(--white); border-radius: 16px;
  padding: 32px 36px; margin-bottom: 32px;
  border: 1px solid rgba(10,31,18,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.section-content h3 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 22px;
  color: var(--dark-green); margin: 0 0 16px; font-weight: 400;
}
.section-content p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin: 0; }

.examples { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.example-good {
  flex: 1 1 280px; background: rgba(45,138,94,0.06); border-radius: 14px;
  padding: 20px 24px; border: 1px solid rgba(45,138,94,0.15);
}
.example-bad {
  flex: 1 1 280px; background: rgba(197,160,40,0.06); border-radius: 14px;
  padding: 20px 24px; border: 1px solid rgba(197,160,40,0.15);
}
.example-good .label {
  font-size: 12px; font-weight: 700; color: #2D8A5E;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.example-bad .label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.examples p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0; }

.pillar-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.nav-btn {
  background: rgba(10,31,18,0.04); border: 1px solid rgba(10,31,18,0.1);
  color: var(--text-secondary); padding: 12px 20px; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
}
.nav-btn:hover { background: rgba(10,31,18,0.08); border-color: rgba(10,31,18,0.2); }
.nav-btn-next {
  background: linear-gradient(135deg, rgba(197,160,40,0.1), rgba(197,160,40,0.04));
  border: 1px solid rgba(197,160,40,0.25); color: var(--gold); font-weight: 600;
}
.nav-btn-next:hover { background: linear-gradient(135deg, rgba(197,160,40,0.18), rgba(197,160,40,0.08)); }

/* Detail CTA — dark bg card */
.detail-cta {
  margin-top: 48px; background: linear-gradient(165deg, var(--green), var(--mid-green));
  border-radius: 16px; padding: 36px 32px; text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.detail-cta h4 {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(20px, 3vw, 24px);
  color: var(--white); font-weight: 600; margin-bottom: 10px;
}
.detail-cta p { font-size: 15px; color: var(--card-text-light); margin-bottom: 20px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(10,31,18,0.06); padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; position: relative; z-index: 1;
}
.site-footer .copy { display: flex; align-items: center; gap: 10px; }
.site-footer .copy span { font-size: 13px; color: var(--text-hint); }
.site-footer a { font-size: 13px; color: var(--gold); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header, .main-content, .site-footer { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 36px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .pillar-grid { flex-direction: column; align-items: stretch; }
  .pillar-card { max-width: 100%; }
  .detail-header { padding: 32px 24px; }
  .detail-header h2 { font-size: 32px; }
  .section-content { padding: 24px 20px; }
  .cta-block { padding: 36px 24px; }
  .quote-block { padding: 28px 24px; }
  .manual-content { padding: 40px 28px; }
}

.hidden { display: none; }
