:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --border: #e3e6eb;
  --text: #14161a;
  --muted: #586070;
  --accent: #ff5a1f;
  --accent-text: #ffffff;
  --gear: #1f2a44;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #171a1f;
    --border: #2a2f37;
    --text: #eef0f3;
    --muted: #a0a8b6;
    --accent: #ff6a33;
    --accent-text: #14161a;
    --gear: #c7d0e0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: inherit;
}

/* The logo: two meshing gears turning in step (12 and 8 teeth, so 12 s and 8 s a turn). */
.gears {
  display: block;
  overflow: visible;
}
.gear {
  transform-box: fill-box;
  transform-origin: center;
}
.gear-a {
  fill: var(--accent);
  animation: turn 12s linear infinite;
}
.gear-b {
  fill: var(--gear);
  animation: turn 8s linear infinite reverse;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gear {
    animation: none;
  }
}

.bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand .gears {
  width: 34px;
  height: 34px;
}
nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover {
  color: var(--text);
}
.language {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}

main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 64px;
}
section:last-child {
  border-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 88px 0 72px;
}
h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 36em;
}
.hero-gears {
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
section > p {
  max-width: 44em;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.cards p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}
.contact div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}
.contact dt {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.contact dd {
  margin: 4px 0 0;
  font-weight: 500;
}
.contact a {
  color: var(--accent);
}

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .bar {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .language {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
  .hero-gears {
    max-width: 200px;
    order: -1;
  }
  .cards,
  .contact {
    grid-template-columns: 1fr;
  }
}
