/* HuoVision v06 · bento-dense
   12-column bento grid · 1320px container · 16px gaps · 28px tile padding
   radius 16px · 1px borders · no shadows
   page #F4F5F7 · tile #FFFFFF · border #E3E5E9 · text #15181D · secondary #5C636E · accent #2563EB */

:root {
  --page: #F4F5F7;
  --tile: #FFFFFF;
  --line: #E3E5E9;
  --ink: #15181D;
  --sub: #5C636E;
  --accent: #2563EB;
  --radius: 16px;
  --gap: 16px;
  --pad: 28px;
  --wrap: 1320px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 12px; }

/* ---------- top navigation · 68px · brand in bordered box ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { display: block; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--sub);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-main a:hover { color: var(--ink); background: var(--tile); }
.nav-main a svg { flex: none; color: var(--sub); }
.nav-main a:hover svg { color: var(--accent); }

.nav-aside {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-aside a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--sub);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-aside a:hover { color: var(--ink); }

/* ---------- bento grid ---------- */

main { display: block; }

section { margin-top: 64px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.sp3 { grid-column: span 3; }
.sp4 { grid-column: span 4; }
.sp5 { grid-column: span 5; }
.sp7 { grid-column: span 7; }
.sp8 { grid-column: span 8; }
.sp12 { grid-column: span 12; }

.tile {
  grid-column: span 12;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 20px;
}
h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.kick {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
  line-height: 1.5;
}

.t-body {
  margin-top: 12px;
  font-size: 16px;
  color: var(--sub);
}

/* ---------- hero · 8 columns + stat tile ---------- */

.hero-sec { margin-top: 40px; }

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sub);
  margin-bottom: 16px;
}
.hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 640px;
}

.hero .sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--sub);
  max-width: 560px;
}

.btn-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-ghost {
  background: var(--tile);
  color: var(--ink);
  border: 1px solid var(--sub);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-n {
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat-t {
  margin-top: 12px;
  font-size: 16px;
  color: var(--sub);
  max-width: 220px;
  line-height: 1.5;
}

/* ---------- why on-device · three square-ish tiles ---------- */

.why .tile { display: flex; flex-direction: column; }

.why-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.why-icon svg { display: block; }

.why h3 { font-size: 22px; padding-right: 8px; }

/* ---------- products · one wide tile, 2x2 inner grid ---------- */

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.pcell {
  background: var(--tile);
  padding: 24px 28px;
}

.plabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
}

.pcell h3 { margin-top: 8px; }

.pline {
  margin-top: 8px;
  font-size: 16px;
  color: var(--sub);
}

/* ---------- resources · one tall tile, three rows ---------- */

.rrow {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr 18px;
  gap: 8px 28px;
  align-items: start;
  padding: 24px 4px;
  text-decoration: none;
}
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow:first-child { padding-top: 4px; }
.rrow:last-child { padding-bottom: 4px; }

.rrow h3 { transition: color 0.15s ease; }
.rrow .t-body { margin-top: 6px; }

.rarrow {
  grid-column: 3;
  align-self: center;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.rrow:hover h3 { color: var(--accent); }
.rrow:hover .rarrow { transform: translateX(3px); }

/* ---------- closing CTA · dark tile, 12 columns ---------- */

.cta {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 0; }
.cta-copy { max-width: 760px; }
.cta-copy p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--line);
  line-height: 1.6;
}

/* ---------- footer ---------- */

footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 28px;
}

.legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13.5px;
  color: var(--sub);
}
.legal-links a {
  font-size: 13.5px;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s ease;
}
.legal-links a:hover { color: var(--ink); }
.legal-links .dot { color: var(--line); }

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--sub);
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 150px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
}
.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--page); color: var(--ink); }

.foot-cols {
  margin-top: 40px; /* legal row sits 40px above the column block */
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 32px;
  align-items: start;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 12px 24px;
  justify-content: start;
}
.foot-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover { color: var(--ink); }

.bottom {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13.5px;
  color: var(--sub);
}

/* ---------- entrance ---------- */

[data-enter] {
  animation: enter 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

/* Customers and Company may collapse on medium screens */
@media (max-width: 1240px) {
  .may-hide { display: none; }
}

@media (max-width: 1024px) {
  .sp7, .sp5 { grid-column: span 6; }
  .sp3 { grid-column: span 6; }
}

@media (max-width: 980px) {
  .top { position: static; }
  .nav-row {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
    row-gap: 6px;
  }
  .nav-main {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 2px 0;
  }
  .nav-aside { margin-left: auto; gap: 14px; }
  .sp8, .sp4 { grid-column: span 12; }
  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    justify-content: flex-start;
  }
  .stat-t { margin-top: 0; max-width: none; }
  .why .tile:nth-child(-n+2) { grid-column: span 6; }
  .why .tile:last-child { grid-column: span 12; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pgrid { grid-template-columns: 1fr; }
  .rrow {
    grid-template-columns: 1fr 18px;
  }
  .rrow .t-body { grid-column: 1 / -1; }
  .rarrow { grid-column: 2; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { margin-top: 48px; }
  .sp7, .sp5, .sp3 { grid-column: span 12; }
  .why .tile:nth-child(-n+2) { grid-column: span 12; }
  .nav-main a { padding: 6px 8px; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta { flex-direction: column; align-items: flex-start; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, auto)); }
  .legal { justify-content: flex-start; }
  .lang { margin-left: auto; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  [data-enter] { animation: none; }
  * { transition: none !important; }
}
