:root {
  --brand:#0a3d91;
  --brand2:#1fbfc8;
  --text:#0b203a;
  --card:#f4f8ff;
  --shadow:0 10px 30px rgba(16,42,86,.15);
  --radius:12px;
  --maxw:1100px;
  font-family:Inter,system-ui,sans-serif;
}

/* RESET */
*{box-sizing:border-box;margin:0;padding:0}
body{color:var(--text);background:#fff;scroll-behavior:smooth}

/* Scroll progress bar */
#scroll-progress{
  position:fixed;top:0;left:0;height:3px;background:var(--brand2);width:0;z-index:999;
}

/* Top accent with moving line */
.top-strip{height:6px;background:linear-gradient(90deg,#0a3d91,#1fbfc8);}
.top-strip::after{
  content:"";display:block;height:3px;
  background:linear-gradient(90deg,transparent,#1fbfc8,transparent);
  background-size:200% 100%;animation:moveLine 2.5s linear infinite;
}
@keyframes moveLine{
  from{background-position:0 0;}
  to{background-position:200% 0;}
}

/* Navbar */
.nav{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:.4rem 1rem;
  background:rgba(255,255,255,.9);backdrop-filter:blur(10px);
  border-bottom:1px solid #e7eef8;box-shadow:0 3px 12px rgba(0,0,0,.05);
  transition:all .3s ease;
}
.nav.scrolled{background:rgba(255,255,255,.96);padding:.25rem 1rem;}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--brand);font-weight:700;}
.logo{height:75px;width:auto;display:block;flex:0 0 auto;max-height:75px;}
.nav.scrolled .logo{height:64px;}
.menu{display:flex;gap:1.25rem;align-items:center;}
.menu a{text-decoration:none;color:var(--brand);font-weight:500;transition:color .2s;}
.menu a:hover{color:var(--brand2);}
.menu-btn{display:none;flex-direction:column;justify-content:space-between;width:24px;height:18px;background:none;border:none;padding:0;cursor:pointer;}
.bar{width:100%;height:3px;background:var(--brand);border-radius:2px;transition:all .3s;}

@media(max-width:768px){
  .logo{height:38px;}
  .nav.scrolled .logo{height:64px;}
  .menu{position:absolute;top:100%;right:0;display:none;flex-direction:column;background:#fff;width:220px;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.1);padding:.5rem 0;}
  .menu.open{display:flex;}
  .menu a{width:100%;padding:.75rem 1rem;border-bottom:1px solid #eee;}
  .menu a:last-child{border-bottom:none;}
  .menu-btn{display:flex;}
}

/* HERO */
@keyframes gradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.hero{
  position:relative;overflow:hidden;color:#fff;text-align:center;
  height:clamp(120px,42vh,320px);
  background:linear-gradient(140deg,#0a3d91,#1fbfc8,#0a74d1);
  background-size:300% 300%;animation:gradientShift 15s ease infinite;
}
.hero-bg{position:absolute;inset:0;z-index:1;pointer-events:none;}
.bubbles{position:absolute;inset:0;overflow:hidden;z-index:0;}
.bubbles span{
  position:absolute;bottom:-40px;width:20px;height:20px;background:rgba(255,255,255,.2);border-radius:50%;animation:floatUp 12s linear infinite;
}
.bubbles span:nth-child(2){left:40%;width:10px;height:10px;animation-delay:4s;}
.bubbles span:nth-child(3){left:70%;width:25px;height:25px;animation-delay:7s;}
.bubbles span:nth-child(4){left:85%;width:14px;height:14px;animation-delay:2s;}
.bubbles span:nth-child(5){left:20%;width:18px;height:18px;animation-delay:5s;}
@keyframes floatUp{
  0%{transform:translateY(0) scale(1);opacity:.7;}
  100%{transform:translateY(-100vh) scale(1.4);opacity:0;}
}

/* Glass box (perfectly centered) */
.hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 700px;
  color: #fff;
}
.glass{
  background:rgba(255,255,255,.25);backdrop-filter:blur(12px);
  border-radius:12px;padding:1.5rem 2rem;box-shadow:0 0 15px rgba(255,255,255,.1);
}
.hero h1{margin-bottom:.75rem;font-size:clamp(28px,4vw,40px);font-weight:700;}
.hero p{font-size:clamp(14px,1.4vw,18px);margin-bottom:1.25rem;line-height:1.5;}

/* Buttons */
.btn{display:inline-block;padding:.75rem 1.5rem;border-radius:6px;font-weight:600;text-decoration:none;transition:all .25s;}
.btn.primary{background:#fff;color:var(--brand);}
.btn.primary:hover{background:#e6f2ff;box-shadow:0 4px 15px rgba(31,191,200,.4);transform:translateY(-1px);}
.btn.ghost{border:2px solid #fff;color:#fff;margin-left:.5rem;}
.btn.ghost:hover{background:#fff;color:var(--brand);transform:translateY(-1px);}

/* Divider wave (no gap) */
.divider{
  display:block;width:100%;height:26px;margin:-12px 0 0;line-height:0;
}
.divider path{transform:translateY(1px);} /* crisp edge */

/* Features */
.features{
  margin-top:0;
  padding:2.25rem 1rem;background:#fff;
  display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}
.feature{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:transform .2s ease,box-shadow .3s;}
.feature:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(31,191,200,.35);}
.feature img{width:100%;height:160px;object-fit:cover;}
.feature h3{color:var(--brand);margin:1rem;}
.feature p{margin:0 1rem 1.25rem;}

/* CTA */
.cta-bar{background:linear-gradient(90deg,#0a3d91 0%,#1fbfc8 100%);color:#fff;text-align:center;padding:2rem 1rem;}
.cta-btn{
  display:inline-block;background:#fff;color:var(--brand);
  padding:.75rem 1.5rem;border-radius:6px;font-weight:600;text-decoration:none;
  animation:pulse 2.5s infinite;
}
.cta-btn:hover{background:#e6f2ff;box-shadow:0 4px 12px rgba(0,0,0,.15);}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(31,191,200,.5);}
  50%{box-shadow:0 0 15px 6px rgba(31,191,200,0);}
}

/* Footer */
.site-footer{
  background:#0a3d91;
  color:#fff;
  text-align:center;
  padding:1.35rem 1rem;
  font-size:.9rem;
}
.site-footer p{
  margin:.22rem auto;
  max-width:920px;
  line-height:1.45;
}
.site-footer p:first-child{
  font-weight:700;
}
.site-footer p:last-child{
  color:rgba(255,255,255,.72);
  font-size:.78rem;
}

/* Fade-ins */
.fade-in{opacity:0;transform:translateY(30px);transition:opacity .8s ease,transform .8s ease;}
.fade-in.visible{opacity:1;transform:translateY(0);}
/* Layout helpers */
.page{
  max-width:var(--maxw);
  margin:0 auto;
  padding:2.5rem 1rem;
}
.page h1{color:var(--brand);margin-bottom:1rem;}
.page p{line-height:1.6;margin-bottom:1rem;}
.lede{max-width:70ch;}

/* Home-only hides */
.is-hidden{display:none !important;}

/* Buttons */
.btn.secondary{
  background:var(--brand);
  color:#fff;
}
.btn.secondary:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

/* About page */

/* About page (crisp + matches home page style) */
.hero.hero--about{height:clamp(160px,34vh,260px);}
.hero.hero--about .hero-inner{max-width:820px;}
.hero.hero--about p{max-width:78ch;margin-left:auto;margin-right:auto;}

.about-wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:2.25rem 1rem 3.5rem;
  display:grid;
  gap:2rem;
}

.about-cards{
  display:grid;
  gap:1.5rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.about-card2{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.35rem 1.35rem 1.4rem;
  position:relative;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .3s ease;
}
.about-card2::before{
  content:"";
  position:absolute;
  left:0;top:0;right:0;
  height:4px;
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  opacity:.9;
}
.about-card2:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(31,191,200,.35);}
.about-icon{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  border:1px solid #d6e6ff;
  box-shadow:0 8px 20px rgba(16,42,86,.10);
  margin-bottom:.75rem;
  font-weight:800;
}
.about-card2 h3{color:var(--brand);margin:.25rem 0 .5rem;}
.about-card2 p{line-height:1.65;}

.about-panel{
  background:#fff;
  border:1px solid #e7eef8;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(16,42,86,.10);
  padding:1.5rem 1.5rem 1.65rem;
}
.about-panel h2{color:var(--brand);margin:0 0 .9rem;font-size:1.35rem;}

.checklist{list-style:none;padding:0;margin:0;display:grid;gap:.65rem;max-width:72ch;}
.checklist li{position:relative;padding-left:1.7rem;line-height:1.65;}
.checklist li::before{
  content:"✓";
  position:absolute;left:0;top:0;
  color:var(--brand2);
  font-weight:800;
}

/* Privacy page */
.hero.hero--privacy .hero-inner{max-width:760px;}
.hero.hero--privacy p{margin-bottom:0;}
.privacy-wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:2.25rem 1rem 3.5rem;
}
.privacy-panel{
  background:#eaf2fb;
  border:1px solid #e7eef8;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(16,42,86,.10);
  padding:clamp(1.25rem,3vw,2rem);
}
.privacy-panel h2{
  color:var(--brand);
  font-size:1.15rem;
  margin:1.65rem 0 .55rem;
}
.privacy-panel h2:first-of-type{margin-top:1.25rem;}
.privacy-panel p{
  line-height:1.7;
  margin:0 0 1rem;
}
.privacy-panel ul{
  margin:.25rem 0 1rem 1.2rem;
  display:grid;
  gap:.5rem;
}
.privacy-panel li{line-height:1.65;padding-left:.2rem;}
.privacy-panel a{color:var(--brand);font-weight:700;}
.privacy-panel a:hover{color:var(--brand2);}

/* Logo sizing (v6) */
.logo{height:75px;max-height:75px;width:auto;display:block;flex:0 0 auto;}
.nav.scrolled .logo{height:64px;max-height:75px;}
.brand span{font-size:1.4rem;line-height:1;}
@media(max-width:768px){
  .logo{height:62px;max-height:75px;}
  .nav.scrolled .logo{height:52px;}
  .brand span{font-size:1.15rem;}
}
@media (max-width:520px){
  .logo{height:58px;max-height:75px;}
  .nav.scrolled .logo{height:50px;}
  .brand span{font-size:1.05rem;}
}

/* App-shell inspired public header */
.top-strip{
  height:4px;
  background:#0a3d91;
}
.top-strip::after{display:none;}
.nav{
  display:grid;
  grid-template-columns:1fr;
  grid-template-areas:
    "brand"
    "menu";
  align-items:center;
  padding:0;
  background:#eaf2fb;
  border-bottom:1px solid #d7e3f2;
  box-shadow:none;
  backdrop-filter:none;
}
.nav.scrolled{
  background:#fff;
  padding:0;
}
.brand{
  grid-area:brand;
  width:100%;
  max-width:1180px;
  min-height:116px;
  gap:8px;
  margin:0 auto;
  padding:10px 24px 14px 18px;
}
.brand .logo,
.nav.scrolled .logo{
  height:69px;
  max-height:69px;
  filter:drop-shadow(0 5px 9px rgba(15,31,51,.13));
}
.brand .logo-full,
.nav.scrolled .brand .logo-full{
  height:110px;
  max-height:110px;
  width:auto;
  max-width:min(640px, calc(100vw - 48px));
  filter:none;
}
.brand-copy{
  display:grid;
  gap:5px;
  line-height:1.08;
  padding:4px 0 14px 4px;
}
.brand .brand-name{
  color:#0a3d91;
  font-size:1.5rem;
  font-weight:800;
}
.brand .brand-tagline{
  color:#64748b;
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.02em;
  margin:2px 0 7px 5px;
  text-transform:uppercase;
}
.brand span.brand-copy{font-size:inherit;line-height:1.15;}
.menu{
  grid-area:menu;
  width:100%;
  min-height:58px;
  padding:0 max(24px, calc((100vw - 1180px) / 2 + 24px));
  gap:0;
  background:#fff;
  border-top:1px solid #d7e3f2;
  border-bottom:1px solid #d7e3f2;
}
.menu a{
  align-self:stretch;
  display:flex;
  align-items:center;
  padding:0 18px;
  color:#64748b;
  border-bottom:2px solid transparent;
  font-size:.92rem;
  font-weight:750;
}
.menu a:hover{
  color:#0a3d91;
  background:#f8fbff;
}
.menu a[aria-current="page"]{
  color:#0f1f33;
  border-bottom-color:#0f1f33;
}

@media(max-width:768px){
  .nav{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "brand button"
      "menu menu";
  }
  .brand{
    min-height:88px;
    gap:12px;
    padding:8px 16px;
  }
  .brand .logo,
  .nav.scrolled .logo{
    height:58px;
    max-height:58px;
  }
  .brand .logo-full,
  .nav.scrolled .brand .logo-full{
    height:76px;
    max-height:76px;
    max-width:calc(100vw - 96px);
  }
  .brand .brand-name{font-size:1.02rem;}
  .brand .brand-tagline{font-size:.52rem;margin-left:6px;}
  .menu-btn{
    grid-area:button;
    display:flex;
    margin-right:16px;
  }
  .menu{
    position:absolute;
    top:100%;
    right:0;
    width:240px;
    min-height:auto;
    padding:.5rem 0;
    border:1px solid #d7e3f2;
    border-radius:0 0 8px 8px;
    box-shadow:0 10px 24px rgba(15,31,51,.12);
  }
  .menu a{
    padding:.75rem 1rem;
    border-bottom:1px solid #edf2f7;
  }
  .menu a[aria-current="page"]{border-bottom-color:#edf2f7;}
}

@media(max-width:768px){
  .nav.scrolled .brand .logo{
    height:58px;
    max-height:58px;
  }
}

@media(max-width:520px){
  .nav.scrolled .brand .logo{
    height:58px;
    max-height:58px;
  }
}

/* Compact subpage title bands */
.hero.hero--about,
.hero.hero--privacy{
  height:auto;
  min-height:0;
  padding:2rem 1rem 1.75rem;
  color:var(--text);
  text-align:left;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
  background-size:auto;
  animation:none;
  border-bottom:1px solid #e7eef8;
}
.hero.hero--about .bubbles,
.hero.hero--about .hero-bg,
.hero.hero--privacy .bubbles,
.hero.hero--privacy .hero-bg{
  display:none;
}
.hero.hero--about .hero-inner,
.hero.hero--privacy .hero-inner{
  position:static;
  transform:none;
  max-width:var(--maxw);
  margin:0 auto;
  color:var(--text);
}
.hero.hero--about .glass,
.hero.hero--privacy .glass{
  background:transparent;
  border-radius:0;
  padding:0;
  box-shadow:none;
  backdrop-filter:none;
}
.hero.hero--about h1,
.hero.hero--privacy h1{
  color:var(--brand);
  font-size:clamp(28px,3vw,38px);
  margin-bottom:.45rem;
}
.hero.hero--about p,
.hero.hero--privacy p{
  color:#64748b;
  font-size:1rem;
  line-height:1.6;
  max-width:78ch;
  margin:0;
}
