:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --accent: #0f766e;
  --accent-strong: #0d9488;
  --accent-soft: #ccfbf1;
  --wordmark: #111111;
  --wordmark-scale: #0d9488;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1c1a17;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #2e2b27;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #0f2e2b;
    --wordmark: #f5f5f4;
    --wordmark-scale: #2dd4bf;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* 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);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 44px; width: auto; display: block; }
.wordmark-re { fill: var(--wordmark); }
.wordmark-scale { fill: var(--wordmark-scale); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; margin: 0 0 20px; max-width: 18ch; letter-spacing: -0.01em; }
.hero p.lead { color: var(--muted); font-size: 1.2rem; max-width: 60ch; margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #1c1917; } }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; letter-spacing: -0.01em; }
section .intro { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.about { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--accent); }
.facts li { padding: 6px 0 6px 18px; }
.facts strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.contact address { font-style: normal; }
.contact p { margin: 0 0 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 72px; max-width: 760px; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal address { font-style: normal; }

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .contact { padding: 24px; }
}
