/* --- PREMIUM CORPORATE WHITE THEME --- */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-heavy: rgba(255, 255, 255, 0.98);

  --accent-gold: #c5a059; /* Elegant, slightly muted gold */
  --accent-gold-hover: #b08d4a;
  --accent-gold-muted: rgba(197, 160, 89, 0.1);

  --text-main: #1e293b; /* Deep Slate Blue-Gray */
  --text-muted: #64748b; /* Medium Slate Gray */

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Utilities */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 4px; /* Sharp, formal corners */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-main);
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

/* Layout Core */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

.container-lg {
  max-width: 1200px;
}

.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Micro-elements */
.gold-line {
  height: 2px;
  width: 60px;
  background: var(--accent-gold);
  margin: 24px 0;
}
.gold-line.center {
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------
   NAVBAR (Sleek Glassmorphic)
---------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 999;
  background: transparent;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
}

.navbar.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  opacity: 0.8;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------
   BUTTONS
---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold-muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover {
  color: var(--accent-gold);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------
   HERO SECTION
---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(
    circle,
    rgba(197, 160, 89, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 60px;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: 20px;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 300;
  color: var(--text-muted);
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 48px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.author-line {
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
  perspective: 1000px; /* For 3D floating effect */
}

.book-display {
  position: relative;
  max-width: 260px;
  width: 100%;
  transform-style: preserve-3d;
  animation: crazyFloatBook 8s ease-in-out infinite;
}

.book-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: var(--accent-gold);
  filter: blur(50px);
  opacity: 0.3;
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
}

.book-img {
  width: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    -30px 30px 50px rgba(0, 0, 0, 0.25),
    inset 2px 0 0 rgba(255, 255, 255, 0.8),
    inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.book-shadow {
  position: absolute;
  bottom: -60px;
  left: 10%;
  width: 80%;
  height: 30px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.3),
    transparent 70%
  );
  filter: blur(12px);
  animation: shadowPulse 8s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: scaleX(0.7);
    opacity: 0.3;
  }
}

@keyframes crazyFloatBook {
  0% {
    transform: translateY(0) rotateY(-15deg) rotateX(10deg);
  }
  25% {
    transform: translateY(-30px) rotateY(-5deg) rotateX(0deg) scale(1.05);
  }
  50% {
    transform: translateY(0) rotateY(10deg) rotateX(15deg);
  }
  75% {
    transform: translateY(30px) rotateY(-20deg) rotateX(5deg) scale(0.95);
  }
  100% {
    transform: translateY(0) rotateY(-15deg) rotateX(10deg);
  }
}

/* -------------------------------------
   OVERVIEW STATEMENT
---------------------------------------- */
.statement {
  padding: 80px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.statement-box {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -40px;
  left: -40px;
  font-family: var(--font-heading);
  font-size: 140px;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.15;
}

.statement-text {
  font-size: 36px;
  line-height: 1.4;
  text-align: center;
  font-style: italic;
  font-weight: 400;
  color: var(--text-main);
}

/* -------------------------------------
   PARALLAX DIVIDER
---------------------------------------- */
.divider-parallax {
  position: relative;
  height: 40vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8fafc; /* Fallback */
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.85
  ); /* Light overlay for readability */
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.parallax-title {
  font-size: 42px;
  color: var(--text-main);
}

/* -------------------------------------
   BOOK OVERVIEW
---------------------------------------- */
.book-overview {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.overview-left {
  position: sticky;
  top: 120px;
}

.overview-title {
  font-size: 42px;
  margin-bottom: 24px;
}

.overview-hook {
  font-size: 22px;
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1.4;
  margin-bottom: 32px;
}

.overview-quote-box {
  background: var(--bg-primary);
  padding: 32px;
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}

.overview-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0;
}

.overview-text p {
  font-size: 17px;
  margin-bottom: 20px;
}

.overview-discover {
  margin-top: 48px;
  background: var(--bg-primary);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.overview-discover h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--text-main);
  line-height: 1.3;
}

.overview-list {
  list-style: none;
  margin-bottom: 24px;
}

.overview-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.overview-list li svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.overview-conclusion {
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.6;
}

/* -------------------------------------
   PILLARS (Cards)
---------------------------------------- */
.pillars {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.section-title {
  font-size: 38px;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 64px;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.pillar-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 48px;
  transform-style: preserve-3d;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: var(--shadow-md);
}

.card-inner {
  position: relative;
  z-index: 2;
  transform: translateZ(40px); /* Lift content during 3D tilt */
}

.icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(197, 160, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 24px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pillar-card:hover .icon-wrap {
  transform: scale(1.3) rotate(15deg);
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.5);
}

.pillar-card:hover .icon-wrap svg {
  animation: crazyFlip 0.8s ease-in-out infinite alternate;
}

@keyframes crazyFlip {
  0% {
    transform: rotateY(0) scale(1);
  }
  100% {
    transform: rotateY(180deg) scale(1.2);
  }
}

.pillar-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(197, 160, 89, 0.04) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.pillar-card:hover .card-glow {
  opacity: 1;
}

/* -------------------------------------
   INSIGHT
---------------------------------------- */
.insight {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.insight-text {
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 32px;
  color: var(--accent-gold);
  font-style: italic;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.insight-author {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* -------------------------------------
   AUTHOR
---------------------------------------- */
.author {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.author-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.author-img-wrapper {
  position: relative;
  flex: 0 0 35%;
}

.img-frame {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 4px dashed var(--accent-gold);
  border-radius: 50%;
  z-index: 0;
  animation: spinFrame 12s linear infinite;
}

@keyframes spinFrame {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.author-img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.author-role {
  color: var(--accent-gold);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.author-bio {
  font-size: 16px;
  margin-bottom: 24px;
}

/* -------------------------------------
   FINAL CTA
---------------------------------------- */
.cta {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 80px 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.cta-bg-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at bottom right,
    rgba(197, 160, 89, 0.05),
    transparent 70%
  );
  pointer-events: none;
}

.cta-title {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* -------------------------------------
   PRIVACY POLICY SECTION
---------------------------------------- */
.privacy {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.privacy-content p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  text-align: center;
}

.privacy-content a {
  color: var(--accent-gold);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s;
}

.privacy-content a:hover {
  text-decoration: none;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 0 5%;
  }
}

/* -------------------------------------
   FOOTER (Updated Position)
---------------------------------------- */
.footer {
  background-color: #0f172a; /* Keep footer dark for solid grounding */
  padding: 80px 0 40px;
  color: #f8fafc;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.brand-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: #f8fafc;
}

.brand-desc {
  font-size: 14px;
  max-width: 300px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #64748b;
}

.accent-link {
  color: #f8fafc;
}
.accent-link:hover {
  color: var(--accent-gold);
}

/* -------------------------------------
   ANIMATIONS UTILITY (Triggered via JS)
---------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(100px) scale(0.8) rotate(-5deg);
  transition:
    opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: var(--delay, 0s);
}

.fade-in {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: var(--delay, 0s);
}

.fade-right {
  opacity: 0;
  transform: translateX(-150px) scale(0.8) rotate(-10deg);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-left {
  opacity: 0;
  transform: translateX(150px) scale(0.8) rotate(10deg);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Revealed State */
.is-visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Text Reveal Animation for Overview */
.text-reveal {
  opacity: 1;
  background: linear-gradient(
    90deg,
    var(--text-main) 0%,
    rgba(30, 41, 59, 0.2) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.5s ease;
  background-position: 100% 0; /* Hidden */
}

.text-reveal.is-visible {
  background-position: 0% 0;
}

/* -------------------------------------
   MEDIA QUERIES
---------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .author-layout {
    flex-direction: column;
    gap: 40px;
  }
  .statement-text {
    font-size: 32px;
  }
  .cta-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  .hero-visual {
    justify-content: center;
    margin-top: 40px;
  }

  .statement {
    padding: 80px 0;
  }
  .statement-text {
    font-size: 24px;
  }
  .parallax-title {
    font-size: 36px;
    padding: 0 20px;
  }

  .insight-text {
    font-size: 32px;
  }
  .cta-actions {
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* -------------------------------------
   MODAL (Excerpt)
---------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-glass-heavy);
  width: 95%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 24px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-content {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--accent-gold);
  border-radius: 10px;
}

.excerpt-body {
  max-width: 650px;
  margin: 0 auto;
}

.excerpt-title {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-main);
  text-align: center;
}

.excerpt-author {
  font-size: 16px;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 1px;
}

.excerpt-quote {
  padding: 24px;
  border-left: 3px solid var(--accent-gold);
  background: var(--bg-secondary);
  margin-bottom: 40px;
  font-style: italic;
  font-size: 18px;
  color: var(--text-main);
}

.excerpt-text p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.8;
  color: #334155; 
}

.excerpt-text ul {
  margin: -8px 0 24px 32px;
  list-style-type: none;
}

.excerpt-text li {
  position: relative;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text-main);
  font-weight: 500;
}

.excerpt-text li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 1px;
  background-color: var(--accent-gold);
}

.modal-footer {
  padding: 24px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

/* -------------------------------------
   RESPONSIVENESS (SUPER MOBILE)
---------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-visual {
    justify-content: center;
    margin-top: 40px;
  }
  .hero-title {
    font-size: 50px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-author {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile Overlay */
  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    font-size: 18px;
  }

  /* Sectional Stacking */
  .overview-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .overview-left {
    position: relative;
    top: 0;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .author-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .author-img-wrapper {
    flex: 0 0 100%;
    max-width: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .brand-desc {
    margin: 0 auto;
  }

  .footer-links {
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Typography & Spacing */
  section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 40px;
  }

  .statement-text {
    font-size: 26px;
  }

  .section-title {
    font-size: 32px;
  }

  /* Modal Mobile Optimization */
  .modal-container {
    width: 95%;
    max-height: 90vh;
  }

  .modal-content {
    padding: 24px;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  }

  .excerpt-title {
    font-size: 26px;
  }

  .excerpt-quote {
    font-size: 16px;
    padding: 16px;
  }

  .excerpt-text p {
    font-size: 16px;
  }

  /* Final CTA button stacking */
  .cta-actions {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .badge {
    margin-bottom: 20px;
  }
  .logo-img {
    height: 50px;
  }
}

/* iOS Specific Safe Areas */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
}

