  :root{
    --navy-900:#071B4F;
    --navy-800:#0C2C7A;
    --blue-500:#0066D4;
    --orange-600:#F4640A;
    --orange-400:#FF9243;
    --paper:#F6F8FC;
    --paper-dim:#EEF2FA;
    --ink:#0B1120;
    --slate:#54607A;
    --slate-light:#8792A8;
    --line:#E2E8F4;
    --white:#FFFFFF;
    --shadow-sm: 0 1px 2px rgba(7,27,79,0.06);
    --shadow-md: 0 12px 28px -12px rgba(7,27,79,0.22);
    --shadow-lg: 0 24px 60px -20px rgba(7,27,79,0.30);
    --radius: 16px;
    --container: 1180px;
    --ff-display:'Space Grotesk', sans-serif;
    --ff-body:'Inter', sans-serif;
    --ff-mono:'IBM Plex Mono', monospace;
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    font-family:var(--ff-body);
    color:var(--ink);
    background:var(--paper);
    -webkit-font-smoothing:antialiased;
    line-height:1.6;
  }
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; margin:0; padding:0; }
  h1,h2,h3,h4{ font-family:var(--ff-display); margin:0; line-height:1.12; letter-spacing:-0.01em; color:var(--navy-900); }
  p{ margin:0; }
  button{ font-family:inherit; cursor:pointer; }

  :focus-visible{
    outline:3px solid var(--blue-500);
    outline-offset:3px;
    border-radius:4px;
  }

  .container{
    width:100%;
    max-width:var(--container);
    margin:0 auto;
    padding:0 28px;
  }

  .eyebrow{
    font-family:var(--ff-mono);
    font-size:12.5px;
    font-weight:600;
    letter-spacing:0.22em;
    text-transform:uppercase;
    color:var(--orange-600);
    display:inline-flex;
    align-items:center;
    gap:10px;
  }
  .eyebrow::before{
    content:"";
    width:20px;
    height:2px;
    background:linear-gradient(90deg,var(--blue-500),var(--orange-600));
    display:inline-block;
  }
  .eyebrow.on-dark{ color:var(--orange-400); }

  section{ padding:108px 0; }
  .section-head{ max-width:640px; margin-bottom:56px; }
  .section-head h2{ font-size:clamp(28px,3.6vw,42px); margin-top:14px; }
  .section-head p{ color:var(--slate); font-size:16.5px; margin-top:16px; }
  .section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
  .section-head.center .eyebrow{ margin:0 auto; }

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:14px 26px;
    border-radius:10px;
    font-family:var(--ff-body);
    font-weight:600;
    font-size:15px;
    border:1.5px solid transparent;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space:nowrap;
  }
  .btn-primary{
    background:linear-gradient(135deg,var(--orange-600),var(--orange-400));
    color:var(--white);
    box-shadow:var(--shadow-md);
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -10px rgba(244,100,10,0.45); }
  .btn-ghost{
    background:transparent;
    color:var(--navy-900);
    border-color:var(--line);
  }
  .btn-ghost:hover{ border-color:var(--navy-800); background:var(--white); }
  .btn-ghost.on-dark{ color:var(--white); border-color:rgba(255,255,255,0.25); }
  .btn-ghost.on-dark:hover{ border-color:rgba(255,255,255,0.6); background:rgba(255,255,255,0.06); }
  .btn-block{ width:100%; }

  /* ---------- Header ---------- */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(246,248,252,0.86);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav-row{ display:flex; align-items:center; justify-content:space-between; height:78px; }
  .brand{ display:flex; align-items:center; gap:2px; }
  .brand img{ height:42px; width:auto; }
  .nav-links{ display:flex; align-items:center; gap:38px; }
  .nav-links a{
    font-size:14.5px; font-weight:600; color:var(--navy-900);
    position:relative; padding:6px 0;
  }
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:0; width:0; height:2px;
    background:linear-gradient(90deg,var(--blue-500),var(--orange-600));
    transition:width .2s ease;
  }
  .nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
  .nav-cta{ display:flex; align-items:center; gap:14px; }
  .nav-phone{ font-family:var(--ff-mono); font-size:13px; color:var(--slate); display:flex; align-items:center; gap:8px; }
  .nav-phone svg{ width:15px; height:15px; stroke:var(--orange-600); }
  .burger{
    display:none; width:42px; height:42px; border-radius:9px; border:1.5px solid var(--line);
    background:var(--white); align-items:center; justify-content:center; flex-direction:column; gap:4px;
  }
  .burger span{ width:18px; height:2px; background:var(--navy-900); display:block; transition:.2s; }
  .mobile-menu{
    display:none; flex-direction:column; gap:2px; padding:10px 0 22px;
    border-top:1px solid var(--line);
  }
  .mobile-menu a{
    padding:13px 4px; font-weight:600; color:var(--navy-900); border-bottom:1px solid var(--line);
  }
  .mobile-menu.open{ display:flex; }

  @media (max-width: 900px){
    .nav-links{ display:none; }
    .nav-phone{ display:none; }
    .burger{ display:flex; }
  }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    overflow:hidden;
    padding:96px 0 100px;
    background:
      radial-gradient(circle at 8px 8px, rgba(12,44,122,0.08) 1.4px, transparent 1.4px);
    background-size:28px 28px;
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(180deg, var(--paper) 0%, rgba(246,248,252,0.2) 40%, var(--paper) 100%);
    pointer-events:none;
  }
  .hero-grid{
    position:relative; z-index:1;
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;
  }
  .hero-copy .eyebrow{ margin-bottom:22px; }
  .hero-copy h1{ font-size:clamp(34px,4.6vw,58px); }
  .hero-copy .accent{
    background:linear-gradient(100deg,var(--navy-800),var(--blue-500) 55%, var(--orange-600));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero-copy p.lede{
    margin-top:22px; font-size:17.5px; color:var(--slate); max-width:520px;
  }
  .hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
  .hero-stats{
    display:flex; gap:34px; margin-top:56px; padding-top:30px; border-top:1px solid var(--line);
    flex-wrap:wrap;
  }
  .hero-stats .stat b{
    display:block; font-family:var(--ff-display); font-size:24px; color:var(--navy-900);
  }
  .hero-stats .stat span{
    font-family:var(--ff-mono); font-size:11.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--slate-light);
  }

  .hero-art{ position:relative; height:440px; }
  .hero-art svg{ width:100%; height:100%; }
  .pulse-dot{ filter:drop-shadow(0 0 6px rgba(244,100,10,0.6)); }

  @media (max-width: 980px){
    .hero-grid{ grid-template-columns:1fr; }
    .hero-art{ height:320px; order:-1; }
  }

  /* ---------- Services ---------- */
  .services{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .service-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  }
  .service-card{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:30px 26px 28px;
    position:relative;
    overflow:hidden;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .service-card::before{
    content:""; position:absolute; left:0; top:0; height:3px; width:0;
    background:linear-gradient(90deg,var(--blue-500),var(--orange-600));
    transition:width .28s ease;
  }
  .service-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:transparent; }
  .service-card:hover::before{ width:100%; }
  .card-top{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:20px; }
  .card-icon{
    width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  }
  .card-icon svg{ width:24px; height:24px; }
  .card-icon.blue{ background:rgba(0,102,212,0.1); }
  .card-icon.blue svg{ stroke:var(--blue-500); }
  .card-icon.orange{ background:rgba(244,100,10,0.1); }
  .card-icon.orange svg{ stroke:var(--orange-600); }
  .card-code{
    font-family:var(--ff-mono); font-size:11px; letter-spacing:0.16em; color:var(--slate-light);
    border:1px solid var(--line); border-radius:20px; padding:4px 10px; height:fit-content;
  }
  .service-card h3{ font-size:19.5px; margin-bottom:10px; }
  .service-card p{ color:var(--slate); font-size:14.8px; }
  .card-list{ margin-top:18px; display:flex; flex-direction:column; gap:8px; }
  .card-list li{
    font-size:13.5px; color:var(--navy-900); display:flex; align-items:center; gap:9px; font-weight:500;
  }
  .card-list li::before{
    content:""; width:5px; height:5px; border-radius:50%; background:var(--orange-600); flex:none;
  }

  @media (max-width: 980px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width: 640px){ .service-grid{ grid-template-columns:1fr; } }

  /* ---------- About ---------- */
  .about-grid{ display:grid; grid-template-columns:0.95fr 1.05fr; gap:64px; align-items:center; }
  .about-copy p.lede{ margin-top:18px; color:var(--slate); font-size:16.5px; max-width:520px; }
  .about-copy p.body-text{ margin-top:16px; color:var(--slate); font-size:15.5px; max-width:520px; }
  .why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
  .why-card{
    background:var(--white); border:1px solid var(--line); border-radius:14px; padding:24px;
  }
  .why-card .num{
    font-family:var(--ff-mono); font-size:12px; color:var(--orange-600); letter-spacing:0.1em;
  }
  .why-card h4{ font-size:16.5px; margin-top:12px; margin-bottom:8px; }
  .why-card p{ font-size:13.8px; color:var(--slate); }

  @media (max-width: 900px){
    .about-grid{ grid-template-columns:1fr; }
    .why-grid{ order:-1; }
  }
  @media (max-width: 520px){ .why-grid{ grid-template-columns:1fr; } }

  /* ---------- Contact / Footer ---------- */
  .contact{
    background:var(--navy-900);
    color:var(--white);
    position:relative;
    overflow:hidden;
  }
  .contact::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(circle at 12% 18%, rgba(0,102,212,0.35), transparent 45%),
      radial-gradient(circle at 88% 82%, rgba(244,100,10,0.28), transparent 45%);
    pointer-events:none;
  }
  .contact-inner{ position:relative; z-index:1; }
  .contact .section-head h2{ color:var(--white); }
  .contact .section-head p{ color:rgba(255,255,255,0.68); }
  .contact-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:40px; }

  .form-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.14);
    border-radius:var(--radius);
    padding:34px;
    backdrop-filter:blur(6px);
  }
  .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .field{ margin-bottom:16px; }
  .field label{
    display:block; font-family:var(--ff-mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
    color:rgba(255,255,255,0.55); margin-bottom:8px;
  }
  .field input, .field select, .field textarea{
    width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.18);
    border-radius:9px; padding:12px 14px; color:var(--white); font-family:var(--ff-body); font-size:14.5px;
  }
  .field select option{ color:var(--ink); }
  .field textarea{ resize:vertical; min-height:100px; }
  .field input::placeholder, .field textarea::placeholder{ color:rgba(255,255,255,0.35); }
  .form-note{ font-size:12.5px; color:rgba(255,255,255,0.45); margin-top:12px; }

  .contact-side{ display:flex; flex-direction:column; gap:16px; }
  .contact-card{
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.14);
    border-radius:14px; padding:22px 24px; display:flex; gap:16px; align-items:flex-start;
  }
  .contact-card .ic{
    width:40px; height:40px; border-radius:10px; background:rgba(244,100,10,0.18);
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .contact-card .ic svg{ width:19px; height:19px; stroke:var(--orange-400); }
  .contact-card .label{ font-family:var(--ff-mono); font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; color:rgba(255,255,255,0.45); }
  .contact-card .value{ font-weight:600; margin-top:4px; font-size:15px; }
  .contact-card .value a{ display:block; }
  .contact-card .value a:hover{ color:var(--orange-400); }

  .footer-divider{ border-top:1px solid rgba(255,255,255,0.14); margin-top:76px; padding-top:32px; }
  .footer-bottom{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px;
  }
  .footer-logo-chip{
    background:var(--white); border-radius:10px; padding:8px 14px; display:inline-flex; align-items:center;
  }
  .footer-logo-chip img{ height:26px; }
  .footer-links{ display:flex; gap:26px; flex-wrap:wrap; }
  .footer-links a{ font-size:13.5px; color:rgba(255,255,255,0.7); font-weight:500; }
  .footer-links a:hover{ color:var(--white); }
  .footer-copy{ font-size:12.5px; color:rgba(255,255,255,0.4); }
  .footer-details{
    display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:42px; margin-top:66px;
    padding:32px 0; border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14);
  }
  .footer-details > div{ display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
  .footer-kicker{ font-family:var(--ff-mono); font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--orange-400); margin-bottom:4px; }
  .footer-details p, .footer-details a, .footer-details span:not(.footer-kicker){ color:rgba(255,255,255,.66); font-size:13.5px; }
  .footer-details p{ max-width:370px; }
  .footer-details a:hover{ color:var(--white); }

  @media (max-width: 860px){
    .contact-grid{ grid-template-columns:1fr; }
    .form-row{ grid-template-columns:1fr; }
  }
  @media (max-width: 600px){
    section{ padding:76px 0; }
    .footer-bottom{ flex-direction:column; align-items:flex-start; }
    .footer-details{ grid-template-columns:1fr; gap:28px; margin-top:48px; }
  }

  /* ---------- Reveal animation ---------- */
  /* Visible by default under all circumstances. JS only ever adds the
     hidden state (.pre-reveal) immediately before it also commits to
     revealing it via IntersectionObserver, with a try/catch safety net -
     so a script error or disabled JS never leaves content stuck hidden. */
  .reveal{ opacity:1; transform:none; }
  .reveal.pre-reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
  .reveal.pre-reveal.in{ opacity:1; transform:translateY(0); }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    .reveal.pre-reveal{ opacity:1; transform:none; transition:none; }
    *{ animation:none !important; }
  }

  /* ---------- Enhanced interaction & dark theme ---------- */
  body{ transition:background .45s ease, color .45s ease; }
  body.dark{
    --paper:#0b1220; --paper-dim:#111b2e; --white:#101a2c; --ink:#edf4ff;
    --navy-900:#edf4ff; --navy-800:#9cc8ff; --slate:#b5c2d9; --slate-light:#8090aa;
    --line:#263550; --shadow-md:0 14px 32px -12px rgba(0,0,0,.55); --shadow-lg:0 28px 70px -25px rgba(0,0,0,.7);
  }
  body.dark header{ background:rgba(11,18,32,.86); }
  body.dark .brand img, body.dark .footer-logo-chip img{ content:url("logo dark.png"); }
  body.dark .hero::before{ background:linear-gradient(180deg,var(--paper) 0%,rgba(11,18,32,.25) 40%,var(--paper) 100%); }
  body.dark .contact{ background:#050d1c; --white:#ffffff; }
  body.dark .contact::before{ background:radial-gradient(circle at 12% 18%,rgba(0,102,212,.28),transparent 45%),radial-gradient(circle at 88% 82%,rgba(244,100,10,.2),transparent 45%); }
  body.dark .form-card, body.dark .contact-card{ background:rgba(16,32,57,.72); border-color:rgba(177,207,255,.18); }
  body.dark .field input, body.dark .field select, body.dark .field textarea{ background:rgba(4,12,29,.72); border-color:rgba(177,207,255,.26); }
  body.dark .field input:focus, body.dark .field select:focus, body.dark .field textarea:focus{ border-color:var(--orange-400); box-shadow:0 0 0 3px rgba(255,146,67,.14); outline:0; }
  .theme-toggle{
    width:42px; height:42px; border:1.5px solid var(--line); border-radius:10px; color:var(--navy-900);
    background:var(--white); display:grid; place-items:center; transition:transform .25s ease, background .3s ease, border-color .3s ease;
  }
  .theme-toggle:hover{ transform:translateY(-2px) rotate(12deg); border-color:var(--orange-600); }
  .theme-toggle svg{ width:19px; height:19px; }
  .service-card{ display:flex; flex-direction:column; cursor:pointer; }
  .service-card:focus-visible{ outline:3px solid var(--blue-500); outline-offset:3px; }
  .service-card::after, .service-card::before{ display:none; }
  .service-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(0,102,212,.35); }
  .service-card:hover .card-icon{ transform:none; }
  .card-icon{ transition:background .2s ease; }
  .card-action{ margin-top:auto; padding-top:22px; color:var(--blue-500); font-size:13px; font-weight:700; display:inline-flex; align-items:center; width:max-content; border-bottom:1px solid transparent; transition:color .2s ease, border-color .2s ease; }
  .card-action::after{ display:none; }
  .card-action:hover{ color:var(--navy-900); border-color:currentColor; }
  .why-card{ transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
  .why-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(0,102,212,.4); }
  .partner-strip{ margin-top:30px; border-top:1px solid var(--line); padding-top:24px; }
  .partner-strip h3{ font-size:16px; margin-bottom:8px; }
  .partner-strip p{ font-size:14px; color:var(--slate); }
  .form-card, .contact-card{ transition:transform .3s ease, border-color .3s ease, background .3s ease; }
  .form-card:hover, .contact-card:hover{ transform:translateY(-4px); border-color:rgba(255,146,67,.5); background:rgba(255,255,255,.08); }
  .form-status{ min-height:24px; margin:14px 0 0; font-size:13px; color:rgba(255,255,255,.78); }
  .form-status.success{ color:#9bf2c6; } .form-status.error{ color:#ffc0a0; }
  .mobile-overlay{ display:none; }
  @media (max-width:900px){
    .nav-cta .btn{ display:none; }
    .theme-toggle{ margin-left:auto; margin-right:10px; }
    .mobile-overlay{ display:block; position:fixed; inset:0; z-index:99; background:rgba(3,8,20,.52); opacity:0; visibility:hidden; transition:opacity .38s ease, visibility .38s ease; }
    .mobile-overlay.open{ opacity:1; visibility:visible; }
    .mobile-menu{ display:flex; position:fixed; z-index:101; left:0; top:0; bottom:0; width:min(340px,86vw); min-height:100dvh; padding:calc(88px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); gap:6px; overflow-y:auto; background:var(--white); border:0; box-shadow:24px 0 60px rgba(0,0,0,.22); transform:translateX(-105%); visibility:hidden; transition:transform .48s cubic-bezier(.22,.8,.25,1), visibility .48s; }
    .mobile-menu.open{ transform:translateX(0); visibility:visible; }
    .mobile-menu a{ padding:15px 10px; border-radius:9px; border-bottom:0; transition:background .2s ease, transform .2s ease; }
    .mobile-menu a:hover{ background:var(--paper-dim); transform:translateX(5px); }
    .burger{ position:relative; z-index:102; }
    .burger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }.burger.open span:nth-child(2){ opacity:0; }.burger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
  }
