/* HuoVision — v02 · material-tonal
   Hierarchy from tone and radius only. Not one shadow, not one border. */

:root {
  --base: #FFFFFF;
  --surface: #F5F6F8;
  --tint: #EEF1F6;
  --ink: #1C1B1F;
  --ink-2: #5A5F6A;
  --primary: #0B57D0;
  --primary-hover: #0C52C2;   /* primary + 8% ink state layer */
  --tonal-hover: #DDE0E5;     /* tint + 8% ink state layer */
  --chip: #E2E9F5;            /* primary 8% over surface */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font: 400 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---------- Navigation · 56px, pill on the right, pill hover on items ---------- */

.nav {
  height: 56px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-right: 20px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary);
  display: inline-block;
}

.nav-list {
  display: none;
  list-style: none;
  gap: 2px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav-list a:hover { background: var(--tint); }

.nav-list svg { opacity: 0.65; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-right .link-plain {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
}

.nav-right .link-plain:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pill-console {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.pill-console:hover { background: var(--tonal-hover); }

/* ---------- Hero · centred, generous air, two pills ---------- */

.hero {
  padding: 108px 0 116px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero h1 {
  font-size: clamp(40px, 9.5vw, 56px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 780px;
  margin: 22px auto 20px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

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

.btn-tonal { background: var(--tint); color: var(--primary); }
.btn-tonal:hover { background: var(--tonal-hover); transform: translateY(-1px); }
.btn-tonal:active { transform: translateY(0); }

/* Hero enters once on load */
.hero > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero > *:nth-child(2) { animation-delay: 0.06s; }
.hero > *:nth-child(3) { animation-delay: 0.12s; }
.hero > *:nth-child(4) { animation-delay: 0.18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Section scaffolding · tone bands, no rules ---------- */

.section { padding: 96px 0; }

.band { background: var(--surface); }

.section-title {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

/* ---------- Four business lines · 2×2 tinted cards, r28 ---------- */

.cards-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.b-card {
  background: var(--tint);
  border-radius: 28px;
  padding: 34px 34px 36px;
}

.icon-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--base);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-tag {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-body { color: var(--ink-2); }

/* ---------- Why on-device · tinted blocks on the surface band ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-block {
  background: var(--tint);
  border-radius: 24px;
  padding: 30px 30px 32px;
}

/* ---------- Products · surface cards r24, lift 2px ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.p-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px 28px 30px;
  transition: transform 0.18s ease;
}

.p-card:hover { transform: translateY(-2px); }

.p-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.p-card .card-title { margin-bottom: 8px; }

.p-wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 34px 34px;
}

.p-wide .card-body { max-width: 640px; }

.p-wide strong { font-weight: 500; color: var(--ink); }

/* ---------- Customers · plain blocks, 3px primary bar ---------- */

.cust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 28px;
}

.cust { position: relative; padding: 2px 0 0 22px; }

.cust::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.cust .card-title { margin-bottom: 8px; }

.cust-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- Resources · rows, round icon + title + body ---------- */

.wp-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 4px;
  text-decoration: none;
}

.wp-row .icon-round {
  background: var(--tint);
  margin: 0;
  flex: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.wp-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.wp-body { color: var(--ink-2); max-width: 780px; }

.wp-row:hover .icon-round { background: var(--primary); color: #fff; }
.wp-row:hover .wp-title { color: var(--primary); }

/* ---------- Closing CTA · inverse block r32 ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
}

.cta .section-title { color: #fff; margin-bottom: 18px; }

.cta-body {
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.78);
}

.btn-inverse { background: #fff; color: var(--ink); }
.btn-inverse:hover { background: #EBEBEC; transform: translateY(-1px); }
.btn-inverse:active { transform: translateY(0); }

.cta a:focus-visible { outline-color: #fff; }

/* ---------- Footer · surface band, legal row 40px above columns ---------- */

.footer {
  background: var(--surface);
  padding: 56px 0 44px;
}

.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 13px;
  color: var(--ink-2);
}

.legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-links .dot { color: var(--ink-2); }

.lang { position: relative; }

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang summary::-webkit-details-marker { display: none; }

.lang summary:hover,
.lang[open] summary {
  background: #E6E8EC;
  color: var(--ink);
}

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  background: var(--base);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.lang-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}

.lang-panel a:hover { background: var(--tint); }

.columns {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.brand-col {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}

.foot-nav {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 40px;
}

.foot-nav a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bottom {
  margin-top: 52px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .cust-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 820px) {
  .p-wide {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .p-wide-left { flex: none; }
}

@media (min-width: 860px) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .cust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .nav-list { display: flex; }
}

@media (max-width: 1279px) {
  .nav-optional { display: none; } /* Customers, Company collapse on medium screens */
}

@media (max-width: 759px) {
  .nav-right .link-plain { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 84px 0 92px; }
  .cta { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 20px; }
  .b-card { padding: 28px 26px 30px; }
  .section-title { margin-bottom: 36px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
  * { transition: none !important; }
}
