/* HuoVision — v07 · split-diagram
   Palette: #FFFFFF / ink #14171C / secondary #5A616B / line #E5E7EB / accent #0F62FE / tint #EDF2FF
   Type: h1 54/600 · section 28/600 · body 16/400 · lh 1.65. Radius 10 on nodes and buttons. Container 1280. */

:root {
  --bg: #FFFFFF;
  --ink: #14171C;
  --sub: #5A616B;
  --line: #E5E7EB;
  --accent: #0F62FE;
  --tint: #EDF2FF;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --r: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

a { color: inherit; text-decoration: none; }

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

svg { display: block; }

section { padding: 104px 0; }
section:first-of-type { padding-top: 0; } /* hero handles its own height */

h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
}

/* transparent over the hero, white with a rule after 80px of scroll — CSS only */
@supports (animation-timeline: scroll()) {
  @keyframes head-solid {
    to { background: #FFFFFF; border-bottom-color: var(--line); }
  }
  .site-head {
    animation: head-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 80px;
  }
}

.head-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1.5px;
  background: #FFFFFF;
}

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--sub);
  padding: 8px 9px;
  border-radius: 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 9px calc(100% - 5px);
  background-size: 0% 1.5px;
  transition: color .18s ease, background-size .18s ease;
}
.nav-link:hover { color: var(--ink); background-size: calc(100% - 18px) 1.5px; }

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-right a {
  font-size: 14px;
  color: var(--sub);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 0% 1.5px;
  transition: color .18s ease, background-size .18s ease;
}
.nav-right a:hover { color: var(--ink); background-size: 100% 1.5px; }

@media (max-width: 1180px) { .nav-opt { display: none; } }
@media (max-width: 920px)  { .site-nav { display: none; } }

/* ---------- hero ---------- */

.hero { padding: 0; }

.hero-grid {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-top: 48px;
  padding-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sub);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
  max-width: 13em;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--sub);
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r);
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(20, 23, 28, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: #0B54E0; }

.btn-ghost { background: #FFFFFF; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: rgba(229, 231, 235, .32); }

/* hero diagram */
.hero-fig { width: 100%; }
.hero-fig svg { width: 100%; height: auto; max-width: 560px; margin: 0 auto; }

.pkt { animation: pkt 4.6s linear infinite; }
@keyframes pkt {
  0%   { transform: translateX(0);    opacity: 0; }
  6%   { opacity: 1; }
  46%  { transform: translateX(96px); opacity: 1; }
  54%  { transform: translateX(96px); opacity: 0; }
  100% { transform: translateX(96px); opacity: 0; }
}

@media (max-width: 980px) {
  .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
  }
  h1 { max-width: none; }
  .hero-fig { margin-top: 24px; }
}

/* ---------- section head ---------- */

.sec-head { margin-bottom: 56px; }

/* ---------- business lines (2 x 2, 1px top rule) ---------- */

.lines-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 56px;
}

.line-card { border-top: 1px solid var(--line); padding-top: 26px; }

.line-card .glyph { color: var(--ink); margin-bottom: 18px; }

.line-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.line-card .tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--sub);
  margin-top: 4px;
}

.line-card p.body { margin-top: 12px; color: var(--sub); max-width: 52ch; }

@media (max-width: 860px) {
  .lines-grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
}

/* ---------- why on-device (diagram rows) ---------- */

.why-rows { display: grid; row-gap: 60px; }

.why-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.why-fig { width: 100%; max-width: 220px; }
.why-fig svg { width: 100%; height: auto; }

.why-row h3 { font-size: 17px; font-weight: 600; line-height: 1.4; margin-top: 12px; }

.why-row p.body { color: var(--sub); max-width: 62ch; }

@media (max-width: 900px) {
  .why-row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .why-fig { max-width: 220px; }
}

/* ---------- products (rows, 140px label column) ---------- */

.prod-rows { border-bottom: 1px solid var(--line); }

.prod-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 56px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.prod-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sub);
  padding-top: 5px;
}

.prod-row h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.prod-row p { margin-top: 6px; color: var(--sub); max-width: 78ch; }

@media (max-width: 640px) {
  .prod-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .prod-label { padding-top: 0; }
}

/* ---------- customers (2 x 2, thin left rule) ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 52px;
}

.case {
  border-left: 2px solid var(--ink);
  padding-left: 22px;
}

.case h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.case .lead { font-size: 16px; font-weight: 600; color: var(--sub); margin-top: 4px; }
.case p.body { margin-top: 12px; color: var(--sub); }

@media (max-width: 820px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
}

/* ---------- resources (rows + svg arrow) ---------- */

.wp-rows { border-bottom: 1px solid var(--line); }

.wp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 28px;
  column-gap: clamp(24px, 3vw, 56px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.wp h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  transition: color .16s ease;
}

.wp p { font-size: 16px; color: var(--sub); }

.wp .arrow {
  color: var(--ink);
  align-self: center;
  transition: transform .18s ease, color .18s ease;
}

.wp:hover h3 { color: var(--accent); }
.wp:hover .arrow { color: var(--accent); transform: translateX(4px); }

@media (max-width: 720px) {
  .wp {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas: "title arrow" "desc arrow";
    row-gap: 6px;
  }
  .wp h3 { grid-area: title; }
  .wp p { grid-area: desc; min-width: 0; }
  .wp .arrow { grid-area: arrow; }
}

/* ---------- closing CTA ---------- */

.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.cta-box h2 { margin-bottom: 14px; }
.cta-box p { color: var(--sub); max-width: 62ch; }

@media (max-width: 760px) {
  .cta-box { grid-template-columns: minmax(0, 1fr); }
  .cta-box .btn { justify-self: start; margin-top: 28px; }
}

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

.site-foot { border-top: 1px solid var(--line); padding-top: 44px; }

/* legal row sits 40px above the column block */
.foot-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

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

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--sub);
  padding: 4px 2px;
  border-radius: 4px;
  transition: color .16s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--ink); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(20, 23, 28, .08);
  padding: 8px 0;
  z-index: 40;
}
.lang-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--ink);
  transition: background-color .14s ease;
}
.lang-menu a:hover { background: rgba(229, 231, 235, .4); }

.foot-cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a {
  font-size: 16px;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 0% 1.5px;
  transition: background-size .18s ease;
}
.foot-links a:hover { background-size: 100% 1.5px; }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 44px;
  font-size: 13px;
  color: var(--sub);
}

@media (max-width: 640px) {
  .foot-cols { align-items: flex-start; flex-direction: column; }
}

/* ---------- motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .pkt { animation: none; opacity: 0; }
}
