/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --purple: #9278D1;
  --cyan: #0CC6DE;
  --purple-dark: #6B52B5;
  --purple-deeper: #4A3580;
  --cyan-dark: #0AA3B8;
  --dark: #1a1a2e;
  --dark-surface: #16213e;
  --light: #f8f9fc;
  --text: #2d2d3a;
  --text-light: #6b7280;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  --gradient-dark: linear-gradient(160deg, #2a2052 0%, #1a1a2e 40%, #0f2035 70%, #1a1a2e 100%);
  --font-heading: 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}
@keyframes gridPulse {
  0% { opacity: 0.03; }
  50% { opacity: 0.08; }
  100% { opacity: 0.03; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.navbar-logo img { height: 36px; width: auto; transition: height 0.3s; }
.navbar.scrolled .navbar-logo img { height: 30px; }
.navbar-links { display: flex; gap: 1.5rem; list-style: none; }
.navbar-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em;
  transition: color 0.3s;
  text-transform: uppercase;
}
.navbar-links a:hover { color: var(--cyan); }

/* ── Mobile Menu ── */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.4rem;
  position: relative; z-index: 1002;
}
.menu-toggle svg { width: 24px; height: 24px; stroke: rgba(255,255,255,0.9); fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.active .icon-menu { display: none; }
.menu-toggle.active .icon-close { display: block; }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: rgba(26, 26, 46, 0.98); backdrop-filter: blur(20px);
  z-index: 1001; padding: 5rem 2rem 2rem;
  transition: right 0.35s var(--ease-out);
  box-shadow: -8px 0 30px rgba(0,0,0,0.3);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu a {
  display: block; padding: 0.8rem 1rem; border-radius: 8px;
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--cyan); background: rgba(255,255,255,0.05); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-overlay.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar { padding: 0.8rem 1.2rem; }
  .menu-toggle { display: block; }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); background: var(--purple-dark); }
.back-to-top svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--gradient-dark);
  padding: 6rem 2rem 2rem;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 900px;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--cyan); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 2rem;
  animation: fadeIn 1s var(--ease-out) 0.3s both;
}
.hero h1 {
  font-family: var(--font-heading); color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}
.hero h1 .gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: rgba(255,255,255,0.7); font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 300;
  animation: fadeInUp 1s var(--ease-out) 0.7s both;
}
.hero-author {
  color: rgba(255,255,255,0.5); font-size: 0.85rem; font-style: italic;
  animation: fadeIn 1s var(--ease-out) 1s both;
}
.scroll-indicator {
  padding-bottom: 2rem; z-index: 3;
  animation: scrollBounce 2s ease infinite;
}
.scroll-indicator svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.4); fill: none; }

/* ── Section Utility ── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 2rem;
}
.section-dark .section-title { color: var(--white); }

/* ── Prose (body text) ── */
.prose { max-width: 780px; }
.prose p {
  font-size: 1rem; line-height: 1.8; color: var(--text);
  margin-bottom: 1.5rem;
}
.section-dark .prose p { color: rgba(255,255,255,0.85); }

/* ── Domain Cards ── */
.domains-grid { display: flex; flex-direction: column; gap: 1rem; }
.domain-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid #e5e7eb; overflow: hidden;
  transition: all 0.35s var(--ease-out);
  cursor: pointer; position: relative;
}
.domain-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient); opacity: 0; transition: opacity 0.3s;
}
.domain-card:hover, .domain-card.active { border-color: var(--purple); box-shadow: 0 8px 30px rgba(146,120,209,0.12); }
.domain-card:hover::before, .domain-card.active::before { opacity: 1; }
.domain-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.domain-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(146,120,209,0.1), rgba(12,198,222,0.1));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.domain-icon svg { width: 24px; height: 24px; stroke: var(--purple); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.domain-info { flex: 1; }
.domain-name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.05rem; color: var(--text); margin-bottom: 0.15rem;
}
.domain-env { font-size: 0.8rem; color: var(--text-light); }
.domain-toggle {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-out);
}
.domain-card.active .domain-toggle { transform: rotate(180deg); }
.domain-toggle svg { width: 16px; height: 16px; stroke: var(--text-light); fill: none; }
.domain-body {
  max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out);
}
.domain-card.active .domain-body { max-height: 300px; }
.domain-body-inner {
  padding: 0 1.5rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.domain-detail h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--purple); margin-bottom: 0.4rem;
}
.domain-detail p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
@media (max-width: 768px) {
  .domain-body-inner { grid-template-columns: 1fr; gap: 1rem; }
  .domain-header { padding: 1rem 1.2rem; }
}

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.88rem; }
.data-table th {
  background: var(--dark); color: var(--white);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.8rem 1rem; text-align: left;
}
.data-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb;
  color: var(--text); vertical-align: top;
}
.data-table tr:nth-child(even) td { background: rgba(146,120,209,0.03); }
.data-table td:first-child { font-weight: 600; font-family: var(--font-heading); }
@media (max-width: 768px) {
  .data-table { font-size: 0.78rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}

/* ── Chart Section ── */
.chart-source {
  margin-top: 2rem; margin-bottom: 2.5rem; font-size: 0.72rem; color: var(--text-light);
  border-top: 1px solid #e5e7eb; padding-top: 1rem;
}

/* ── Form Factors Grid ── */
.factors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.factor-card {
  background: var(--white); border-radius: 14px; padding: 2rem 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.4s var(--ease-out);
  text-align: center;
}
.factor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(146,120,209,0.12);
  border-color: var(--purple);
}
.factor-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, rgba(146,120,209,0.08), rgba(12,198,222,0.08));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.factor-card:hover .factor-icon {
  background: linear-gradient(135deg, rgba(146,120,209,0.15), rgba(12,198,222,0.15));
}
.factor-icon svg { width: 32px; height: 32px; stroke: var(--purple); fill: none; stroke-width: 1.5; }
.factor-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; margin-bottom: 0.5rem;
}
.factor-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
@media (max-width: 1024px) { .factors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .factors-grid { grid-template-columns: 1fr; } }

/* ── Q&A Section ── */
.qa-block { margin-bottom: 2.5rem; }
.qa-question {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.1rem; color: var(--purple-dark); margin-bottom: 1rem;
  padding-left: 1rem; border-left: 3px solid var(--purple);
}
.section-dark .qa-question { color: var(--cyan); border-left-color: var(--cyan); }
.qa-answer p { margin-bottom: 1.25rem; }

/* ── Person Profile Photo ── */
.person-header {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 0.5rem;
}
.person-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(146,120,209,0.2); flex-shrink: 0;
}
.section-dark .person-photo { border-color: rgba(12,198,222,0.3); }
.person-info { flex: 1; }
@media (max-width: 480px) {
  .person-photo { width: 56px; height: 56px; }
  .person-header { gap: 0.8rem; }
}

/* ── Section Subheadings ── */
.section-subheading {
  font-family: var(--font-heading); font-weight: 700; font-style: italic;
  font-size: 1.05rem; color: var(--text); margin: 2.5rem 0 1rem;
}
.section-dark .section-subheading { color: var(--white); }

/* ── References ── */
.references {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb; font-size: 0.72rem; color: var(--text-light);
}
.references p { margin-bottom: 0.3rem; line-height: 1.5; }
.references a { color: var(--purple); text-decoration: none; }
.references a:hover { text-decoration: underline; }
.section-dark .references { border-top-color: rgba(255,255,255,0.1); }
.section-dark .references a { color: var(--cyan); }

/* ── Perspectives ── */
.perspective-block {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e5e7eb;
}
.perspective-block:last-child { border-bottom: none; }
.perspective-header {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.perspective-intro {
  font-size: 0.92rem; color: var(--text-light); line-height: 1.7;
  margin-bottom: 2rem; font-style: italic;
}

/* ── Section Divider ── */
.section-divider {
  height: 4px; border: none; margin: 0;
  background: var(--gradient);
}

/* ── Inline CTA ── */
.cta-inline {
  position: relative; padding: 3.5rem 2rem;
  background: var(--dark); overflow: hidden;
}
.cta-inline::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(146,120,209,0.12) 0%, rgba(12,198,222,0.08) 100%);
}
.cta-inline-inner {
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.cta-inline-text {
  flex: 1; color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.7;
}
.cta-inline-text strong { color: var(--white); }
.cta-inline .cta-button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
  .cta-inline-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-inline-text { font-size: 0.92rem; }
}

/* ── End CTA ── */
.cta-section {
  text-align: center; padding: 5rem 2rem;
  background: var(--light);
}
.cta-button {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--gradient); color: var(--white);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: none; border-radius: 50px; cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(146,120,209,0.3);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(146,120,209,0.4);
}

/* ── Reports Home Bar ── */
.reports-home {
  text-align: center; padding: 2.5rem 2rem;
  background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reports-home-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.6rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.reports-home-link:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(12,198,222,0.06);
}
.reports-home-link svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* ── Footer ── */
.footer {
  background: var(--dark); padding: 2rem 2rem;
  text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 28px; width: auto; opacity: 0.6; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Stagger Delays ── */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* ── Section Dots Nav ── */
.section-dots {
  position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column; gap: 0.75rem;
  opacity: 0; transition: opacity 0.4s;
}
.section-dots.visible { opacity: 1; }
.section-dot {
  position: relative; width: 12px; height: 12px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.section-dot::before {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: rgba(146,120,209,0.25);
  transition: all 0.3s var(--ease-out);
}
.section-dot.active::before {
  inset: 0; background: var(--purple);
  box-shadow: 0 0 8px rgba(146,120,209,0.4);
}
.section-dot:hover::before {
  inset: 1px; background: rgba(146,120,209,0.5);
}
.section-dot-label {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--white);
  font-size: 0.7rem; font-weight: 500; white-space: nowrap;
  padding: 0.3rem 0.7rem; border-radius: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.section-dot:hover .section-dot-label { opacity: 1; }

/* ── Comprehensive Mobile Responsive ── */
@media (max-width: 768px) {
  .section-dots { display: none; }
  .section { padding: 3rem 1.2rem; }
  .hero { padding: 5rem 1.2rem 3rem; min-height: 90vh; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.9rem; }
  .scroll-indicator { bottom: 20px; }
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 1.5rem; }
  .section-label { font-size: 0.7rem; }
  .prose p { font-size: 0.92rem; line-height: 1.7; }
  .container { padding: 0; }
  .cta-section { padding: 3rem 1.2rem; }
  .cta-button { padding: 0.85rem 2rem; font-size: 0.9rem; }
  .footer { padding: 2rem 1.2rem; }
  .qa-question { font-size: 1rem; }
  .qa-answer p { font-size: 0.92rem; }
  .perspective-header { font-size: 1.1rem; }
  .perspective-intro { font-size: 0.85rem; }
  .perspective-block { margin-bottom: 2.5rem; padding-bottom: 2rem; }
  .domain-icon { width: 40px; height: 40px; }
  .domain-icon svg { width: 20px; height: 20px; }
  .domain-name { font-size: 0.95rem; }
  .domain-env { font-size: 0.75rem; }
  .factor-card { padding: 1.5rem 1.2rem; }
  .factor-icon { width: 52px; height: 52px; }
  .factor-icon svg { width: 26px; height: 26px; }
  .factor-title { font-size: 0.92rem; }
  .factor-desc { font-size: 0.8rem; }
  img[src*="McKinsey"] { border-radius: 4px; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 4.5rem 1rem 2.5rem; min-height: 85vh; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 1rem; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 1.5rem; }
  .section-title { font-size: 1.3rem; }
  .prose p { font-size: 0.88rem; }
  .navbar { padding: 0.6rem 1rem; }
  .navbar-logo img { height: 28px; }
  .data-table th, .data-table td { padding: 0.4rem 0.5rem; font-size: 0.72rem; }
  .domain-header { padding: 0.8rem 1rem; gap: 0.75rem; }
  .domain-body-inner { padding: 0 1rem 1rem; }
  .cta-section { padding: 2.5rem 1rem; }
  .footer { padding: 1.5rem 1rem; }
}
