/* zclabs.vn: one stylesheet, no framework, system fonts (Vietnamese renders well, nothing is fetched from another site).
   Direction (03/12/2026): engineering design software. The top of every page is CAD model space: the logo's navy with
   a faint drawing grid, light text, the product view rising out of it onto a light sheet. The rest is a quiet drawing
   sheet: cool grey-white, hairlines, one blue. Figures and section numbers are mono, like the text on a drawing. Each
   product keeps a "layer colour" (--accent), shown only as a small swatch or rule. The footer is a drawing title block. */
:root {
  /* light sheet: a neutral ramp tinted toward ink */
  --page: #f5f7fa;
  --card: #ffffff;
  --raised: #eceff4;
  --line: rgb(15 23 42 / 9%);
  --line-2: rgb(15 23 42 / 16%);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  /* model space: the logo's navy */
  --navy: #07112b;
  --navy-2: #0c1a3a;
  --d-line: rgb(226 232 240 / 12%);
  --d-text: #eef2f8;
  --d-text-2: #a9b6ca;
  --d-text-3: #7d8ba3;
  --cyan: #22d3ee;
  /* the one accent on the sheet: the logo's blue */
  --blue: #0369a1;
  --blue-ink: #075985;
  --accent: var(--blue);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1184px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 150ms var(--ease); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- header: part of model space ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); border-bottom: 1px solid var(--d-line); }
.bar { display: flex; align-items: center; gap: 32px; height: 64px; }
/* The company mark: cube, a bar, "ZC" in the logo's colour and "Labs" in the text colour (brand identity file). */
.brand { --logo: var(--blue); display: inline-flex; align-items: center; gap: 8px; font: 700 22px/1 Arial, Helvetica, sans-serif; color: #1e293b; text-decoration: none; }
.top .brand, .hero .brand { --logo: var(--cyan); color: #e2e8f0; }
.logo { width: 26px; height: 30px; color: var(--logo); flex: none; }
.wm { border-left: 3px solid var(--logo); border-radius: 1px; padding-left: 8px; }
.wm .zc { color: var(--logo); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--d-text-2); text-decoration: none; padding: 20px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--d-text); }
.nav a[aria-current] { color: var(--d-text); border-bottom-color: var(--cyan); }
.lang { font: 500 12px/1 var(--mono); color: var(--d-text-2); text-decoration: none; border: 1px solid var(--d-line); border-radius: 6px; padding: 8px 10px; transition: color 150ms var(--ease), border-color 150ms var(--ease); }
.lang:hover { color: var(--d-text); border-color: rgb(226 232 240 / 30%); }

/* ---------- hero: model space, the product view rising out of it ---------- */
.hero { position: relative; isolation: isolate; padding: 96px 0 0; color: var(--d-text); --tail: 0px; }
.hero::before { content: ""; position: absolute; inset: 0 0 var(--tail) 0; z-index: -1; background-color: var(--navy);
  background-image:
    linear-gradient(rgb(148 163 184 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 10%) 1px, transparent 1px),
    linear-gradient(rgb(148 163 184 / 4.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 4.5%) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px; }
.hero:has(.shot.wide) { --tail: 240px; }
.hero:not(:has(.shot.wide)) { padding-bottom: 80px; }
/* Mono only for figures and short Latin marks: its Vietnamese diacritics render badly, so labels in words use the UI font. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1; color: var(--cyan); margin-bottom: 20px; }
.hero.product .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: pretty; } /* full page width, like the lead (Cuong, 04/12/2026) */
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 44em; margin-top: 20px; text-wrap: pretty; }
.lead.narrow { max-width: 40em; }
.hero .lead { max-width: none; color: var(--d-text-2); } /* the hero's lead runs the full width of the page (Cuong, 03/12/2026) */
.hero a:not(.btn) { color: var(--cyan); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* buttons: on the sheet the primary is navy; in model space it is off-white */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease); }
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.hero .btn { background: transparent; border-color: rgb(226 232 240 / 24%); color: var(--d-text); }
.hero .btn:hover { border-color: rgb(226 232 240 / 48%); }
.hero .btn.primary { background: var(--d-text); border-color: var(--d-text); color: var(--navy); }
.hero .btn.primary:hover { background: #fff; }

/* screenshots and clips */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%); }
.shot video { width: 100%; background: #1a1d23; }
.shot.wide { margin-top: 64px; border-color: rgb(148 163 184 / 22%); box-shadow: 0 24px 64px -24px rgb(2 6 23 / 55%); }

/* ---------- sections on the sheet ---------- */
.block { padding-top: 96px; padding-bottom: 96px; }
.hero + .block { padding-top: 96px; }
.block > h2, .band h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 16px; }
.idx { font: 500 13px/1 var(--mono); color: var(--text-3); padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 4px; transform: translateY(-6px); }
.band { background: var(--raised); border-block: 1px solid var(--line); }

/* product cards: each with its real screen, a layer swatch beside the name */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 150ms var(--ease); }
.card:hover { border-color: var(--line-2); }
.card .thumb { display: block; aspect-ratio: 16 / 10; background: var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.card h3::before, .flow h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.card h3 a { color: var(--text); text-decoration: none; }
.card .tag { font-weight: 500; color: var(--text); font-size: 16px; }
.card p { color: var(--text-2); font-size: 15px; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); }
.more:hover { color: var(--blue-ink); }

/* the flow: three stations on one line, like a process drawn on a sheet */
.flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1px dashed var(--line-2); }
.flow li { position: relative; padding: 0 32px 0 0; }
.flow .n { position: relative; display: inline-block; font: 500 12px/1 var(--mono); color: var(--text-3); background: var(--raised); padding: 0 8px 0 0; }
.flow h3 { font-size: 19px; margin: 20px 0 8px; display: flex; align-items: center; gap: 10px; }
.flow h3 a { color: var(--text); text-decoration: none; }
.flow p { color: var(--text-2); font-size: 15px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: 40px; }
.grid2 > div { border-top: 1px solid var(--line-2); padding-top: 20px; }
.grid2 h3 { font-size: 18px; margin-bottom: 8px; }
.grid2 p { color: var(--text-2); font-size: 16px; }
.features { margin-top: 0; }
.features h3 { display: flex; align-items: center; gap: 10px; }
.features h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
/* notes read like the notes on a drawing */
.notes { margin: 48px 0 0; padding: 20px 24px; list-style: none; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 15px; counter-reset: note; }
.notes li { counter-increment: note; display: grid; grid-template-columns: 28px 1fr; align-items: baseline; }
.notes li::before { content: counter(note) "."; font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text-3); }
.notes li + li { margin-top: 8px; }
.shots { display: grid; gap: 32px; padding-top: 0; }
.strip { padding-bottom: 96px; }
.strip .actions { margin: 0; }
.prose p { max-width: 42em; font-size: 18px; color: var(--text-2); }
.prose h2 + p { margin-top: 32px; }
.prose p + p { margin-top: 20px; }
/* company page: about on the left, contact on the right */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.about h2 { font-size: clamp(24px, 2.6vw, 30px); display: flex; align-items: baseline; gap: 16px; }
.about .facts { max-width: none; }
#contact { scroll-margin-top: 96px; }

/* company facts: a table with hairlines and mono keys, like a title block */
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 32px 0 0; max-width: 48em; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { font-size: 14px; line-height: 1.75; color: var(--text-3); border-right: 1px solid var(--line); }
.facts dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; margin-left: 16px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; vertical-align: 1px; transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.chip:hover { border-color: var(--blue); color: var(--blue-ink); }
/* A phone number calls on a phone; on a computer a tel: link only makes the browser ask which app to open, so there
   it is plain text. */
@media (hover: hover) and (pointer: fine) {
  a[href^="tel:"] { pointer-events: none; color: inherit; text-decoration: none; }
}

/* ---------- footer: brand and links, then one legal line ---------- */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); font-size: 14px; }
.tb { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px 32px; }
.tb > div { min-width: 0; }
.tb .k { display: block; font-size: 13px; line-height: 1.4; color: var(--text-3); margin-bottom: 8px; }
.tb .brand-cell p { margin-top: 8px; color: var(--text-2); max-width: 24em; }
.tb a:not(.brand) { display: block; color: var(--text-2); text-decoration: none; padding: 2px 0; }
.tb a:not(.brand):hover { color: var(--blue-ink); }
.foot .fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 56px; }
  .flow { grid-template-columns: 1fr; gap: 32px; }
  .flow::before { display: none; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb .brand-cell { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .bar { gap: 4px 16px; height: auto; padding-top: 12px; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
  .nav a { padding: 12px 0; }
  .hero { padding-top: 56px; }
  .hero:has(.shot.wide) { --tail: 96px; }
  .hero:not(:has(.shot.wide)) { padding-bottom: 56px; }
  .lead { font-size: 17px; }
  .shot.wide { margin-top: 40px; }
  .block, .hero + .block { padding-top: 64px; padding-bottom: 64px; }
  .strip { padding-bottom: 64px; }
  .grid2 { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-right: 0; padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 4px; }
  .tb { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
