:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #15201c;
  --muted: #5a6762;
  --line: #e3e1da;
  --accent: #0d6b57;
  --accent-text: #ffffff;
  --accent-soft: #e6f1ed;
  --radius: 14px;
  --width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101614;
    --surface: #18201d;
    --text: #eef2f0;
    --muted: #9daaa5;
    --line: #2a3531;
    --accent: #4fc3a5;
    --accent-text: #0b1412;
    --accent-soft: #17302a;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

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

/* Skip link */

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang a,
.lang span {
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.lang a:hover {
  color: var(--text);
}

.lang [aria-current] {
  background: var(--accent);
  color: var(--accent-text);
}

/* Hero */

.hero {
  padding: 96px 0 88px;
}

.hero h1 {
  max-width: 17ch;
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero p {
  max-width: 56ch;
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

/* Sections */

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  max-width: 24ch;
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 60ch;
  margin: 0 0 36px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .more {
  margin-top: 18px;
  font-weight: 600;
  text-decoration: none;
}

.card .more:hover {
  text-decoration: underline;
}

.apps .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 420px));
}

.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Contact */

.contact {
  text-align: center;
}

.contact h2,
.contact .lead {
  margin-left: auto;
  margin-right: auto;
}

.contact .lead {
  margin-bottom: 28px;
}

.email {
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  section {
    padding: 56px 0;
  }
}
