/* OevuAI Global — design system implementation (v2, 2026-10-07)
   Principles: SIMPLE BUT NOT EMPTY · white/near-black/neutral gray · one accent · no gradients/glass/orbs
   Typography: Geist · body 400 / nav & headings 500 / emphasis 600 only · font-synthesis none */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F6F4;
  --bg-inverse: #111112;
  --ink: #16161A;
  --ink-2: #4A4A50;
  --ink-3: #8A8A90;
  --line: #E4E4E1;
  --line-inverse: #2C2C30;
  --accent: #C75000;
  --accent-hover: #A84400;
  --accent-ink: #FFFFFF;
  --ok: #1F7A4D;
  --err: #B3261E;
  --code-bg: #16161A;
  --code-ink: #E8E8E4;
  --code-key: #E98A4A;
  --code-str: #9BB89B;
  --font-sans: "Geist", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1440px;
  --content: 1200px;
  --narrow: 720px;
  --radius: 12px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- type scale ---------- */
.display {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(27px, 2.9vw, 38px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }
p + p { margin-top: 1em; }

/* ---------- layout ---------- */
.container { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-inverse); color: var(--code-ink); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: #B9B9BE; }
.section-dark a { color: #F0A068; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.narrow { max-width: var(--narrow); }

.col-2-3 { grid-column: span 8; }
.col-1-3 { grid-column: span 4; }
.col-half { grid-column: span 6; }
.col-full { grid-column: span 12; }
@media (max-width: 900px) {
  .col-2-3, .col-1-3, .col-half { grid-column: span 12; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 24px; height: 24px; }
.main-nav { display: flex; gap: 26px; flex: 1; }
.main-nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.region-switch { font-size: 13px; color: var(--ink-3); }
.region-switch a { color: var(--ink-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle svg { margin: auto; }
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px var(--gutter); font-size: 17px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 8px;
  font-size: 15px; font-weight: 500; font-family: var(--font-sans);
  cursor: pointer; border: 1px solid transparent; transition: background 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-dark { background: transparent; color: #fff; border-color: var(--line-inverse); }
.btn-dark:hover { border-color: #6A6A70; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 96px); }
.hero .display { max-width: 900px; }
.hero .lead { margin-top: 24px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { margin-top: clamp(48px, 6vw, 88px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- media ---------- */
.media-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.media-frame img { width: 100%; }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- spec / data tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table caption { text-align: left; padding-bottom: 12px; }
.spec-table th {
  text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink);
}
.spec-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* ---------- code ---------- */
.codeblock {
  position: relative; background: var(--code-bg); color: var(--code-ink);
  border-radius: var(--radius); padding: 20px 22px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
}
.codeblock .c-key { color: var(--code-key); }
.codeblock .c-str { color: var(--code-str); }
.codeblock .c-dim { color: #7C7C82; }
.codeblock .copy-btn {
  position: absolute; top: 10px; right: 10px; background: #232326; color: #C9C9CE;
  border: 1px solid #333338; border-radius: 6px; font-size: 12px; padding: 4px 10px; cursor: pointer;
}
.codeblock .copy-btn:hover { color: #fff; }

/* ---------- list rows (latest / product rows) ---------- */
.row-list { list-style: none; }
.row-list li {
  display: flex; gap: 18px; align-items: baseline; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.row-list li:first-child { border-top: 1px solid var(--line); }
.row-list .row-date { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-3); flex: 0 0 96px; }
.row-list .row-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); flex: 0 0 88px; }
.row-list .row-title { flex: 1; color: var(--ink); font-weight: 400; }
.row-list a.row-title:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .row-list li { flex-wrap: wrap; gap: 6px 14px; }
  .row-list .row-date, .row-list .row-cat { flex: 0 0 auto; }
}

/* ---------- link rows ---------- */
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }

/* ---------- product cards (2x2 asymmetric, line-separated) ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 48px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-item .media-frame { margin-bottom: 18px; }
.product-item p { color: var(--ink-2); margin-top: 8px; }
.product-item .links { margin-top: 12px; display: flex; gap: 16px; font-size: 14.5px; font-weight: 500; }

/* ---------- solutions columns ---------- */
.cap-col h3 { margin: 4px 0 10px; }
.cap-col p { color: var(--ink-2); font-size: 15.5px; }
.cap-col .links { margin-top: 14px; font-size: 14.5px; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.cap-col ul { list-style: none; margin-top: 12px; }
.cap-col ul li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.cap-col ul li::before { content: "— "; color: var(--ink-3); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-inverse); color: #B9B9BE; padding: 72px 0 40px; font-size: 14.5px; }
.site-footer a { color: #C9C9CE; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { max-width: 300px; margin-top: 14px; color: #8F8F95; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-inverse);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8F8F95;
}

/* ---------- misc ---------- */
.kicker-figure { font-family: var(--font-mono); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: 32px; }
.stat-strip .stat small { display: block; font-size: 13px; color: var(--ink-3); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.note { font-size: 13.5px; color: var(--ink-3); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

body, .lead, p { font-synthesis: none; }
