/* ===== Design Tokens ===== */
:root {
  --cream: #F5F5F0;
  --dark: #1A1A1A;
  --orange: #C04828;
  --orange-dark: #A33A1F;
  --orange-light: #D45A38;
  --gray-light: #E8E8E3;
  --gray-mid: #888880;
  --gray-faint: rgba(26, 26, 26, 0.06);
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Typography ===== */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--cream); color: var(--dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: scale(1.04); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 8px 24px rgba(192, 72, 40, 0.35);
}
.btn-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}
.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.72rem; }
.btn-full { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2.5rem;
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--gray-light);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark span {
  font-family: var(--serif);
  font-size: clamp(12rem, 28vw, 22rem);
  font-weight: 700;
  color: rgba(26, 26, 26, 0.04);
  line-height: 1;
  user-select: none;
}
.wm-left { padding-left: 2%; }
.wm-right { padding-right: 2%; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(245,245,240,0.85) 0%, rgba(245,245,240,0.6) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23E8E8E3" width="1200" height="800"/><line x1="0" y1="600" x2="400" y2="200" stroke="%23ccc" stroke-width="3"/><line x1="400" y1="200" x2="800" y2="400" stroke="%23ccc" stroke-width="3"/><line x1="800" y1="400" x2="1200" y2="100" stroke="%23ccc" stroke-width="3"/><line x1="200" y1="800" x2="200" y2="300" stroke="%23bbb" stroke-width="2"/><line x1="600" y1="800" x2="600" y2="150" stroke="%23bbb" stroke-width="2"/><line x1="1000" y1="800" x2="1000" y2="250" stroke="%23bbb" stroke-width="2"/><rect x="180" y="280" width="40" height="520" fill="%23ddd" opacity="0.5"/><rect x="580" y="130" width="40" height="670" fill="%23ddd" opacity="0.5"/><rect x="980" y="230" width="40" height="570" fill="%23ddd" opacity="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 4rem 2rem;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-accent em {
  color: var(--orange);
  font-style: italic;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-mid);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Pillars ===== */
.pillars {
  padding: 8rem 0;
}
.pillars .section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--white);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s ease;
}
.pillar:last-child { border-right: none; }
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.pillar p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}
.pillar-highlight {
  background: var(--orange);
  position: relative;
  transform: scale(1.02);
  z-index: 1;
  box-shadow: 0 20px 60px rgba(192, 72, 40, 0.3);
}
.pillar-highlight h3,
.pillar-highlight p { color: var(--white); }
.pillar:not(.pillar-highlight):hover {
  background: rgba(255,255,255,0.04);
}

/* ===== Proof ===== */
.proof {
  padding: 8rem 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.proof-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-mid);
  margin-bottom: 3rem;
}
.stats-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ===== Framework ===== */
.framework {
  padding: 8rem 0;
}
.framework .section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--white);
}
.framework-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4rem;
}
.fw-stat {
  text-align: center;
}
.fw-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--orange);
}
.fw-suffix {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--orange);
}
.fw-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.framework-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.fw-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 2px;
}
.fw-col h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.fw-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

/* ===== Testimonials ===== */
.testimonials {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.testimonials-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(26, 26, 26, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.testimonials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.82rem;
  color: var(--gray-mid);
}
.testimonial-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testimonial-img {
  width: 100%;
  height: 200px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.testimonial-img:hover { transform: scale(1.02); }
.img-top {
  background:
    linear-gradient(135deg, rgba(26,26,26,0.3), rgba(26,26,26,0.1)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300"><rect fill="%23222" width="600" height="300"/><rect x="50" y="50" width="20" height="250" fill="%23555"/><rect x="150" y="30" width="20" height="270" fill="%23666"/><rect x="250" y="60" width="20" height="240" fill="%23555"/><rect x="350" y="20" width="20" height="280" fill="%23777"/><rect x="450" y="70" width="20" height="230" fill="%23555"/><line x1="50" y1="80" x2="470" y2="80" stroke="%23888" stroke-width="4"/><line x1="50" y1="150" x2="470" y2="150" stroke="%23888" stroke-width="4"/><line x1="50" y1="220" x2="470" y2="220" stroke="%23888" stroke-width="4"/></svg>');
}
.img-bottom {
  background:
    linear-gradient(135deg, rgba(192,72,40,0.2), rgba(26,26,26,0.3)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300"><rect fill="%231a1a1a" width="600" height="300"/><polygon points="0,300 300,50 600,300" fill="%23333" opacity="0.5"/><line x1="100" y1="300" x2="300" y2="50" stroke="%23C04828" stroke-width="2"/><line x1="300" y1="50" x2="500" y2="300" stroke="%23C04828" stroke-width="2"/><line x1="200" y1="300" x2="300" y2="50" stroke="%23555" stroke-width="1"/><line x1="300" y1="50" x2="400" y2="300" stroke="%23555" stroke-width="1"/></svg>');
}

/* ===== About ===== */
.about {
  padding: 8rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-top: 1.5rem;
}
.about-box {
  background: var(--orange);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(192, 72, 40, 0.25);
}
.about-box h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.about-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

/* ===== FAQ ===== */
.faq {
  padding: 8rem 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.faq-item {
  border-bottom: 1px solid var(--gray-light);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--dark);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.4rem;
}
.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-mid);
}

/* ===== Contact ===== */
.contact {
  padding: 8rem 0 6rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-left p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-mid);
  margin-top: 1.5rem;
}
.contact-form {
  background: var(--dark);
  padding: 2.5rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--gray-light);
  padding: 3rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 2rem;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  grid-row: 1;
}
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  grid-row: 1;
  grid-column: 2;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-mid);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }
.footer-social {
  display: flex;
  gap: 1rem;
  grid-row: 1;
  grid-column: 3;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-mid);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(192, 72, 40, 0.06);
}
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-mid);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .pillar-highlight { transform: none; }
  .framework-stats { grid-template-columns: repeat(2, 1fr); }
  .framework-details { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .proof-grid,
  .testimonials-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pillars-grid { grid-template-columns: 1fr; }
  .framework-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { grid-column: 1; justify-content: center; flex-wrap: wrap; }
  .footer-social { grid-column: 1; justify-content: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}
