:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #121826;
  --muted: #566074;
  --line: #dfe3ea;
  --brand: #1f4fd8;
  --brand-ink: #ffffff;
  --brand-soft: #e6edfe;
  --green: #17803d;
  --green-soft: #e3f4e8;
  --violet: #6b3fd4;
  --violet-soft: #eee8fc;
  --blue: #0a6ea3;
  --blue-soft: #e1f1fa;
  --amber: #b45d09;
  --amber-soft: #fbeedd;
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --surface: #151b24;
    --surface-2: #1c2430;
    --text: #e8ecf2;
    --muted: #9aa5b8;
    --line: #2a3340;
    --brand: #7b9cff;
    --brand-ink: #0d1117;
    --brand-soft: #1b2645;
    --green: #5fd08a;
    --green-soft: #14301f;
    --violet: #b39bff;
    --violet-soft: #251d3f;
    --blue: #5cc1f0;
    --blue-soft: #10283a;
    --amber: #f2a85a;
    --amber-soft: #33240f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span small { font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 16ch; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 48px; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 64ch; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product {
  --accent: var(--brand); --accent-soft: var(--brand-soft);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.product.green { --accent: var(--green); --accent-soft: var(--green-soft); }
.product.violet { --accent: var(--violet); --accent-soft: var(--violet-soft); }
.product.blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.product.amber { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.product-top { display: flex; align-items: center; gap: 14px; }
.glyph { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.glyph svg { width: 28px; height: 28px; }
.product h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.product .tagline { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.product > p { margin: 0; }
.product ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.product li + li { margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.status { background: var(--accent-soft); color: var(--accent); }

/* About */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar h3 { margin: 0 0 8px; font-size: 18px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* Company data */
.company { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 16px; font-size: 18px; }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
address { font-style: normal; }
.contact-line { font-size: 20px; font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }

@media (max-width: 860px) {
  .products, .pillars, .company { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.lang) { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  .product, .card { padding: 22px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
  .brand span small { display: none; }
}
