:root{
  --p50:#faf8ff;--p100:#f1ecff;--p200:#e5dcff;--p300:#d0c0fa;
  --p400:#b8a4f0;--p500:#9d83e6;--p600:#7c5fd6;--p700:#5d3fb8;
  --p800:#3f2885;--p900:#251552;
  --ink:#1a1230;--ink2:#4a4063;--ink3:#7a7095;
  --line:#ece6fb;--rpill:999px;
  --sh:0 2px 12px rgba(93,63,184,.08);
  --sh-md:0 8px 32px rgba(93,63,184,.12);
  --sh-lg:0 20px 56px rgba(93,63,184,.13);
  --wrap:1200px;--pad:52px;

    --nav-bg-start: #FFFFFF;
  --nav-bg-middle: #EDE9FE;
  --nav-bg-end: #e2d9ff;
  
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:#fff;color:var(--ink2);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4{font-family:'Playfair Display',serif;color:var(--ink);letter-spacing:-.02em;line-height:1.05}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}

/* SHARED */
.ey{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--p600);margin-bottom:14px}
.ey::before,.ey::after{content:'';width:20px;height:2px;background:var(--p400);border-radius:2px}
.ey-dk{color:rgba(255,255,255,.5)}
.ey-dk::before,.ey-dk::after{background:rgba(255,255,255,.3)}
.sec-hd{text-align:center;margin-bottom:60px}
.sec-hd h2{font-family:'Playfair Display',serif;font-size:clamp(28px,3.4vw,46px);font-weight:800;color:var(--ink);line-height:1.04;letter-spacing:-.03em;margin-bottom:12px}
.sec-hd h2 em{font-style:italic;color:var(--p700)}
.sec-hd p{font-size:15.5px;color:var(--ink3);max-width:480px;margin:0 auto;line-height:1.72}
.sec-hd-dk h2{color:#fff}.sec-hd-dk p{color:rgba(255,255,255,.55)}
.btn-pri{display:inline-flex;align-items:center;gap:10px;padding:14px 28px;background:var(--p700);color:#fff;border-radius:var(--rpill);font-size:14.5px;font-weight:700;font-family:'DM Sans',sans-serif;text-decoration:none;transition:all .3s cubic-bezier(.175,.885,.32,1.275);box-shadow:0 6px 24px rgba(93,63,184,.28)}
.btn-pri svg{width:14px;height:14px;transition:transform .3s}
.btn-pri:hover{background:var(--p800);transform:translateY(-2px);box-shadow:0 12px 32px rgba(93,63,184,.35)}
.btn-pri:hover svg{transform:translateX(4px)}
.btn-sec{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;color:var(--p700);font-size:14.5px;font-weight:600;font-family:'DM Sans',sans-serif;text-decoration:none;border:1.5px solid var(--p300);border-radius:var(--rpill);transition:all .3s}
.btn-sec:hover{background:var(--p100);border-color:var(--p500)}


/* ══ NAV ══ */
nav{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid transparent;transition:border-color .3s,box-shadow .3s}
nav.scrolled{border-color:var(--line);box-shadow:0 2px 20px rgba(93,63,184,.07)}
.nw{max-width:1200px;margin:0 auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;height:66px;gap:16px}
.logo{display:flex;align-items:center;gap:10px;font-family:'Playfair Display',serif;font-weight:700;font-size:19px;letter-spacing:-.02em;color:var(--ink)}
.lbox{width:34px;height:34px;border-radius:9px;background:var(--p700);display:grid;place-items:center;box-shadow:0 3px 10px rgba(93,63,184,.28)}
.lbox svg{width:18px;height:18px;color:#fff}
.logo-accent{color:var(--p600)}
.nlinks{display:flex;gap:2px;list-style:none}
.nlinks a{display:block;padding:7px 14px;font-size:14px;font-weight:500;color:var(--ink2);border-radius:var(--rpill);transition:color .2s,background .2s}
.nlinks a:hover{color:var(--ink);background:var(--p50)}
.nlinks a.active{color:var(--p700);background:var(--p100);font-weight:600}
.nright{display:flex;align-items:center;gap:10px}
.n-demo{padding:9px 20px;font-size:14px;font-weight:600;background:var(--p700);color:#fff;border-radius:var(--rpill);display:inline-flex;align-items:center;gap:6px;transition:all .25s;cursor:pointer;letter-spacing:-.01em}
.n-demo svg{width:13px;height:13px;transition:transform .25s}
.n-demo:hover{background:var(--p800);transform:translateY(-1px);box-shadow:0 5px 16px rgba(93,63,184,.3)}
.n-demo:hover svg{transform:translateX(3px)}

/* ══ ABOUT HERO ══ */
.about-hero{position:relative;background:#f8f6ff;padding:50px 0 120px;overflow:hidden;min-height:calc(100vh - 66px);display:flex;align-items:center}
.bg-orb{position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px)}
.bg-orb-left{left:-180px;top:18%;width:520px;height:520px;background:radial-gradient(circle,rgba(124,95,214,.1) 0%,transparent 65%);animation:orbDriftA 22s ease-in-out infinite}
.bg-orb-right{right:-160px;top:42%;width:560px;height:560px;background:radial-gradient(circle,rgba(93,63,184,.08) 0%,transparent 65%);animation:orbDriftB 26s ease-in-out infinite}
.bg-orb-mid{left:50%;top:78%;width:380px;height:380px;background:radial-gradient(circle,rgba(184,164,240,.1) 0%,transparent 65%);animation:orbDriftA 30s ease-in-out infinite reverse}
@keyframes orbDriftA{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(28px,-22px) scale(1.06)}}
@keyframes orbDriftB{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-30px,28px) scale(1.08)}}

.hero-eyebrow{display:inline-flex;align-items:center;gap:11px;font-family:'DM Sans',sans-serif;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--p600);margin-bottom:24px}
.hero-eyebrow::before,.hero-eyebrow::after{content:'';width:26px;height:1.5px;border-radius:2px}
.hero-eyebrow::before{background:linear-gradient(90deg,transparent,var(--p400))}
.hero-eyebrow::after{background:linear-gradient(90deg,var(--p400),transparent)}

.hero-inner{position:relative;z-index:3;max-width:1100px;margin:0 auto;padding:0 48px;text-align:center;width:100%}
.about-hero h1{font-family:'Playfair Display',serif;font-size:clamp(28px,4.5vw,68px);font-weight:800;color:var(--ink);line-height:1.04;letter-spacing:-.024em;margin-bottom:26px;white-space:nowrap}
.about-hero h1 .word{display:inline-block;margin:0 .14em 0 0;will-change:transform,opacity}
.about-hero h1 .accent{font-style:italic;font-weight:700;color:var(--p600)}
.about-hero .sub{font-size:16px;font-weight:400;color:var(--ink3);max-width:560px;margin:0 auto;line-height:1.72}

.hero-wave{position:absolute;bottom:-1px;left:0;width:100%;height:120px;z-index:5;pointer-events:none;display:block}
.hero-wave path{fill:#fff}

.hero-kite{position:absolute;top:-20px;left:-30px;width:260px;height:auto;z-index:4;pointer-events:none;opacity:.65;animation:kiteFloat 7s ease-in-out infinite;transform-origin:60% 30%}
@keyframes kiteFloat{0%,100%{transform:rotate(-6deg) translate(0,0)}30%{transform:rotate(-2deg) translate(12px,-16px)}60%{transform:rotate(-8deg) translate(-8px,8px)}80%{transform:rotate(-4deg) translate(10px,-8px)}}
.hero-book{position:absolute;bottom:-40px;right:-20px;width:300px;height:auto;z-index:4;pointer-events:none;opacity:.6;animation:bookFloat 6s ease-in-out infinite;animation-delay:.8s}
@keyframes bookFloat{0%,100%{transform:rotate(6deg) translate(0,0)}40%{transform:rotate(3deg) translate(-10px,-12px)}70%{transform:rotate(8deg) translate(6px,6px)}}



/* ══ CHAOS — CENTER IMAGE ══ */
.f-chaos{background:linear-gradient(150deg,var(--p900) 0%,var(--p800) 50%,#3d2a90 100%);padding:96px 0 100px;position:relative;overflow:hidden}
.f-chaos::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E")}
.f-chaos .sec-hd h2{color:#fff}
.f-chaos .sec-hd p{color:rgba(255,255,255,.6)}
.f-chaos .ey{color:rgba(255,255,255,.5)}
.f-chaos .ey::before,.f-chaos .ey::after{background:rgba(255,255,255,.3)}
.f-chaos-layout{display:grid;grid-template-columns:1fr auto 1fr;gap:36px;align-items:center;margin-top:0}
/* problem cards — left col */
.f-chaos-col{display:flex;flex-direction:column;gap:14px}
.f-chaos-col.left{align-items:flex-end}
.f-chaos-col.right{align-items:flex-start}
.f-prob{background:rgba(255,255,255,.1);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:12px;cursor:default;width:260px;min-width:260px;height:80px;position:relative;overflow:hidden;transition:all .4s cubic-bezier(.175,.885,.32,1.275);box-shadow:0 4px 24px rgba(0,0,0,.18)}
.f-prob::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,rgba(255,255,255,.8),var(--p300));border-radius:3px 0 0 3px;transform:scaleY(0);transform-origin:top;transition:transform .35s cubic-bezier(.175,.885,.32,1.275)}
.f-prob:hover{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.16);transform:translateY(-3px);box-shadow:0 12px 40px rgba(0,0,0,.25)}
.f-prob:hover::before{transform:scaleY(1)}
.f-prob-ico{width:38px;height:38px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;transition:all .35s cubic-bezier(.175,.885,.32,1.275)}
.f-prob-ico svg{width:17px;height:17px;transition:color .3s,transform .35s}
.f-prob:hover .f-prob-ico{transform:rotate(-6deg) scale(1.08)}
.f-prob-t{font-size:13px;font-weight:700;color:#fff;margin-bottom:2px;transition:color .3s}
.f-prob:hover .f-prob-t{color:#fff}
.f-prob-s{font-size:11.5px;color:rgba(255,255,255,.55);line-height:1.45}
/* icon colours */
.ico-att{background:#fee2e2;border:1px solid #fca5a5}.ico-att svg{color:#dc2626}
.ico-doc{background:#fff7ed;border:1px solid #fed7aa}.ico-doc svg{color:#ea580c}
.ico-fee{background:#fef9c3;border:1px solid #fde68a}.ico-fee svg{color:#ca8a04}
.ico-com{background:#e0f2fe;border:1px solid #bae6fd}.ico-com svg{color:#0284c7}
.ico-tt{background:#f0fdf4;border:1px solid #bbf7d0}.ico-tt svg{color:#16a34a}
.ico-sal{background:#fdf4ff;border:1px solid #e9d5ff}.ico-sal svg{color:#9333ea}
.ico-res{background:#fff1f2;border:1px solid #fecdd3}.ico-res svg{color:#e11d48}
.ico-lib{background:#f0fdfa;border:1px solid #99f6e4}.ico-lib svg{color:#0d9488}
.ico-inv{background:#f8fafc;border:1px solid #e2e8f0}.ico-inv svg{color:#475569}
.ico-stu{background:#eff6ff;border:1px solid #bfdbfe}.ico-stu svg{color:#2563eb}
.ico-lea{background:#fdf2f8;border:1px solid #f5d0fe}.ico-lea svg{color:#c026d3}
.ico-tra{background:#f0fdf4;border:1px solid #a7f3d0}.ico-tra svg{color:#059669}
/* center figure */
.f-chaos-center{display:flex;flex-direction:column;align-items:center;gap:0;width:360px;flex-shrink:0;position:relative}
.f-chaos-img{width:320px;height:auto;object-fit:contain;filter:drop-shadow(0 24px 56px rgba(0,0,0,.4));animation:chaosFloat 5s ease-in-out infinite}
@keyframes chaosFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes ringRotate{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
.f-chaos-label{font-family:'Playfair Display',serif;font-size:13px;font-weight:700;color:rgba(255,255,255,.7);text-align:center;margin-top:16px;letter-spacing:.02em;position:relative;z-index:2}

/* ══ NEW: FEATURES SECTION HEADER ══ */
.f-features-hd{
  background:#fff;
  padding:120px 0 72px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.f-features-hd::before{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:900px;height:520px;
  background:radial-gradient(ellipse,rgba(184,164,240,.07),transparent 68%);
  pointer-events:none;
}
.f-features-hd-inner{
  max-width:980px;margin:0 auto;padding:0 var(--pad);
  position:relative;z-index:1;
}
.f-features-hd .ey{margin-bottom:22px}
.f-features-hd h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(36px,5vw,60px);
  font-weight:800;
  color:var(--ink);
  line-height:1.08;
  letter-spacing:-.035em;
  margin-bottom:24px;
}
.f-features-hd h2 em{
  display:inline-block;
  font-style:italic;
  color:var(--p700);
  margin-top:2px;
}
.f-features-hd h2 em{font-style:italic;color:var(--p700)}
.f-features-hd-inner>p{
  font-size:17px;color:var(--ink3);
  line-height:1.72;
  max-width:580px;margin:0 auto;
}
@media(max-width:880px){
  .f-features-hd{padding:80px 0 56px}
  .f-features-hd h2{font-size:clamp(28px,6.5vw,42px)}
}
.f-features-hd::before{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:800px;height:500px;
  background:radial-gradient(ellipse,rgba(184,164,240,.06),transparent 68%);
  pointer-events:none;
}
.f-features-hd-inner{
  max-width:720px;margin:0 auto;padding:0 var(--pad);
  position:relative;z-index:1;
}
.f-features-hd h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(32px,4vw,56px);font-weight:800;
  color:var(--ink);line-height:1.03;letter-spacing:-.035em;
  margin-bottom:18px;
}
.f-features-hd h2 em{font-style:italic;color:var(--p700)}
.f-features-hd>.f-features-hd-inner>p{
  font-size:17px;color:var(--ink3);line-height:1.72;
  max-width:560px;margin:0 auto 28px;
}
.f-features-hd-meta{
  display:inline-flex;align-items:center;gap:24px;
  padding:14px 28px;background:var(--p50);
  border:1.5px solid var(--line);border-radius:var(--rpill);
  margin-top:8px;
}
.f-features-hd-meta-item{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:var(--ink2);font-weight:600;
}
.f-features-hd-meta-item strong{
  font-family:'Playfair Display',serif;
  font-size:18px;font-weight:800;color:var(--p700);
}
.f-features-hd-meta-sep{width:1px;height:18px;background:var(--p200)}

/* ══ FEATURE SECTIONS — DASHBOARDS NOW SIZE-MATCHED TO CONTENT ══ */
.f-sec{
  padding:84px 0;
  position:relative;
  overflow:hidden;
}.f-sec.bg-wt,.f-sec.bg-alt{background:#fff}
.f-sec.bg-alt .f-bullet{background:var(--p50)}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:68px;align-items:center}      /* ← center, was flex-start */
.f-grid.rev{direction:rtl}
.f-grid.rev>*{direction:ltr}

.f-sec-label{display:flex;align-items:center;gap:10px;margin-bottom:32px}
.f-sec-label-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 14px;border-radius:var(--rpill);font-size:11.5px;font-weight:700;border:1.5px solid;background:var(--p100);color:var(--p700);border-color:var(--p200)}
.f-sec-label-badge svg{width:12px;height:12px}
.f-sec-hd{margin-bottom:0}
.f-sec-hd h2{font-family:'Playfair Display',serif;font-size:clamp(22px,2.6vw,33px);font-weight:800;color:var(--ink);line-height:1.06;letter-spacing:-.03em;margin-bottom:12px}
.f-sec-hd h2 em{font-style:italic;color:var(--p700)}
.f-sec-hd>p{font-size:15px;color:var(--ink3);line-height:1.78;margin-bottom:24px;max-width:440px}
.f-bullets{display:flex;flex-direction:column;gap:10px}
.f-bullet{display:flex;align-items:flex-start;gap:11px;padding:12px 14px;background:#fff;border:1.5px solid var(--line);border-radius:12px;cursor:default;position:relative;overflow:hidden;transition:all .3s cubic-bezier(.175,.885,.32,1.275)}
.f-sec.bg-alt .f-bullet{background:var(--p50)}
.f-bullet::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--p600),var(--p300));border-radius:3px 0 0 3px;transform:scaleY(0);transform-origin:top;transition:transform .3s cubic-bezier(.175,.885,.32,1.275)}
.f-bullet:hover{border-color:var(--p300);transform:translateX(5px);box-shadow:0 3px 16px rgba(93,63,184,.09)}
.f-bullet:hover::before{transform:scaleY(1)}
.f-bico{width:28px;height:28px;border-radius:8px;flex-shrink:0;background:var(--p100);border:1px solid var(--p200);display:grid;place-items:center;transition:all .3s cubic-bezier(.175,.885,.32,1.275)}
.f-bico svg{width:12px;height:12px;color:var(--p700);transition:color .3s}
.f-bullet:hover .f-bico{background:var(--p700);border-color:var(--p700)}
.f-bullet:hover .f-bico svg{color:#fff}
.f-bullet h4{font-size:13px;font-weight:700;color:var(--ink);margin-bottom:2px;font-family:'DM Sans',sans-serif;transition:color .3s}
.f-bullet:hover h4{color:var(--p800)}
.f-bullet p{font-size:12px;color:var(--ink3);line-height:1.5;transition:color .3s}
.f-bullet:hover p{color:var(--ink2)}

/* DASHBOARD — capped, compact, content-matched */
.f-visual{display:flex;align-items:center;justify-content:center;position:relative}
.f-db{
  width:100%;background:#fff;border-radius:20px;
  border:1.5px solid var(--line);
  box-shadow:var(--sh-lg);
  overflow:hidden;
  animation:dbFloat 5.5s ease-in-out infinite;
  transform-style:preserve-3d;
}
@keyframes dbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.db-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.db-bar-left{display:flex;align-items:center;gap:10px}
.db-bar-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.db-bar-ico svg{width:16px;height:16px;color:#fff}
.db-bar-title{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:700;color:var(--ink)}
.db-bar-sub{font-size:10.5px;color:var(--ink3);margin-top:1px}
.db-live{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:600;color:#15803d;background:#e8fdf0;border:1px solid #bbf7d0;padding:3px 10px;border-radius:var(--rpill)}
.db-live::before{content:'';width:6px;height:6px;border-radius:50%;background:#16a34a;animation:livePulse 2s ease-in-out infinite}
@keyframes livePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.7)}}
.db-stats{display:grid;gap:0;border-bottom:1px solid var(--line)}
.db-stats-3{grid-template-columns:1fr 1fr 1fr}
.db-stats-2{grid-template-columns:1fr 1fr}
.db-stat{padding:14px 18px;border-right:1px solid var(--line);text-align:center}
.db-stat:last-child{border-right:none}
.db-stat-v{font-family:'DM Sans',sans-serif;font-size:20px;font-weight:800;color:var(--ink);letter-spacing:-.02em;line-height:1;margin-bottom:3px}
.db-stat-l{font-size:10px;color:var(--ink3);text-transform:uppercase;letter-spacing:.05em}
.db-chip{position:absolute;top:-12px;right:-12px;border-radius:14px;padding:10px 14px;box-shadow:0 8px 28px rgba(0,0,0,.12);display:flex;align-items:center;gap:8px;z-index:3;white-space:nowrap;animation:chipFloat 4.5s ease-in-out infinite}
@keyframes chipFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.db-chip-ico{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}
.db-chip-ico svg{width:12px;height:12px;color:#fff}
.db-chip strong{display:block;font-size:12.5px;font-weight:700;line-height:1.2}
.db-chip span{font-size:10.5px;opacity:.75}
.db-rows{padding:10px 14px;display:flex;flex-direction:column;gap:6px}
.db-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;cursor:default;transition:all .3s cubic-bezier(.175,.885,.32,1.275)}
.db-row:hover{border-color:var(--p300);background:var(--p50);transform:translateX(3px)}
.db-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-family:'DM Sans',sans-serif;font-size:12px;font-weight:700;color:#fff}
.db-row-txt{flex:1;min-width:0}
.db-row-name{font-size:13px;font-weight:600;color:var(--ink);margin-bottom:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db-row-sub{font-size:10.5px;color:var(--ink3)}
.db-row-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.db-time{font-size:11px;color:var(--ink3);font-weight:500}
.db-status-ico{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.db-status-ico svg{width:10px;height:10px}
.si-green{background:#dcfce7;border:1.5px solid #86efac}.si-green svg{color:#16a34a}
.si-red{background:#fee2e2;border:1.5px solid #fca5a5}.si-red svg{color:#dc2626}
.si-yellow{background:#fef9c3;border:1.5px solid #fde047}.si-yellow svg{color:#ca8a04}
.si-blue{background:#dbeafe;border:1.5px solid #93c5fd}.si-blue svg{color:#2563eb}
.si-purple{background:var(--p100);border:1.5px solid var(--p300)}.si-purple svg{color:var(--p700)}
.db-badge{padding:2px 9px;border-radius:var(--rpill);font-size:10px;font-weight:700;white-space:nowrap}
.bg-g{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.bg-p{background:var(--p100);color:var(--p700);border:1px solid var(--p200)}
.bg-y{background:#fef9c3;color:#854d0e;border:1px solid #fde047}
.bg-b{background:#dbeafe;color:#1d4ed8;border:1px solid #93c5fd}
.bg-r{background:#fee2e2;color:#dc2626;border:1px solid #fca5a5}

/* ══ NUMBERS ══ */
.f-nums{background:var(--p50);padding:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.f-nums-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}
.f-num{background:#fff;padding:48px 32px;text-align:center;cursor:default;transition:background .3s}
.f-num:hover{background:var(--p50)}
.f-num-v{font-family:'Playfair Display',serif;font-size:clamp(36px,4vw,52px);font-weight:800;color:var(--p700);letter-spacing:-.03em;line-height:1;margin-bottom:8px}
.f-num-l{font-size:14px;color:var(--ink3);font-weight:500}

/* ══ MANIFESTO — NOW 2-COL WITH IMAGE RIGHT ══ */
.f-mani{
  background:linear-gradient(150deg,var(--p900) 0%,var(--p800) 50%,#3d2a90 100%);
  padding:96px 0 104px;position:relative;overflow:hidden;
}
.f-mani::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E")}
.f-mani-g1{position:absolute;top:-15%;right:-8%;width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.07),transparent 65%);pointer-events:none}
.f-mani-g2{position:absolute;bottom:-15%;left:-8%;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.05),transparent 65%);pointer-events:none}
.f-mani-hd{text-align:left;max-width:560px;margin-bottom:48px;position:relative;z-index:1}
.f-mani-hd h2{font-family:'Playfair Display',serif;font-size:clamp(28px,3.4vw,42px);font-weight:800;color:#fff;line-height:1.04;letter-spacing:-.03em;margin-bottom:12px}
.f-mani-hd h2 em{font-style:italic;color:var(--p300)}
.f-mani-hd p{font-size:16px;color:rgba(255,255,255,.6);line-height:1.7}
.f-mani-body{display:grid;grid-template-columns:1.2fr 1fr;gap:64px;align-items:center;position:relative;z-index:1}
.f-mani-items{display:flex;flex-direction:column;gap:0}
.f-mani-item{display:flex;align-items:flex-start;gap:20px;padding:24px 0;border-top:1px solid rgba(255,255,255,.1);cursor:default;transition:padding-left .35s cubic-bezier(.175,.885,.32,1.275)}
.f-mani-item:last-child{border-bottom:1px solid rgba(255,255,255,.1)}
.f-mani-item:hover{padding-left:14px}
.f-mani-ico{width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;flex-shrink:0;transition:all .35s cubic-bezier(.175,.885,.32,1.275)}
.f-mani-ico svg{width:20px;height:20px;color:#fff;transition:transform .35s}
.f-mani-item:hover .f-mani-ico{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.35);transform:rotate(-6deg) scale(1.08)}
.f-mani-item:hover .f-mani-ico svg{transform:scale(1.05)}
.f-mani-body-txt{flex:1;min-width:0}
.f-mani-body-txt h3{font-family:'Playfair Display',serif;font-size:clamp(16px,1.6vw,20px);font-weight:800;color:#fff;margin-bottom:6px;letter-spacing:-.02em;transition:color .3s}
.f-mani-item:hover .f-mani-body-txt h3{color:var(--p300)}
.f-mani-body-txt p{font-size:13.5px;color:rgba(255,255,255,.6);line-height:1.6;transition:color .3s}
.f-mani-item:hover .f-mani-body-txt p{color:rgba(255,255,255,.82)}
.f-mani-tag{font-size:10px;font-weight:700;color:var(--p300);text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}
.f-mani-img-col{display:flex;align-items:center;justify-content:center;position:relative}
.f-mani-img-bg{position:absolute;width:90%;height:90%;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.08),transparent 65%);filter:blur(20px)}
.f-mani-img{
  position:relative;z-index:1;
  width:100%;max-width:420px;
  height:auto;object-fit:contain;
  filter:drop-shadow(0 24px 56px rgba(0,0,0,.35));
  animation:maniFloat 5.5s ease-in-out infinite;
}
@keyframes maniFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* ══ CTA ══ */
.f-cta{
  background:var(--p50);
  padding:88px 52px 96px;
  text-align:center;
  position:relative;
  overflow:hidden;
}.f-cta::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:700px;height:500px;background:radial-gradient(ellipse,rgba(184,164,240,.08),transparent 68%);pointer-events:none}
.f-cta-inner{max-width:620px;margin:0 auto;position:relative;z-index:1}
.f-cta-inner h2{font-family:'Playfair Display',serif;font-size:clamp(28px,4vw,52px);font-weight:800;color:var(--ink);line-height:1.04;letter-spacing:-.03em;margin-bottom:14px}
.f-cta-inner h2 em{font-style:italic;color:var(--p700)}
.f-cta-inner p{font-size:16px;color:var(--ink3);line-height:1.72;margin-bottom:36px;max-width:440px;margin-left:auto;margin-right:auto}
.f-cta-btns{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}

/* ══ FOOTER ══ */
footer{background:var(--p900);position:relative;overflow:hidden;padding:48px 0 0}
.fw{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad);position:relative;z-index:1}
.f-top{padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:36px}
.f-brand-name{font-family:'Playfair Display',serif;font-size:22px;font-weight:800;color:#fff;letter-spacing:-.02em;margin-bottom:6px}
.f-brand-name span{color:var(--p400)}
.f-tagline{font-size:13px;font-weight:400;color:rgba(255,255,255,.35);max-width:400px;line-height:1.5}
.fgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-bottom:40px}
.fcol h4{font-family:'DM Sans',sans-serif;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--p400);margin-bottom:16px}
.fcol ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.fcol li a{font-size:13.5px;color:rgba(255,255,255,.5);display:flex;align-items:center;gap:8px;transition:color .2s}
.fcol li a:hover{color:#fff}
.fcol li a svg{width:14px;height:14px;flex-shrink:0;color:var(--p500)}
.fbot{padding:20px 0;border-top:1px solid rgba(255,255,255,.08);font-size:12.5px;color:rgba(255,255,255,.28);text-align:center}

/* ── RESPONSIVE ── */
@media(max-width:1100px){.f-nums-grid{grid-template-columns:1fr 1fr}.fgrid{grid-template-columns:1fr 1fr}}
@media(max-width:960px){
  .f-hero-grid,.f-grid,.f-mani-body{grid-template-columns:1fr;gap:40px}
  .f-grid.rev{direction:ltr}
  .f-hero-right,.f-visual,.f-mani-img-col{order:-1}
  .f-mod-grid{max-width:360px}
  .f-chaos-layout{grid-template-columns:1fr;gap:24px}
  .f-chaos-center{margin:0 auto}
  .f-chaos-col{align-items:stretch}
  .f-chaos-col.left,.f-chaos-col.right{display:grid;grid-template-columns:1fr 1fr}
  .f-features-hd-meta{flex-wrap:wrap;gap:14px;padding:14px 20px}
}
@media(max-width:720px){
  .nlinks{display:none}
  .wrap{padding:0 20px}
  .f-cta{padding:64px 20px}
  .fw{padding:0 20px}
  .f-nums-grid{grid-template-columns:1fr 1fr}
  .fgrid{grid-template-columns:1fr;gap:24px}
  .f-chaos-col.left,.f-chaos-col.right{grid-template-columns:1fr}
}


/* --------------------------------------------------------------------------
   GLOBAL CRITICAL FIXES (all sizes)
   -------------------------------------------------------------------------- */
/* hero <h1> had white-space:nowrap which clipped the title on phones */
.about-hero h1 {
  white-space: normal;
}


/* --------------------------------------------------------------------------
   MOBILE DRAWER STYLES
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--p100);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--p700);
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle:hover {
  background: var(--p200);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(93, 63, 184, .14);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 35, .50);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s ease, visibility .32s ease;
  z-index: 6000;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid rgba(229, 220, 255, .95);
  box-shadow: -28px 0 80px rgba(20, 14, 35, .24);
  z-index: 6001;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, visibility .25s ease;
}

body.nav-lock .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-lock .mobile-drawer {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-head {
  height: 76px;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #fff;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.drawer-logo span {
  color: var(--p600);
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--p100);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.drawer-close:hover {
  background: var(--p200);
  transform: translateY(-1px);
}

.drawer-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--p700);
  border-radius: 999px;
  transform-origin: center;
}

.drawer-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-links {
  flex: 1;
  padding: 34px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.drawer-links a {
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.drawer-links a:hover,
.drawer-links a.active {
  background: var(--p100);
  border-color: var(--p200);
  color: var(--p700);
  transform: translateX(3px);
}

.drawer-bottom {
  padding: 18px 18px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: #fff;
}

.drawer-demo {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: var(--p700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(93, 63, 184, .28);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.drawer-demo:hover {
  background: var(--p800);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(93, 63, 184, .34);
}

.hero-kite {
  opacity: .7 !important;
}
.hero-book {
  opacity: .64 !important;
}
 
@media (max-width: 1200px) {
  .hero-kite { width: 200px !important; opacity: .7 !important; }
  .hero-book { width: 230px !important; opacity: .64 !important; }
}
 
@media (max-width: 1024px) {
  .hero-kite { width: 170px !important; opacity: .68 !important; }
  .hero-book { width: 200px !important; opacity: .62 !important; }
}
 
@media (max-width: 880px) {
  .hero-kite { width: 150px !important; top: -10px !important; left: -22px !important; opacity: .66 !important; }
  .hero-book { width: 175px !important; bottom: -22px !important; right: -14px !important; opacity: .6 !important; }
}
 
@media (max-width: 768px) {
  .hero-kite { width: 132px !important; top: 0 !important; left: -18px !important; opacity: .64 !important; }
  .hero-book { width: 152px !important; bottom: -14px !important; right: -10px !important; opacity: .58 !important; }
}
 
@media (max-width: 640px) {
  .hero-kite { width: 112px !important; opacity: .62 !important; }
  .hero-book { width: 130px !important; opacity: .56 !important; }
}
 
@media (max-width: 480px) {
  .hero-kite { width: 94px !important; top: 2px !important; left: -14px !important; opacity: .6 !important; }
  .hero-book { width: 110px !important; bottom: -8px !important; right: -8px !important; opacity: .54 !important; }
}
 
@media (max-width: 380px) {
  .hero-kite { width: 80px !important; opacity: .58 !important; }
  .hero-book { width: 92px !important; opacity: .52 !important; }
}


/* ==========================================================================
   1. ULTRA WIDE (1800px+)
   ========================================================================== */
@media (min-width: 1800px) {
  .nw, .fw, .wrap { max-width: 1400px; }
  .hero-inner { max-width: 1320px; }
  .about-hero { padding: 60px 0 140px; }
  .about-hero h1 { font-size: clamp(32px, 5vw, 76px); }
  .hero-kite { width: 320px; top: -30px; left: -40px; }
  .hero-book { width: 360px; bottom: -50px; right: -30px; }
}


/* ==========================================================================
   2. LARGE DESKTOP (1600px)
   ========================================================================== */
@media (max-width: 1600px) {
  .nw, .fw, .wrap { max-width: 1320px; }
  .hero-inner { max-width: 1100px; }
  .about-hero h1 { font-size: clamp(30px, 4.2vw, 64px); }
}


/* ==========================================================================
   3. STANDARD DESKTOP (1400px)
   ========================================================================== */
@media (max-width: 1400px) {
  .nw { padding-left: 40px; padding-right: 40px; }
  :root { --pad: 40px; }
  .f-grid { gap: 56px; }
  .f-mani-body { gap: 52px; }
  .hero-kite { width: 230px; }
  .hero-book { width: 270px; }
}


/* ==========================================================================
   4. LAPTOP (1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .nw { padding-left: 32px; padding-right: 32px; }
  :root { --pad: 32px; }

  .nw { gap: 12px; }
  .nlinks a { padding: 7px 10px; font-size: 13.5px; }
  .n-demo { padding: 9px 16px; font-size: 13.5px; }

  .about-hero { padding: 48px 0 110px; }
  .about-hero h1 { font-size: clamp(30px, 4vw, 56px); }

  .f-chaos, .f-features-hd, .f-sec, .f-mani, .f-cta {
    padding-top: 84px;
    padding-bottom: 92px;
  }

  .f-nums-grid { grid-template-columns: 1fr 1fr; }

  .hero-kite { width: 200px; opacity: .5; }
  .hero-book { width: 230px; opacity: .45; }
}


/* ==========================================================================
   5. TABLET LANDSCAPE (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .nw { padding-left: 28px; padding-right: 28px; }
  :root { --pad: 28px; }

  .about-hero { padding: 44px 0 100px; min-height: auto; }
  .about-hero h1 { font-size: clamp(28px, 5vw, 52px); line-height: 1.08; }
  .hero-kite { width: 170px; opacity: .42; }
  .hero-book { width: 200px; opacity: .4; }

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


/* ==========================================================================
   6. HAMBURGER DRAWER KICKS IN (900px)
   Hide desktop nav, show drawer, restructure all sections
   ========================================================================== */
@media (max-width: 900px) {
  nav { z-index: 5000; }

  .nw {
    height: 64px;
    padding: 0 20px;
  }

  .logo { font-size: 18px; }
  .lbox { width: 34px; height: 34px; }

  .nw > .nlinks,
  .nw > .nright {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    margin-left: auto;
  }

  body.nav-lock { overflow: hidden; }

  /* ── PROBLEM (CHAOS) SECTION ──
     image on top, then problem cards 2-per-row in one line */
  .f-chaos-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .f-chaos-center {
    order: -1;            /* illustration FIRST / on top */
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }
  .f-chaos-img { width: 240px; }
  /* both columns become a 2-up grid; left/right reset alignment */
  .f-chaos-col,
  .f-chaos-col.left,
  .f-chaos-col.right {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 2 cards per line */
    gap: 12px;
    align-items: stretch;
  }
  .f-prob {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 80px;
  }

  /* ── FEATURE SECTIONS ──
     explanation text FIRST, dashboard AFTER */
  .f-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .f-grid.rev { direction: ltr; }
  /* the text column is the first child (#fC*), the visual is #fV* */
  .f-grid > div:first-child { order: 1; }
  .f-visual { order: 2; }

  /* ── MANIFESTO ──
     image ABOVE, then the points */
  .f-mani-body {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .f-mani-img-col { order: -1; }      /* image on top */
  .f-mani-hd { max-width: none; }

  .f-nums-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   7. TABLET PORTRAIT (880px) — iPad Mini / Air / Pro 11" portrait
   ========================================================================== */
@media (max-width: 880px) {
  .nw { padding-left: 24px; padding-right: 24px; }
  :root { --pad: 24px; }

  .about-hero { padding: 40px 0 88px; }
  .about-hero h1 { font-size: clamp(26px, 6vw, 44px); line-height: 1.1; }
  .about-hero .sub { font-size: 15px; }

  .hero-kite { width: 140px; top: -10px; left: -25px; opacity: .35; }
  .hero-book { width: 170px; bottom: -25px; right: -15px; opacity: .32; }

  .f-chaos, .f-features-hd, .f-sec, .f-mani, .f-cta {
    padding-top: 60px;
    padding-bottom: 68px;
  }

  .f-features-hd { padding-top: 72px; padding-bottom: 52px; }
  .f-features-hd h2 { font-size: clamp(28px, 6.5vw, 42px); }

  .sec-hd, .f-mani-hd { margin-bottom: 40px; }

  /* keep problem cards 2-up, comfortable on iPad portrait */
  .f-chaos-layout { max-width: 600px; margin-left: auto; margin-right: auto; }
  .f-chaos-center { max-width: 300px; }
  .f-chaos-img { width: 220px; }

  .f-grid, .f-mani-body { max-width: 600px; }
}


/* ==========================================================================
   8. LARGE MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
  .nw { padding: 0 20px; }
  :root { --pad: 20px; }
  .wrap, .fw { padding-left: 20px; padding-right: 20px; }

  .about-hero { padding: 36px 0 80px; }
  .about-hero h1 {
    font-size: clamp(24px, 7vw, 40px);
    line-height: 1.12;
    margin-bottom: 20px;
  }
  .about-hero h1 .word { margin-right: .11em; }
  .about-hero .sub { font-size: 14.5px; line-height: 1.7; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 10.5px; }

  .hero-kite { width: 110px; top: 0; left: -20px; opacity: .28; }
  .hero-book { width: 140px; bottom: -15px; right: -10px; opacity: .26; }

  .bg-orb-left, .bg-orb-right, .bg-orb-mid {
    width: 320px;
    height: 320px;
  }

  .f-cta { padding: 64px 20px; }
  .f-nums-grid { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr; gap: 24px; }

  .f-sec-hd h2 { font-size: clamp(22px, 6vw, 30px); }
  .f-mani-body-txt h3 { font-size: 17px; }
}


/* ==========================================================================
   9. STANDARD MOBILE (640px)
   ========================================================================== */
@media (max-width: 640px) {
  .nw { padding: 0 16px; }
  :root { --pad: 16px; }
  .wrap, .fw { padding-left: 16px; padding-right: 16px; }

  .about-hero { padding: 32px 0 70px; }
  .about-hero h1 { font-size: clamp(22px, 7.5vw, 34px); line-height: 1.14; }
  .about-hero .sub { font-size: 14px; line-height: 1.68; }

  .hero-kite { width: 90px; opacity: .22; }
  .hero-book { width: 110px; opacity: .22; }

  .f-chaos, .f-features-hd, .f-sec, .f-mani, .f-cta {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .sec-hd, .f-mani-hd { margin-bottom: 36px; }

  /* problem cards: still 2 per line on small phones, just tighter */
  .f-chaos-col,
  .f-chaos-col.left,
  .f-chaos-col.right {
    gap: 10px;
  }
  .f-prob {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 14px;
    min-height: 0;
  }
  .f-prob-ico { width: 34px; height: 34px; }
  .f-prob-t { font-size: 12.5px; }
  .f-prob-s { font-size: 11px; }
  .f-chaos-img { width: 200px; }

  .f-db { border-radius: 16px; }
  .db-stat-v { font-size: 18px; }
  .db-row-name { font-size: 12.5px; }

  .f-mani-item { gap: 14px; padding: 20px 0; }
  .f-mani-ico { width: 42px; height: 42px; }

  .f-nums-grid { grid-template-columns: 1fr 1fr; }
  .f-num { padding: 36px 22px; }
}


/* ==========================================================================
   10. SMALL MOBILE (480px)  — iPhone SE / XR / 12 / 13 / 14 etc.
   ========================================================================== */
@media (max-width: 480px) {
  .nw { height: 60px; padding: 0 14px; }
  :root { --pad: 14px; }
  .wrap, .fw { padding-left: 14px; padding-right: 14px; }

  .about-hero { padding: 28px 0 64px; }
  .about-hero h1 { font-size: 26px; line-height: 1.16; margin-bottom: 18px; }
  .about-hero .sub { font-size: 13.5px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .11em; margin-bottom: 16px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 18px; }

  .hero-kite { width: 70px; top: 4px; left: -15px; opacity: .18; }
  .hero-book { width: 85px; bottom: -8px; right: -8px; opacity: .18; }

  .bg-orb-left, .bg-orb-right, .bg-orb-mid {
    width: 250px;
    height: 250px;
  }

  /* on the smallest phones, problem cards become 1 per line for readability */
  .f-chaos-col,
  .f-chaos-col.left,
  .f-chaos-col.right {
    grid-template-columns: 1fr;
  }
  .f-prob {
    flex-direction: row;
    align-items: center;
  }
  .f-chaos-img { width: 170px; }

  .f-sec-label { margin-bottom: 24px; }
  .f-sec-hd h2 { font-size: clamp(20px, 6.5vw, 26px); }
  .db-stats-3 { grid-template-columns: 1fr 1fr 1fr; }
  .db-chip { padding: 8px 12px; }

  .f-features-hd h2 { font-size: clamp(26px, 8vw, 36px); }

  .f-num { padding: 30px 18px; }
  .f-num-v { font-size: 36px; }

  .f-cta-inner h2 { font-size: clamp(24px, 7vw, 36px); }
  .fgrid { grid-template-columns: 1fr; gap: 22px; }
}


/* ==========================================================================
   11. SMALL PHONE (420px) — drawer adjustments
   ========================================================================== */
@media (max-width: 420px) {
  .nw { padding: 0 16px; }
  .logo { font-size: 17px; gap: 8px; }
  .lbox { width: 32px; height: 32px; }

  .nav-toggle,
  .drawer-close { width: 40px; height: 40px; }

  .mobile-drawer { width: 88vw; }

  .drawer-head {
    height: 68px;
    padding-left: 18px;
  }

  .drawer-links { padding-top: 28px; }
  .drawer-links a { padding: 13px 16px; font-size: 13.5px; }
}


/* ==========================================================================
   12. EXTRA SMALL MOBILE (380px)
   ========================================================================== */
@media (max-width: 380px) {
  :root { --pad: 12px; }
  .wrap, .fw { padding-left: 12px; padding-right: 12px; }

  .about-hero h1 { font-size: 23px; }
  .about-hero .sub { font-size: 13px; }

  .hero-kite { width: 60px; opacity: .15; }
  .hero-book { width: 72px; opacity: .15; }

  .f-prob { padding: 12px 12px; }
  .f-db { border-radius: 14px; }
  .db-rows { padding: 8px 10px; }
  .f-chaos-img { width: 150px; }
}


/* ==========================================================================
   13. IPAD PRO 12.9" PORTRAIT (1000–1100px range)
   ========================================================================== */
@media (min-width: 1000px) and (max-width: 1100px) and (orientation: portrait) {
  /* feature sections single column, text first, dashboard after */
  .f-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 44px;
  }
  .f-grid.rev { direction: ltr; }
  .f-grid > div:first-child { order: 1; }
  .f-visual { order: 2; }

  /* problem section: image top, cards 2-up */
  .f-chaos-layout {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 28px;
  }
  .f-chaos-center { order: -1; margin: 0 auto; max-width: 320px; }
  .f-chaos-col,
  .f-chaos-col.left,
  .f-chaos-col.right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .f-prob { width: auto; min-width: 0; height: auto; }

  /* manifesto: image above, points after */
  .f-mani-body {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 40px;
  }
  .f-mani-img-col { order: -1; }

  .f-nums-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   14. TOUCH DEVICES — disable hover transforms
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .f-prob:hover,
  .f-bullet:hover,
  .db-row:hover,
  .f-mani-item:hover,
  .f-num:hover {
    transform: none;
  }

  .n-demo, .nav-toggle, .drawer-close, .drawer-demo,
  .btn-pri, .btn-sec {
    min-height: 44px;
  }
}


/* ==========================================================================
   15. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-kite, .hero-book,
  .bg-orb-left, .bg-orb-right, .bg-orb-mid,
  .f-db, .f-chaos-img, .f-mani-img, .db-chip {
    animation: none !important;
  }
}

/* ================================================= */
/* GLOBAL FOOTER RESPONSIVE MEDIA QUERIES */
/* Use this same footer CSS on every page */
/* ================================================= */


/* ---------- Large tablets / small laptops ---------- */
@media (max-width: 1024px) {
  footer {
    padding: 76px 0 34px;
  }

  footer .fw {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
  }

  footer .f-top {
    gap: 12px;
    margin-bottom: 42px;
  }

  footer .f-brand-name {
    font-size: clamp(30px, 4vw, 46px);
  }

  footer .f-tagline {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.75;
  }

  footer .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 56px;
  }

  footer .fcol h4 {
    margin-bottom: 18px;
  }

  footer .fbot {
    margin-top: 44px;
    padding-top: 24px;
  }
}


/* ---------- iPad / tablet portrait ---------- */
@media (max-width: 768px) {
  footer {
    padding: 68px 0 30px;
  }

  footer .fw {
    width: min(100% - 36px, 720px);
  }

  footer .f-top {
    margin-bottom: 38px;
  }

  footer .f-brand-name {
    font-size: 34px;
    line-height: 1.05;
  }

  footer .f-tagline {
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 100%;
  }

  footer .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 42px;
  }

  footer .fcol h4 {
    font-size: 12px;
    letter-spacing: .18em;
    margin-bottom: 16px;
  }

  footer .fcol ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  footer .fcol a {
    font-size: 14.5px;
    line-height: 1.45;
  }

  footer .fcol a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  footer .fbot {
    margin-top: 38px;
    padding-top: 22px;
    font-size: 13.5px;
    line-height: 1.6;
  }
}


/* ---------- Phones like iPhone SE / 375px ---------- */
@media (max-width: 480px) {
  footer {
    padding: 60px 0 26px;
  }

  footer .fw {
    width: calc(100% - 32px);
  }

  footer .f-top {
    margin-bottom: 34px;
  }

  footer .f-brand-name {
    font-size: 30px;
    letter-spacing: .02em;
  }

  footer .f-tagline {
    font-size: 14px;
    line-height: 1.7;
  }

  /*
    Important:
    Keep 2 columns on normal phones.
    This matches the PROV/O screenshot style.
  */
  footer .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 26px;
  }

  footer .fcol h4 {
    font-size: 11.5px;
    letter-spacing: .20em;
    margin-bottom: 15px;
  }

  footer .fcol ul {
    gap: 11px;
  }

  footer .fcol a {
    font-size: 14px;
    line-height: 1.45;
    word-break: normal;
  }

  footer .fcol a svg {
    width: 15px;
    height: 15px;
  }

  footer .fbot {
    margin-top: 34px;
    padding-top: 20px;
    font-size: 12.8px;
    text-align: left;
  }
}


/* ---------- Very small phones below 340px ---------- */
@media (max-width: 340px) {
  footer .fw {
    width: calc(100% - 24px);
  }

  footer .fgrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer .fbrand-name,
  footer .f-brand-name {
    font-size: 28px;
  }

  footer .fcol a {
    font-size: 13.5px;
  }
}


/* ================================================= */
/* LIGHT / DARK MODE SYSTEM - FEATURES PAGE */
/* Paste at the VERY BOTTOM of features.css */
/* ================================================= */

/* ---------- Smooth theme transition ---------- */
html,
body,
nav,
.about-hero,
.hero-eyebrow,
.hbadge,
.f-chaos,
.f-features-hd,
.f-sec,
.f-bullet,
.f-bico,
.f-db,
.db-bar,
.db-stat,
.db-row,
.db-chip,
.db-live,
.db-badge,
.f-nums,
.f-num,
.f-mani,
.f-mani-item,
.f-mani-ico,
.f-cta,
.btn-pri,
.btn-sec,
.nav-toggle,
.mobile-drawer,
.drawer-head,
.drawer-links,
.drawer-bottom,
.drawer-theme-toggle,
footer {
  transition:
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    filter .28s ease;
}

/* ---------- Dark theme variables ---------- */
html[data-theme="dark"] {
  --p50: #171126;
  --p100: #211735;
  --p200: #31224f;
  --p300: #4b3477;
  --p400: #7455b8;
  --p500: #9d83e6;
  --p600: #b69cff;
  --p700: #c7b3ff;
  --p800: #ded2ff;
  --p900: #0f0a1c;

  --ink: #fbf8ff;
  --ink2: #ded6f3;
  --ink3: #a99dc2;

  --bg: #0f0a1c;
  --line: rgba(222, 210, 255, .14);

  --sh: 0 2px 12px rgba(0, 0, 0, .22);
  --sh-md: 0 8px 32px rgba(0, 0, 0, .28);
  --sh-lg: 0 24px 64px rgba(0, 0, 0, .35);

  color-scheme: dark;
}



[data-theme="dark"] {
  /* Dark mode: transitions from dark background down into your hero section */
  --nav-bg-start: #0F0E17;
  --nav-bg-middle: #1B1834;
  --nav-bg-end: #2a1d58;
  
  --nav-text-color: #F0F0F0;
}


html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink2);
}

/* ================================================= */
/* THEME TOGGLE BUTTON */
/* Same HTML + JS as other pages */
/* ================================================= */

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--rpill);
  border: 1.5px solid var(--line);
  background: var(--p50);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: all .28s ease;
}

.theme-toggle:hover {
  border-color: var(--p400);
  background: var(--p100);
  color: var(--p700);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(93, 63, 184, .14);
}

.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition:
    opacity .25s ease,
    transform .25s ease;
}

/* Light mode shows moon */
.theme-sun {
  opacity: 0;
  transform: translateY(8px) rotate(-35deg) scale(.75);
}

.theme-moon {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

/* Dark mode shows sun */
html[data-theme="dark"] .theme-sun {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}

html[data-theme="dark"] .theme-moon {
  opacity: 0;
  transform: translateY(-8px) rotate(35deg) scale(.75);
}

/* ================================================= */
/* DARK MODE NAVBAR */
/* ================================================= */

html[data-theme="dark"] nav {
  background: rgba(15, 10, 28, .84);
  border-bottom-color: rgba(222, 210, 255, .1);
}

html[data-theme="dark"] nav.scrolled {
  border-color: rgba(222, 210, 255, .14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .logo {
  color: var(--ink);
}

html[data-theme="dark"] .logo-accent {
  color: var(--p700);
}

html[data-theme="dark"] .lbox {
  background: linear-gradient(135deg, #7c5fd6, #b8a4f0);
  box-shadow: 0 8px 24px rgba(157, 131, 230, .24);
}

html[data-theme="dark"] .nlinks a {
  color: var(--ink2);
}

html[data-theme="dark"] .nlinks a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}

html[data-theme="dark"] .nlinks a.active {
  background: rgba(199, 179, 255, .12);
  color: var(--p700);
}

html[data-theme="dark"] .n-demo,
html[data-theme="dark"] .drawer-demo,
html[data-theme="dark"] .btn-pri {
  background: linear-gradient(135deg, #7c5fd6, #a88cff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 95, 214, .28);
}

html[data-theme="dark"] .n-demo:hover,
html[data-theme="dark"] .drawer-demo:hover,
html[data-theme="dark"] .btn-pri:hover {
  background: linear-gradient(135deg, #8f73e6, #c7b3ff);
}

html[data-theme="dark"] .btn-sec {
  color: var(--p700);
  border-color: rgba(199, 179, 255, .28);
  background: rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .btn-sec:hover {
  background: rgba(199, 179, 255, .1);
  border-color: rgba(199, 179, 255, .42);
}

/* ================================================= */
/* DARK MODE HERO */
/* ================================================= */

html[data-theme="dark"] .about-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(157, 131, 230, .16), transparent 34%),
    radial-gradient(circle at 88% 58%, rgba(199, 179, 255, .1), transparent 34%),
    linear-gradient(145deg, #120c20 0%, #19102b 48%, #0f0a1c 100%);
}

html[data-theme="dark"] .bg-orb-left {
  background: radial-gradient(circle, rgba(157, 131, 230, .14) 0%, transparent 65%);
}

html[data-theme="dark"] .bg-orb-right {
  background: radial-gradient(circle, rgba(199, 179, 255, .1) 0%, transparent 65%);
}

html[data-theme="dark"] .bg-orb-mid {
  background: radial-gradient(circle, rgba(184, 164, 240, .1) 0%, transparent 65%);
}

html[data-theme="dark"] .hero-eyebrow {
  color: var(--p700);
}

html[data-theme="dark"] .hero-eyebrow::before {
  background: linear-gradient(90deg, transparent, rgba(199, 179, 255, .65));
}

html[data-theme="dark"] .hero-eyebrow::after {
  background: linear-gradient(90deg, rgba(199, 179, 255, .65), transparent);
}

html[data-theme="dark"] .about-hero h1 {
  color: var(--ink);
}

html[data-theme="dark"] .about-hero h1 .accent {
  color: var(--p700);
}

html[data-theme="dark"] .about-hero .sub {
  color: var(--ink3);
}

html[data-theme="dark"] .hero-wave path {
  fill: var(--bg);
}

html[data-theme="dark"] .hero-kite,
html[data-theme="dark"] .hero-book {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3));
}

/* ================================================= */
/* DARK MODE SHARED HEADERS */
/* ================================================= */

html[data-theme="dark"] .ey {
  color: var(--p700);
}

html[data-theme="dark"] .ey::before,
html[data-theme="dark"] .ey::after {
  background: rgba(199, 179, 255, .42);
}

html[data-theme="dark"] .sec-hd h2,
html[data-theme="dark"] .f-sec-hd h2,
html[data-theme="dark"] .f-features-hd h2,
html[data-theme="dark"] .f-cta-inner h2 {
  color: var(--ink);
}

html[data-theme="dark"] .sec-hd h2 em,
html[data-theme="dark"] .f-sec-hd h2 em,
html[data-theme="dark"] .f-features-hd h2 em,
html[data-theme="dark"] .f-cta-inner h2 em {
  color: var(--p700);
}

html[data-theme="dark"] .sec-hd p,
html[data-theme="dark"] .f-sec-hd > p,
html[data-theme="dark"] .f-features-hd-inner > p,
html[data-theme="dark"] .f-features-hd > .f-features-hd-inner > p,
html[data-theme="dark"] .f-cta-inner p {
  color: var(--ink3);
}

/* ================================================= */
/* DARK MODE CHAOS SECTION */
/* ================================================= */

html[data-theme="dark"] .f-chaos {
  background:
    radial-gradient(circle at 12% 18%, rgba(199, 179, 255, .1), transparent 32%),
    linear-gradient(150deg, #0f0a1c 0%, #211735 52%, #31224f 100%);
}

html[data-theme="dark"] .f-chaos::before {
  opacity: .9;
}

html[data-theme="dark"] .f-chaos .sec-hd h2 {
  color: #fff;
}

html[data-theme="dark"] .f-chaos .sec-hd p {
  color: rgba(255, 255, 255, .62);
}

html[data-theme="dark"] .f-prob {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .f-prob:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(199, 179, 255, .34);
}

html[data-theme="dark"] .f-prob::before {
  background: linear-gradient(180deg, #c7b3ff, #7455b8);
}

html[data-theme="dark"] .f-prob-t {
  color: #fff;
}

html[data-theme="dark"] .f-prob-s {
  color: rgba(255, 255, 255, .62);
}

html[data-theme="dark"] .f-chaos-label {
  color: rgba(255, 255, 255, .74);
}

/* keep colorful icons readable in dark */
html[data-theme="dark"] .f-prob-ico {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

/* ================================================= */
/* DARK MODE FEATURES HEADER */
/* ================================================= */

html[data-theme="dark"] .f-features-hd {
  background: var(--bg);
}

html[data-theme="dark"] .f-features-hd::before {
  background: radial-gradient(ellipse, rgba(184, 164, 240, .11), transparent 68%);
}

html[data-theme="dark"] .f-features-hd-meta {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
}

html[data-theme="dark"] .f-features-hd-meta-item {
  color: var(--ink2);
}

html[data-theme="dark"] .f-features-hd-meta-item strong {
  color: var(--p700);
}

html[data-theme="dark"] .f-features-hd-meta-sep {
  background: rgba(222, 210, 255, .18);
}

/* ================================================= */
/* DARK MODE FEATURE SECTIONS */
/* ================================================= */

html[data-theme="dark"] .f-sec.bg-wt,
html[data-theme="dark"] .f-sec.bg-alt,
html[data-theme="dark"] .f-sec {
  background: var(--bg);
}

html[data-theme="dark"] .f-sec:nth-of-type(even) {
  background: #130d22;
}

html[data-theme="dark"] .f-sec-label-badge {
  background: rgba(199, 179, 255, .1);
  border-color: rgba(199, 179, 255, .22);
  color: var(--p700);
}

html[data-theme="dark"] .f-bullet,
html[data-theme="dark"] .f-sec.bg-alt .f-bullet {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
}

html[data-theme="dark"] .f-bullet:hover {
  background: rgba(199, 179, 255, .075);
  border-color: rgba(199, 179, 255, .3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .f-bullet::before {
  background: linear-gradient(180deg, #b69cff, #7455b8);
}

html[data-theme="dark"] .f-bico {
  background: rgba(199, 179, 255, .1);
  border-color: rgba(199, 179, 255, .18);
}

html[data-theme="dark"] .f-bico svg {
  color: var(--p700);
}

html[data-theme="dark"] .f-bullet:hover .f-bico {
  background: linear-gradient(135deg, #7c5fd6, #a88cff);
  border-color: transparent;
}

html[data-theme="dark"] .f-bullet:hover .f-bico svg {
  color: #fff;
}

html[data-theme="dark"] .f-bullet h4 {
  color: var(--ink);
}

html[data-theme="dark"] .f-bullet:hover h4 {
  color: var(--p700);
}

html[data-theme="dark"] .f-bullet p {
  color: var(--ink3);
}

html[data-theme="dark"] .f-bullet:hover p {
  color: var(--ink2);
}

/* ================================================= */
/* DARK MODE DASHBOARD CARDS */
/* ================================================= */

html[data-theme="dark"] .f-db {
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .db-bar {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .db-bar-title {
  color: var(--ink);
}

html[data-theme="dark"] .db-bar-sub {
  color: var(--ink3);
}

html[data-theme="dark"] .db-live {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(134, 239, 172, .28);
  color: #86efac;
}

html[data-theme="dark"] .db-live::before {
  background: #86efac;
}

html[data-theme="dark"] .db-stats {
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .db-stat {
  border-right-color: var(--line);
}

html[data-theme="dark"] .db-stat-v {
  color: var(--ink);
}

html[data-theme="dark"] .db-stat-l {
  color: var(--ink3);
}

html[data-theme="dark"] .db-row {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line);
}

html[data-theme="dark"] .db-row:hover {
  background: rgba(199, 179, 255, .075);
  border-color: rgba(199, 179, 255, .28);
}

html[data-theme="dark"] .db-row-name {
  color: var(--ink);
}

html[data-theme="dark"] .db-row-sub,
html[data-theme="dark"] .db-time {
  color: var(--ink3);
}

html[data-theme="dark"] .db-chip {
  background: rgba(18, 12, 32, .92) !important;
  border: 1px solid rgba(222, 210, 255, .16);
  color: var(--ink);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .db-chip span {
  color: var(--ink3);
  opacity: 1;
}

/* Badge colors adjusted for dark mode */
html[data-theme="dark"] .bg-g {
  background: rgba(34, 197, 94, .12);
  color: #86efac;
  border-color: rgba(134, 239, 172, .28);
}

html[data-theme="dark"] .bg-p {
  background: rgba(199, 179, 255, .12);
  color: var(--p700);
  border-color: rgba(199, 179, 255, .28);
}

html[data-theme="dark"] .bg-y {
  background: rgba(250, 204, 21, .12);
  color: #fde68a;
  border-color: rgba(253, 224, 71, .28);
}

html[data-theme="dark"] .bg-b {
  background: rgba(96, 165, 250, .12);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, .28);
}

html[data-theme="dark"] .bg-r {
  background: rgba(248, 113, 113, .12);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, .28);
}

/* Status icons remain visible */
html[data-theme="dark"] .si-green {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(134, 239, 172, .3);
}

html[data-theme="dark"] .si-red {
  background: rgba(248, 113, 113, .12);
  border-color: rgba(252, 165, 165, .3);
}

html[data-theme="dark"] .si-yellow {
  background: rgba(250, 204, 21, .12);
  border-color: rgba(253, 224, 71, .3);
}

html[data-theme="dark"] .si-blue {
  background: rgba(96, 165, 250, .12);
  border-color: rgba(147, 197, 253, .3);
}

html[data-theme="dark"] .si-purple {
  background: rgba(199, 179, 255, .12);
  border-color: rgba(199, 179, 255, .3);
}

/* ================================================= */
/* DARK MODE NUMBERS SECTION */
/* ================================================= */

html[data-theme="dark"] .f-nums {
  background: #130d22;
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .f-nums-grid {
  background: var(--line);
}

html[data-theme="dark"] .f-num {
  background: rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .f-num:hover {
  background: rgba(199, 179, 255, .075);
}

html[data-theme="dark"] .f-num-v {
  color: var(--p700);
}

html[data-theme="dark"] .f-num-l {
  color: var(--ink3);
}

/* ================================================= */
/* DARK MODE MANIFESTO SECTION */
/* ================================================= */

html[data-theme="dark"] .f-mani {
  background:
    radial-gradient(circle at 82% 10%, rgba(199, 179, 255, .1), transparent 34%),
    linear-gradient(150deg, #0f0a1c 0%, #211735 52%, #31224f 100%);
}

html[data-theme="dark"] .f-mani-g1 {
  background: radial-gradient(circle, rgba(199, 179, 255, .08), transparent 65%);
}

html[data-theme="dark"] .f-mani-g2 {
  background: radial-gradient(circle, rgba(184, 164, 240, .07), transparent 65%);
}

html[data-theme="dark"] .f-mani-hd h2 {
  color: #fff;
}

html[data-theme="dark"] .f-mani-hd h2 em {
  color: var(--p700);
}

html[data-theme="dark"] .f-mani-hd p {
  color: rgba(255, 255, 255, .62);
}

html[data-theme="dark"] .f-mani-item {
  border-top-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .f-mani-item:last-child {
  border-bottom-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .f-mani-ico {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

html[data-theme="dark"] .f-mani-item:hover .f-mani-ico {
  background: rgba(199, 179, 255, .16);
  border-color: rgba(199, 179, 255, .34);
}

html[data-theme="dark"] .f-mani-tag {
  color: var(--p700);
}

html[data-theme="dark"] .f-mani-body-txt h3 {
  color: #fff;
}

html[data-theme="dark"] .f-mani-item:hover .f-mani-body-txt h3 {
  color: var(--p700);
}

html[data-theme="dark"] .f-mani-body-txt p {
  color: rgba(255, 255, 255, .62);
}

html[data-theme="dark"] .f-mani-item:hover .f-mani-body-txt p {
  color: rgba(255, 255, 255, .84);
}

html[data-theme="dark"] .f-mani-img-bg {
  background: radial-gradient(circle, rgba(199, 179, 255, .12), transparent 65%);
}

/* ================================================= */
/* DARK MODE CTA */
/* ================================================= */

html[data-theme="dark"] .f-cta {
  background: #130d22;
}

html[data-theme="dark"] .f-cta::before {
  background: radial-gradient(ellipse, rgba(184, 164, 240, .12), transparent 68%);
}

/* ================================================= */
/* DARK MODE MOBILE DRAWER */
/* ================================================= */

html[data-theme="dark"] .nav-toggle {
  background: rgba(255, 255, 255, .055);
  border-color: var(--line);
}

html[data-theme="dark"] .nav-toggle:hover {
  background: rgba(199, 179, 255, .1);
}

html[data-theme="dark"] .nav-toggle span {
  background: var(--p700);
}

html[data-theme="dark"] .nav-overlay {
  background: rgba(0, 0, 0, .55) !important;
}

html[data-theme="dark"] .mobile-drawer {
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 131, 230, .14), transparent 32%),
    #120c20 !important;
  border-left-color: rgba(222, 210, 255, .12);
  box-shadow: -28px 0 80px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .drawer-head,
html[data-theme="dark"] .drawer-links,
html[data-theme="dark"] .drawer-bottom {
  background: transparent !important;
  border-color: var(--line);
}

html[data-theme="dark"] .drawer-logo {
  color: var(--ink);
}

html[data-theme="dark"] .drawer-logo span {
  color: var(--p700);
}

html[data-theme="dark"] .drawer-close {
  background: rgba(255, 255, 255, .055);
  border-color: var(--line);
}

html[data-theme="dark"] .drawer-close:hover {
  background: rgba(199, 179, 255, .1);
}

html[data-theme="dark"] .drawer-close span {
  background: var(--p700);
}

html[data-theme="dark"] .drawer-links a {
  color: var(--ink2);
  border-color: rgba(222, 210, 255, .08);
}

html[data-theme="dark"] .drawer-links a:hover,
html[data-theme="dark"] .drawer-links a.active {
  background: rgba(199, 179, 255, .1);
  border-color: rgba(199, 179, 255, .2);
  color: var(--p700);
}

/* Mobile drawer theme button */
.drawer-theme-toggle {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--rpill);
  border: 1.5px solid var(--line);
  background: var(--p50);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.drawer-theme-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.drawer-theme-icon .theme-icon {
  width: 18px;
  height: 18px;
}

.drawer-theme-toggle:hover {
  background: var(--p100);
  border-color: var(--p400);
  color: var(--p700);
}

html[data-theme="dark"] .drawer-theme-toggle {
  background: rgba(255, 255, 255, .055);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .drawer-theme-toggle:hover {
  background: rgba(199, 179, 255, .1);
  border-color: rgba(199, 179, 255, .32);
  color: var(--p700);
}

/* ================================================= */
/* DARK MODE FOOTER */
/* ================================================= */

html[data-theme="dark"] footer {
  background: #0b0714;
}

html[data-theme="dark"] .f-top,
html[data-theme="dark"] .fbot {
  border-color: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .f-brand-name span {
  color: var(--p700);
}

/* ================================================= */
/* RESPONSIVE THEME BUTTON FIX */
/* ================================================= */

@media (max-width: 900px) {
  .nright .theme-toggle {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   SERVICES PAGE — FOOTER WIDTH FIX
   Makes services footer match the about page footer width
   ════════════════════════════════════════════════════════════════ */

footer .fw {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 52px !important;
  padding-right: 52px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1400px) {
  footer .fw {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (max-width: 1200px) {
  footer .fw {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

@media (max-width: 1024px) {
  footer .fw {
    width: 100% !important;
    max-width: 1280px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

@media (max-width: 880px) {
  footer .fw {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 768px) {
  footer .fw {
    width: 100% !important;
    max-width: 720px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 640px) {
  footer .fw {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  footer .fw {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ── GLOBAL X-OVERFLOW GUARD ──
   Prevents stray horizontal pan on mobile. 'clip' (unlike 'hidden')
   creates no scroll container, so position:sticky nav keeps working. */
html,body{overflow-x:clip}
