:root {
  --bg: #fbfbfd;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --brand-ink: #333b46;
  --brand-accent: #e4572e;
  --accent: #c9431c;
  --accent-text: #ffffff;
  --hairline: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --brand-ink: #e6eaf0;
    --accent: #ff7a52;
    --accent-text: #000000;
    --hairline: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(0, 0, 0, 0.72);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { display: flex; }
.logo { height: 20px; width: auto; }
.logo-ink { stroke: var(--brand-ink); }
.logo-accent { stroke: var(--brand-accent); }

.nav-end { display: flex; align-items: center; gap: clamp(16px, 4vw, 32px); }

.nav-links { display: flex; gap: clamp(16px, 4vw, 32px); }
.nav-links a { color: var(--text); font-size: 13px; opacity: 0.8; white-space: nowrap; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

.language-menu { position: relative; }
.language-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.8;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 3px 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.language-menu summary:hover, .language-menu[open] summary { opacity: 1; }
.language-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.language-menu nav a { color: var(--text); font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.language-menu nav a:hover { background: var(--surface); text-decoration: none; }
.language-menu nav a[aria-current] { font-weight: 600; }

.hero {
  text-align: center;
  padding: clamp(96px, 18vh, 180px) var(--gutter) clamp(96px, 16vh, 160px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1.04; letter-spacing: -0.045em; }

.eyebrow { color: var(--muted); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.hero .eyebrow { font-size: 21px; margin-bottom: 12px; }

.lede {
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  max-width: 34ch;
  margin: 24px auto 0;
}

.actions { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 36px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }

.link { font-size: 17px; }

.band { background: var(--surface); padding: clamp(80px, 12vw, 128px) 0; }

.section-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 40px; text-align: center; }

.product {
  background: var(--bg);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  text-align: center;
}
.product h3 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; margin-bottom: 16px; }
.product-copy p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 auto 24px; }

.approach { padding-top: clamp(80px, 12vw, 128px); padding-bottom: clamp(80px, 12vw, 128px); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.grid h3 { font-size: 24px; margin-bottom: 8px; }
.grid p { color: var(--muted); }

.contact { text-align: center; }
.contact h2 { font-size: clamp(40px, 6vw, 64px); }
.contact .lede { margin-bottom: 36px; }

.footer { border-top: 1px solid var(--hairline); padding: 24px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 359px) {
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { animation: none; }
}

.languages { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.languages a { color: var(--muted); }
.languages a[aria-current] { color: var(--text); font-weight: 600; }

.prose { max-width: 720px; padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(64px, 10vw, 112px); }
.prose h1 { font-size: clamp(40px, 6vw, 56px); }
.prose .lede { margin: 16px 0 48px; max-width: none; }
.prose h2 { font-size: 24px; margin: 40px 0 8px; }
.prose p { color: var(--muted); }
.prose .updated { margin-top: 48px; font-size: 14px; }
