﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VCC IQONIC â€“ Single-Sprint UX Overhaul
/* v1.4 */
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root{
  --blue:#4F7EF7;
  --blue-deep:#3560D4;
  --blue-light:#7AA3FF;
  --mint:#3EEDB8;
  --mint-light:#62FFD4;
  --teal:#28C99E;
  --ink:#0D1926;
  --ink-2:#182535;
  --bg:#080E1A;
  --surface:#111926;
  --surface-2:#162032;
  --muted:#0F1C2D;
  --border:rgba(255,255,255,.07);
  --border-bright:rgba(79,126,247,.22);
  --shadow:0 20px 60px rgba(0,0,0,.45);
  --shadow-2:0 8px 28px rgba(0,0,0,.30);
  --shadow-lg:0 32px 80px rgba(0,0,0,.50);
  --glow-blue:0 0 40px rgba(79,126,247,.22);
  --glow-mint:0 0 40px rgba(62,237,184,.18);
  --radius:20px;
  --radius-sm:14px;
  --ring:0 0 0 3px rgba(79,126,247,.28);
  --transition:.20s cubic-bezier(.4,0,.2,1);
  /* Text colour tokens — used throughout so light/dark swap cleanly */
  --t-heading:#ffffff;
  --t-body:#E8EFF8;
  --t-secondary:rgba(200,220,255,.65);
  --t-muted:rgba(180,210,255,.42);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:#E8EFF8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,126,247,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(62,237,184,.12) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,.025)'/%3E%3C/svg%3E");
}

a{color:inherit;text-decoration:none}
small{color:var(--t-muted)}
b,strong{font-weight:800}

.container{width:min(1240px, 92vw); margin:0 auto;}

/* â”€â”€â”€ Header â”€â”€â”€ */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(200%) blur(32px);
  background:rgba(5,9,18,.86);
  border-bottom:1px solid rgba(79,126,247,.14);
  box-shadow:0 1px 0 rgba(0,0,0,.55), 0 4px 40px rgba(0,0,0,.30);
  overflow:visible;
}
.header::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, var(--blue-deep), var(--blue), var(--teal), var(--blue-light), var(--blue-deep));
  background-size:300% 100%;
  animation:headerAccent 8s linear infinite;
  z-index:1;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.brand img{
  width:46px;
  height:46px;
  border-radius:14px;
  border:2px solid rgba(79,126,247,.45);
  box-shadow: 0 0 0 5px rgba(79,126,247,.08), 0 6px 22px rgba(79,126,247,.28);
  filter: brightness(1.04) saturate(1.10);
}
.brand-title{display:flex; flex-direction:column; line-height:1.2;}
.brand-title b{font-size:15px; letter-spacing:.8px; font-weight:900; font-family:'Space Grotesk','Inter',sans-serif; text-transform:uppercase; background:linear-gradient(135deg, #fff 20%, var(--blue-light) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;}
.brand-title span{font-size:9.5px; color:var(--t-muted); font-weight:600; letter-spacing:.7px; text-transform:uppercase;}

/* Legacy nav (hidden — replaced by chapter-rail) */
.nav{display:none}
.nav-cta{display:none}
.chapter-rail{
  display:flex;
  gap:2px;
  flex:1;
  justify-content:center;
  flex-wrap:wrap;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(79,126,247,.15);
  border-radius:999px;
  padding:3px;
}
.chapter-btn{
  padding:7px 20px;
  border-radius:999px;
  color:rgba(170,200,255,.50);
  font-weight:600;
  font-size:12px;
  border:1px solid transparent;
  background:transparent;
  transition:all var(--transition);
  cursor:pointer;
  letter-spacing:.4px;
  text-transform:uppercase;
  font-family:'Space Grotesk','Inter',sans-serif;
}
.chapter-btn:hover{background:rgba(79,126,247,.12); color:rgba(210,230,255,.92); border-color:rgba(79,126,247,.18)}
.chapter-btn.active{
  background:linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-color:transparent;
  color:#fff;
  font-weight:700;
  box-shadow:0 2px 18px rgba(79,126,247,.45), inset 0 1px 0 rgba(255,255,255,.22);
}

/* Mode toggle */
.mode-toggle{
  display:flex;
  border:1px solid rgba(79,126,247,.20);
  border-radius:999px;
  overflow:hidden;
  background:rgba(5,9,18,.60);
  padding:3px;
  gap:2px;
}
.mode-btn{
  padding:5px 14px;
  font-size:11px;
  font-weight:700;
  border:none;
  background:transparent;
  cursor:pointer;
  transition:all var(--transition);
  color:rgba(160,195,255,.48);
  letter-spacing:.35px;
  border-radius:999px;
  text-transform:uppercase;
  font-family:'Space Grotesk','Inter',sans-serif;
}
.mode-btn:hover{color:rgba(200,230,255,.88); background:rgba(79,126,247,.10)}
.mode-btn.active{
  background:linear-gradient(135deg, var(--blue), var(--teal));
  color:#fff;
  border-radius:999px;
  box-shadow:0 1px 12px rgba(79,126,247,.50), inset 0 1px 0 rgba(255,255,255,.18);
}

/* Progress dots */
.progress-dots{display:flex; gap:5px; align-items:center;}
.progress-dot{
  width:22px;
  height:4px;
  border-radius:2px;
  border:none;
  background:rgba(79,126,247,.18);
  transition:all .30s cubic-bezier(.4,0,.2,1);
}
.progress-dot.done{
  background:var(--teal);
  opacity:.65;
}
.progress-dot.active{
  background:var(--blue);
  width:36px;
  box-shadow:0 0 12px rgba(79,126,247,.60);
}

/* Header right controls */
.header-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.icon-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  padding:0;
  display:grid;
  place-items:center;
  font-size:14px;
  min-width:34px;
}
/* Override .btn base padding/radius when also .icon-btn */
.btn.icon-btn{
  padding:0;
  border-radius:50%;
  min-width:34px;
}

/* Mode visibility rules (most critical) */
.app-external [data-internal]{
  display:none !important;
}
.app-external .mode-btn[data-mode="external"]{
  /* keep visible â€” this is the active toggle */
}

/* Legacy nav (hidden â€” replaced by chapter-rail) */
.nav{display:none}
.nav-cta{display:none}

/* â”€â”€â”€ Typography â”€â”€â”€ */
.h2{margin:0 0 8px; font-size:28px; letter-spacing:-.5px; font-weight:900; color:var(--t-heading)}
.lead{margin:0 0 4px; color:var(--t-secondary); line-height:1.6; font-size:15px; font-weight:500}

/* â”€â”€â”€ Chapter layout â”€â”€â”€ */
.app-main{padding:24px 0 40px}
.chapter{animation:fadeInUp .3s ease both;}
.chapter + .chapter{margin-top:0}

.chapter-continue{
  display:flex;
  justify-content:flex-start;
  margin-top:28px;
  padding-bottom:6px;
}

/* â”€â”€â”€ Sections â”€â”€â”€ */
.section{padding:24px 0 40px; scroll-margin-top:80px; animation:fadeInUp .5s ease both;}
.section:nth-child(2){animation-delay:.05s}
.section:nth-child(3){animation-delay:.1s}

/* â”€â”€â”€ Global USP grid â”€â”€â”€ */
.usp-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.usp-card{
  padding:20px 22px;
  border-radius:var(--radius-sm);
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  transition:all var(--transition);
  position:relative;
  overflow:hidden;
}
.usp-card::before{content:""; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--blue), var(--teal)); opacity:0; transition:opacity var(--transition);}
.usp-card:hover{transform:translateY(-3px); box-shadow:0 12px 36px rgba(0,0,0,.35); border-color:rgba(79,126,247,.20)}
.usp-card:hover::before{opacity:1}
.usp-title{
  font-weight:800;
  font-size:14px;
  color:var(--t-heading);
  margin-bottom:6px;
}
.usp-body{
  font-size:13px;
  line-height:1.55;
  color:var(--t-secondary);
  margin-bottom:6px;
}
.usp-outcome{
  font-size:13px;
  line-height:1.55;
  color:var(--t-secondary);
  margin-bottom:8px;
}
.usp-why{
  font-size:12px;
  line-height:1.5;
  color:var(--t-muted);
  font-style:italic;
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:8px;
  margin-top:4px;
}
.usp-why::before{ content:"Why us: "; font-weight:700; color:var(--blue-light); font-style:normal; }

/* â”€â”€â”€ Module USP strip â”€â”€â”€ */
.module-usp-strip{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.module-usp-card{
  padding:8px 12px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(79,126,247,.04), rgba(62,237,184,.06));
  border:1px solid rgba(79,126,247,.10);
  font-size:12px;
  font-weight:600;
  color:var(--t-secondary);
  line-height:1.45;
}
.module-usp-card b{color:var(--blue-light); font-weight:800;}

/* â”€â”€â”€ Share toast â”€â”€â”€ */
.share-toast{
  position:fixed;
  bottom:80px;
  left:50%;
  transform:translateX(-50%) translateY(8px);
  background:var(--ink);
  color:#fff;
  padding:10px 20px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 8px 24px rgba(79,126,247,.20);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:300;
  white-space:nowrap;
  max-width:92vw;
  text-align:center;
}
.share-toast.visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

/* â”€â”€â”€ Share button â”€â”€â”€ */
.share-btn{
  flex-shrink:0;
}

/* â”€â”€â”€ Hero â”€â”€â”€ */
.hero{padding:0;}
.hero-card{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:32px;
  padding:40px 44px;
  background:
    radial-gradient(900px 500px at -10% 60%, rgba(79,126,247,.20) 0%, transparent 60%),
    radial-gradient(700px 500px at 110% -20%, rgba(62,237,184,.14) 0%, transparent 55%),
    linear-gradient(160deg, #0D1A2E 0%, #0A1320 50%, #091220 100%);
  border:1px solid rgba(79,126,247,.16);
  border-radius:var(--radius);
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
  position:relative;
  margin-top:8px;
}
.hero-card::before{
  content:"";
  position:absolute;
  top:-30%;
  right:-10%;
  width:700px;
  height:700px;
  background:radial-gradient(circle, rgba(79,126,247,.12) 0%, transparent 65%);
  pointer-events:none;
}
.hero-card::after{
  content:"";
  position:absolute;
  bottom:-40%;
  left:-5%;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(62,237,184,.10) 0%, transparent 65%);
  pointer-events:none;
}
.hero-left,.hero-right{position:relative; z-index:2}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(79,126,247,.12);
  border:1px solid rgba(79,126,247,.24);
  font-weight:700;
  font-size:11px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--blue-light);
  backdrop-filter:blur(8px);
}
.kicker .dot{width:6px;height:6px;border-radius:50%; background:linear-gradient(135deg, var(--blue-light), var(--mint));}

h1{margin:16px 0 10px; font-size:44px; letter-spacing:-1.5px; font-weight:900; line-height:1.02; color:var(--t-heading);}
h1 .brand-highlight{
  background:linear-gradient(135deg, #7AA3FF 0%, #3EEDB8 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p{margin:0; font-size:17px; line-height:1.7; color:var(--t-secondary); font-weight:500}
.hero p.sub{margin-top:6px; color:var(--t-muted); font-size:14px}

.hero-actions{display:flex; gap:10px; margin-top:20px; flex-wrap:wrap;}

.btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  padding:10px 20px;
  border-radius:14px;
  font-weight:700;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:all var(--transition);
  user-select:none;
  letter-spacing:.25px;
  color:var(--t-body);
  backdrop-filter:blur(8px);
  position:relative;
  overflow:hidden;
  font-family:'Space Grotesk','Inter',sans-serif;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.35); background:rgba(255,255,255,.11); border-color:rgba(79,126,247,.35); color:#fff}
.btn.primary{
  background:linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-color:transparent;
  color:#fff;
  font-weight:700;
  letter-spacing:.35px;
  box-shadow:0 6px 28px rgba(79,126,247,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn.primary::after{
  content:'';
  position:absolute;
  top:0; left:-80%; width:55%; height:100%;
  background:linear-gradient(105deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform:skewX(-12deg);
  animation:btnShimmer 3.6s ease-in-out infinite;
}
.btn.primary:hover{box-shadow:0 10px 40px rgba(79,126,247,.60); transform:translateY(-2px)}
.btn.small{padding:7px 14px; font-size:12px; border-radius:10px; letter-spacing:.2px;}
.btn .icon{width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:13px}
.btn.primary .icon{background:rgba(255,255,255,.22)}

/* â”€â”€â”€ Stats â”€â”€â”€ */
.stats{display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; margin-top:18px;}
.stat{
  padding:12px 8px;
  background:rgba(79,126,247,.06);
  border:1px solid rgba(79,126,247,.14);
  border-radius:14px;
  backdrop-filter:blur(8px);
  text-align:center;
  transition:all var(--transition);
}
.stat:hover{background:rgba(79,126,247,.10); border-color:rgba(79,126,247,.24); transform:translateY(-1px)}
.stat b{font-size:18px; font-weight:900; background:linear-gradient(135deg, #7AA3FF, #3EEDB8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; display:block}
.stat span{display:block; font-size:10px; color:var(--t-muted); margin-top:3px; font-weight:700; text-transform:uppercase; letter-spacing:.3px}

/* Layout helpers */
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.mini{margin:8px 0 0; padding-left:18px; color:var(--t-secondary)}
.mini li{margin:6px 0}

hr.soft{border:0; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); margin:18px 0;}

/* â”€â”€â”€ Pillar strip â”€â”€â”€ */
.pillar-strip{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:14px 0 0;
}
.pillar-pill{
  padding:7px 16px;
  border-radius:999px;
  border:1px solid rgba(79,126,247,.14);
  background:rgba(17,25,38,.95);
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  transition:all var(--transition);
  color:var(--t-secondary);
  backdrop-filter:blur(6px);
}
.pillar-pill:hover{
  background:rgba(79,126,247,.06);
  border-color:rgba(79,126,247,.28);
  color:var(--blue);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(79,126,247,.10);
}
.pillar-pill.blue{border-color:rgba(79,126,247,.22); color:var(--blue)}
.pillar-pill.mint{border-color:rgba(62,237,184,.35); color:var(--t-secondary)}
.pillar-pill.warn{border-color:rgba(240,150,60,.25); color:var(--t-secondary)}
.pillar-pill.dark{border-color:rgba(255,255,255,.09); color:var(--t-secondary)}

/* â”€â”€â”€ Module header card â”€â”€â”€ */
.module-header-card{
  padding:18px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}
.module-header-card .module-head h3{margin:0 0 4px; font-size:18px; font-weight:900; letter-spacing:-.3px; color:var(--t-heading)}
.module-header-card .module-head small{color:var(--t-muted); font-size:13px}

/* â”€â”€â”€ Cards â”€â”€â”€ */
.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
.card{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  padding:20px;
  transition:all var(--transition);
}
.card:hover{transform:translateY(-2px); box-shadow:0 12px 40px rgba(0,0,0,.35); border-color:rgba(79,126,247,.20)}
.card h3{margin:8px 0 6px; font-size:15px; letter-spacing:-.2px; font-weight:800; color:var(--t-heading);}
.card.feature small{ color:var(--t-secondary); font-size:13px; line-height:1.5; display:block; margin-bottom:6px; }

.pills{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px;}
.pill{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  font-weight:700;
  font-size:11px;
  color:var(--t-secondary);
  letter-spacing:.1px;
}
.pill.blue{border-color:rgba(79,126,247,.28); background:rgba(79,126,247,.12); color:var(--blue-light)}
.pill.mint{border-color:rgba(62,237,184,.30); background:rgba(62,237,184,.10); color:var(--mint-light)}
.pill.dark{border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.05); color:var(--t-secondary)}
.pill.warn{border-color:rgba(255,170,60,.30); background:rgba(255,170,60,.10); color:rgba(255,190,100,.80)}
.pill.ai{
  border-color:rgba(79,126,247,.30);
  background:linear-gradient(135deg, rgba(79,126,247,.15), rgba(62,237,184,.15));
  color:var(--blue-light);
}

/* â”€â”€â”€ Callouts â”€â”€â”€ */
.callout{
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(79,126,247,.20);
  background:linear-gradient(135deg, rgba(79,126,247,.08), rgba(62,237,184,.08));
}
.callout-title{font-weight:800; font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:var(--blue-light)}
.callout-body{margin-top:8px; color:var(--t-body); line-height:1.6; font-size:14px}

/* â”€â”€â”€ Modules layout â”€â”€â”€ */
.modules-layout{display:grid; grid-template-columns: 270px 1fr; gap:16px;}
.sidebar{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:14px;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  position:sticky;
  top:80px;
  align-self:start;
  height: fit-content;
  backdrop-filter:blur(8px);
}
.sidebar h4{margin:4px 8px 12px; font-size:11px; color:var(--blue-light); letter-spacing:.5px; text-transform:uppercase; font-weight:800}

.module-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
  border:1px solid transparent;
  cursor:pointer;
  color:var(--t-secondary);
  transition:all var(--transition);
}
.module-link:hover{background:rgba(79,126,247,.10); color:rgba(200,220,255,.90)}
.module-link.active{
  background:linear-gradient(135deg, rgba(79,126,247,.16), rgba(62,237,184,.10));
  border-color:rgba(79,126,247,.24);
  color:#fff;
  font-weight:800;
  box-shadow:0 2px 12px rgba(79,126,247,.15);
}
.module-dot{width:6px;height:6px;border-radius:50%; background:linear-gradient(135deg, var(--blue-light), var(--mint));}

.filters{display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 12px;}
.input, select{
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  font-weight:700;
  font-size:13px;
  outline:none;
  transition:all var(--transition);
  color:var(--t-body);
}
.input::placeholder{color:rgba(150,180,255,.35)}
.input:focus, select:focus{box-shadow:var(--ring); border-color:rgba(79,126,247,.40); background:rgba(79,126,247,.07)}
select option{background:#111926; color:#ddeeff}

/* â”€â”€â”€ Stepper / Journey â”€â”€â”€ */
.stepper{display:flex; flex-wrap:wrap; gap:10px;}
.step{
  flex: 1 1 140px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--surface);
  cursor:pointer;
  transition:all var(--transition);
  text-align:center;
}
.step:hover{transform:translateY(-2px); box-shadow:0 4px 20px rgba(0,0,0,.30); border-color:rgba(79,126,247,.22)}
.step b{display:block; font-size:13px; font-weight:800; color:var(--t-heading)}
.step span{display:block; font-size:11px; color:var(--t-muted); margin-top:4px; font-weight:600}
.step.active{
  background:linear-gradient(135deg, rgba(79,126,247,.16), rgba(62,237,184,.12));
  border-color:rgba(79,126,247,.28);
  box-shadow:0 4px 20px rgba(79,126,247,.18);
}

/* â”€â”€â”€ Value â”€â”€â”€ */
.tabs{display:flex; gap:6px; flex-wrap:wrap;}
.tab{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:transparent;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  transition:all var(--transition);
  color:var(--t-secondary);
}
.tab:hover{background:rgba(79,126,247,.10); color:rgba(200,220,255,.85)}
.tab.active{
  border-color:rgba(79,126,247,.30);
  background:linear-gradient(135deg, rgba(79,126,247,.18), rgba(62,237,184,.12));
  color:#fff;
  font-weight:800;
  box-shadow:0 2px 12px rgba(79,126,247,.18);
}

.value-layout{display:grid; grid-template-columns: 1.05fr .95fr; gap:12px;}
.value-panels{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px;}

.panel{
  padding:14px;
  border-radius:14px;
  background:rgba(79,126,247,.05);
  border:1px solid rgba(79,126,247,.12);
}
.panel h4{margin:0 0 8px; font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:var(--blue-light); font-weight:800}
.panel ul{margin:0; padding-left:18px; color:var(--t-secondary)}
.panel li{margin:5px 0; line-height:1.5; font-size:13px}

/* â”€â”€â”€ Personas â”€â”€â”€ */
.persona-layout{display:grid; grid-template-columns: 1.05fr .95fr; gap:16px;}
.hint{display:block; margin-top:8px; color:var(--t-muted); font-size:12px}

/* â”€â”€â”€ Footer â”€â”€â”€ */
.footer{
  padding:24px 0 32px;
  color:var(--t-muted);
  font-size:12px;
  border-top:1px solid rgba(79,126,247,.08);
  margin-top:20px;
}
.footer-inner{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center;}
.footer .muted{margin-top:4px; color:var(--t-muted)}
.footer b{color:var(--t-secondary)}

/* â”€â”€â”€ Drawer â”€â”€â”€ */
.drawer{
  position:fixed;
  top:0; right:0;
  width:min(560px, 94vw);
  height:100vh;
  background:rgba(11,18,30,.96);
  border-left:1px solid rgba(79,126,247,.14);
  box-shadow:-24px 0 80px rgba(0,0,0,.55);
  transform:translateX(110%);
  transition:transform .22s cubic-bezier(.4,0,.2,1);
  z-index:60;
  padding:20px 22px 30px;
  overflow:auto;
  backdrop-filter:blur(20px);
}
.drawer.open{transform:translateX(0)}
.drawer .close{position:sticky; top:8px; display:flex; justify-content:flex-end; margin-bottom:8px; z-index:2}
.drawer .close button{
  border:1px solid rgba(255,255,255,.08);
  background:var(--surface);
  border-radius:12px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
  transition:all var(--transition);
  font-size:12px;
}
.drawer .close button:hover{background:rgba(79,126,247,.06)}
.drawer h2{margin:8px 0 10px; font-size:20px; letter-spacing:-.3px; font-weight:900; color:var(--t-heading)}
.drawer p{margin:0; color:var(--t-secondary); line-height:1.7; font-size:14px}
.drawer .block{
  margin-top:16px;
  padding:14px;
  background:rgba(79,126,247,.06);
  border:1px solid rgba(79,126,247,.14);
  border-radius:14px;
}
.drawer .block h5{margin:0 0 8px; font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:var(--blue-light); font-weight:800}
.drawer ul{margin:0; padding-left:18px; color:var(--t-secondary)}
.drawer li{margin:5px 0; line-height:1.5; font-size:13px}

/* â”€â”€â”€ Modal â”€â”€â”€ */
.modal{position:fixed; inset:0; display:none; z-index:80;}
.modal.open{display:block}
.modal-backdrop{position:absolute; inset:0; background:rgba(170,200,255,.40); backdrop-filter:blur(4px);}
.modal-card{
  position:relative;
  width:min(820px, 92vw);
  margin:72px auto;
  background:rgba(11,18,30,.97);
  border-radius:var(--radius);
  border:1px solid rgba(79,126,247,.16);
  box-shadow:var(--shadow-lg), 0 0 60px rgba(79,126,247,.10);
  padding:20px;
  backdrop-filter:blur(20px);
}
.modal-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px;}
.modal-body{padding:4px 2px 2px}
.steps{margin:0; padding-left:18px; color:var(--t-secondary)}
.steps li{margin:10px 0; line-height:1.6; font-size:14px}



/* â”€â”€â”€ Guided demo tour â”€â”€â”€ */
.tour{position:fixed; inset:0; z-index:120; display:none; pointer-events:none;}
.tour.open{display:block}
.tour-spotlight{
  position:absolute;
  border-radius:18px;
  border:2px solid rgba(62,237,184,.80);
  box-shadow: 0 0 0 9999px rgba(170,200,255,.43);
  pointer-events:none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.tour-tooltip{
  position:absolute;
  width:min(420px, 92vw);
  background:rgba(11,18,30,.97);
  border-radius:20px;
  border:1px solid rgba(79,126,247,.20);
  box-shadow:var(--shadow-lg), 0 0 40px rgba(79,126,247,.12);
  padding:18px;
  pointer-events:auto;
  backdrop-filter:blur(20px);
}
.tour-head{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.tour-text{color:var(--t-secondary); line-height:1.65; font-size:13px;}
.tour-actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap;}
.tour-progress{margin-top:10px; font-size:12px; color:var(--t-muted); font-weight:700}
.tour-select{width:100%; margin-top:10px; font-size:14px}
.tour-bullets{margin:10px 0 0; padding-left:18px; color:var(--t-secondary)}
.tour-bullets li{margin:5px 0; line-height:1.5}

/* â”€â”€â”€ Responsive â”€â”€â”€ */
@media (max-width: 1050px){
  .header-controls{ gap:6px }
  .chapter-rail{ flex:unset }
  .progress-dots{ display:none }
}
@media (max-width: 980px){
  .hero-card{grid-template-columns:1fr}
  .hub-diagram{max-width:340px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
  .modules-layout{grid-template-columns:1fr}
  .sidebar{position:relative; top:auto}
  .value-layout{grid-template-columns:1fr}
  .persona-layout{grid-template-columns:1fr}
  .nav-cta{display:none}
  .usp-grid{grid-template-columns:1fr}
  .chapter-rail{display:none}
}
@media (max-width: 520px){
  h1{font-size:30px}
  .grid{grid-template-columns:1fr}
  .nav{justify-content:flex-start}
  .two-col{grid-template-columns:1fr}
  .modal-card{margin:22px auto}
  .hub-diagram{max-width:260px}
  .hub-node{width:62px; height:62px}
  .hub-node-label{font-size:7px}
  .hub-center{width:72px; height:72px}
}

/* â•â•â•â•â•â•â• SELLER UX ENHANCEMENTS â•â•â•â•â•â•â• */

/* Keyboard shortcut badges */
.kbd{
  display:inline-block;
  padding:2px 5px;
  border-radius:5px;
  border:1px solid var(--border);
  background:var(--surface-2);
  font-family:ui-monospace, SFMono-Regular, monospace;
  font-size:10px;
  font-weight:700;
  color:var(--t-muted);
  line-height:1.3;
  margin-left:4px;
  vertical-align:middle;
}

/* Module count badges */
.module-count{
  margin-left:auto;
  padding:2px 8px;
  border-radius:99px;
  background:rgba(79,126,247,.08);
  border:1px solid rgba(79,126,247,.14);
  font-size:11px;
  font-weight:800;
  color:var(--blue);
  flex-shrink:0;
}
.module-ai-badge{
  padding:2px 7px;
  border-radius:99px;
  background:linear-gradient(135deg, rgba(79,126,247,.08), rgba(62,237,184,.14));
  border:1px solid rgba(62,237,184,.30);
  font-size:10px;
  font-weight:800;
  color:var(--t-secondary);
  flex-shrink:0;
}

/* Module quick stats bar */
.module-stats{
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
.module-stat{
  padding:8px 14px;
  border-radius:10px;
  background:linear-gradient(135deg, rgba(79,126,247,.04), rgba(62,237,184,.04));
  border:1px solid rgba(79,126,247,.08);
  font-size:12px;
  font-weight:700;
  color:var(--t-secondary);
}
.module-stat b{color:var(--blue-light); font-size:14px; font-weight:900}

/* Feature cards */
.card.feature{cursor:pointer; position:relative;}
.card.feature:hover{
  border-color:rgba(79,126,247,.18);
  box-shadow:0 8px 28px rgba(79,126,247,.10);
}
.card.feature .card-module-tag{
  position:absolute;
  top:10px;
  right:10px;
  font-size:10px;
  font-weight:800;
  padding:3px 8px;
  border-radius:99px;
  background:rgba(79,126,247,.06);
  border:1px solid rgba(79,126,247,.10);
  color:var(--t-muted);
}

/* Copy button */
.copy-btn{
  border:1px solid rgba(79,126,247,.16);
  background:rgba(79,126,247,.06);
  padding:8px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:11px;
  cursor:pointer;
  transition:all var(--transition);
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--blue);
}
.copy-btn:hover{background:rgba(79,126,247,.12)}
.copy-btn.copied{background:rgba(62,237,184,.16); border-color:rgba(62,237,184,.35); color:var(--teal)}

/* Related capabilities */
.drawer-related-chip{
  padding:6px 10px;
  border-radius:99px;
  border:1px solid rgba(255,255,255,.07);
  background:var(--surface);
  font-weight:700;
  font-size:11px;
  cursor:pointer;
  transition:all var(--transition);
  color:var(--t-secondary);
}
.drawer-related-chip:hover{background:rgba(79,126,247,.06); border-color:rgba(79,126,247,.16); color:var(--blue)}

/* Back to top */
.back-to-top{
  position:fixed;
  bottom:24px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(79,126,247,.14);
  background:rgba(17,25,38,.95);
  box-shadow:0 4px 16px rgba(255,255,255,.08);
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  z-index:50;
  opacity:0;
  transform:translateY(12px);
  transition:all .2s ease;
  pointer-events:none;
  backdrop-filter:blur(8px);
  color:var(--blue);
}
.back-to-top.visible{opacity:1; transform:translateY(0); pointer-events:auto;}
.back-to-top:hover{background:rgba(79,126,247,.08); box-shadow:0 6px 20px rgba(79,126,247,.14)}

/* Global search */
.search-overlay{position:fixed; inset:0; z-index:200; display:none;}
.search-overlay.open{display:block}
.search-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,8,16,.65);
  backdrop-filter:blur(6px);
}
.search-box{
  position:relative;
  width:min(680px, 92vw);
  margin:80px auto 0;
  background:var(--surface);
  border-radius:20px;
  border:1px solid rgba(79,126,247,.16);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.search-input-wrap{
  display:flex;
  align-items:center;
  padding:16px 20px;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.search-icon{font-size:18px; opacity:.45}
.search-input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-size:16px;
  font-weight:600;
  color:#E8EFF8;
}
.search-input::placeholder{color:rgba(150,180,255,.30); font-weight:500}
.search-results{max-height:min(420px, 55vh); overflow:auto; padding:8px;}
.search-results:empty{display:none}
.search-result{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  transition:background .12s ease;
}
.search-result:hover, .search-result.selected{background:rgba(79,126,247,.06)}
.search-result-icon{
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--blue), var(--blue-light));
  display:grid;
  place-items:center;
  font-size:14px;
  color:#fff;
  box-shadow:0 2px 8px rgba(79,126,247,.20);
}
.search-result-body{flex:1; min-width:0;}
.search-result-title{font-weight:800; font-size:13px; color:var(--t-heading)}
.search-result-sub{font-size:12px; color:var(--t-muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.search-result-pills{display:flex; gap:4px; margin-top:5px; flex-wrap:wrap;}
.search-result .pill{font-size:10px; padding:3px 7px;}
.search-empty{padding:28px 18px; text-align:center; color:var(--t-muted); font-size:13px;}
.search-hint{padding:10px 18px 14px; font-size:11px; color:var(--t-muted); text-align:center; border-top:1px solid rgba(255,255,255,.05);}

/* Drawer talk track section */
.drawer .block .talk-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

/* â•â•â•â•â•â•â• HUB-AND-SPOKE DIAGRAM (matching marketing image) â•â•â•â•â•â•â• */
.hub-diagram{
  position:relative;
  width:100%;
  aspect-ratio:1;
  max-width:440px;
  margin:0 auto;
}
.hub-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
}
.hub-line{
  stroke:url(#hubGrad);
  stroke-width:2;
  stroke-dasharray:6 4;
  opacity:.45;
}
.hub-center{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:110px;
  height:110px;
  border-radius:50%;
  background:linear-gradient(145deg, rgba(14,22,40,.98), rgba(10,18,32,.98));
  border:3px solid rgba(79,126,247,.22);
  box-shadow: 0 8px 32px rgba(79,126,247,.12), 0 0 0 10px rgba(79,126,247,.04);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:5;
  animation:hubPulse 3s ease-in-out infinite;
}
.hub-center-badge{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.5px;
  background:linear-gradient(135deg, var(--blue-light), var(--mint));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  line-height:1;
}
.hub-center-label{font-size:10px; color:var(--blue-light); margin-top:4px; letter-spacing:.5px; font-weight:800; text-transform:uppercase}

.hub-node{
  position:absolute;
  width:84px;
  height:84px;
  border-radius:50%;
  background:linear-gradient(145deg, var(--blue), var(--blue-light));
  border:3px solid rgba(255,255,255,.60);
  box-shadow:0 6px 20px rgba(79,126,247,.25);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .25s cubic-bezier(.4,0,.2,1);
  z-index:4;
  text-decoration:none;
}
.hub-node:hover{
  transform:scale(1.14);
  box-shadow:0 10px 32px rgba(79,126,247,.35);
  z-index:6;
}
.hub-node.active{
  background:linear-gradient(145deg, var(--teal), var(--mint));
  box-shadow:0 8px 28px rgba(62,237,184,.30);
}
.hub-node-icon{font-size:20px; line-height:1; filter:brightness(10)}
.hub-node-label{
  font-size:8.5px;
  font-weight:800;
  color:#fff;
  text-align:center;
  line-height:1.15;
  margin-top:3px;
  letter-spacing:.2px;
  text-transform:uppercase;
  max-width:68px;
}

/* â•â•â•â•â•â•â• Animations â•â•â•â•â•â•â• */
@keyframes fadeInUp{
  from{opacity:0; transform:translateY(16px)}
  to{opacity:1; transform:translateY(0)}
}
@keyframes headerAccent{
  0%{background-position:0% 50%}
  100%{background-position:300% 50%}
}
@keyframes btnShimmer{
  0%,55%{left:-80%}
  100%{left:130%}
}
@keyframes hubPulse{
  0%,100%{box-shadow: 0 8px 32px rgba(79,126,247,.12), 0 0 0 10px rgba(79,126,247,.04)}
  50%{box-shadow: 0 8px 32px rgba(79,126,247,.18), 0 0 0 16px rgba(79,126,247,.08)}
}
@keyframes hubNodeIn{
  from{opacity:0; transform:scale(.6) translate(-50%,-50%)}
  to{opacity:1; transform:scale(1) translate(-50%,-50%)}
}
@keyframes heroEntrance{
  from{opacity:0; transform:scale(.97) translateY(12px)}
  to{opacity:1; transform:scale(1) translateY(0)}
}
@keyframes statPop{
  from{opacity:0; transform:scale(.85) translateY(8px)}
  60%{opacity:1; transform:scale(1.04) translateY(-2px)}
  to{opacity:1; transform:scale(1) translateY(0)}
}
@keyframes cardSlideUp{
  from{opacity:0; transform:translateY(20px)}
  to{opacity:1; transform:translateY(0)}
}
@keyframes dotPing{
  0%,100%{box-shadow:0 0 0 0 rgba(62,237,184,.50)}
  50%{box-shadow:0 0 0 6px rgba(62,237,184,0)}
}
@keyframes brandGlow{
  0%,100%{box-shadow:0 0 0 5px rgba(79,126,247,.08), 0 6px 22px rgba(79,126,247,.28)}
  50%{box-shadow:0 0 0 8px rgba(79,126,247,.16), 0 6px 28px rgba(79,126,247,.42)}
}
@keyframes progressPulse{
  0%,100%{box-shadow:0 0 12px rgba(79,126,247,.60)}
  50%{box-shadow:0 0 20px rgba(79,126,247,.90), 0 0 6px rgba(79,126,247,.30)}
}
@keyframes orbFloat{
  from{transform:translate(0,0)}
  to{transform:translate(-25px,18px)}
}
@keyframes popIn{
  from{opacity:0; transform:scale(.94)}
  to{opacity:1; transform:scale(1)}
}

@keyframes ctaGlow{
  0%,100%{box-shadow:0 6px 28px rgba(79,126,247,.45), inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 0 rgba(79,126,247,0)}
  50%{box-shadow:0 6px 36px rgba(79,126,247,.65), inset 0 1px 0 rgba(255,255,255,.22), 0 0 18px 4px rgba(79,126,247,.25)}
}
@keyframes activeGlow{
  0%,100%{box-shadow:0 2px 18px rgba(79,126,247,.45), inset 0 1px 0 rgba(255,255,255,.22)}
  50%{box-shadow:0 2px 24px rgba(79,126,247,.65), inset 0 1px 0 rgba(255,255,255,.22), 0 0 12px 2px rgba(79,126,247,.18)}
}
@keyframes selectedPulse{
  0%,100%{box-shadow:0 0 0 3px rgba(79,126,247,.14), 0 8px 28px rgba(0,0,0,.25)}
  50%{box-shadow:0 0 0 5px rgba(79,126,247,.28), 0 8px 32px rgba(0,0,0,.30), 0 0 16px rgba(79,126,247,.12)}
}
@keyframes textShimmer{
  0%{background-position:200% center}
  100%{background-position:-200% center}
}
@keyframes highlightBreathe{
  0%,100%{box-shadow:0 2px 8px rgba(79,126,247,.12)}
  50%{box-shadow:0 2px 14px rgba(79,126,247,.28), 0 0 8px rgba(62,237,184,.12)}
}
@keyframes doneFlash{
  0%{box-shadow:0 0 0 0 rgba(62,237,184,.60)}
  50%{box-shadow:0 0 8px 3px rgba(62,237,184,.35)}
  100%{box-shadow:0 0 0 0 rgba(62,237,184,0)}
}
@keyframes bgDrift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes borderGlow{
  0%,100%{border-color:rgba(79,126,247,.14); box-shadow:0 4px 20px rgba(0,0,0,.25)}
  50%{border-color:rgba(79,126,247,.32); box-shadow:0 4px 24px rgba(79,126,247,.12), 0 0 12px rgba(79,126,247,.08)}
}
@keyframes iconFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@keyframes numPop{
  0%{transform:scale(1)}
  50%{transform:scale(1.15)}
  100%{transform:scale(1)}
}
@keyframes slideInLeft{
  from{opacity:0; transform:translateX(-14px)}
  to{opacity:1; transform:translateX(0)}
}
@keyframes rainbowBorder{
  0%{border-image-source:linear-gradient(0deg, var(--blue), var(--mint))}
  50%{border-image-source:linear-gradient(180deg, var(--mint), var(--blue))}
  100%{border-image-source:linear-gradient(360deg, var(--blue), var(--mint))}
}
@keyframes hubNodeGlow{
  0%,100%{box-shadow:0 6px 20px rgba(79,126,247,.25)}
  50%{box-shadow:0 6px 28px rgba(79,126,247,.45), 0 0 16px rgba(79,126,247,.20)}
}
@keyframes glowLine{
  0%{background-position:-100% 0}
  100%{background-position:200% 0}
}
@keyframes scanLine{
  0%{top:-2px; opacity:0}
  10%{opacity:1}
  90%{opacity:1}
  100%{top:100%; opacity:0}
}
@keyframes gradRotate{
  0%{filter:hue-rotate(0deg)}
  100%{filter:hue-rotate(15deg)}
}
@keyframes sparkle{
  0%,100%{opacity:.3; transform:scale(.8)}
  50%{opacity:1; transform:scale(1.2)}
}
@keyframes rippleOut{
  0%{box-shadow:0 0 0 0 rgba(79,126,247,.30)}
  100%{box-shadow:0 0 0 12px rgba(79,126,247,0)}
}
@keyframes typewriter{
  from{width:0}
  to{width:100%}
}
@keyframes floatShadow{
  0%,100%{box-shadow:0 8px 32px rgba(0,0,0,.30)}
  50%{box-shadow:0 16px 48px rgba(0,0,0,.20), 0 0 20px rgba(79,126,247,.08)}
}
@keyframes scaleIn{
  from{opacity:0; transform:scale(.8)}
  to{opacity:1; transform:scale(1)}
}
@keyframes slideRight{
  from{width:0}
  to{width:100%}
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   3-STEP SIMPLIFICATION â€” NEW COMPONENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ Advanced tab in chapter rail (always visible to internal) â”€â”€â”€ */
.chapter-btn.advanced-tab{
  border-left: 1px solid rgba(79,126,247,.12);
  margin-left: 4px;
  padding-left: 12px;
  color: rgba(170,200,255,.40);
  font-size: 12px;
}
.chapter-btn.advanced-tab:hover{ color: var(--blue); }
.chapter-btn.advanced-tab.active{
  color: #fff;
  background: linear-gradient(135deg, rgba(79,126,247,.70), rgba(62,237,184,.52));
  box-shadow: 0 2px 14px rgba(79,126,247,.35), inset 0 1px 0 rgba(255,255,255,.16);
}

/* â”€â”€â”€ Section label â”€â”€â”€ */
.section-label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(170,200,255,.43);
}

/* â”€â”€â”€ Step indicator progress dots â”€â”€â”€ */
.dot-step{
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(79,126,247,.22);
  transition: all var(--transition);
}
.dot-step.active{
  background: var(--blue);
  width: 22px;
  border-radius: 4px;
}

/* â”€â”€â”€ Macro Flow Cards â”€â”€â”€ */
.macro-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media(max-width:740px){ .macro-grid{ grid-template-columns: 1fr; } }

.macro-card{
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.macro-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  opacity: 0;
  transition: opacity var(--transition);
}
.macro-card:hover{
  border-color: rgba(79,126,247,.30);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
.macro-card:hover::before{ opacity: 1; }
.macro-card.selected{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,126,247,.14), var(--shadow-2);
  background: linear-gradient(160deg, rgba(79,126,247,.04), rgba(62,237,184,.04));
}
.macro-card.selected::before{ opacity: 1; }

.macro-card-icon{
  font-size: 36px;
  line-height: 1;
  margin-bottom: 14px;
}
.macro-card-title{
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.macro-card-headline{
  font-size: 14px;
  font-weight: 700;
  color: rgba(200,220,255,.75);
  margin-bottom: 8px;
  line-height: 1.4;
}
.macro-card-intro{
  font-size: 13px;
  color: rgba(180,210,255,.52);
  line-height: 1.55;
  margin-bottom: 14px;
}
.macro-card-modules{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.macro-card-modules .pill.small{
  font-size: 10px;
  padding: 3px 9px;
}
.macro-card-cta{
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* â”€â”€â”€ Flow Header â”€â”€â”€ */
.flow-header-block{ margin-bottom: 24px; }

.flow-header{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(160deg, rgba(79,126,247,.06), rgba(62,237,184,.06));
  border: 1px solid rgba(79,126,247,.14);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.flow-header-icon{
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
}
.flow-header-body{
  flex: 1;
  min-width: 0;
}
.flow-header-kicker{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(170,200,255,.43);
  margin-bottom: 8px;
}
.flow-header-headline{
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.4px;
}
.flow-header-intro{
  font-size: 15px;
  color: rgba(190,215,255,.58);
  line-height: 1.55;
  margin: 0;
}
.flow-persona-badge{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(170,200,255,.48);
  font-weight: 600;
}

/* â”€â”€â”€ Journey Mini Strip â”€â”€â”€ */
.journey-mini{
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 14px 2px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.journey-mini::-webkit-scrollbar{ display: none; }

.journey-mini-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.journey-mini-step:hover{
  background: rgba(79,126,247,.07);
  border-color: rgba(79,126,247,.18);
}
.journey-mini-step.highlight{
  background: linear-gradient(135deg, rgba(79,126,247,.10), rgba(62,237,184,.10));
  border-color: rgba(79,126,247,.28);
  box-shadow: 0 2px 8px rgba(79,126,247,.12);
}
.journey-mini-icon{
  font-size: 20px;
  line-height: 1;
}
.journey-mini-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(180,210,255,.52);
  text-align: center;
  max-width: 64px;
  white-space: normal;
  line-height: 1.2;
}
.journey-mini-step.highlight .journey-mini-label{
  color: var(--blue);
}
.journey-mini-arrow{
  color: rgba(255,255,255,.14);
  font-size: 14px;
  padding: 0 2px;
  flex-shrink: 0;
}

/* â”€â”€â”€ Persona Trigger Row â”€â”€â”€ */
.persona-trigger-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 13px;
}
.muted-label{
  color: var(--t-muted);
  font-weight: 500;
}

/* â”€â”€â”€ Module Proof Cards â”€â”€â”€ */
.module-proof-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media(max-width:900px){ .module-proof-grid{ grid-template-columns: 1fr; } }

.module-proof-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.module-proof-card:hover{
  border-color: rgba(79,126,247,.22);
  box-shadow: var(--shadow-2);
}

.module-proof-head{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  background: linear-gradient(160deg, rgba(79,126,247,.04), rgba(62,237,184,.04));
  border-bottom: 1px solid var(--border);
}
.module-proof-icon{
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.module-proof-name{
  font-size: 14px;
  font-weight: 800;
  color: var(--t-heading);
  letter-spacing: -.1px;
}
.module-proof-outcome{
  font-size: 12px;
  color: var(--t-secondary);
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 500;
}

.proof-points-list{
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-point-mini{
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.proof-point-mini:hover{
  background: rgba(79,126,247,.06);
  border-color: rgba(79,126,247,.22);
  box-shadow: 0 2px 10px rgba(79,126,247,.10);
}
.proof-point-mini-title{
  font-size: 13px;
  font-weight: 700;
  color: var(--t-heading);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.proof-point-mini-summary{
  font-size: 11.5px;
  color: var(--t-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}
.proof-point-mini-pills{
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.module-proof-footer{
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.module-proof-footer .btn{
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* â”€â”€â”€ Proof / Outcomes View â”€â”€â”€ */
.proof-persona-note{
  background: linear-gradient(135deg, rgba(62,237,184,.12), rgba(79,126,247,.08));
  border: 1px solid rgba(62,237,184,.30);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.persona-note-inner .kicker{
  font-size: 12px;
}
.proof-outcomes{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 24px;
}
.proof-outcomes .h2{
  margin-bottom: 6px;
}
.proof-outcomes .lead{
  margin-bottom: 28px;
}
.proof-outcomes-list{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.proof-outcome-item{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(160deg, rgba(79,126,247,.04), rgba(62,237,184,.04));
  border: 1px solid rgba(79,126,247,.10);
  border-radius: 18px;
  padding: 18px 20px;
}
.proof-outcome-num{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proof-outcome-text{
  font-size: 15px;
  font-weight: 600;
  color: var(--t-body);
  line-height: 1.5;
}

.proof-trust{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.proof-trust-header{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--t-muted);
  margin-bottom: 16px;
}
.proof-trust-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 12px;
}
.proof-trust-item{
  background: linear-gradient(160deg, rgba(79,126,247,.05), rgba(62,237,184,.05));
  border: 1px solid rgba(62,237,184,.20);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t-secondary);
  line-height: 1.5;
}
.proof-trust-item::before{
  content: "\2713\00a0";
  color: var(--teal);
  font-weight: 900;
}

.proof-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* â”€â”€â”€ Persona Overlay â”€â”€â”€ */
.persona-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.persona-overlay.open{
  display: flex;
}
.persona-overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(170,200,255,.40);
  backdrop-filter: blur(4px);
}
.persona-overlay-panel{
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: min(640px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
}
.persona-overlay-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.persona-overlay-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 10px;
  margin-top: 16px;
}
.persona-chip{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  font-family: inherit;
  font-size: 13px;
  color: rgba(200,220,255,.85);
}
.persona-chip b{
  font-size: 13px;
  font-weight: 800;
}
.persona-chip span{
  font-size: 11.5px;
  color: rgba(170,200,255,.48);
  font-weight: 500;
  line-height: 1.35;
}
.persona-chip:hover{
  border-color: rgba(79,126,247,.30);
  background: rgba(79,126,247,.06);
  box-shadow: 0 2px 10px rgba(79,126,247,.12);
}
.persona-chip.selected{
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(62,237,184,.10), rgba(40,201,158,.08));
  box-shadow: 0 0 0 3px rgba(62,237,184,.18);
}
.persona-overlay-footer{
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* â”€â”€â”€ Advanced Panel â”€â”€â”€ */
.advanced-panel-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.section-subhead{
  font-size: 20px;
  font-weight: 900;
  color: var(--blue-light);
  margin: 0;
  letter-spacing: -.2px;
}

/* Tweak chapter-rail text for advanced tab on external mode */
.app-external .chapter-btn.advanced-tab{
  display: none;
}
.app-external #open-advanced-from-proof{
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   DARK THEME  (default — also explicit for data-theme="dark")
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"]{
  --bg:#080E1A; --surface:#111926; --surface-2:#162032;
  --muted:#0F1C2D; --border:rgba(255,255,255,.07); --border-bright:rgba(79,126,247,.22);
  --blue:#4F7EF7; --blue-light:#7AA3FF; --blue-deep:#3560D4;
  --ink:#0D1926; --ink-2:#182535;
  --shadow:0 20px 60px rgba(0,0,0,.45); --shadow-2:0 8px 28px rgba(0,0,0,.30);
  --shadow-lg:0 32px 80px rgba(0,0,0,.50);
  --glow-blue:0 0 40px rgba(79,126,247,.22); --glow-mint:0 0 40px rgba(62,237,184,.18);
  --t-heading:#ffffff;
  --t-body:#E8EFF8;
  --t-secondary:rgba(200,220,255,.65);
  --t-muted:rgba(180,210,255,.42);
}
html[data-theme="dark"] body{
  color:#E8EFF8;
  background:#080E1A;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,126,247,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(62,237,184,.12) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,.025)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .header{ background:rgba(8,14,26,.75); border-bottom-color:rgba(79,126,247,.12); }
html[data-theme="dark"] .card{ background:var(--surface-2); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] .card h3{ color:#fff; }
html[data-theme="dark"] .macro-card{ background:var(--surface); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] .macro-card-title{ color:#fff; }
html[data-theme="dark"] .macro-card-headline{ color:rgba(200,220,255,.75); }
html[data-theme="dark"] .macro-card-intro{ color:rgba(180,210,255,.55); }
html[data-theme="dark"] .sidebar{ background:var(--surface); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] .module-proof-card{ background:var(--surface); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] .proof-outcomes{ background:var(--surface); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] .proof-trust{ background:var(--surface); border-color:rgba(255,255,255,.07); }
html[data-theme="dark"] h1{ color:#fff; }
html[data-theme="dark"] .h2{ color:#fff; }
html[data-theme="dark"] .usp-title{ color:#fff; }
html[data-theme="dark"] .usp-body{ color:rgba(200,220,255,.65); }
html[data-theme="dark"] .usp-outcome{ color:rgba(200,220,255,.65); }
html[data-theme="dark"] .kicker{ color:rgba(150,190,255,.80); }
html[data-theme="dark"] .flow-header{ background:linear-gradient(160deg,rgba(79,126,247,.06),rgba(62,237,184,.06)); border-color:rgba(79,126,247,.14); }
html[data-theme="dark"] .flow-header-intro{ color:rgba(190,215,255,.58); }
html[data-theme="dark"] .module-proof-outcome{ color:rgba(180,210,255,.60); }
html[data-theme="dark"] .proof-point-mini-summary{ color:rgba(180,210,255,.60); }
html[data-theme="dark"] .proof-outcome-text{ color:rgba(220,235,255,.88); }
html[data-theme="dark"] .callout-body{ color:rgba(200,220,255,.75); }
html[data-theme="dark"] .persona-chip{ background:var(--muted); border-color:rgba(255,255,255,.07); color:rgba(200,220,255,.85); }
html[data-theme="dark"] .drawer{ background:rgba(11,18,30,.96); border-left-color:rgba(79,126,247,.14); }
html[data-theme="dark"] .drawer h2{ color:#fff; }
html[data-theme="dark"] .drawer p{ color:rgba(200,220,255,.60); }

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME  (toggle with data-theme="light" on <html>)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="light"]{
  --bg:#F2F6FF; --surface:#FFFFFF; --surface-2:#EAF0FF;
  --muted:#E2EAF8; --border:rgba(0,0,0,.08); --border-bright:rgba(79,126,247,.28);
  --blue:#3A6AE0; --blue-light:#4F7EF7; --blue-deep:#2348B5;
  --ink:#0F1C2D; --ink-2:#1A2E45;
  --shadow:0 20px 60px rgba(0,0,0,.10); --shadow-2:0 8px 28px rgba(0,0,0,.07);
  --shadow-lg:0 32px 80px rgba(0,0,0,.16);
  --glow-blue:0 0 40px rgba(79,126,247,.14); --glow-mint:0 0 40px rgba(62,237,184,.12);
  /* Text colour tokens — light theme */
  --t-heading:#0F1C2D;
  --t-body:#1A2E45;
  --t-secondary:rgba(15,28,45,.68);
  --t-muted:rgba(15,28,45,.52);
}
html[data-theme="light"] body{
  color:#0F1C2D;
  background:#F2F6FF;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(79,126,247,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(62,237,184,.08) 0%, transparent 55%);
}
html[data-theme="light"] small{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .hint{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .mini{ color:rgba(15,28,45,.68) }
html[data-theme="light"] .header{
  background:rgba(242,246,255,.94);
  border-bottom-color:rgba(79,126,247,.14);
  box-shadow:0 1px 0 rgba(0,0,0,.06), 0 4px 24px rgba(0,0,0,.06);
  overflow:visible;
}
html[data-theme="light"] .brand-title b{
  background:linear-gradient(135deg, #1A2E45, #3A6AE0);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
html[data-theme="light"] .brand-title span{ color:rgba(20,50,100,.45) }
html[data-theme="light"] .chapter-btn{ color:rgba(20,50,100,.50) }
html[data-theme="light"] .chapter-btn:hover{ background:rgba(79,126,247,.08); color:#0F1C2D }
html[data-theme="light"] .chapter-btn.active{ background:linear-gradient(135deg, var(--blue), var(--teal)); border-color:transparent; color:#fff; }
html[data-theme="light"] .chapter-rail{ background:rgba(0,0,0,.04); border-color:rgba(79,126,247,.18); }
html[data-theme="light"] .mode-toggle{ background:rgba(230,240,255,.80); }
html[data-theme="light"] .mode-btn{ color:rgba(20,50,100,.45) }
html[data-theme="light"] .progress-dot{ background:rgba(79,126,247,.20); }
html[data-theme="light"] .btn{
  color:rgba(15,28,45,.72); background:rgba(0,0,0,.04); border-color:rgba(0,0,0,.10);
}
html[data-theme="light"] .btn:hover{
  background:rgba(79,126,247,.08); border-color:rgba(79,126,247,.25); color:#0F1C2D; box-shadow:0 4px 16px rgba(79,126,247,.12);
}
html[data-theme="light"] .btn .icon{ background:rgba(0,0,0,.06) }
html[data-theme="light"] .h2{ color:#0F1C2D }
html[data-theme="light"] .lead{ color:rgba(15,28,45,.55) }
html[data-theme="light"] .hero-card{
  background:linear-gradient(160deg, #E6EFFF 0%, #F0F6FF 50%, #EAF4FF 100%);
  border-color:rgba(79,126,247,.18);
}
html[data-theme="light"] h1{ color:#0F1C2D }
html[data-theme="light"] .hero p{ color:rgba(15,28,45,.65) }
html[data-theme="light"] .hero p.sub{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .kicker{
  background:rgba(79,126,247,.08); border-color:rgba(79,126,247,.22); color:rgba(30,60,130,.70);
}
html[data-theme="light"] .btn:hover{ color:#0F1C2D }
html[data-theme="light"] .mode-btn:hover{ color:#0F1C2D }
html[data-theme="light"] .module-link:hover{ color:#0F1C2D }
html[data-theme="light"] .tab:hover{ color:#0F1C2D }
html[data-theme="light"] .stat{ background:rgba(79,126,247,.06); border-color:rgba(79,126,247,.15) }
html[data-theme="light"] .stat span{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .section-label{ color:rgba(20,50,100,.40) }
html[data-theme="light"] .macro-card{ background:#FFFFFF; border-color:rgba(0,0,0,.09) }
html[data-theme="light"] .macro-card:hover{ border-color:rgba(79,126,247,.28) }
html[data-theme="light"] .macro-card-intro{ color:rgba(15,28,45,.55) }
html[data-theme="light"] .macro-card-cta{ color:var(--blue); border-top-color:rgba(0,0,0,.06) }
html[data-theme="light"] .usp-card{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .usp-outcome{ color:rgba(15,28,45,.62) }
html[data-theme="light"] .usp-why{ color:rgba(15,28,45,.40); border-top-color:rgba(0,0,0,.06) }
html[data-theme="light"] .pillar-strip{ border-top-color:rgba(0,0,0,.06) }
html[data-theme="light"] .pillar-pill{
  background:#FFFFFF; color:rgba(15,28,45,.55); border-color:rgba(0,0,0,.09);
}
html[data-theme="light"] .pillar-pill:hover{ background:rgba(79,126,247,.06); color:var(--blue) }
html[data-theme="light"] .sidebar{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .sidebar h4{ color:var(--blue) }
html[data-theme="light"] .module-link{ color:rgba(15,28,45,.55) }
html[data-theme="light"] .module-link:hover{ background:rgba(79,126,247,.08); color:#0F1C2D }
html[data-theme="light"] .module-link.active{
  background:rgba(79,126,247,.10); border-color:rgba(79,126,247,.25); color:#0F1C2D;
}
html[data-theme="light"] .card{ background:#F5F8FF; border-color:rgba(0,0,0,.07) }
html[data-theme="light"] .card h3{ color:#0F1C2D }
html[data-theme="light"] .callout{
  background:rgba(79,126,247,.05); border-color:rgba(79,126,247,.18);
}
html[data-theme="light"] .callout-body{ color:rgba(15,28,45,.65) }
html[data-theme="light"] .panel{ background:rgba(79,126,247,.04); border-color:rgba(79,126,247,.12) }
html[data-theme="light"] .panel h4{ color:var(--blue) }
html[data-theme="light"] .panel ul{ color:rgba(15,28,45,.68) }
html[data-theme="light"] .step{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .step b{ color:#0F1C2D }
html[data-theme="light"] .step span{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .tab{ color:rgba(15,28,45,.50) }
html[data-theme="light"] .tab.active{ color:#0F1C2D }
html[data-theme="light"] .input, html[data-theme="light"] select{
  background:#FFFFFF; border-color:rgba(0,0,0,.10); color:#0F1C2D;
}
html[data-theme="light"] select option{ background:#FFFFFF; color:#0F1C2D }
html[data-theme="light"] .module-header-card{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .module-header-card .module-head h3{ color:#0F1C2D }
html[data-theme="light"] .module-usp-card{
  background:rgba(79,126,247,.04); border-color:rgba(79,126,247,.10); color:rgba(15,28,45,.62);
}
html[data-theme="light"] .flow-header{
  background:rgba(79,126,247,.04); border-color:rgba(79,126,247,.14);
}
html[data-theme="light"] .flow-header-intro{ color:rgba(15,28,45,.62) }
html[data-theme="light"] .flow-header-kicker{ color:rgba(20,50,100,.40) }
html[data-theme="light"] .module-proof-card{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .module-proof-head{
  background:rgba(79,126,247,.03); border-bottom-color:rgba(0,0,0,.06);
}
html[data-theme="light"] .module-proof-outcome{ color:rgba(15,28,45,.52) }
html[data-theme="light"] .module-proof-footer{ background:rgba(0,0,0,.02) }
html[data-theme="light"] .proof-point-mini{ background:#F4F8FF; border-color:rgba(0,0,0,.07) }
html[data-theme="light"] .proof-point-mini:hover{
  background:rgba(79,126,247,.06); border-color:rgba(79,126,247,.22);
}
html[data-theme="light"] .proof-point-mini-summary{ color:rgba(15,28,45,.52) }
html[data-theme="light"] .proof-persona-note{
  background:rgba(62,237,184,.08); border-color:rgba(62,237,184,.28);
}
html[data-theme="light"] .proof-outcomes{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .proof-outcome-item{
  background:rgba(79,126,247,.04); border-color:rgba(79,126,247,.10);
}
html[data-theme="light"] .proof-trust{ background:#FFFFFF; border-color:rgba(0,0,0,.08) }
html[data-theme="light"] .proof-trust-header{ color:rgba(20,50,100,.45) }
html[data-theme="light"] .proof-trust-item{
  background:rgba(79,126,247,.04); border-color:rgba(62,237,184,.25); color:rgba(15,28,45,.78);
}
html[data-theme="light"] .proof-actions{ border-top-color:rgba(0,0,0,.07) }
html[data-theme="light"] .drawer{
  background:rgba(240,246,255,.98); border-left-color:rgba(79,126,247,.18);
}
html[data-theme="light"] .drawer h2{ color:#0F1C2D }
html[data-theme="light"] .drawer p{ color:rgba(15,28,45,.62) }
html[data-theme="light"] .drawer .block{ background:rgba(79,126,247,.05); border-color:rgba(79,126,247,.14) }
html[data-theme="light"] .drawer .block h5{ color:var(--blue) }
html[data-theme="light"] .drawer ul, html[data-theme="light"] .drawer li{ color:rgba(15,28,45,.68) }
html[data-theme="light"] .drawer .close button{
  background:#FFFFFF; border-color:rgba(0,0,0,.10); color:#0F1C2D;
}
html[data-theme="light"] .drawer-related-chip{
  background:#FFFFFF; border-color:rgba(0,0,0,.09); color:rgba(15,28,45,.65);
}
html[data-theme="light"] .drawer-related-chip:hover{ background:rgba(79,126,247,.06); color:var(--blue) }
html[data-theme="light"] .persona-overlay-panel{ background:#FFFFFF }
html[data-theme="light"] .persona-overlay-head h2{ color:#0F1C2D }
html[data-theme="light"] .persona-chip{
  background:#F2F6FF; border-color:rgba(0,0,0,.09); color:#0F1C2D;
}
html[data-theme="light"] .persona-chip span{ color:rgba(15,28,45,.50) }
html[data-theme="light"] .persona-chip:hover{ background:rgba(79,126,247,.06) }
html[data-theme="light"] .persona-chip.selected{
  background:rgba(62,237,184,.10); border-color:var(--teal);
}
html[data-theme="light"] .persona-overlay-footer{ border-top-color:rgba(0,0,0,.07) }
html[data-theme="light"] .modal-card{
  background:rgba(242,247,255,.98); border-color:rgba(79,126,247,.18);
}
html[data-theme="light"] .modal-backdrop{ background:rgba(0,0,0,.25) }
html[data-theme="light"] .search-box{ background:#FFFFFF; border-color:rgba(79,126,247,.20) }
html[data-theme="light"] .search-input-wrap{ border-bottom-color:rgba(0,0,0,.06) }
html[data-theme="light"] .search-input{ color:#0F1C2D }
html[data-theme="light"] .search-result-title{ color:#0F1C2D }
html[data-theme="light"] .search-result-sub{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .search-result:hover,
html[data-theme="light"] .search-result.selected{ background:rgba(79,126,247,.06) }
html[data-theme="light"] .search-empty{ color:rgba(15,28,45,.45) }
html[data-theme="light"] .search-hint{ color:rgba(15,28,45,.38) }
html[data-theme="light"] .journey-mini-step:hover,
html[data-theme="light"] .journey-mini-step.highlight{
  background:rgba(79,126,247,.06); border-color:rgba(79,126,247,.20);
}
html[data-theme="light"] .journey-mini-label{ color:rgba(15,28,45,.55) }
html[data-theme="light"] .journey-mini-step.highlight .journey-mini-label{ color:var(--blue) }
html[data-theme="light"] .journey-mini-arrow{ color:rgba(0,0,0,.16) }
html[data-theme="light"] .hub-center{
  background:linear-gradient(145deg, #EAF0FF, #FFFFFF);
  border-color:rgba(79,126,247,.25);
}
html[data-theme="light"] .hub-node{ border-color:rgba(255,255,255,.80) }
html[data-theme="light"] .tour-tooltip{
  background:rgba(242,247,255,.98); border-color:rgba(79,126,247,.22);
}
html[data-theme="light"] .tour-text{ color:rgba(15,28,45,.65) }
html[data-theme="light"] .tour-progress{ color:rgba(15,28,45,.48) }
html[data-theme="light"] .advanced-panel-header{ border-bottom-color:rgba(0,0,0,.07) }
html[data-theme="light"] .footer{
  color:rgba(15,28,45,.40); border-top-color:rgba(0,0,0,.07);
}
html[data-theme="light"] .footer b{ color:rgba(15,28,45,.65) }
html[data-theme="light"] .footer .muted{ color:rgba(15,28,45,.32) }
html[data-theme="light"] .back-to-top{
  background:rgba(242,247,255,.95); border-color:rgba(79,126,247,.16);
}
html[data-theme="light"] hr.soft{
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
}
html[data-theme="light"] .pill{
  border-color:rgba(0,0,0,.10); background:rgba(0,0,0,.04); color:rgba(15,28,45,.62);
}
html[data-theme="light"] .module-stat{ background:rgba(79,126,247,.04); border-color:rgba(79,126,247,.08) }
html[data-theme="light"] .copy-btn{ border-color:rgba(79,126,247,.20); background:rgba(79,126,247,.05) }
html[data-theme="light"] .section-subhead{ color:var(--blue) }
html[data-theme="light"] .muted-label{ color:rgba(15,28,45,.42) }

/* Light — text colours missed in first pass */
html[data-theme="light"] .macro-card-title{ color:#0F1C2D }
html[data-theme="light"] .macro-card-headline{ color:rgba(15,28,45,.72) }
html[data-theme="light"] .macro-card-icon{ filter:none }
html[data-theme="light"] .proof-point-mini-title{ color:#0F1C2D }
html[data-theme="light"] .proof-outcome-text{ color:rgba(15,28,45,.88) }
html[data-theme="light"] .module-proof-name{ color:#0F1C2D }
html[data-theme="light"] .persona-chip b{ color:#0F1C2D }
html[data-theme="light"] .usp-title{ color:#0F1C2D }
html[data-theme="light"] .usp-body{ color:rgba(15,28,45,.65) }
html[data-theme="light"] .usp-why{ color:rgba(15,28,45,.42) }
html[data-theme="light"] .module-usp-card b{ color:var(--blue) }
html[data-theme="light"] .flow-header-headline{ color:#0F1C2D }

/* Light — pill variants (dark theme uses rgba blues — invisible on white) */
html[data-theme="light"] .pill.blue{
  color:#2B52C0; background:rgba(43,82,192,.10); border-color:rgba(43,82,192,.24);
}
html[data-theme="light"] .pill.mint{
  color:#127A5D; background:rgba(18,122,93,.10); border-color:rgba(18,122,93,.22);
}
html[data-theme="light"] .pill.warn{
  color:#9A4006; background:rgba(154,64,6,.10); border-color:rgba(154,64,6,.22);
}
html[data-theme="light"] .pill.dark{
  color:rgba(15,28,45,.62); background:rgba(0,0,0,.05); border-color:rgba(0,0,0,.12);
}
html[data-theme="light"] .pill.ai{
  color:#2B52C0; background:rgba(43,82,192,.08); border-color:rgba(43,82,192,.22);
}

/* Light — tour tooltip */
html[data-theme="light"] #tour-title{ color:#0F1C2D }
html[data-theme="light"] .tour-select{
  background:#FFFFFF; border-color:rgba(0,0,0,.12); color:#0F1C2D;
}

/* Light — stat values */
html[data-theme="light"] .stat b{
  background:linear-gradient(135deg, #2B52C0, #127A5D);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* Light — hub center badge */
html[data-theme="light"] .hub-center-badge{
  background:linear-gradient(135deg, #2B52C0, #127A5D);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
html[data-theme="light"] .hub-center-label{ color:var(--blue) }

/* Light — journey mini base labels */
html[data-theme="light"] .journey-mini-label{ color:rgba(15,28,45,.55) }
html[data-theme="light"] .journey-mini-arrow{ color:rgba(0,0,0,.18) }

/* Light — drawer summary text */
html[data-theme="light"] #drawer-summary{ color:rgba(15,28,45,.72) }

/* Light — section label dot */
html[data-theme="light"] .section-label{ color:rgba(15,28,45,.45) }

/* Theme toggle button */
.theme-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(79,126,247,.22);
  background:rgba(79,126,247,.08);
  font-size:14px;
  cursor:pointer;
  transition:all var(--transition);
  color:var(--t-secondary);
  line-height:1;
  display:grid;
  place-items:center;
}
.theme-btn:hover{
  background:rgba(79,126,247,.18);
  border-color:rgba(79,126,247,.45);
  color:var(--blue-light);
  transform:rotate(20deg) scale(1.08);
}
.chapter-btn:focus-visible,
.mode-btn:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.theme-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(5,9,18,.92), 0 0 0 4px rgba(79,126,247,.55);
}
html[data-theme="light"] .chapter-btn:focus-visible,
html[data-theme="light"] .mode-btn:focus-visible,
html[data-theme="light"] .btn:focus-visible,
html[data-theme="light"] .icon-btn:focus-visible,
html[data-theme="light"] .theme-btn:focus-visible{
  box-shadow:0 0 0 2px rgba(255,255,255,.96), 0 0 0 4px rgba(43,82,192,.34);
}
html[data-theme="light"] .theme-btn{
  color:rgba(20,50,100,.60); background:rgba(79,126,247,.06); border-color:rgba(79,126,247,.18);
}
html[data-theme="light"] .theme-btn:hover{ background:rgba(79,126,247,.12); color:var(--blue) }

/* ═══════════════════════════════════════════════════════════
   PREMIUM ENTRANCE & MICRO-INTERACTION ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Hero card dramatic entrance */
.hero-card{ animation: heroEntrance .8s cubic-bezier(.22,1,.36,1) both; }

/* Hero internal gradient orbs — ambient float */
.hero-card::before{ animation: orbFloat 8s ease-in-out infinite alternate; }
.hero-card::after{ animation: orbFloat 10s ease-in-out infinite alternate-reverse; }

/* Brand logo breathing glow */
.brand img{ animation: brandGlow 4s ease-in-out infinite; }

/* Kicker indicator dot pulse ring */
.kicker .dot{ position:relative; animation: dotPing 2.5s ease-in-out infinite; }

/* Stats — staggered pop-in */
.stat{ animation: statPop .5s cubic-bezier(.22,1,.36,1) both; }
.stat:nth-child(1){ animation-delay:.12s }
.stat:nth-child(2){ animation-delay:.22s }
.stat:nth-child(3){ animation-delay:.32s }
.stat:nth-child(4){ animation-delay:.42s }

/* Macro flow cards — staggered slide-up */
.macro-card{ animation: cardSlideUp .6s cubic-bezier(.22,1,.36,1) both; }
.macro-card:nth-child(1){ animation-delay:.08s }
.macro-card:nth-child(2){ animation-delay:.18s }
.macro-card:nth-child(3){ animation-delay:.28s }

/* USP cards — staggered slide-up */
.usp-card{ animation: cardSlideUp .55s cubic-bezier(.22,1,.36,1) both; }
.usp-card:nth-child(1){ animation-delay:.15s }
.usp-card:nth-child(2){ animation-delay:.25s }
.usp-card:nth-child(3){ animation-delay:.35s }

/* Module proof cards — staggered entrance */
.module-proof-card{ animation: cardSlideUp .6s cubic-bezier(.22,1,.36,1) both; }
.module-proof-card:nth-child(1){ animation-delay:.1s }
.module-proof-card:nth-child(2){ animation-delay:.2s }
.module-proof-card:nth-child(3){ animation-delay:.3s }

/* Proof outcome items — staggered reveal */
.proof-outcome-item{ animation: fadeInUp .5s cubic-bezier(.22,1,.36,1) both; }
.proof-outcome-item:nth-child(1){ animation-delay:.1s }
.proof-outcome-item:nth-child(2){ animation-delay:.18s }
.proof-outcome-item:nth-child(3){ animation-delay:.26s }

/* Active progress dot glow pulse */
.progress-dot.active{ animation: progressPulse 2s ease-in-out infinite; }

/* Button tactile press */
.btn:active, .btn.primary:active{
  transform: translateY(0) scale(.97);
  transition-duration: .06s;
}

/* Enhanced card hover glow */
.card:hover{          box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 24px rgba(79,126,247,.08); }
.usp-card:hover{      box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 0 20px rgba(79,126,247,.08); }
.macro-card:hover{    box-shadow: var(--shadow-2), 0 0 28px rgba(79,126,247,.10); }
.hub-node:hover{      box-shadow: 0 10px 32px rgba(79,126,247,.35), 0 0 20px rgba(79,126,247,.15); }
.step:hover{          box-shadow: 0 4px 20px rgba(0,0,0,.30), 0 0 14px rgba(79,126,247,.08); }

/* Hub center interactive */
.hub-center{ transition: transform .25s ease; }
.hub-center:hover{ transform: translate(-50%,-50%) scale(1.04); }

/* Persona chip hover lift */
.persona-chip:hover{ transform:translateY(-2px); }

/* Journey mini-step hover lift */
.journey-mini-step:hover{ transform:translateY(-2px); }

/* Trust proof item hover */
.proof-trust-item{ transition: all var(--transition); }
.proof-trust-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(62,237,184,.12);
}

/* Smoother drawer slide */
.drawer{ transition: transform .30s cubic-bezier(.22,1,.36,1); }

/* Search overlay pop-in */
.search-overlay.open .search-box{ animation: popIn .3s cubic-bezier(.22,1,.36,1) both; }

/* Modal entrance pop-in */
.modal.open .modal-card{ animation: popIn .3s cubic-bezier(.22,1,.36,1) both; }

/* Persona overlay entrance pop-in */
.persona-overlay.open .persona-overlay-panel{ animation: popIn .3s cubic-bezier(.22,1,.36,1) both; }

/* ── Light-mode hover glow adjustments ── */
html[data-theme="light"] .card:hover{       box-shadow: 0 12px 40px rgba(0,0,0,.10), 0 0 24px rgba(79,126,247,.10); }
html[data-theme="light"] .usp-card:hover{   box-shadow: 0 12px 36px rgba(0,0,0,.10), 0 0 20px rgba(79,126,247,.10); }
html[data-theme="light"] .macro-card:hover{  box-shadow: 0 8px 28px rgba(0,0,0,.08), 0 0 28px rgba(79,126,247,.12); }
html[data-theme="light"] .hub-node:hover{    box-shadow: 0 10px 32px rgba(79,126,247,.22), 0 0 16px rgba(79,126,247,.14); }
html[data-theme="light"] .step:hover{        box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 0 14px rgba(79,126,247,.10); }
html[data-theme="light"] .proof-trust-item:hover{ box-shadow: 0 4px 14px rgba(62,237,184,.16); }
html[data-theme="light"] .hub-center:hover{
  box-shadow: 0 8px 36px rgba(79,126,247,.18), 0 0 0 14px rgba(79,126,247,.10);
}

/* ── CTA / Next-step breathing glow ── */
.btn.primary{ animation: ctaGlow 3s ease-in-out infinite; }
.chapter-continue .btn.primary{ animation: ctaGlow 2.8s ease-in-out infinite; }
#nav-next{ animation: ctaGlow 3s ease-in-out .6s infinite; }

/* ── Active chapter tab glow pulse ── */
.chapter-btn.active{ animation: activeGlow 3s ease-in-out infinite; }

/* ── Active mode toggle glow pulse ── */
.mode-btn.active{ animation: activeGlow 3.2s ease-in-out infinite; }

/* ── Selected macro card animated border glow ── */
.macro-card.selected{ animation: selectedPulse 3s ease-in-out infinite; }

/* ── Hero headline gradient text shimmer ── */
h1 .brand-highlight{
  background: linear-gradient(90deg, #7AA3FF 0%, #3EEDB8 25%, #fff 50%, #3EEDB8 75%, #7AA3FF 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s linear infinite;
}

/* ── Active journey step glow ── */
.step.active{ animation: highlightBreathe 2.8s ease-in-out infinite; }

/* ── Highlighted journey mini-step glow ── */
.journey-mini-step.highlight{ animation: highlightBreathe 3s ease-in-out infinite; }

/* ── Active module sidebar link glow ── */
.module-link.active{ animation: highlightBreathe 3.2s ease-in-out infinite; }

/* ── Active value tab glow ── */
.tab.active{ animation: highlightBreathe 3s ease-in-out infinite; }

/* ── Progress dot done celebration ── */
.progress-dot.done{ animation: doneFlash 2s ease-in-out 1; }

/* ── Back-to-top glow entrance ── */
.back-to-top.visible{
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 4px 16px rgba(79,126,247,.18);
}
.back-to-top.visible:hover{
  box-shadow: 0 6px 24px rgba(79,126,247,.30), 0 0 12px rgba(79,126,247,.15);
}

/* ── Pillar pill interactive micro-glow ── */
.pillar-pill:hover{
  box-shadow: 0 4px 16px rgba(79,126,247,.14), 0 0 8px rgba(79,126,247,.10);
}

/* ── Card feature icon emoji bounce on hover ── */
.card:hover .emoji{ transform: scale(1.12); transition: transform .2s ease; }

/* ── Callout subtle border shimmer ── */
.callout{ transition: all var(--transition); }
.callout:hover{
  border-color: rgba(79,126,247,.35);
  box-shadow: 0 4px 20px rgba(79,126,247,.10), 0 0 10px rgba(62,237,184,.06);
  transform: translateY(-1px);
}

/* ── Section label dot ping (same as kicker) ── */
.section-label .dot{ animation: dotPing 2.5s ease-in-out infinite; }

/* ── Light-mode highlight adjustments ── */
html[data-theme="light"] .btn.primary{
  animation: ctaGlow 3s ease-in-out infinite;
  box-shadow: 0 6px 28px rgba(79,126,247,.30), inset 0 1px 0 rgba(255,255,255,.40);
}
html[data-theme="light"] .chapter-btn.active{
  animation: activeGlow 3s ease-in-out infinite;
  box-shadow: 0 2px 18px rgba(79,126,247,.30), inset 0 1px 0 rgba(255,255,255,.30);
}
html[data-theme="light"] .mode-btn.active{
  animation: activeGlow 3.2s ease-in-out infinite;
  box-shadow: 0 1px 12px rgba(79,126,247,.30), inset 0 1px 0 rgba(255,255,255,.25);
}
html[data-theme="light"] .macro-card.selected{
  animation: selectedPulse 3s ease-in-out infinite;
}
html[data-theme="light"] h1 .brand-highlight{
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 25%, #1a3a6e 50%, var(--teal) 75%, var(--blue) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s linear infinite;
}
html[data-theme="light"] .step.active{
  animation: highlightBreathe 2.8s ease-in-out infinite;
}
html[data-theme="light"] .journey-mini-step.highlight{
  animation: highlightBreathe 3s ease-in-out infinite;
}
html[data-theme="light"] .module-link.active{
  animation: highlightBreathe 3.2s ease-in-out infinite;
}
html[data-theme="light"] .tab.active{
  animation: highlightBreathe 3s ease-in-out infinite;
}
html[data-theme="light"] .back-to-top.visible{
  box-shadow: 0 4px 16px rgba(79,126,247,.14);
}
html[data-theme="light"] .back-to-top.visible:hover{
  box-shadow: 0 6px 24px rgba(79,126,247,.22), 0 0 10px rgba(79,126,247,.10);
}
html[data-theme="light"] .callout:hover{
  box-shadow: 0 4px 20px rgba(79,126,247,.08), 0 0 10px rgba(62,237,184,.05);
}
html[data-theme="light"] .pillar-pill:hover{
  box-shadow: 0 4px 16px rgba(79,126,247,.10), 0 0 8px rgba(79,126,247,.06);
}

/* ═══════════════════════════════════════════════════════════
   LEVEL 3: AMBIENT & IMMERSIVE ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* ── Ambient background gradient drift ── */
body{
  background-size: 200% 200%;
  animation: bgDrift 20s ease infinite;
}

/* ── Animated gradient separator lines ── */
hr.soft{
  background: linear-gradient(90deg, transparent, rgba(79,126,247,.30), rgba(62,237,184,.20), transparent);
  background-size: 300% 100%;
  animation: glowLine 4s linear infinite;
  height: 2px;
}

/* ── Macro card icon gentle float ── */
.macro-card-icon{ animation: iconFloat 3s ease-in-out infinite; }
.macro-card:nth-child(1) .macro-card-icon{ animation-delay: 0s; }
.macro-card:nth-child(2) .macro-card-icon{ animation-delay: .4s; }
.macro-card:nth-child(3) .macro-card-icon{ animation-delay: .8s; }

/* ── Module proof card icon gentle float ── */
.module-proof-icon{ animation: iconFloat 3.5s ease-in-out infinite; }
.module-proof-card:nth-child(1) .module-proof-icon{ animation-delay: 0s; }
.module-proof-card:nth-child(2) .module-proof-icon{ animation-delay: .5s; }
.module-proof-card:nth-child(3) .module-proof-icon{ animation-delay: 1s; }

/* ── Outcome number pop on scroll ── */
.proof-outcome-num{ animation: numPop 2.5s ease-in-out infinite; }
.proof-outcome-item:nth-child(1) .proof-outcome-num{ animation-delay: .1s; }
.proof-outcome-item:nth-child(2) .proof-outcome-num{ animation-delay: .3s; }
.proof-outcome-item:nth-child(3) .proof-outcome-num{ animation-delay: .5s; }

/* ── Card ambient border glow (idle breathing) ── */
.macro-card{ animation: borderGlow 4s ease-in-out infinite; }
.macro-card:nth-child(1){ animation-delay: 0s; }
.macro-card:nth-child(2){ animation-delay: 1.3s; }
.macro-card:nth-child(3){ animation-delay: 2.6s; }

.module-proof-card{ animation: borderGlow 5s ease-in-out infinite; }
.module-proof-card:nth-child(1){ animation-delay: 0s; }
.module-proof-card:nth-child(2){ animation-delay: 1.6s; }
.module-proof-card:nth-child(3){ animation-delay: 3.2s; }

/* ── Proof outcome items breathing glow ── */
.proof-outcome-item{ animation: borderGlow 4.5s ease-in-out infinite; }
.proof-outcome-item:nth-child(1){ animation-delay: 0s; }
.proof-outcome-item:nth-child(2){ animation-delay: 1s; }
.proof-outcome-item:nth-child(3){ animation-delay: 2s; }

/* ── Hub node gentle bounce ── */
.hub-node{ animation: hubNodeGlow 3s ease-in-out infinite; }
.hub-node:nth-child(1){ animation-delay: 0s; }
.hub-node:nth-child(2){ animation-delay: .3s; }
.hub-node:nth-child(3){ animation-delay: .6s; }
.hub-node:nth-child(4){ animation-delay: .9s; }
.hub-node:nth-child(5){ animation-delay: 1.2s; }
.hub-node:nth-child(6){ animation-delay: 1.5s; }

/* ── Sidebar module links staggered entrance ── */
.module-link{ animation: slideInLeft .4s cubic-bezier(.22,1,.36,1) both; }
.module-link:nth-child(1){ animation-delay: .05s; }
.module-link:nth-child(2){ animation-delay: .1s; }
.module-link:nth-child(3){ animation-delay: .15s; }
.module-link:nth-child(4){ animation-delay: .2s; }
.module-link:nth-child(5){ animation-delay: .25s; }
.module-link:nth-child(6){ animation-delay: .3s; }
.module-link:nth-child(7){ animation-delay: .35s; }
.module-link:nth-child(8){ animation-delay: .4s; }

/* ── Stepper steps staggered entrance ── */
.step{ animation: cardSlideUp .5s cubic-bezier(.22,1,.36,1) both; }
.step:nth-child(1){ animation-delay: .06s; }
.step:nth-child(2){ animation-delay: .12s; }
.step:nth-child(3){ animation-delay: .18s; }
.step:nth-child(4){ animation-delay: .24s; }
.step:nth-child(5){ animation-delay: .30s; }
.step:nth-child(6){ animation-delay: .36s; }

/* ── Journey mini-steps staggered slide ── */
.journey-mini-step{ animation: cardSlideUp .4s cubic-bezier(.22,1,.36,1) both; }
.journey-mini-step:nth-child(1){ animation-delay: .04s; }
.journey-mini-step:nth-child(2){ animation-delay: .08s; }
.journey-mini-step:nth-child(3){ animation-delay: .12s; }
.journey-mini-step:nth-child(4){ animation-delay: .16s; }
.journey-mini-step:nth-child(5){ animation-delay: .20s; }
.journey-mini-step:nth-child(6){ animation-delay: .24s; }
.journey-mini-step:nth-child(7){ animation-delay: .28s; }
.journey-mini-step:nth-child(8){ animation-delay: .32s; }
.journey-mini-step:nth-child(9){ animation-delay: .36s; }
.journey-mini-step:nth-child(10){ animation-delay: .40s; }

/* ── Value tabs entrance ── */
.tab{ animation: fadeInUp .35s cubic-bezier(.22,1,.36,1) both; }
.tab:nth-child(1){ animation-delay: .05s; }
.tab:nth-child(2){ animation-delay: .10s; }
.tab:nth-child(3){ animation-delay: .15s; }
.tab:nth-child(4){ animation-delay: .20s; }
.tab:nth-child(5){ animation-delay: .25s; }

/* ── Feature cards 3D tilt hover ── */
.card{
  transition: all var(--transition), transform .3s ease;
  transform-style: preserve-3d;
  perspective: 900px;
}
.card:hover{
  transform: translateY(-4px) rotateX(1.5deg) rotateY(-1deg);
}

/* ── Macro card 3D tilt on hover ── */
.macro-card:hover{
  transform: translateY(-5px) rotateX(1.5deg) rotateY(-1.5deg);
}

/* ── Module proof card hover lift + glow ── */
.module-proof-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2), 0 0 18px rgba(79,126,247,.08);
}

/* ── Proof trust section pulse ── */
.proof-trust{
  transition: all var(--transition);
  animation: borderGlow 6s ease-in-out infinite;
}

/* ── Brand title shimmer ── */
.brand-title b{
  background: linear-gradient(90deg, #fff 0%, var(--blue-light) 30%, #fff 60%, var(--blue-light) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 8s linear infinite;
}

/* ── Theme toggle button gentle pulse ── */
.theme-btn{
  transition: all var(--transition);
}
.theme-btn:hover{
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 0 14px rgba(79,126,247,.20);
}

/* ── Search button hover glow ── */
#global-search-toggle:hover{
  box-shadow: 0 0 14px rgba(79,126,247,.18);
  border-color: rgba(79,126,247,.30);
}

/* ── Pillar pills staggered entrance ── */
.pillar-pill{ animation: fadeInUp .35s cubic-bezier(.22,1,.36,1) both; }
.pillar-pill:nth-child(1){ animation-delay: .08s; }
.pillar-pill:nth-child(2){ animation-delay: .14s; }
.pillar-pill:nth-child(3){ animation-delay: .20s; }
.pillar-pill:nth-child(4){ animation-delay: .26s; }
.pillar-pill:nth-child(5){ animation-delay: .32s; }

/* ── USP card border breathing ── */
.usp-card{ animation: borderGlow 5s ease-in-out infinite; }
.usp-card:nth-child(1){ animation-delay: 0s; }
.usp-card:nth-child(2){ animation-delay: 1.6s; }
.usp-card:nth-child(3){ animation-delay: 3.2s; }

/* ── Panel hover lift ── */
.panel{
  transition: all var(--transition);
}
.panel:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(79,126,247,.08);
  border-color: rgba(79,126,247,.20);
}

/* ── Drawer slide-in enhanced with glow ── */
.drawer.open{
  box-shadow: -24px 0 80px rgba(0,0,0,.55), -4px 0 30px rgba(79,126,247,.08);
}

/* ── Tour spotlight breathing ring ── */
.tour-spotlight{
  animation: highlightBreathe 2s ease-in-out infinite;
}

/* ── Section headers fade ── */
.section-label{
  animation: fadeInUp .5s cubic-bezier(.22,1,.36,1) both;
}

/* ── Light-mode Level 3 adjustments ── */
html[data-theme="light"] body{
  animation: bgDrift 20s ease infinite;
}
html[data-theme="light"] hr.soft{
  background: linear-gradient(90deg, transparent, rgba(79,126,247,.20), rgba(62,237,184,.14), transparent);
  background-size: 300% 100%;
  animation: glowLine 4s linear infinite;
}
html[data-theme="light"] .macro-card{
  animation: borderGlow 4s ease-in-out infinite;
}
html[data-theme="light"] .module-proof-card{
  animation: borderGlow 5s ease-in-out infinite;
}
html[data-theme="light"] .usp-card{
  animation: borderGlow 5s ease-in-out infinite;
}
html[data-theme="light"] .proof-outcome-item{
  animation: borderGlow 4.5s ease-in-out infinite;
}
html[data-theme="light"] .proof-trust{
  animation: borderGlow 6s ease-in-out infinite;
}
html[data-theme="light"] .drawer.open{
  box-shadow: -24px 0 80px rgba(0,0,0,.18), -4px 0 30px rgba(79,126,247,.06);
}
html[data-theme="light"] .brand-title b{
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 30%, var(--teal) 60%, var(--blue) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 8s linear infinite;
}
html[data-theme="light"] .theme-btn:hover{
  box-shadow: 0 0 14px rgba(79,126,247,.14);
}
html[data-theme="light"] #global-search-toggle:hover{
  box-shadow: 0 0 14px rgba(79,126,247,.12);
}
html[data-theme="light"] .panel:hover{
  box-shadow: 0 4px 18px rgba(79,126,247,.06);
}
html[data-theme="light"] .module-proof-card:hover{
  box-shadow: 0 8px 28px rgba(0,0,0,.08), 0 0 18px rgba(79,126,247,.08);
}

/* ═══════════════════════════════════════════════════════════
   LEVEL 4: ULTRA-PREMIUM VISUAL EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* ── Scan line across hero card (futuristic) ── */
.hero-card{
  position: relative;
  overflow: hidden;
}
.hero-card::after{
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79,126,247,.50), rgba(62,237,184,.40), transparent);
  z-index: 2;
  pointer-events: none;
  animation: scanLine 6s cubic-bezier(.4,0,.2,1) infinite;
}

/* ── Floating shadow on hero card ── */
.hero-card{
  animation: heroEntrance .8s cubic-bezier(.22,1,.36,1) both, floatShadow 5s ease-in-out 1s infinite;
}

/* ── Module header card glow ── */
.module-header-card{
  transition: all var(--transition);
  animation: borderGlow 5s ease-in-out infinite;
}
.module-header-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,126,247,.12), 0 0 18px rgba(79,126,247,.08);
}

/* ── Hub dashed lines subtle animate ── */
.hub-line{
  stroke-dashoffset: 0;
  animation: hubLineFlow 3s linear infinite;
}
@keyframes hubLineFlow{
  from{stroke-dashoffset:0}
  to{stroke-dashoffset:-20}
}

/* ── Active hub node ring pulse ── */
.hub-node.active{
  animation: hubNodeGlow 2s ease-in-out infinite;
  box-shadow: 0 8px 28px rgba(62,237,184,.30), 0 0 14px rgba(62,237,184,.20);
}

/* ── Macro card selected checkmark scale ── */
.macro-card.selected .macro-card-icon{
  animation: scaleIn .35s cubic-bezier(.22,1,.36,1) both;
}

/* ── Ripple on buttons when clicked ── */
.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
}
.btn:active::before{
  animation: rippleOut .4s ease-out;
}

/* ── Stats counter bar fill ── */
.stat b{
  position: relative;
}
.stat b::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: slideRight .8s cubic-bezier(.22,1,.36,1) .5s both;
}

/* ── Proof outcome items entrance scale ── */
.proof-outcome-item{
  animation: borderGlow 4.5s ease-in-out infinite, fadeInUp .5s cubic-bezier(.22,1,.36,1) both;
}

/* ── Proof outcome number gradient rotate ── */
.proof-outcome-num{
  transition: all var(--transition);
  animation: numPop 2.5s ease-in-out infinite;
}
.proof-outcome-num:hover{
  transform: scale(1.2) rotate(10deg);
}

/* ── Hub center badge sparkle effect ── */
.hub-center-badge{
  position: relative;
}
.hub-center-badge::after{
  content: '\2727';
  position: absolute;
  top: -4px;
  right: -12px;
  font-size: 12px;
  animation: sparkle 2s ease-in-out infinite;
  -webkit-text-fill-color: rgba(62,237,184,.80);
}

/* ── Animated gradient behind chapter-rail ── */
.chapter-rail{
  background-size: 200% 100%;
  animation: bgDrift 12s ease infinite;
}

/* ── Mode toggle pill animated bg ── */
.mode-toggle{
  background-size: 200% 100%;
  animation: bgDrift 15s ease infinite;
}

/* ── Progress dots connecting line ── */
.progress-dots{
  position: relative;
}
.progress-dots::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(79,126,247,.12), rgba(62,237,184,.08));
  border-radius: 1px;
  z-index: 0;
  transform: translateY(-50%);
}

/* ── Journey mini-arrow pulse ── */
.journey-mini-arrow{
  animation: sparkle 3s ease-in-out infinite;
}

/* ── Feature card gradient top border on hover ── */
.card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 14px 14px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before{
  opacity: 1;
}

/* ── Sidebar active indicator bar ── */
.module-link.active::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--blue), var(--mint));
  animation: fadeInUp .3s cubic-bezier(.22,1,.36,1) both;
}
.module-link{ position: relative; }

/* ── Proof trust section shimmer header ── */
.proof-trust-header{
  position: relative;
}
.proof-trust-header::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 1px;
  animation: slideRight .6s cubic-bezier(.22,1,.36,1) .3s both;
}

/* ── Kicker text subtle glow ── */
.kicker{
  text-shadow: 0 0 20px rgba(79,126,247,.15);
}

/* ── Footer gradient line ── */
.footer{
  position: relative;
}
.footer::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(79,126,247,.30) 30%, rgba(62,237,184,.20) 70%, transparent 95%);
  background-size: 300% 100%;
  animation: glowLine 5s linear infinite;
}

/* ── Drawer close button rotate on hover ── */
.drawer .close button:hover{
  transform: rotate(90deg);
  transition: transform .25s ease;
}

/* ── Tour tooltip entrance bounce ── */
.tour-tooltip{
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}

/* ── Search box focus glow ring ── */
.search-box .input:focus{
  box-shadow: var(--ring), 0 0 20px rgba(79,126,247,.12);
}

/* ── Modal backdrop blur enhanced ── */
.modal-backdrop{
  animation: fadeInUp .2s ease both;
}

/* ── Persona overlay panel slide ── */
.persona-overlay.open .persona-overlay-panel{
  animation: popIn .35s cubic-bezier(.22,1,.36,1) both;
}

/* ── Light mode Level 4 ── */
html[data-theme="light"] .hero-card::after{
  background: linear-gradient(90deg, transparent, rgba(79,126,247,.30), rgba(62,237,184,.25), transparent);
}
html[data-theme="light"] .module-header-card{
  animation: borderGlow 5s ease-in-out infinite;
}
html[data-theme="light"] .module-header-card:hover{
  box-shadow: 0 8px 32px rgba(79,126,247,.08), 0 0 18px rgba(79,126,247,.06);
}
html[data-theme="light"] .hub-center-badge::after{
  -webkit-text-fill-color: rgba(62,237,184,.60);
}
html[data-theme="light"] .footer::before{
  background: linear-gradient(90deg, transparent 5%, rgba(79,126,247,.20) 30%, rgba(62,237,184,.14) 70%, transparent 95%);
  background-size: 300% 100%;
}
html[data-theme="light"] .kicker{
  text-shadow: 0 0 20px rgba(79,126,247,.08);
}
html[data-theme="light"] .stat b::after{
  background: linear-gradient(90deg, var(--blue), var(--teal));
}
html[data-theme="light"] .card::before{
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .header{ background:rgba(5,9,18,.96); }
  html[data-theme="light"] .header{ background:rgba(242,246,255,.98); }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }

  .header::before,
  .btn.primary::after,
  .brand img,
  .kicker .dot,
  .progress-dot.active,
  .hero-card::before,
  .hero-card::after,
  .btn.primary,
  #nav-next,
  .chapter-continue .btn.primary,
  .chapter-btn.active,
  .mode-btn.active,
  .macro-card.selected,
  h1 .brand-highlight,
  .step.active,
  .journey-mini-step.highlight,
  .module-link.active,
  .tab.active,
  .progress-dot.done,
  .section-label .dot,
  body,
  hr.soft,
  .macro-card-icon,
  .module-proof-icon,
  .proof-outcome-num,
  .macro-card,
  .module-proof-card,
  .proof-outcome-item,
  .hub-node,
  .usp-card,
  .proof-trust,
  .brand-title b,
  .tour-spotlight,
  .hero-card,
  .hub-line,
  .hub-node.active,
  .hub-center-badge::after,
  .chapter-rail,
  .mode-toggle,
  .journey-mini-arrow,
  .footer::before,
  .module-header-card,
  .stat b::after,
  .card::before,
  .proof-trust-header::after{
    animation:none !important;
  }
}
