:root{
      --ink:#0B1220; --ink-soft:#3b4658; --muted:#5b6675;
      --line:#e7ebf3; --bg:#ffffff; --bg-soft:#f6f8fc; --bg-blue:#eff4ff;
      --blue:#1E3A8A; --blue-bright:#2563EB; --blue-deep:#12224d;
      --radius:16px; --maxw:1140px;
      --shadow:0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(18,34,77,.18);
    }
    *{box-sizing:border-box;margin:0;padding:0}
    html{scroll-behavior:smooth}
    body{
      font-family:Inter,'Segoe UI',system-ui,-apple-system,Arial,sans-serif;
      color:var(--ink); background:var(--bg); line-height:1.6;
      -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
    }
    h1,h2,h3{font-family:Poppins,Inter,sans-serif;line-height:1.15;letter-spacing:-.02em;color:var(--ink)}
    a{color:inherit;text-decoration:none}
    img{max-width:100%;display:block}
    .wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
    .eyebrow{font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-bright)}
    .btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.96rem;
      padding:.8rem 1.4rem;border-radius:999px;transition:.18s ease;border:1px solid transparent;cursor:pointer}
    .btn-primary{background:var(--blue-bright);color:#fff;box-shadow:0 8px 20px -8px rgba(37,99,235,.7)}
    .btn-primary:hover{background:#1d4fd8;transform:translateY(-1px)}
    .btn-ghost{border-color:rgba(255,255,255,.4);color:#fff}
    .btn-ghost:hover{background:rgba(255,255,255,.12)}
    :focus-visible{outline:3px solid rgba(37,99,235,.5);outline-offset:2px;border-radius:6px}

    /* Header */
    header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);
      backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
    .nav{display:flex;align-items:center;justify-content:space-between;height:70px}
    .nav img{height:34px;width:auto}
    .nav-links{display:flex;gap:2rem;font-size:.95rem;font-weight:500;color:var(--ink-soft)}
    .nav-links a:hover{color:var(--blue-bright)}
    .nav-cta{display:flex;align-items:center;gap:1rem}

    /* Hero */
    .hero{position:relative;color:#fff;overflow:hidden;
      background:linear-gradient(120deg,#0b1830 0%,#12316e 55%,#1d4ed8 130%)}
    .hero::before{content:"";position:absolute;inset:0;
      background:url('/assets/hero.png') center/cover no-repeat;opacity:.55;mix-blend-mode:screen}
    .hero::after{content:"";position:absolute;inset:0;
      background:radial-gradient(900px 500px at 75% 25%,rgba(37,99,235,.35),transparent 60%)}
    .hero-inner{position:relative;z-index:2;padding:5rem 0 5.5rem;max-width:760px}
    .hero h1{font-size:clamp(2.2rem,5vw,3.6rem);color:#fff;margin:1rem 0 1.2rem}
    .hero p{font-size:clamp(1.05rem,2vw,1.28rem);color:#dbe6ff;max-width:620px}
    .hero .eyebrow{color:#9cc0ff}
    .hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2.2rem}

    /* Section base */
    section{padding:4.25rem 0}
    .sec-head{max-width:680px;margin-bottom:2.2rem}
    .sec-head h2{font-size:clamp(1.7rem,3.4vw,2.5rem);margin:.7rem 0 1rem}
    .sec-head p{color:var(--muted);font-size:1.08rem}

    /* Cards grid */
    .grid{display:grid;gap:1.4rem}
    .grid-3{grid-template-columns:repeat(3,1fr)}
    .grid-4{grid-template-columns:repeat(5,1fr)}
    .card{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
      padding:2rem 1.7rem;transition:.2s ease}
    .card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d7deee;background:#fff}
    .ico{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;
      background:var(--bg-blue);color:var(--blue-bright);margin-bottom:1.2rem}
    .ico svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
    .card h3{font-size:1.18rem;margin-bottom:.5rem}
    .card p{color:var(--muted);font-size:.98rem}

    /* Built on */
    .stack{background:var(--bg-soft)}
    .logos{display:grid;grid-template-columns:repeat(6,1fr);gap:1.2rem;margin-top:2.5rem}
    .logo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
      background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.4rem .8rem;min-height:92px;transition:.2s ease}
    .logo:hover{border-color:#cdd7ec;box-shadow:var(--shadow);transform:translateY(-3px)}
    .logo img{height:30px;width:auto;filter:grayscale(1);opacity:.55;transition:.2s ease}
    .logo:hover img{filter:none;opacity:1}
    .logo span{font-size:.82rem;font-weight:600;color:var(--ink-soft);display:none}
    .logo--text span{display:block}
    .logo--text{color:var(--blue);font-family:Poppins,sans-serif}

    /* Contact band */
    .contact{background:linear-gradient(120deg,#12224d,#1d4ed8);color:#fff;text-align:center}
    .contact h2{color:#fff;font-size:clamp(1.8rem,3.6vw,2.6rem)}
    .contact p{color:#cfdcff;max-width:520px;margin:1rem auto 2rem;font-size:1.1rem}
    .mail-btn{font-size:1.05rem;background:#fff;color:var(--blue);padding:.95rem 1.8rem;border-radius:999px;
      font-weight:600;display:inline-flex;gap:.55rem;align-items:center;transition:.18s}
    .mail-btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px -12px rgba(0,0,0,.5)}

    /* Contact form */
    .cform-card{max-width:640px;margin:2.4rem auto 0;background:#fff;border-radius:18px;
      padding:2rem 1.8rem;box-shadow:0 24px 60px -24px rgba(0,0,0,.5);text-align:left}
    .cform-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.1rem}
    .field{display:flex;flex-direction:column}
    .field--full{grid-column:1 / -1}
    .field label{font-size:.82rem;font-weight:600;color:var(--ink-soft);margin-bottom:.4rem}
    .req{color:var(--blue-bright)}
    .field input,.field textarea{font:inherit;font-size:.95rem;color:var(--ink);background:var(--bg-soft);
      border:1px solid var(--line);border-radius:10px;padding:.7rem .85rem;width:100%;transition:.15s ease}
    .field input::placeholder,.field textarea::placeholder{color:#5b6675}
    .field input:focus,.field textarea:focus{outline:none;border-color:var(--blue-bright);
      background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
    .field textarea{resize:vertical;min-height:96px}
    .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
    .btn-submit{margin-top:1.3rem;width:100%;background:var(--blue-bright);color:#fff;font-weight:600;
      font-size:1rem;border:none;border-radius:999px;padding:.85rem 1.4rem;cursor:pointer;transition:.18s ease}
    .btn-submit:hover{background:#1d4fd8;transform:translateY(-1px)}
    .btn-submit:disabled{opacity:.6;cursor:default;transform:none}
    .cform-status{margin-top:.9rem;font-size:.92rem;text-align:center;min-height:1.2em}
    .cform-status.ok{color:#0f7a3d}
    .cform-status.err{color:#c0322b}
    .cform-status.sending{color:var(--muted)}
    .email-fallback{margin-top:1.6rem;font-size:.95rem;color:#cfdcff}
    .email-fallback strong{color:#fff;font-weight:600;letter-spacing:.02em}
    .foot-email{color:#cdd7ec}

    /* Footer */
    footer{background:#0b1220;color:#9aa6bd;padding:3.5rem 0}
    .foot{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
    .foot img{height:30px}
    .foot a{color:#cdd7ec}
    .foot a:hover{color:#fff}
    .foot small{display:block;margin-top:.4rem;color:#8893a8}

    /* Responsive */
    @media(max-width:900px){
      .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
      .logos{grid-template-columns:repeat(4,1fr)}
      .nav-links{display:none}
      section{padding:3.25rem 0}
      .hero-inner{padding:5rem 0}
    }
    @media(max-width:540px){
      .grid-3,.grid-4{grid-template-columns:1fr}
      .logos{grid-template-columns:repeat(3,1fr)}
      .hero-actions .btn{flex:1;justify-content:center}
      .cform-grid{grid-template-columns:1fr}
      .cform-card{padding:1.5rem 1.2rem}
    }
    @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---- v2 multi-page additions ---- */
.lead{font-size:1.15rem;color:var(--muted);max-width:660px}
.page-hero{background:linear-gradient(120deg,#0b1830,#12316e 70%,#1d4ed8 140%);color:#fff;padding:4rem 0 3.25rem}
.page-hero h1{color:#fff;font-size:clamp(2rem,4vw,3rem);margin:.6rem 0 1rem}
.page-hero .lead{color:#dbe6ff}
.page-hero .eyebrow{color:#9cc0ff}
.crumbs{font-size:.85rem;color:#9cc0ff;margin-bottom:1rem}
.crumbs a{color:#cfe0ff;text-decoration:underline}
.def{background:var(--bg-blue);border-left:4px solid var(--blue-bright);border-radius:0 14px 14px 0;padding:1.6rem 1.8rem;margin:0 auto;max-width:840px}
.def p{font-size:1.12rem;color:var(--ink);margin:0}
.def strong{color:var(--blue)}
.badge{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--blue-bright);color:#fff;font-family:Poppins,sans-serif;font-weight:700;margin-bottom:1rem}
.callout{background:#fff;border:1px dashed #c7d2ec;border-radius:14px;padding:1.4rem 1.6rem;color:var(--ink-soft);font-size:.95rem;max-width:820px;margin:1.5rem auto 0}
.prose{max-width:760px;margin:0 auto}
.prose h2{font-size:1.5rem;margin:2.2rem 0 .8rem}
.prose h3{font-size:1.18rem;margin:1.6rem 0 .5rem}
.prose p{margin:0 0 1rem;color:#2a3547}
.prose ul{margin:0 0 1rem 1.2rem}
.prose li{margin:.35rem 0;color:#2a3547}
.prose .meta{color:var(--muted);font-size:.9rem;margin-bottom:1.5rem}
.posts{display:grid;gap:1.2rem;max-width:840px;margin:0 auto}
.post{display:block;background:var(--bg-soft);border:1px solid var(--line);border-radius:16px;padding:1.6rem 1.7rem;transition:.2s ease}
.post:hover{transform:translateY(-3px);box-shadow:var(--shadow);background:#fff;border-color:#d7deee}
.post h3{font-size:1.2rem;margin:.25rem 0 .4rem;color:var(--ink)}
.post p{color:var(--muted);margin:0}
.post .tag{font-size:.78rem;color:var(--blue-bright);font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.center-cta{text-align:center;margin-top:2.6rem}
.nav-links a.active{color:var(--blue-bright)}

/* ---- v2.3: mobile hamburger menu ---- */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:40px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.nav-toggle span{display:block;height:2px;width:20px;margin:0 auto;background:var(--ink);border-radius:2px;transition:.25s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;flex-direction:column;background:rgba(255,255,255,.98);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line);padding:.4rem 24px 1.1rem}
.mobile-menu a{padding:.85rem .15rem;font-size:1rem;font-weight:500;color:var(--ink-soft);border-bottom:1px solid var(--bg-soft)}
.mobile-menu a:last-child{color:var(--blue-bright);font-weight:600;border-bottom:none}
.mobile-menu.open{display:flex}
@media(max-width:900px){ .nav-cta-btn{display:none} .nav-toggle{display:flex} }
@media(min-width:901px){ .mobile-menu{display:none!important} }

/* ---- v2.4: skip link + accessibility widget ---- */
.skip-link{position:absolute;left:50%;top:8px;transform:translate(-50%,-160%);z-index:200;background:var(--blue-bright);color:#fff;padding:.6rem 1.1rem;border-radius:8px;font-weight:600;transition:transform .15s ease}
.skip-link:focus{transform:translate(-50%,0);outline:3px solid #fff;outline-offset:2px}
.a11y-fab{position:fixed;bottom:20px;inset-inline-end:20px;z-index:120;width:52px;height:52px;border-radius:50%;border:none;background:var(--blue);color:#fff;cursor:pointer;box-shadow:0 10px 24px -8px rgba(0,0,0,.45);display:grid;place-items:center}
.a11y-fab:hover{background:var(--blue-bright)}
.a11y-fab svg{width:26px;height:26px;fill:#fff}
.a11y-panel{position:fixed;bottom:84px;inset-inline-end:20px;z-index:120;width:236px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px -16px rgba(0,0,0,.4);padding:.8rem;display:flex;flex-direction:column;gap:.4rem}
.a11y-panel[hidden]{display:none}
.a11y-title{font-family:Poppins,sans-serif;font-weight:600;font-size:.95rem;color:var(--ink);margin:.1rem .2rem .4rem}
.a11y-panel button{text-align:start;font:inherit;font-size:.9rem;padding:.55rem .7rem;border:1px solid var(--line);border-radius:9px;background:var(--bg-soft);color:var(--ink-soft);cursor:pointer;transition:.15s ease}
.a11y-panel button:hover{border-color:var(--blue-bright)}
.a11y-panel button[aria-pressed="true"]{background:var(--blue-bright);color:#fff;border-color:var(--blue-bright)}
.a11y-reset{margin-top:.3rem;color:var(--blue) !important;font-weight:600}
/* effect classes toggled on <html> */
html.a11y-contrast{--muted:#3a4453;--ink-soft:#1b2430}
html.a11y-contrast .card,html.a11y-contrast .logo,html.a11y-contrast .field input,html.a11y-contrast .field textarea{border-color:#8893a8}
html.a11y-text-120{font-size:120%}
html.a11y-text-140{font-size:140%}
html.a11y-lines body{line-height:2}
html.a11y-links a:not(.btn):not(.a11y-fab):not(.skip-link){text-decoration:underline}
html.a11y-reduce-motion *,html.a11y-reduce-motion *::before,html.a11y-reduce-motion *::after{transition:none !important;animation:none !important;scroll-behavior:auto !important}
@media print{ html[class*="a11y-"]{font-size:100% !important} .a11y-fab,.a11y-panel,.skip-link{display:none !important} }
