/* Nesatech website */
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Poppins-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
:root {
  --ocean: #0A3596; --deep: #081C4A; --sky: #EEF3FB; --sun: #F5761A; --sun-d: #DD6410;
  --ink: #111B33; --muted: #4F5B72; --line: #D6DFEE; --white: #fff; --wa: #25D366;
  --head: 'Poppins', 'Segoe UI', sans-serif; --body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 10px; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.is-hidden { display: none !important; }
.h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; color: var(--deep); }
.h3 { font-size: 1.5rem; font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .98rem/1 var(--body); padding: .85rem 1.2rem; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sun { background: var(--sun); color: #0B1430; }
.btn-sun:hover { background: var(--sun-d); }
.btn-wa { background: var(--wa); color: #06311a; }
.btn-wa:hover { background: #1fbd5a; }
.btn-ink { background: var(--ocean); color: #fff; }
.btn-ink:hover { background: var(--deep); }
.btn-line { background: transparent; color: var(--ocean); border-color: var(--line); }
.btn-line:hover { border-color: var(--ocean); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top-in { display: flex; align-items: center; gap: 1rem; height: 80px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 58px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .55rem .75rem; border-radius: 6px; }
.nav a:not(.btn):hover { background: var(--sky); }
.nav .btn { margin-left: .5rem; padding: .7rem 1rem; }
.nav-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* hero slider - the one bold element */
.hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.slides { position: relative; height: clamp(520px, 78vh, 700px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,28,74,.97) 0%, rgba(8,28,74,.9) 34%, rgba(8,28,74,.35) 62%, rgba(8,28,74,0) 80%); }
.slide-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.slide-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 700; max-width: 15ch; margin-bottom: .45em; }
.slide-text { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: #D3DDF2; max-width: 44ch; }
.slide-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.slide.is-on .slide-title, .slide.is-on .slide-text, .slide.is-on .slide-cta { animation: rise .7s ease both; }
.slide.is-on .slide-text { animation-delay: .08s; }
.slide.is-on .slide-cta { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: .6rem; }
.hc-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(8,28,74,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hc-btn:hover { background: rgba(255,255,255,.15); }
.hc-pause { position: relative; }
.hc-pause .p1, .hc-pause .p2 { position: absolute; top: 13px; width: 4px; height: 14px; background: #fff; border-radius: 1px; }
.hc-pause .p1 { left: 14px; } .hc-pause .p2 { left: 21px; }
.hc-pause[aria-pressed="true"] .p2 { display: none; }
.hc-pause[aria-pressed="true"] .p1 { left: 15px; width: 0; height: 0; background: none; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-radius: 0; }
.dots { display: flex; gap: .45rem; }
.dot { width: 34px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.dot.is-on { background: var(--sun); }

/* products */
.products { padding: 84px 0 70px; }
.ptabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 26px; }
.ptab { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: 14px 14px 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.ptab small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.ptab b { font-family: var(--head); font-size: 1.08rem; }
.ptab-ic { flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 12%, white); color: var(--pc); }
.ptab:hover { border-color: color-mix(in srgb, var(--pc) 50%, var(--line)); }
.ptab.is-on { border-top-color: var(--pc); border-color: color-mix(in srgb, var(--pc) 45%, var(--line)); background: color-mix(in srgb, var(--pc) 5%, white); }
.ppanel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.pvideo { border-radius: 12px; overflow: hidden; background: #0d2433; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--pc) 70%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); }
.pvideo video, .pvideo iframe, .pvideo img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.pinfo .h3 { color: var(--pc); font-size: 1.9rem; margin-bottom: .1em; }
.ptag { font-weight: 600; color: var(--deep); }
.pfor { color: var(--muted); font-size: .95rem; }
.mods { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.2rem; }
.mods li { display: flex; gap: .45rem; align-items: flex-start; font-size: .95rem; line-height: 1.4; }
.mods .ic { flex: none; color: var(--pc); margin-top: 2px; }
.pcta { display: flex; flex-wrap: wrap; gap: .6rem; }

/* services */
.services { padding: 74px 0; background: var(--sky); }
.svc { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc li { display: flex; gap: 1rem; padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.svc li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.svc-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ocean); color: var(--sun); display: grid; place-items: center; }
.svc h3 { font-size: 1.08rem; margin-bottom: .35em; }
.svc p { color: var(--muted); font-size: .95rem; margin: 0; }

/* steps: a real sequence */
.how { padding: 74px 0; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 22px; right: 12%; height: 2px; background: var(--line); }
.steps li { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: #0B1430; font: 700 1.15rem/1 var(--head); margin-bottom: 14px; box-shadow: 0 0 0 6px #fff; }
.steps h3 { font-size: 1.12rem; margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .95rem; }

/* customers */
.quotes { padding: 74px 0; background: var(--deep); color: #fff; }
.quotes .h2 { color: #fff; }
.quotes .lead { color: #C4D0EC; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin: 30px 0; }
.q { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sun); }
.q blockquote { margin: 8px 0 14px; font-size: 1.08rem; line-height: 1.55; color: #EEF3FB; }
.q figcaption b { display: block; }
.q figcaption span, .q figcaption em { display: block; color: #A9B9E0; font-size: .9rem; font-style: normal; }
.stars { display: flex; gap: 2px; color: #33508F; }
.stars .on { color: var(--sun); }
.stars .on .ic { fill: var(--sun); }
.fb { margin-top: 10px; }
.fb summary { list-style: none; color: #fff; border-color: rgba(255,255,255,.35); }
.fb summary::-webkit-details-marker { display: none; }
.fb-form { margin-top: 20px; background: #fff; color: var(--ink); padding: 22px; border-radius: var(--r); max-width: 760px; }
.ok { margin-top: 16px; color: #BDF0CF; }
.rate { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate legend { float: left; width: 100%; font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { color: #C8D3DA; cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--sun); }
.rate input:checked ~ label .ic, .rate label:hover .ic, .rate label:hover ~ label .ic { fill: var(--sun); }
.rate input:focus-visible + label { outline: 3px solid var(--ocean); }

/* about */
.about { padding: 74px 0; }
.about-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.about-text p { font-size: 1.08rem; max-width: 64ch; }

/* demo + contact */
.demo { padding: 74px 0 84px; background: var(--sky); }
.demo-in { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { display: block; width: 100%; margin-top: 5px; font: 400 1rem/1.4 var(--body); padding: .7rem .8rem; border: 1px solid #B9CBD5; border-radius: 7px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ocean); outline-offset: 0; border-color: var(--ocean); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-weight: 500; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.pick label { margin: 0; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: .55rem .9rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .93rem; }
.pick input:checked + span { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, white); color: var(--deep); }
.pick input:focus-visible + span { outline: 3px solid var(--sun); }
.chk { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; }
.chk input { margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.err { color: #B42318; font-weight: 500; }
.sent { background: #fff; border: 2px solid var(--wa); border-radius: var(--r); padding: 24px; }
.sent h3 { color: var(--deep); }
.contact { background: var(--ocean); color: #fff; border-radius: var(--r); padding: 26px; }
.contact .h3 { color: #fff; font-size: 1.3rem; }
.cl { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cl li { display: flex; gap: .7rem; align-items: center; }
.cl .ic { color: var(--sun); flex: none; }
.cl a { color: #fff; text-decoration: none; font-weight: 500; }
.cl a:hover { text-decoration: underline; }
.soc { display: flex; gap: 10px; margin-top: 22px; }
.soc a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }

/* footer */
.foot { background: var(--deep); color: #C4D0EC; padding: 30px 0; font-size: .93rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot b { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #E6ECF8; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.small { font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* tablet / phone */
@media (max-width: 980px) {
  .ptabs { grid-template-columns: 1fr 1fr; }
  .ppanel { grid-template-columns: 1fr; gap: 26px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .svc li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .demo-in, .about-in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-btn { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .slides { height: auto; min-height: 640px; }
  .slide-img { height: 46%; object-position: 100% center; }
  .dot { width: 16px; }
  .hero-ctrl { gap: .45rem; }
  .hc-btn { width: 36px; height: 36px; }
  .hc-pause .p1, .hc-pause .p2 { top: 11px; } .hc-pause .p1 { left: 12px; } .hc-pause .p2 { left: 19px; }
  .slide::after { background: linear-gradient(180deg, rgba(8,28,74,0) 0%, rgba(8,28,74,.25) 30%, rgba(8,28,74,.96) 47%, var(--deep) 100%); }
  .slide-copy { justify-content: flex-end; padding-bottom: 86px; }
  .slide-title { font-size: 1.85rem; max-width: none; }
  .ptabs { grid-template-columns: 1fr; gap: 8px; }
  .ptab small { display: none; }
  .ptab { align-items: center; }
  .mods { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .products, .services, .how, .quotes, .about, .demo { padding: 54px 0; }
  .form { padding: 18px; }
  .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-on { transition: none; }
  .slide.is-on .slide-title, .slide.is-on .slide-text, .slide.is-on .slide-cta { animation: none; }
}
.ppanel[hidden] { display: none; }

.foot-logo { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 5px 8px; display: block; }
@media (max-width: 640px) { .logo img { height: 48px; } }

/* language menu */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; padding: .55rem .7rem; border-radius: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); border: 1px solid var(--line); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--sky); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px -12px rgba(8,28,74,.35); }
.lang li a { display: block; padding: .5rem .7rem; border-radius: 6px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--sky); }
.lang li a[aria-current] { font-weight: 700; color: var(--ocean); background: var(--sky); }
@media (max-width: 820px) {
  .lang { margin: 6px 0 2px; }
  .lang summary { width: 100%; justify-content: flex-start; }
  .lang ul { position: static; box-shadow: none; margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}
/* Chinese: the system's Chinese fonts */
:lang(zh) body, html:lang(zh-Hans) { font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif; }
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3, html:lang(zh-Hans) .btn, html:lang(zh-Hans) .ptab b { font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif; letter-spacing: 0; }
html:lang(zh-Hans) .slide-title { max-width: 9em; font-size: clamp(1.8rem, 1.1rem + 2.3vw, 2.9rem); line-height: 1.3; }
html:lang(de) .slide-title { max-width: 18ch; hyphens: auto; }
