:root {
  color-scheme: dark;
  --bg: #12180e;
  --elev: #1c2616;
  --text: #f4f6ea;
  --muted: #c5cdb0;
  --accent: #d2da97;
  --line: rgba(210, 218, 151, 0.22);
  --btn: #6e7d3e;
  --btn-text: #f7f8f0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6ec;
  --elev: #ffffff;
  --text: #2c3817;
  --muted: #4d5a32;
  --accent: #54642e;
  --line: rgba(44, 56, 23, 0.14);
  --btn: #54642e;
  --btn-text: #f7f6ec;
  --shadow: 0 18px 40px rgba(44, 56, 23, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(198, 209, 145, 0.18), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: Rubik, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; }

.brand img { height: 42px; width: auto; }

.logo-for-dark { display: none; }

:root[data-theme="dark"] .logo-for-light { display: none; }

:root[data-theme="dark"] .logo-for-dark { display: block; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locales { position: relative; }

.locales__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.locales__toggle::-webkit-details-marker { display: none; }

.locales__toggle::marker { content: ""; }

.locales__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.locales[open] .locales__toggle::after { transform: translateY(2px) rotate(225deg); }

.locales__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 196px;
  padding: 6px;
  background: var(--elev);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.locales[open] .locales__menu { display: grid; }

.locales__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.locales__menu a:hover,
.locales__menu a[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav-toggle,
.theme-toggle {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.nav-toggle { display: none; width: 40px; padding: 0; justify-content: center; }

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle__icon { position: relative; }

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -5px; }

.nav-toggle__icon::after { top: 5px; }

.site-header.is-open .nav-toggle__icon { background: transparent; }

.site-header.is-open .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }

.site-header.is-open .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.header-try__short { display: none; }

.theme-toggle { width: 40px; }

.theme-toggle::before { content: "☾"; }

:root[data-theme="dark"] .theme-toggle::before { content: "☀"; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 64px);
}

.accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.lead, .section-lead { color: var(--muted); font-size: 18px; }

.hero-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0c1008;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.band { padding: 28px 0 12px; }

.band h2, .cta h2, .page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.card h3 { margin: 0 0 8px; font-size: 20px; }

.card p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 700;
}

.faq { margin-top: 8px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p { color: var(--muted); margin: 8px 0 0; }

.cta-band { padding: 36px 0 72px; }

.cta {
  text-align: center;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 24px;
}

.cta p { color: var(--muted); }

.page { padding: 48px 0 72px; }

.prose { max-width: 74ch; }

.prose h2 { font-size: 26px; margin: 28px 0 8px; }

.prose li { margin: 6px 0; }

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

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.copyright, .app-version { margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.footer-nav a { color: var(--text); text-decoration: none; }

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

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .header-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 64px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand img { height: auto; max-height: 32px; max-width: 100%; }
  .header-actions { margin-left: auto; flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .locales__toggle { height: 36px; padding: 0 8px 0 10px; }
  .nav-toggle, .theme-toggle { width: 40px; height: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-try { padding: 8px 12px; }
  .header-try__full { display: none; }
  .header-try__short { display: inline; }
  .site-header.is-open { z-index: 30; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 24px));
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    background: var(--elev);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 18px 22px;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 600;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
  .site-nav a:hover,
  .site-nav a:active {
    background: color-mix(in srgb, var(--accent) 28%, transparent);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}

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