/* ============================================================
   V-APP STRATEGY WEB — DESIGN SYSTEM (v-app.vn Theme)
   Primary: #EA0029 (VSF Red)
   Font: Lexend (body), "VSF Pro" style condensed (headings)
   Theme: Light, clean, bold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');

:root {
  /* Core Brand Colors — v-app.vn */
  --brand-primary:  #EA0029; /* VSF Red */
  --brand-accent:   #EA0029; 
  --brand-secondary:#C4001F;
  
  --brand-faint:    rgba(234,0,41,0.06);
  --brand-glow:     rgba(234,0,41,0.18);
  --brand-border:   rgba(234,0,41,0.2);

  /* Light Theme (matches v-app.vn) */
  --bg-primary:   #FFFFFF;
  --bg-secondary: #F7F7F8;
  --bg-tertiary:  #F0F0F2;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#FFF5F6;

  --border:       rgba(0,0,0,0.08);
  --border-accent:rgba(234,0,41,0.3);

  --text-primary:   #0D0D14;
  --text-secondary: #4A4A5C;
  --text-muted:     #9090A0;

  --gradient-main:  linear-gradient(135deg, #EA0029 0%, #FF5255 100%);
  --gradient-bg:    linear-gradient(135deg, #F7F7F8 0%, #FFFFFF 60%, #FFF0F2 100%);
  
  --nav-bg:       rgba(255,255,255,0.92);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.1);
  --shadow-accent:0 8px 32px rgba(234,0,41,0.25);

  --geo-color:    rgba(200,200,210,0.35);

  /* Typography */
  --font-heading: 'Barlow Condensed', 'Lexend', Arial, sans-serif;
  --font-body:    'Lexend', Arial, Helvetica, sans-serif;
}

/* Dark mode variant */
[data-theme="dark"] {
  --brand-primary:  #FF1A3C;
  --brand-accent:   #FF1A3C;
  --brand-secondary:#EA0029;
  
  --brand-faint:    rgba(255,26,60,0.08);
  --brand-glow:     rgba(255,26,60,0.25);
  --brand-border:   rgba(255,26,60,0.3);

  --bg-primary:   #0A0A10;
  --bg-secondary: #12121A;
  --bg-tertiary:  #1A1A26;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-hover:rgba(255,26,60,0.06);

  --border:       rgba(255,255,255,0.08);
  --border-accent:rgba(255,26,60,0.4);

  --text-primary:   #F2F2FA;
  --text-secondary: #9090B0;
  --text-muted:     #505070;

  --gradient-main:  linear-gradient(135deg, #FF1A3C 0%, #FF5255 100%);
  --gradient-bg:    linear-gradient(135deg, #0A0A10 0%, #14101A 100%);
  
  --nav-bg:       rgba(10,10,16,0.88);
  --shadow-sm:    0 4px 12px rgba(0,0,0,0.3);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-accent:0 0 25px rgba(255,26,60,0.3);

  --geo-color:    rgba(80,80,100,0.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}

canvas { display: block; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 700; color: var(--text-primary); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-main);
  z-index: 1000;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px var(--brand-accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

[data-theme="dark"] .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav-tagline {
  font-size: 11px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 12px;
  margin-left: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-accent);
  background: var(--brand-faint);
}

.theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: var(--brand-accent);
  background: var(--brand-faint);
  color: var(--brand-accent);
}

.toggle-icon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toggle-icon.sun { transform: scale(1) rotate(0); opacity: 1; }
.toggle-icon.moon { transform: scale(0) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .toggle-icon.sun { transform: scale(0) rotate(90deg); opacity: 0; }
[data-theme="dark"] .toggle-icon.moon { transform: scale(1) rotate(0); opacity: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background: var(--gradient-bg);
}

/* Geometric background decorations — like v-app.vn */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: var(--brand-accent);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 80%);
  opacity: 0.06;
  border-radius: 8px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -3%;
  width: 340px;
  height: 340px;
  background: var(--geo-color);
  clip-path: polygon(0 20%, 80% 0, 100% 100%, 0 100%);
  border-radius: 8px;
  pointer-events: none;
}

.hero #heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: var(--brand-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 32px;
  font-family: var(--font-body);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, var(--brand-accent), transparent);
  margin: 0 auto;
  animation: scroll-line 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   BRAND TEXT & ACCENTS
   ============================================================ */
.brand-text {
  color: var(--brand-accent);
}

.red-glow {
  position: relative;
  display: inline-block;
}

.red-glow::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-accent);
  border-radius: 2px;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--brand-accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  border: none;
}

.cta-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(234,0,41,0.4);
}

.cta-btn.large {
  padding: 18px 44px;
  font-size: 15px;
}

.glow-btn {
  background: var(--brand-accent);
  color: #fff;
}

[data-theme="dark"] .glow-btn {
  box-shadow: 0 0 15px var(--brand-glow), inset 0 0 15px var(--brand-glow);
}

/* ============================================================
   STRATEGY SECTIONS
   ============================================================ */
.strategy-section {
  position: relative;
  padding: 140px 24px;
  overflow: hidden;
}

.strategy-section.alt-bg {
  background: var(--bg-secondary);
}

.vision-section {
  background: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .vision-section {
  background: var(--bg-primary);
}

.vision-section #visionCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 72px;
  font-weight: 400;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* ============================================================
   SECTION 1 — PLANET MAP
   ============================================================ */
.visual-container {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  margin-bottom: 64px;
  position: relative;
  height: 420px;
}

[data-theme="dark"] .visual-container {
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.visual-container canvas {
  width: 100%;
  height: 100%;
}

.insight-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}

.insight-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(234,0,41,0.1);
}

.insight-card.highlight-card {
  border-color: var(--brand-accent);
  background: var(--brand-faint);
  box-shadow: var(--shadow-accent);
}

.insight-card.arrow-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.big-arrow {
  font-size: 48px;
  color: var(--brand-accent);
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(12px); opacity: 0.5; }
}

.card-icon { font-size: 32px; margin-bottom: 16px; }
.card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.highlight-card .card-label {
  color: var(--text-primary);
}

.card-desc {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.card-tag.old {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.card-tag.new {
  background: var(--brand-accent);
  color: #fff;
}

/* ============================================================
   SECTION 2 — ARCHITECTURE
   ============================================================ */
.strategy-quote {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--text-primary);
  border-left: 4px solid var(--brand-accent);
  padding: 24px 40px;
  margin-bottom: 72px;
  background: var(--brand-faint);
  border-radius: 0 16px 16px 0;
  line-height: 1.6;
  font-style: normal;
}

.arch-visual {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-layer {
  border-radius: 16px;
  padding: 32px 40px;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.arch-layer:hover {
  transform: scaleY(1.02);
  box-shadow: var(--shadow-md);
}

.layer-services {
  background: var(--bg-tertiary);
}

.layer-core {
  background: var(--brand-primary);
  border: 1px solid var(--brand-accent);
  box-shadow: var(--shadow-accent);
  z-index: 2;
}

.layer-tech {
  background: var(--text-primary);
}

[data-theme="dark"] .layer-tech {
  background: var(--bg-tertiary);
}

.layer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.layer-core .layer-label { display: none; }
.layer-tech .layer-label { color: rgba(255,255,255,0.5); }

.layer-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-pill {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-pill:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
}

.layer-core-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.core-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.core-text {
  display: flex;
  flex-direction: column;
  color: white;
}

.core-text strong { 
  font-size: 20px; 
  margin-bottom: 6px; 
  font-family: var(--font-body);
}

.core-text span { 
  font-size: 14px; 
  opacity: 0.85;
}

.tech-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-chips span {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.col-item {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.col-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(234,0,41,0.1);
}

.col-icon { font-size: 36px; margin-bottom: 20px; }

.col-item h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.col-item p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.col-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.col-tag.external {
  background: var(--brand-faint);
  color: var(--brand-accent);
  border: 1px solid var(--border-accent);
}

.col-tag.internal {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================================
   SECTION 3 — GROWTH LOOP
   ============================================================ */
.growth-loop-container {
  position: relative;
  width: 440px;
  height: 440px;
  margin: 0 auto 80px;
}

#loopCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loop-labels {
  position: absolute;
  inset: 0;
}

.loop-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, -50%)
    rotate(var(--angle))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
  text-align: center;
}

.loop-node {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}

.loop-node.active {
  border-color: var(--brand-accent);
  background: var(--brand-faint);
  box-shadow: var(--shadow-accent);
  animation: node-pulse 3s ease-in-out infinite;
  transform: scale(1.05);
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(234,0,41,0.25); }
  50% { box-shadow: 0 4px 40px rgba(234,0,41,0.5); }
}

.loop-label span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 110px;
  line-height: 1.4;
  font-family: var(--font-body);
}

.loop-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  z-index: 2;
}

.loop-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 4px;
}

[data-theme="dark"] .loop-logo-img {
  filter: brightness(0) invert(1);
}

.loop-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-accent);
  line-height: 1.5;
  font-family: var(--font-body);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.metric-item {
  padding: 40px 24px;
  text-align: center;
  transition: background 0.3s ease;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item:hover { background: var(--bg-card-hover); }

.metric-value {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--brand-accent);
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-body);
}

/* ============================================================
   SECTION 4 — FUNNEL
   ============================================================ */
.funnel-visual {
  max-width: 560px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 300px;
  justify-content: flex-end;
}

.funnel-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
  margin-bottom: -10px;
  position: absolute;
  top: 0;
  z-index: 2;
}

.funnel-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: source-float 4s ease-in-out infinite;
}

.funnel-source:nth-child(2) { animation-delay: 1.3s; }
.funnel-source:nth-child(3) { animation-delay: 2.6s; }

@keyframes source-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.source-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}

.funnel-source span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.funnel-shape {
  width: 100%;
  height: 200px;
  position: relative;
  z-index: 1;
}

.funnel-shape svg { width: 100%; height: 100%; }

.funnel-bottom { margin-top: -20px; position: relative; z-index: 2; }

.funnel-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.funnel-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.funnel-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 100px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  box-shadow: var(--shadow-accent);
  animation: funnel-glow 3s ease-in-out infinite;
}

@keyframes funnel-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(234,0,41,0.35); }
  50% { box-shadow: 0 4px 40px rgba(234,0,41,0.6); }
}

/* ============================================================
   SECTION 5 — BRAND PYRAMID
   ============================================================ */
.pyramid-container {
  max-width: 720px;
  margin: 0 auto 80px;
}

.pyramid-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pyramid-level {
  border-radius: 16px;
  padding: 28px 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pyramid-level:hover {
  transform: translateX(8px);
}

.pyramid-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.pyramid-content strong {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 150px;
  color: var(--text-primary);
}

.pyramid-content span {
  font-size: 15px;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.pyr-icon { font-size: 28px; }

.level-top {
  width: 60%;
  background: var(--brand-primary);
  border-color: transparent;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.level-top .pyramid-content strong,
.level-top .pyr-icon { color: white; }
.level-top .pyramid-content span { color: rgba(255,255,255,0.88); }

.level-mid {
  width: 80%;
  background: var(--bg-tertiary);
  clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
}

.level-bot {
  width: 100%;
  background: var(--text-primary);
  color: white;
}

[data-theme="dark"] .level-bot {
  background: var(--bg-tertiary);
}

.level-bot .pyramid-content span {
  color: rgba(255,255,255,0.65);
}

[data-theme="dark"] .level-bot .pyramid-content span {
  color: var(--text-muted);
}

.comparison-row {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}

.compare-card {
  flex: 1;
  max-width: 400px;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.compare-card.lost { 
  opacity: 0.55; 
}

.compare-card.win {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-accent);
  background: var(--brand-faint);
}

.compare-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.compare-logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.compare-logo.brand-text {
  font-size: 38px;
  color: var(--brand-accent);
}

.compare-tags {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-yes, .tag-no {
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}

.tag-yes { color: var(--brand-accent); }
.green-text { color: #10B981; }
.tag-no { color: var(--text-muted); }

.compare-vs {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   SECTION 6 — VISION
   ============================================================ */
.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-section .section-label { color: var(--brand-accent); }
.vision-section .section-title { color: #fff; }

[data-theme="dark"] .vision-section .section-title {
  color: var(--text-primary);
}

.vision-title {
  font-size: clamp(50px, 8vw, 96px);
  text-align: center;
  width: 100%;
}

.vision-statement {
  max-width: 860px;
  margin: 60px auto 80px;
  padding: 48px 64px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  text-align: center;
}

[data-theme="dark"] .vision-statement {
  background: var(--bg-card);
  border-color: var(--border);
}

.vision-statement::before {
  content: '"';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  line-height: 1;
  color: var(--brand-accent);
  font-family: var(--font-heading);
  font-weight: 900;
  opacity: 0.5;
}

.vision-statement p {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-weight: 400;
}

[data-theme="dark"] .vision-statement p {
  color: var(--text-secondary);
}

.vision-statement em {
  font-style: normal;
  color: var(--brand-accent);
  font-weight: 700;
}

.final-cta { text-align: center; position: relative; z-index: 2;}

.cta-note {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

[data-theme="dark"] .cta-note {
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-tagline { display: none; }

  .hero-title { font-size: 40px; }
  .section-title { font-size: 32px; }

  .insight-cards {
    grid-template-columns: 1fr;
  }

  .insight-card.arrow-card {
    transform: rotate(90deg);
    padding: 16px 0;
  }

  .two-col { grid-template-columns: 1fr; }

  .growth-loop-container {
    width: 320px;
    height: 320px;
  }

  .comparison-row { flex-direction: column; }
  .compare-vs { order: 3; }

  .metric-row { grid-template-columns: 1fr; }
  .strategy-section { padding: 80px 16px; }
  
  .pyramid-level { width: 100% !important; }
  .vision-statement { padding: 32px 24px; }
}

/* ============================================================
   SMOOTH TRANSITIONS
   ============================================================ */
*, *::before, *::after {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.4s ease;
}

canvas { transition: none !important; }
img { transition: transform 0.3s ease !important; }
