/* =========================
   VISUAL POLISH LAYER
   Load after ui-enhancements.css
   Handles: lighter feel, grain, markers,
   thin accent lines, color depth
   ========================= */

/* ----- 1. LIFT THE BASE ----- */
:root {
  --bg:     #0d1018;   /* was #0b0c10 — slightly bluer, less cave */
  --panel:  #12151f;
  --card:   #161a27;   /* was #141824 — fractionally lighter */
  --muted:  #bec2ce;   /* was #b6b9c6 — lifted 8% */
  --line:   rgba(255,255,255,.11);
  --accent-soft: rgba(124,92,255,.12);
  --accent-mid:  rgba(124,92,255,.25);
  --accent-glow: rgba(124,92,255,.45);
}

/* ----- 2. NOISE GRAIN TEXTURE ----- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
}

/* everything interactive stays above grain */
header, main, footer, .whatsapp-float { position: relative; z-index: 1; }


/* ----- 3. SECTION DIVIDER RULES ----- */
.section-rule {
  display: block;
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,92,255,.28) 35%,
    rgba(255,255,255,.10) 50%,
    rgba(124,92,255,.28) 65%,
    transparent 100%
  );
}

/* Auto-rules between adjacent .section elements */
.section + .section::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto;
  width: 80%;
  background: linear-gradient(90deg,
    transparent,
    rgba(124,92,255,.18) 30%,
    rgba(255,255,255,.07) 50%,
    rgba(124,92,255,.18) 70%,
    transparent
  );
}


/* ----- 4. SECTION HEAD ACCENT MARKER ----- */
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(124,92,255,.55);
  flex-shrink: 0;
}


/* ----- 5. CARD ACCENT TOP-BORDER ----- */
.card {
  background: var(--card);
  border-top: 1px solid rgba(124,92,255,.14);
  position: relative;
  overflow: hidden;
}

/* Subtle corner shimmer on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(124,92,255,.55),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.card:hover::after {
  transform: scaleX(1);
}

/* Elevated cards (hero-highlight, cta-box) get ambient glow */
.hero-highlight {
  box-shadow:
    0 0 0 1px rgba(124,92,255,.15),
    0 26px 70px rgba(0,0,0,.55),
    0 0 80px rgba(124,92,255,.08),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.cta-box {
  box-shadow: 0 0 60px rgba(124,92,255,.10);
}


/* ----- 6. KPI PILL LIFT ----- */
.kpi {
  background: var(--accent-soft);
  border-color: rgba(124,92,255,.15);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.kpi:hover {
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.32);
  transform: translateY(-1px);
}


/* ----- 7. CHIP LIFT ----- */
.chip {
  background: rgba(124,92,255,.07);
  border-color: rgba(124,92,255,.18);
}

.chip:hover {
  background: rgba(124,92,255,.16);
  border-color: rgba(124,92,255,.35);
}


/* ----- 8. THIN VERTICAL ACCENT ON HERO EYEBROW ----- */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: .8;
  flex-shrink: 0;
}


/* ----- 9. STATS STRIP ----- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  background: var(--card);
  text-align: center;
  gap: 4px;
  transition: background .2s ease;
}

.stat-item:hover {
  background: rgba(124,92,255,.06);
}

.stat-number {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(200,180,255,.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}


/* ----- 10. SECTOR THESIS CARD VARIANT ----- */
.card-sector {
  border-left: 2px solid rgba(124,92,255,.35);
  padding-left: 18px;
}

.card-sector h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  opacity: .75;
}


/* ----- 11. FLYWHEEL GRID ----- */
.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.flywheel-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid rgba(124,92,255,.22);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.flywheel-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.flywheel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,92,255,.6), rgba(255,255,255,.2), transparent);
}

.flywheel-venture {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: .9;
}

.flywheel-use {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flywheel-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}


/* ----- 12. POV / THINKING CARDS ----- */
.pov-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.pov-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 96px;
  font-weight: 900;
  color: rgba(124,92,255,.10);
  line-height: 1;
  pointer-events: none;
}

.pov-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pov-statement {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
  max-width: 52ch;
}

.pov-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 70ch;
}


/* ----- 13. ORIGIN TIMELINE ----- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(124,92,255,.7),
    rgba(124,92,255,.2) 80%,
    transparent
  );
}

.timeline-item {
  position: relative;
  padding: 10px 0 10px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124,92,255,.6);
}

.timeline-year {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  opacity: .85;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}


/* ----- 14. CROSS-SECTOR STRIP ----- */
.sector-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,.18);
  background: rgba(124,92,255,.06);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}

.sector-pill:hover {
  background: rgba(124,92,255,.14);
  border-color: rgba(124,92,255,.35);
  transform: translateY(-1px);
}

.sector-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}


/* ----- 15. HEADING ACCENT VARIANTS ----- */
/* Thin underline accent on h3 inside special cards */
.card-highlight h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124,92,255,.18);
  margin-bottom: 10px;
}

/* Eyebrow + thin rule combo */
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow-rule span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.eyebrow-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,92,255,.35), transparent);
}


/* ----- 16. FOOTER REFINEMENT ----- */
.site-footer {
  border-top: 1px solid rgba(124,92,255,.14);
  background: linear-gradient(180deg, transparent, rgba(124,92,255,.04));
}

.footer-title {
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}


/* ----- 17. HEADER REFINEMENT ----- */
.site-header {
  border-bottom: 1px solid rgba(124,92,255,.10);
}

.brand-mark {
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(124,92,255,.15));
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 0 14px rgba(124,92,255,.18);
}

/* Active nav link indicator */
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--text);
  opacity: 1;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}


/* ----- 18. RESPONSIVE ----- */
@media (max-width: 880px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }

  .flywheel-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 22px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- 19. REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  .card::after,
  .timeline::before,
  .flywheel-item::before {
    transition: none !important;
    animation: none !important;
  }
}
