/* ===== VinX Labs ===== */
:root {
  color-scheme: dark;
  --bg: #0c0f0e;
  --surface: #131816;
  --text: #ecf1ee;
  --text-soft: #b3beb8;
  --text-faint: #7d8a84;
  --border: #252d29;
  --accent: #10de8c;
  --max: 1120px;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body); font-size: 17px; background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
a:focus { outline: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.lang { font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* ===== Buttons ===== */
.btn { display: inline-block; font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-accent { background: var(--accent); color: #062417; }
.btn-accent:hover { background: #3be9a3; }
.btn-line { border-color: var(--border); color: var(--text); }
.btn-line:hover { border-color: var(--text-faint); }

/* ===== Hero ===== */
.hero { padding: 64px 0 52px; }
#products { border-top: 0; padding-top: 0; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 17ch; }
.hero-lead { color: var(--text-soft); font-size: 1.15rem; max-width: 52ch; margin-top: 22px; }

/* ===== Sections ===== */
.section { padding: 84px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: 1.6rem; margin-bottom: 30px; }
.product { display: grid; grid-template-columns: 2fr 3fr; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .15s; }
.product:hover { border-color: var(--text-faint); }
.product-info { padding: 40px 36px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.product-logo { width: 72px; height: 72px; margin-bottom: 22px; }
.product h3 { font-size: 1.5rem; }
.product p { color: var(--text-soft); margin-top: 8px; }
.product-meta { font-size: 14px; color: var(--text-faint) !important; }
.product-link { margin-top: 26px; font-weight: 600; color: var(--accent); }
.product:hover .product-link { text-decoration: underline; }
.product-thumb { padding: 36px 0 0 0; overflow: hidden; }
.product-thumb img { border-radius: 8px 0 0 0; border: 1px solid var(--border); border-right: 0; border-bottom: 0; height: 100%; object-fit: cover; object-position: left top; }
.more { color: var(--text-faint); margin-top: 22px; font-size: 15.5px; }
.about > * { max-width: 720px; }
.about a { white-space: nowrap; }
.about p { color: var(--text-soft); margin-bottom: 14px; }
.about a { color: var(--accent); }
.about a:hover { text-decoration: underline; }

/* ===== Text pages (legal) ===== */
.prose { max-width: 760px; padding: 64px 24px 90px; }
.prose h1 { font-size: 2.2rem; margin-bottom: 10px; }
.prose h2 { font-size: 1.3rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--text-soft); margin-bottom: 10px; }
.prose a { color: var(--accent); }
.todo { background: rgba(255, 196, 0, .14); color: #ffd666; padding: 0 5px; border-radius: 4px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--text-faint); }
.footer-inner { display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  .hero { padding-top: 40px; }
    .section { padding: 60px 0; }
  .product { grid-template-columns: 1fr; }
  .product-info { padding: 26px; }
  .product-thumb { padding: 0 0 0 26px; max-height: 220px; }
}
