@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #f6f6f1;
  --surface: #ffffff;
  --ink: #121410;
  --muted: #5a6052;
  --line: #e3e5da;
  --olive: #70873e;          /* brand green, from the logo */
  --olive-strong: #5e7432;   /* buttons: white text stays readable */
  --olive-ink: #556b2a;      /* green text on light backgrounds */
  --olive-soft: #e9eedd;
  --on-olive: #ffffff;
  --divall: #2f48d4;
  --radius: 24px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e100c;
    --surface: #171a13;
    --ink: #eef0e8;
    --muted: #a3a996;
    --line: #2a2e24;
    --olive: #8faa55;
    --olive-strong: #a3bf6a;
    --olive-ink: #b2cc7c;
    --olive-soft: #1f2617;
    --on-olive: #121410;
    --divall: #6f84ff;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 50; transform: translateY(-200%);
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--olive-soft); }
.nav .lang {
  color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  border: 1px solid var(--line); margin-left: 6px; padding: 6px 12px;
}
@media (max-width: 760px) {
  .nav .section-link { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive-strong); color: var(--on-olive); }
.btn-primary:hover { background: color-mix(in srgb, var(--olive-strong) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--olive); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 104px) clamp(56px, 9vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--olive); }
.lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sphere-wrap { position: relative; width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 1; }
.sphere-wrap canvas { width: 100%; height: 100%; color: var(--olive); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sphere-wrap { order: -1; justify-self: center; max-width: 280px; margin-bottom: -8px; }
}

/* Sections */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.15rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.card h3 { font-size: 1.45rem; margin-top: 20px; }
.card p { margin-top: 10px; color: var(--muted); }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--olive-soft); color: var(--olive-ink);
}
.icon svg { width: 26px; height: 26px; }

/* Products */
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-logo { width: 64px; height: 64px; border-radius: 18px; }
.product h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 6px; }
.product p { margin-top: 12px; font-size: 1.08rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-ink);
}
.product-divall { border-color: color-mix(in srgb, var(--divall) 35%, var(--line)); }
.product-divall::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--divall) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.product-divall .badge { background: color-mix(in srgb, var(--divall) 12%, var(--surface)); color: var(--divall); }
.link-arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--divall); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-soon { border-style: dashed; background: transparent; }
.product-soon .icon { width: 64px; height: 64px; border-radius: 18px; }
.product-soon .icon svg { width: 32px; height: 32px; }

/* Company */
.company { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; } }
.company .section-head { margin-bottom: 0; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.facts dt { color: var(--muted); font-size: 16px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Contact */
.section-contact { border-top: 0 !important; padding-top: 0; padding-bottom: clamp(32px, 5vw, 64px); }
.contact {
  background: var(--olive-soft); border-radius: 32px; text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact p { margin: 18px auto 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }
.contact .btn { margin-top: 32px; font-size: clamp(1rem, 2.4vw, 1.2rem); }

/* Footer */
.site-footer { padding-block: 40px 56px; color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .mark { display: inline-flex; align-items: center; gap: 12px; }
.site-footer .mark img { width: 28px; height: 28px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Text pages (privacy, 404) */
.page { padding-block: clamp(48px, 8vw, 96px); }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.prose .updated { margin-top: 12px; color: var(--muted); font-size: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; }
.prose p { margin-top: 14px; color: var(--muted); }
.prose a { color: var(--olive-ink); text-underline-offset: 3px; }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.page-404 h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-404 p { margin-top: 16px; color: var(--muted); }
.page-404 .actions { justify-content: center; }
