/* PRUTHVI VIVANTA × KANOPY VENTURES - DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #F3EEE5;
  --bg-secondary: #F7F3EB;
  --bg-dark: #111817;
  --bg-dark-card: #182220;
  --text-primary: #1E1E1C;
  --text-muted: #696762;
  --text-light: #EBE7DF;
  --text-light-muted: #A3A19B;
  --accent-gold: #B58A4B;
  --accent-forest: #263A32;
  --border-light: rgba(30, 30, 28, 0.12);
  --border-dark: rgba(235, 231, 223, 0.12);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-gold {
  color: var(--accent-gold);
}

.text-forest {
  color: var(--accent-forest);
}

/* Base Sections */
.mandate-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mandate-section {
    padding: 7rem 6rem;
  }
}

.section-light-primary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.section-light-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

/* Header Kicker / Tag */
.kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: contrast(1.05) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 23, 0.4) 0%,
    rgba(17, 24, 23, 0.75) 70%,
    rgba(17, 24, 23, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 1.5rem 0;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-light-muted);
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

/* Progress Chapter Navigation (Discrete Fixed) */
.chapter-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(17, 24, 23, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1023px) {
  .chapter-nav {
    display: none;
  }
}

.chapter-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-dot:hover, .chapter-dot.active {
  background: var(--accent-gold);
  transform: scale(1.35);
}

.chapter-tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #111817;
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chapter-dot:hover .chapter-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Keyboard hint toast with auto fade-out */
.keyboard-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 2rem;
  z-index: 90;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(17, 24, 23, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  animation: fadeOutHint 0.8s ease forwards 4s;
}

@keyframes fadeOutHint {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 1023px) {
  .keyboard-hint {
    display: none;
  }
}

/* Custom Editorial List - No browser default bullets */
.custom-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.custom-list li {
  position: relative;
  padding-left: 1.25rem !important;
  margin-bottom: 0.65rem !important;
  line-height: 1.5;
}

.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background-color: var(--accent-gold);
  border-radius: 1px;
}

/* Section Title Styling */
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
}

.section-dark .section-body {
  color: var(--text-light-muted);
}

/* Circular Flywheel Graphic */
.flywheel-container {
  position: relative;
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
}

.flywheel-node {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-card);
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
}

.flywheel-node.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(181, 138, 75, 0.15);
}

/* Horizontal Benchmark Bar Chart */
.benchmark-container {
  width: 100%;
  max-width: 900px;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.benchmark-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.benchmark-name {
  width: 220px;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

.benchmark-bar-wrapper {
  flex-grow: 1;
  height: 28px;
  background: rgba(30, 30, 28, 0.04);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.section-dark .benchmark-bar-wrapper {
  background: rgba(255, 255, 255, 0.05);
}

.benchmark-bar {
  height: 100%;
  background: var(--accent-forest);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.benchmark-bar.current {
  background: #A34E36;
}

.benchmark-bar.recommended {
  background: var(--accent-gold);
}

.benchmark-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* Staircase Pricing Diagram */
.staircase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
  align-items: end;
}

.stair-step {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 1.75rem 1.25rem;
  border-radius: 4px;
  transition: all 0.4s ease;
  position: relative;
}

.stair-step:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
}

.stair-step-num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stair-step-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.stair-step-stage {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stair-step-desc {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.4;
}

/* Split Comparison Cards */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

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

.split-card {
  padding: 2.5rem;
  border-radius: 4px;
  background: rgba(30, 30, 28, 0.03);
  border: 1px solid var(--border-light);
}

.section-dark .split-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
}

.split-card.highlight {
  border-color: var(--accent-gold);
}

/* Horizontal Timeline Roadmap */
.timeline-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  position: relative;
}

.section-dark .timeline-card {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
}

.timeline-months {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-phase {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-dark .timeline-list {
  color: var(--text-light-muted);
}

.timeline-list li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.1rem;
}

.timeline-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.timeline-target {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-forest);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.section-dark .timeline-target {
  color: var(--accent-gold);
  border-color: var(--border-dark);
}

/* Grid layout for brand experience items */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.experience-item {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.experience-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Animations */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-fade {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Print CSS */
@media print {
  .chapter-nav, .keyboard-hint {
    display: none !important;
  }
  .mandate-section {
    min-height: auto;
    page-break-after: always;
    padding: 3rem 2rem;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}
