:root{--bg:#05090f;--panel:#0d141d;--panel2:#131d29;--text:#f6f8fb;--muted:#b9c1cb;--line:#2a3542;--orange:#ff7b0a;--orange2:#ffad45;--header:rgba(4,8,13,.9)}
html[data-theme="light"]{--bg:#edf1f5;--panel:#fff;--panel2:#f4f7fa;--text:#101821;--muted:#536170;--line:#ccd4dc;--header:rgba(255,255,255,.92)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Segoe UI,Arial,sans-serif;transition:background .25s,color .25s}a{color:inherit;text-decoration:none}.topbar{height:78px;position:fixed;z-index:50;top:0;left:0;right:0;display:flex;align-items:center;padding:0 5%;background:var(--header);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand{width:280px}.brand img{width:245px;height:66px;object-fit:cover;object-position:left center}.topbar nav{margin-left:auto;display:flex;gap:30px}.topbar nav a{font-size:12px;font-weight:800;text-transform:uppercase;padding:30px 0 22px;border-bottom:2px solid transparent}.topbar nav a:hover{color:var(--orange);border-color:var(--orange)}.tools{display:flex;align-items:center;gap:10px;margin-left:23px}.icon-btn,.menu,select{height:40px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px}.icon-btn,.menu{width:42px;font-size:18px}.menu{display:none}.language-wrap select{padding:0 10px;font-weight:700}.hero{min-height:610px;margin-top:78px;position:relative;overflow:hidden;background:radial-gradient(circle at 78% 45%,#25303a 0,#0b1119 48%,#05090f 76%)}html[data-theme="light"] .hero{background:linear-gradient(110deg,#fff 0,#e8edf2 50%,#cfd7df)}.hero-ship{position:absolute;right:-2%;top:0;width:70%;height:100%;background:url('../images/vapapps-ship-clean.jpg') center/cover no-repeat;mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 100%)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--bg) 0,rgba(5,9,15,.92) 30%,rgba(5,9,15,.18) 67%,rgba(5,9,15,.03));pointer-events:none}html[data-theme="light"] .hero:after{background:linear-gradient(90deg,rgba(237,241,245,1) 0,rgba(237,241,245,.88) 35%,rgba(237,241,245,.12) 70%)}.hero-copy{position:relative;z-index:2;padding:105px 6%;max-width:650px}.eyebrow{display:inline-block;padding:7px 13px;border:1px solid var(--orange);border-radius:7px;color:var(--orange);font-size:12px;font-weight:900}.hero h1{font-size:58px;line-height:1.04;margin:24px 0 18px;letter-spacing:-1.5px}.hero h1 b{color:var(--orange2)}.hero p{max-width:520px;color:var(--muted);font-size:18px;line-height:1.65}.cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(#ff8e27,#dc5b00);border:1px solid #ff9e48;color:#fff;border-radius:7px;padding:14px 21px;font-size:13px;font-weight:900;box-shadow:0 9px 24px rgba(255,104,0,.22)}.btn.ghost{background:var(--panel);color:var(--text);border-color:var(--line);box-shadow:none}.mission{padding:90px 8%;display:grid;grid-template-columns:1.25fr .75fr;gap:65px;align-items:center;border-top:1px solid var(--line)}.mission-copy>span,.section-heading>span{color:var(--orange);font-size:12px;font-weight:900;letter-spacing:1.4px}.mission h2,.section-heading h2{font-size:43px;line-height:1.15;margin:15px 0 20px}.mission p,.mission-card p{color:var(--muted);font-size:17px;line-height:1.7}.mission-card{padding:40px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,var(--panel2),var(--panel))}.mission-icon{font-size:45px;color:var(--orange)}.mission-card h3{font-size:24px;margin:18px 0 10px}.news{padding:80px 6% 95px;background:var(--panel);border-top:1px solid var(--line)}.section-heading{text-align:center;max-width:700px;margin:0 auto 40px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:1350px;margin:auto}.news-grid article{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--bg);transition:transform .2s,border-color .2s}.news-grid article:hover{transform:translateY(-5px);border-color:var(--orange)}.news-grid img{width:100%;height:190px;object-fit:cover}.news-grid article>div{padding:24px}.news-grid time{color:var(--orange);font-size:12px;font-weight:800}.news-grid h3{font-size:21px;margin:10px 0}.news-grid p{color:var(--muted);line-height:1.6}.news-grid a{display:inline-block;color:var(--orange);font-size:12px;font-weight:900;margin-top:8px}footer{display:flex;justify-content:space-between;gap:25px;align-items:center;padding:27px 6%;border-top:1px solid var(--line);background:var(--bg);color:var(--muted);font-size:12px}footer div{display:flex;gap:22px;flex-wrap:wrap}footer a:hover{color:var(--orange)}html[dir="rtl"] .topbar nav{margin-left:0;margin-right:auto}html[dir="rtl"] .tools{margin-left:0;margin-right:23px}html[dir="rtl"] .hero-ship{right:auto;left:-2%;transform:scaleX(-1)}html[dir="rtl"] .hero:after{background:linear-gradient(270deg,var(--bg) 0,rgba(5,9,15,.92) 30%,rgba(5,9,15,.18) 67%,rgba(5,9,15,.03))}
@media(max-width:920px){.topbar{height:70px;padding:0 18px}.brand{width:205px}.brand img{width:195px;height:60px}.menu{display:block;margin-left:auto}.topbar nav{display:none;position:fixed;top:70px;left:0;right:0;background:var(--panel);flex-direction:column;padding:20px;gap:0}.topbar nav.open{display:flex}.topbar nav a{padding:14px}.tools{margin-left:10px}.language-wrap select{width:72px}.hero{margin-top:70px;min-height:650px}.hero-ship{width:100%;opacity:.72;mask-image:none;-webkit-mask-image:none}.hero:after{background:linear-gradient(180deg,rgba(5,9,15,.25),var(--bg) 79%)}.hero-copy{padding:90px 25px}.hero h1{font-size:43px}.mission{grid-template-columns:1fr;padding:70px 25px}.news{padding:70px 25px}.news-grid{grid-template-columns:1fr}footer{flex-direction:column;align-items:flex-start}}


/* VAPAPPS 1.4 — compact desktop layout (approximately 40% smaller). */
@media (min-width:921px){
  .topbar{height:50px;padding:0 3.5%}
  .brand{width:175px}
  .brand img{width:155px;height:42px}
  .topbar nav{gap:18px}
  .topbar nav a{font-size:9px;padding:18px 0 14px}
  .tools{gap:6px;margin-left:14px}
  .icon-btn,.menu,select{height:30px;border-radius:6px}
  .icon-btn,.menu{width:32px;font-size:14px}
  .language-wrap select{min-width:124px;padding:0 8px;font-size:10px}
  .hero{min-height:390px;margin-top:50px}
  .hero-copy{padding:62px 4%;max-width:430px}
  .eyebrow{padding:5px 9px;border-radius:5px;font-size:9px}
  .hero h1{font-size:36px;line-height:1.05;margin:15px 0 11px;letter-spacing:-.8px}
  .hero p{max-width:340px;font-size:12px;line-height:1.55}
  .cta{gap:9px;margin-top:18px}
  .btn{border-radius:5px;padding:9px 14px;font-size:9px;box-shadow:0 6px 15px rgba(255,104,0,.18)}
  .mission{padding:54px 6%;gap:40px}
  .mission-copy>span,.section-heading>span{font-size:9px;letter-spacing:1px}
  .mission h2,.section-heading h2{font-size:27px;margin:10px 0 13px}
  .mission p,.mission-card p{font-size:11px;line-height:1.6}
  .mission-card{padding:25px;border-radius:10px}
  .mission-icon{font-size:28px}
  .mission-card h3{font-size:15px;margin:11px 0 7px}
  .news{padding:50px 4% 58px}
  .section-heading{max-width:450px;margin:0 auto 26px}
  .news-grid{gap:14px;max-width:900px}
  .news-grid article{border-radius:9px}
  .news-grid article:hover{transform:translateY(-3px)}
  .news-grid img{height:120px}
  .news-grid article>div{padding:15px}
  .news-grid time{font-size:9px}
  .news-grid h3{font-size:14px;margin:7px 0}
  .news-grid p{font-size:10px;line-height:1.5}
  .news-grid a{font-size:9px;margin-top:5px}
  footer{gap:16px;padding:17px 4%;font-size:9px}
  footer div{gap:14px}
}


/* VAPAPPS 1.5 — clearer footer typography. */
footer{font-size:15px;font-weight:600;line-height:1.55}
footer a{font-size:15px;font-weight:700}
@media (min-width:921px){footer{font-size:13px;padding-top:21px;padding-bottom:21px}footer a{font-size:13px}}
@media (max-width:920px){footer{font-size:14px}footer a{font-size:14px}}

/* VAPAPPS 1.7 — warm product navigation with a compact Software dropdown. */
.category-bar{
  position:fixed;
  z-index:49;
  top:50px;
  left:0;
  right:0;
  height:48px;
  background:linear-gradient(90deg,rgba(12,14,18,.98),rgba(39,23,12,.98));
  border-top:1px solid rgba(255,123,10,.08);
  border-bottom:1px solid rgba(255,123,10,.42);
  box-shadow:0 9px 26px rgba(0,0,0,.26);
  backdrop-filter:blur(14px);
}
html[data-theme="light"] .category-bar{
  background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,241,226,.98));
  border-bottom-color:rgba(217,90,0,.3);
  box-shadow:0 9px 24px rgba(62,35,14,.12);
}
.category-bar-inner{
  height:100%;
  display:flex;
  align-items:stretch;
  max-width:1180px;
  margin:0 auto;
  overflow:visible;
}
.category-menu{position:relative;display:flex;align-items:stretch;flex:0 0 auto}
.category-link{
  position:relative;
  flex:0 0 auto;
  min-width:112px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 24px;
  border:0;
  background:transparent;
  color:var(--text);
  font:700 15px/1 "Segoe UI",Arial,sans-serif;
  cursor:pointer;
  white-space:nowrap;
  transition:background .2s,color .2s,filter .2s;
}
.category-link:hover,.category-link:focus-visible{
  background:rgba(255,123,10,.11);
  color:var(--orange2);
  outline:none;
}
.category-menu-trigger.active{
  z-index:1;
  margin-right:-18px;
  padding-right:42px;
  background:linear-gradient(135deg,#ff922e 0,#e46508 56%,#ba4300 100%);
  color:#fff;
  font-weight:800;
  clip-path:polygon(0 0,100% 0,calc(100% - 18px) 100%,0 100%);
  text-shadow:0 1px 1px rgba(0,0,0,.24);
}
.category-menu-trigger.active:hover,.category-menu-trigger.active:focus-visible{filter:brightness(1.06);color:#fff}
.category-chevron{font-size:17px;line-height:1;transform:translateY(-1px);transition:transform .2s}
.category-menu.open .category-chevron{transform:translateY(1px) rotate(180deg)}
.category-link.coming-soon{opacity:.82}
.software-dropdown{
  position:absolute;
  z-index:80;
  top:calc(100% + 9px);
  left:0;
  width:360px;
  padding:9px;
  border:1px solid rgba(255,123,10,.48);
  border-radius:12px;
  background:linear-gradient(145deg,var(--panel2),var(--panel));
  box-shadow:0 22px 55px rgba(0,0,0,.42);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px) scale(.985);
  transform-origin:top left;
  pointer-events:none;
  transition:opacity .18s,visibility .18s,transform .18s;
}
.category-menu.open .software-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.software-dropdown:before{
  content:"";
  position:absolute;
  top:-6px;
  left:28px;
  width:11px;
  height:11px;
  border-left:1px solid rgba(255,123,10,.48);
  border-top:1px solid rgba(255,123,10,.48);
  background:var(--panel2);
  transform:rotate(45deg);
}
.software-dropdown-item{
  position:relative;
  z-index:1;
  min-width:0;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 24px;
  align-items:center;
  gap:13px;
  padding:13px;
  border:1px solid transparent;
  border-radius:9px;
  background:rgba(255,123,10,.035);
  transition:background .2s,border-color .2s,transform .2s;
}
.software-dropdown-item:hover,.software-dropdown-item:focus-visible{
  background:rgba(255,123,10,.11);
  border-color:rgba(255,123,10,.34);
  transform:translateY(-1px);
  outline:none;
}
.software-dropdown-icon{
  width:54px;
  height:54px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#f5f7fb;
  box-shadow:0 7px 18px rgba(0,0,0,.22);
}
.software-dropdown-icon img{width:100%;height:100%;object-fit:cover}
.software-dropdown-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
.software-dropdown-copy strong{overflow:hidden;color:var(--text);font-size:14px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.software-dropdown-copy small{color:var(--orange2);font-size:9px;font-weight:900;letter-spacing:1px}
.software-dropdown-arrow{color:var(--orange2);font-size:20px;transition:transform .2s}
.software-dropdown-item:hover .software-dropdown-arrow{transform:translateX(3px)}
.hero{margin-top:98px}
.category-toast{
  position:fixed;
  z-index:90;
  left:50%;
  bottom:28px;
  transform:translate(-50%,20px);
  padding:11px 18px;
  border:1px solid rgba(255,123,10,.36);
  border-radius:8px;
  background:var(--panel2);
  color:var(--text);
  box-shadow:0 16px 40px rgba(0,0,0,.3);
  font-size:13px;
  font-weight:800;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
}
.category-toast.show{opacity:1;transform:translate(-50%,0)}
#news{scroll-margin-top:112px}
html[dir="rtl"] .category-menu-trigger.active{
  margin-right:0;
  margin-left:-18px;
  padding-right:24px;
  padding-left:42px;
  clip-path:polygon(0 0,100% 0,100% 100%,18px 100%);
}
html[dir="rtl"] .software-dropdown{left:auto;right:0;transform-origin:top right}
html[dir="rtl"] .software-dropdown:before{left:auto;right:28px}
html[dir="rtl"] .software-dropdown-arrow{transform:scaleX(-1)}
html[dir="rtl"] .software-dropdown-item:hover .software-dropdown-arrow{transform:scaleX(-1) translateX(3px)}

@media(max-width:920px){
  .category-bar{top:70px;height:50px}
  .category-bar-inner{max-width:none;justify-content:flex-start;overflow-x:auto;overflow-y:visible;scrollbar-width:none}
  .category-bar-inner::-webkit-scrollbar{display:none}
  .category-link{min-width:auto;padding:0 22px;font-size:14px}
  .category-menu{position:static}
  .software-dropdown{
    position:fixed;
    top:128px;
    left:18px;
    right:18px;
    width:auto;
    max-width:430px;
    min-width:0;
    transform-origin:top center;
  }
  html[dir="rtl"] .software-dropdown{left:18px;right:18px}
  .software-dropdown:before{display:none}
  .hero{margin-top:120px}
  #news{scroll-margin-top:134px}
}

@media(max-width:560px){
  .category-link{padding:0 17px;font-size:13px}
  .category-menu-trigger.active{padding-right:36px}
  html[dir="rtl"] .category-menu-trigger.active{padding-right:17px;padding-left:36px}
  .software-dropdown{top:126px;left:10px;right:10px;padding:7px}
  html[dir="rtl"] .software-dropdown{left:10px;right:10px}
  .software-dropdown-item{grid-template-columns:48px minmax(0,1fr) 20px;gap:10px;padding:11px}
  .software-dropdown-icon{width:48px;height:48px;border-radius:10px}
  .software-dropdown-copy strong{font-size:13px}
  .software-dropdown-copy small{font-size:8px}
}

/* VAPAPPS 1.8 — simplified top header: product categories remain below. */
.topbar > .tools{margin-left:auto}
html[dir="rtl"] .topbar > .tools{margin-left:0;margin-right:auto}


/* VAPAPPS 1.9 — real country flag icons in the language picker. */
.language-picker{position:relative;display:flex;align-items:center}
.language-button{
  height:40px;
  min-width:154px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--text);
  font:700 13px/1 "Segoe UI",Arial,sans-serif;
  cursor:pointer;
  transition:border-color .2s,background .2s,box-shadow .2s;
}
.language-button:hover,.language-button:focus-visible{
  border-color:rgba(255,123,10,.62);
  background:var(--panel2);
  box-shadow:0 0 0 3px rgba(255,123,10,.1);
  outline:none;
}
.language-flag,.language-option img{
  width:27px;
  height:18px;
  flex:0 0 auto;
  object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(255,255,255,.17),0 2px 5px rgba(0,0,0,.22);
}
.language-current-name{display:none}
.language-button{width:58px;min-width:58px;justify-content:center;gap:6px;padding-inline:8px}
.language-arrow{margin-left:0;color:var(--orange2);font-size:15px;transition:transform .18s}
.language-picker.open .language-arrow{transform:rotate(180deg)}
.language-menu{
  position:absolute;
  z-index:100;
  top:calc(100% + 8px);
  right:0;
  width:196px;
  max-height:min(430px,70vh);
  overflow-y:auto;
  padding:7px;
  border:1px solid rgba(255,123,10,.4);
  border-radius:10px;
  background:linear-gradient(145deg,var(--panel2),var(--panel));
  box-shadow:0 22px 55px rgba(0,0,0,.42);
  opacity:0;
  visibility:hidden;
  transform:translateY(-7px) scale(.985);
  transform-origin:top right;
  pointer-events:none;
  transition:opacity .17s,visibility .17s,transform .17s;
}
.language-picker.open .language-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.language-option{
  width:100%;
  min-height:39px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  font:700 12px/1.2 "Segoe UI",Arial,sans-serif;
  text-align:left;
  cursor:pointer;
  transition:background .17s,border-color .17s,color .17s;
}
.language-option:hover,.language-option:focus-visible{
  background:rgba(255,123,10,.1);
  border-color:rgba(255,123,10,.24);
  color:var(--orange2);
  outline:none;
}
.language-option[aria-selected="true"]{
  background:rgba(255,123,10,.14);
  border-color:rgba(255,123,10,.34);
  color:var(--orange2);
}
html[dir="rtl"] .language-menu{right:auto;left:0;transform-origin:top left}
html[dir="rtl"] .language-option{text-align:right}
html[dir="rtl"] .language-arrow{margin-left:0;margin-right:auto}
@media (min-width:921px){
  .language-button{height:30px;width:48px;min-width:48px;padding:0 7px;gap:5px;border-radius:6px;font-size:10px}
  .language-flag{width:22px;height:15px}
  .language-menu{width:178px;top:calc(100% + 7px)}
  .language-option{min-height:35px;font-size:10px;padding:7px 9px}
  .language-option img{width:24px;height:16px}
}
@media (max-width:620px){
  .language-button{min-width:48px;width:48px;padding:0 9px;justify-content:center}
  .language-current-name,.language-arrow{display:none}
  .language-menu{position:fixed;top:76px;right:12px;left:auto;width:190px;max-height:calc(100vh - 92px)}
  html[dir="rtl"] .language-menu{right:auto;left:12px}
}

/* Responsive layout pass — phones and tablets only. */
@media (max-width:1024px){
  html,body{max-width:100%;overflow-x:clip}
  .topbar{width:100%}
  .brand{flex:1 1 auto;min-width:0;width:auto}
  .brand img{display:block;max-width:100%;object-fit:contain;object-position:left center}
  .tools{flex:0 0 auto;min-width:0}
  .category-bar-inner{width:100%;max-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .category-menu{min-width:max-content}
  .hero-ship{right:0;max-width:100%}
  .hero-copy,.mission-copy,.mission-card,.news-grid article{min-width:0}
  .hero h1,.mission h2,.section-heading h2{overflow-wrap:anywhere}
  .news-grid{width:100%}
}

@media (min-width:641px) and (max-width:920px){
  .topbar{padding-inline:24px}
  .brand img{width:190px}
  .mission{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:28px;padding:64px 5%}
  .news{padding:64px 5% 72px}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-grid article:last-child{grid-column:1/-1}
  footer{align-items:center}
}

@media (max-width:640px){
  .topbar{height:64px;padding:0 10px;gap:8px}
  .brand img{width:clamp(132px,43vw,172px);height:52px}
  .tools{gap:6px;margin-left:6px}
  .icon-btn,.menu{width:38px;height:38px;font-size:16px}
  .language-button{width:44px;min-width:44px;height:38px;padding:0 7px}
  .language-flag{width:24px;height:16px}
  .language-menu{top:68px;right:8px;width:min(190px,calc(100vw - 16px));max-height:calc(100dvh - 84px)}
  html[dir="rtl"] .language-menu{left:8px;right:auto}

  .category-bar{top:64px;height:46px}
  .category-bar-inner{padding-inline:0;scroll-snap-type:x proximity}
  .category-link{min-height:46px;padding-inline:16px;font-size:12px;scroll-snap-align:start}
  .category-menu-trigger.active{margin-right:-14px;padding-right:31px;clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%)}
  html[dir="rtl"] .category-menu-trigger.active{margin-left:-14px;padding-left:31px;clip-path:polygon(0 0,100% 0,100% 100%,14px 100%)}
  .software-dropdown{top:118px;left:8px;right:8px;max-width:none}
  html[dir="rtl"] .software-dropdown{left:8px;right:8px}

  .hero{margin-top:110px;min-height:max(560px,calc(100svh - 110px))}
  .hero-ship{inset:0;width:100%;opacity:.56;background-position:60% center}
  html[dir="rtl"] .hero-ship{left:0;right:0}
  .hero-copy{padding:66px 18px 48px;max-width:100%}
  .eyebrow{font-size:10px;padding:6px 9px}
  .hero h1{font-size:clamp(35px,10.5vw,46px);line-height:1.08;letter-spacing:-.8px;margin:20px 0 14px}
  .hero p{font-size:16px;line-height:1.6;max-width:100%}
  .cta{display:grid;grid-template-columns:1fr;gap:10px;margin-top:24px}
  .cta .btn{width:100%;min-height:46px;padding:12px 16px}

  .mission{grid-template-columns:1fr;gap:26px;padding:56px 18px}
  .mission h2,.section-heading h2{font-size:clamp(30px,9vw,39px)}
  .mission p,.mission-card p{font-size:16px}
  .mission-card{padding:25px;border-radius:14px}
  .news{padding:56px 18px 64px}
  .section-heading{margin-bottom:28px}
  .news-grid{grid-template-columns:1fr;gap:16px}
  .news-grid img{height:clamp(170px,53vw,230px)}
  .news-grid article>div{padding:20px}

  footer{padding:24px 18px;align-items:center;text-align:center;gap:14px}
  footer div{justify-content:center;gap:16px}
  .category-toast{left:12px;right:12px;bottom:16px;transform:translateY(20px);text-align:center}
  .category-toast.show{transform:translateY(0)}
}

@media (max-width:380px){
  .brand img{width:130px}
  .topbar{padding-inline:8px}
  .category-link{padding-inline:13px;font-size:11px}
  .hero-copy{padding-inline:15px}
}

/* Navigation visibility refinement — phones and tablets only. */
@media (max-width:920px){
  .category-bar{height:52px}
  .category-bar-inner{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-flow:row;
    align-items:stretch;
    overflow:visible;
  }
  .category-menu{display:block;min-width:0}
  .category-link,
  .category-menu>.category-link{
    width:100%;
    min-width:0;
    height:100%;
    padding:0 7px;
    font-size:12px;
    line-height:1.15;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .category-menu-trigger.active,
  html[dir="rtl"] .category-menu-trigger.active{
    margin:0;
    padding:0 7px;
    clip-path:none;
  }
  .software-dropdown{top:128px}
  .hero{margin-top:122px}
  #news{scroll-margin-top:136px}
}

@media (max-width:560px){
  .category-bar{top:64px;height:88px}
  .category-bar-inner{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,44px);
    grid-auto-flow:row;
  }
  .category-link,
  .category-menu>.category-link{padding:4px 8px;font-size:11.5px}
  .software-dropdown{top:160px}
  .hero{margin-top:152px}
  #news{scroll-margin-top:166px}
}

@media (max-width:400px){
  .category-bar{height:126px}
  .category-bar-inner{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,42px);
  }
  .category-link,
  .category-menu>.category-link{font-size:11px}
  .software-dropdown{top:198px}
  .hero{margin-top:190px}
  #news{scroll-margin-top:204px}
}

/* VAPAPPS logo alignment — match the Software tab exactly and sit directly above it. */
.topbar .brand{
  position:absolute;
  top:auto;
  bottom:0;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  overflow:hidden;
}
.topbar .brand img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
}

/* VAPAPPS 2.0 — stable responsive layout for phones and tablets. */
@media (max-width:1024px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .topbar{
    height:66px;
    padding:0 clamp(12px,3vw,28px);
    gap:10px;
  }
  .topbar .brand{
    position:relative;
    inset:auto;
    bottom:auto;
    width:clamp(150px,24vw,210px);
    height:100%;
    flex:0 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    overflow:visible;
  }
  .topbar .brand img{
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:contain;
    object-position:left center;
  }
  html[dir="rtl"] .topbar .brand img{object-position:right center}
  .topbar>.tools{
    margin-left:auto;
    flex:0 0 auto;
    gap:8px;
  }
  html[dir="rtl"] .topbar>.tools{margin-left:0;margin-right:auto}
  .icon-btn{width:40px;height:40px;flex:0 0 40px}
  .language-button{width:48px;min-width:48px;height:40px;padding:0 8px}
  .language-flag{width:24px;height:16px}

  .category-bar{top:66px;height:50px}
  .category-bar-inner{
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:50px;
    align-items:stretch;
    overflow:visible;
  }
  .category-menu{position:static;display:block;min-width:0}
  .category-link,
  .category-menu>.category-link{
    width:100%;
    min-width:0;
    height:50px;
    padding:0 10px;
    font-size:clamp(11px,1.8vw,14px);
    line-height:1.15;
    text-align:center;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .category-menu-trigger.active,
  html[dir="rtl"] .category-menu-trigger.active{
    margin:0;
    padding:0 10px;
    clip-path:none;
  }
  .category-chevron{font-size:15px}
  .software-dropdown,
  html[dir="rtl"] .software-dropdown{
    position:fixed;
    top:124px;
    left:clamp(10px,3vw,28px);
    right:clamp(10px,3vw,28px);
    width:auto;
    max-width:430px;
    min-width:0;
    transform-origin:top center;
  }
  .software-dropdown:before{display:none}

  .hero{margin-top:116px;min-height:520px}
  .hero-copy{max-width:600px;padding:72px clamp(24px,6vw,64px) 58px}
  .hero h1{font-size:clamp(40px,6vw,52px);overflow-wrap:normal}
  .hero p{font-size:17px;max-width:520px}
  .hero-ship{right:0;max-width:100%}
  .mission-copy,.mission-card,.news-grid article{min-width:0}
  .mission h2,.section-heading h2{overflow-wrap:break-word}
  #news{scroll-margin-top:130px}
}

@media (min-width:641px) and (max-width:1024px){
  .mission{
    grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);
    gap:30px;
    padding:64px 5%;
  }
  .mission h2,.section-heading h2{font-size:clamp(32px,4.4vw,42px)}
  .mission p,.mission-card p{font-size:16px}
  .mission-card{padding:30px}
  .news{padding:64px 5% 72px}
  .news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .news-grid article:last-child{grid-column:1/-1}
  .news-grid img{height:190px}
  .news-grid h3{font-size:20px}
  .news-grid p{font-size:15px}
  footer{flex-wrap:wrap;align-items:center;padding:24px 5%}
}

@media (max-width:640px){
  .topbar{height:64px;padding:0 10px;gap:6px}
  .topbar .brand{width:clamp(124px,42vw,164px)}
  .topbar>.tools{gap:6px}
  .icon-btn{width:38px;height:38px;flex-basis:38px;font-size:16px}
  .language-button{width:44px;min-width:44px;height:38px;padding:0 7px}
  .language-menu{
    position:fixed;
    top:68px;
    right:8px;
    left:auto;
    width:min(200px,calc(100vw - 16px));
    max-height:calc(100dvh - 84px);
  }
  html[dir="rtl"] .language-menu{left:8px;right:auto}

  .category-bar{top:64px;height:48px}
  .category-bar-inner{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:48px;
  }
  .category-link,
  .category-menu>.category-link{
    height:48px;
    min-height:48px;
    padding:0 5px;
    font-size:clamp(10px,3.3vw,12px);
  }
  .category-menu-trigger.active,
  html[dir="rtl"] .category-menu-trigger.active{padding:0 5px}
  .software-dropdown,
  html[dir="rtl"] .software-dropdown{
    top:120px;
    left:8px;
    right:8px;
    max-width:none;
    padding:7px;
  }
  .software-dropdown-item{grid-template-columns:48px minmax(0,1fr) 20px;gap:10px;padding:11px}
  .software-dropdown-icon{width:48px;height:48px;border-radius:10px}
  .software-dropdown-copy strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}

  .hero{margin-top:112px;min-height:max(560px,calc(100svh - 112px))}
  .hero-ship{
    inset:0;
    width:100%;
    opacity:.48;
    background-position:60% center;
    mask-image:none;
    -webkit-mask-image:none;
  }
  html[dir="rtl"] .hero-ship{left:0;right:0}
  .hero:after{background:linear-gradient(180deg,rgba(5,9,15,.18) 0,rgba(5,9,15,.62) 45%,var(--bg) 88%)}
  html[data-theme="light"] .hero:after{background:linear-gradient(180deg,rgba(237,241,245,.12) 0,rgba(237,241,245,.64) 48%,var(--bg) 90%)}
  .hero-copy{padding:62px 18px 46px;max-width:100%}
  .eyebrow{font-size:10px;padding:6px 9px}
  .hero h1{font-size:clamp(34px,10vw,44px);line-height:1.08;letter-spacing:-.7px;margin:19px 0 14px}
  .hero p{font-size:16px;line-height:1.58;max-width:100%}
  .cta{display:grid;grid-template-columns:1fr;gap:10px;margin-top:24px}
  .cta .btn{width:100%;min-height:46px;padding:12px 15px}

  .mission{grid-template-columns:1fr;gap:26px;padding:54px 18px}
  .mission h2,.section-heading h2{font-size:clamp(29px,8.6vw,38px)}
  .mission p,.mission-card p{font-size:16px;line-height:1.65}
  .mission-card{padding:24px;border-radius:14px}
  .news{padding:54px 18px 62px}
  .section-heading{margin-bottom:28px}
  .news-grid{grid-template-columns:1fr;gap:16px}
  .news-grid img{height:clamp(170px,52vw,225px)}
  .news-grid article>div{padding:20px}
  .news-grid h3{font-size:20px}
  .news-grid p{font-size:15px}

  footer{flex-direction:column;align-items:center;padding:24px 18px;text-align:center;gap:14px}
  footer p{margin:0}
  footer div{justify-content:center;gap:14px 18px}
  .category-toast{left:12px;right:12px;bottom:16px;transform:translateY(20px);text-align:center}
  .category-toast.show{transform:translateY(0)}
  #news{scroll-margin-top:126px}
}

@media (max-width:360px){
  .topbar{padding-inline:8px}
  .topbar .brand{width:118px}
  .category-link,.category-menu>.category-link{font-size:10px;padding-inline:3px}
  .hero-copy{padding-inline:15px}
}
