:root{
  --navy-950:#081A30;
  --navy-900:#0B2545;
  --navy-800:#123362;
  --royal-600:#1B4F91;
  --royal-500:#2C67B3;
  --emerald-600:#0E7C61;
  --emerald-500:#149A79;
  --copper-600:#B5581D;
  --copper-500:#C97027;
  --silver-300:#C9D3DC;
  --silver-200:#DCE3EA;
  --silver-100:#EEF2F6;
  --ink-900:#0E1B2B;
  --ink-700:#33495F;
  --ink-500:#5B7186;
  --paper-0:#FFFFFF;
  --paper-50:#F7F9FB;
  --line:#E1E7ED;
  --shadow-sm: 0 2px 10px rgba(11,37,69,0.06);
  --shadow-md: 0 12px 32px rgba(11,37,69,0.10);
  --shadow-lg: 0 24px 64px rgba(11,37,69,0.16);
  --radius:16px;
  --font-display:'Manrope', sans-serif;
  --font-body:'Inter', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--paper-0);
  line-height:1.6;
  overflow-x:hidden;
}
img,svg{display:block; max-width:100%;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
.container{max-width:1240px; margin:0 auto; padding:0 32px;}
h1,h2,h3,h4{font-family:var(--font-display); font-weight:800; color:var(--navy-900); letter-spacing:-0.01em;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-weight:700; font-size:12.5px;
  letter-spacing:0.14em; text-transform:uppercase;
  color:var(--copper-600);
  margin-bottom:14px;
}
.eyebrow::before{content:''; width:22px; height:2px; background:var(--copper-500); display:inline-block;}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(28px,3.4vw,40px); line-height:1.15; margin-bottom:16px;}
.section-head p{color:var(--ink-500); font-size:16.5px;}
section{position:relative; padding:100px 0;}
.bg-paper{background:var(--paper-50);}
.bg-navy{background:linear-gradient(160deg,var(--navy-950), var(--navy-900) 60%, var(--navy-800));}
.bg-navy h2, .bg-navy .section-head p{color:var(--paper-0);}
.bg-navy .eyebrow{color:var(--copper-500);}

/* ===== molecular bond motif (signature element) ===== */
.bond-divider{position:relative; height:56px; overflow:hidden;}
.bond-divider svg{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:1400px; max-width:none; opacity:0.5;}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px; border-radius:100px; font-weight:700; font-size:14.5px;
  font-family:var(--font-display); letter-spacing:0.01em;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--copper-500),var(--copper-600));
  color:#fff; box-shadow:0 10px 24px rgba(181,88,29,0.30);
}
.btn-primary:hover{transform:translateY(-3px); box-shadow:0 16px 32px rgba(181,88,29,0.40);}
.btn-ghost{
  background:rgba(255,255,255,0.06); color:#fff; border:1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover{background:rgba(255,255,255,0.14); transform:translateY(-3px);}
.btn-outline-navy{
  border:1.5px solid var(--navy-900); color:var(--navy-900);
}
.btn-outline-navy:hover{background:var(--navy-900); color:#fff; transform:translateY(-3px);}
.btn-sm{padding:10px 20px; font-size:13px;}

/* ===== Nav ===== */
header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,0.85); backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:all .3s ease;
}
header.scrolled{border-bottom-color:var(--line); box-shadow:0 4px 20px rgba(11,37,69,0.06);}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1240px; margin:0 auto;}
.logo{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:21px; color:var(--navy-900);}
.logo-img{
  display:block; height:50px; width:auto; max-width:150px;
  object-fit:contain; object-position:left center;
}
.logo-footer{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; padding:8px 12px; max-width:max-content;
}
.logo-footer .logo-img{ height:100px; max-width:300px; }
@media(max-width:760px){
  .logo-img{ height:40px; max-width:132px; }
}
.nav-links{display:flex; align-items:center; gap:8px;}
.nav-links > li{position:relative;}
.nav-links > li > a{
  display:flex; align-items:center; gap:5px;
  padding:10px 16px; border-radius:8px; font-weight:600; font-size:14.5px; color:var(--ink-700);
  transition:color .2s, background .2s;
}
.nav-links > li > a:hover{color:var(--navy-900); background:var(--silver-100);}
.nav-links > li > a svg{width:12px; height:12px; transition:transform .2s;}
.nav-links > li:hover > a svg{transform:rotate(180deg);}
.nav-actions{display:flex; align-items:center; gap:14px;}
.icon-btn{width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--ink-700); transition:background .2s;}
.icon-btn:hover{background:var(--silver-100);}
.icon-btn svg{width:18px; height:18px;}
.burger{display:none; width:38px; height:38px; align-items:center; justify-content:center;}
.burger svg{width:32px; height:32px;}

/* mega menu */
.mega{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(8px);
  width:760px; background:#fff; border-radius:14px; box-shadow:var(--shadow-lg); border:1px solid var(--line);
  padding:28px; opacity:0; visibility:hidden; transition:all .22s ease;
  display:grid; grid-template-columns:1.1fr 1.1fr 1fr; gap:6px 28px;
}
.nav-links > li:hover .mega{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);}
.mega-col h5{font-family:var(--font-display); font-size:11.5px; text-transform:uppercase; letter-spacing:0.1em; color:var(--copper-600); margin-bottom:12px; font-weight:800;}
.mega-col a{display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:8px; font-size:14px; color:var(--ink-700); font-weight:500; transition:background .15s,color .15s;}
.mega-col a:hover{background:var(--silver-100); color:var(--navy-900);}
.mega-col a .dot{width:5px; height:5px; border-radius:50%; background:var(--royal-500); flex-shrink:0;}
.mega-col a.mega-child{padding-left:18px; font-size:13.5px; color:var(--ink-500);}
.mega-col a.mega-child .dot{background:var(--copper-500);}
.drawer-group{border-bottom:1px solid var(--line);}
.drawer-group-toggle, .drawer-subgroup-toggle{
  width:100%; text-align:left; background:transparent; border:none; padding:14px 6px;
  font-weight:600; color:var(--navy-900); font-size:15px; cursor:pointer; font-family:inherit;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.drawer-group-toggle svg, .drawer-subgroup-toggle svg{width:12px; height:12px; transition:transform .2s; flex-shrink:0;}
.drawer-group.open > .drawer-group-toggle svg,
.drawer-subgroup.open > .drawer-subgroup-toggle svg{transform:rotate(180deg);}
.drawer-subgroup-toggle{font-size:14px; padding:10px 6px; color:var(--ink-700);}
.drawer-group-children{padding:0 0 10px 8px;}
.drawer-subgroup-children{padding:0 0 6px 14px; margin-left:6px; border-left:2px solid var(--line);}
.drawer-group-children[hidden], .drawer-subgroup-children[hidden]{display:none !important;}
.drawer-group-children a{border-bottom:none; padding:10px 6px; font-size:14px; color:var(--ink-700);}
.drawer-subgroup{margin:4px 0;}
.mega-cta{grid-column:3; background:linear-gradient(150deg,var(--navy-900),var(--navy-800)); border-radius:12px; padding:20px; color:#fff; display:flex; flex-direction:column; justify-content:space-between;}
.mega-cta p{font-size:13px; color:var(--silver-300); margin-bottom:14px; line-height:1.5;}
.mega-cta a{color:var(--copper-500); font-weight:700; font-size:13.5px; display:inline-flex; align-items:center; gap:6px;}

/* ===== reveal on scroll ===== */
.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
.stagger > *{transition-delay:calc(var(--i) * 90ms);}

/* ===== Footer ===== */
footer{background:var(--navy-950); color:var(--silver-300); padding:72px 0 0;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:50px; padding-bottom:52px; border-bottom:1px solid rgba(255,255,255,0.08);}
.foot-brand .logo{color:#fff;}
.foot-brand .logo img{height:40px;}
.logo-on-dark img{filter:brightness(0) invert(1);}
.foot-brand p{font-size:13.5px; color:var(--silver-300); margin:16px 0 0; max-width:280px; line-height:1.7;}
.foot-col h5{color:#fff; font-family:var(--font-display); font-size:14px; margin-bottom:20px; letter-spacing:.02em;}
.foot-col a{display:block; font-size:13.5px; color:var(--silver-300); margin-bottom:12px; transition:color .2s;}
.foot-col a:hover{color:var(--copper-500);}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:12.5px; color:#7C8DA1; flex-wrap:wrap; gap:12px;}
.foot-bottom a{color:#7C8DA1;}
.foot-bottom a:hover{color:#fff;}

/* ===== animated counter helper ===== */
[data-count]{font-variant-numeric:tabular-nums;}

/* mobile drawer — opens from left (burger is left-aligned) */
.drawer{position:fixed; inset:0; z-index:1200; visibility:hidden;}
.drawer.open{visibility:visible;}
.drawer-overlay{position:absolute; inset:0; background:rgba(8,26,48,0.5); opacity:0; transition:opacity .3s;}
.drawer.open .drawer-overlay{opacity:1;}
.drawer-panel{position:absolute; top:0; left:0; bottom:0; width:82%; max-width:340px; background:#fff; padding:26px; transform:translateX(-100%); transition:transform .35s ease; overflow-y:auto;}
.drawer.open .drawer-panel{transform:translateX(0);}
.drawer-panel a{display:block; padding:14px 6px; font-weight:600; color:var(--navy-900); border-bottom:1px solid var(--line); font-size:15px;}
.drawer-close{width:36px; height:36px; display:flex; align-items:center; justify-content:center;}
.drawer-top{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--line);}
.drawer-top .logo img{height:36px;}

/* ===== Shared responsive (layout chrome) ===== */
@media(max-width:1080px){
  .foot-grid{grid-template-columns:1fr 1fr; row-gap:36px;}
}
@media(max-width:960px){
  .nav-links{display:none;}
  .nav-actions .btn{display:none;} /* hide Get a Quote — was causing mobile header overflow */
  .burger{display:inline-flex;}
  .nav-wrap{
    padding:12px 16px;
    gap:12px;
    justify-content:space-between;
  }
  /* Bitsware-style: menu left, brand right */
  .nav-actions{order:-1; margin:0;}
  .logo{
    order:2;
    margin-left:auto;
    font-size:17px;
    gap:8px;
    max-width:calc(100% - 52px);
    white-space:nowrap;
  }
  .logo img{height:34px; max-width:170px;}
  .logo .mark{width:34px; height:34px; flex-shrink:0;}
  .logo .mark svg{width:18px; height:18px;}
}
@media(max-width:760px){
  .container{padding:0 20px;}
  section{padding:70px 0;}
  .foot-grid{grid-template-columns:1fr;}
  .logo{font-size:15.5px;}
}
