:root {
  color-scheme: light dark;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eaf0f1;
  --text: #172427;
  --muted: #586a6e;
  --line: #cbd7d9;
  --accent: #087f73;
  --accent-strong: #04665d;
  --accent-soft: #d8efec;
  --focus: #005fcc;
  --shadow: 0 22px 60px rgba(26, 70, 73, 0.12);
  --radius: 18px;
  --content: 1120px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101719;
    --surface: #172124;
    --surface-soft: #1e2b2e;
    --text: #edf4f4;
    --muted: #b2c1c3;
    --line: #34474b;
    --accent: #5fd0c2;
    --accent-strong: #8ae0d5;
    --accent-soft: #183d3a;
    --focus: #8bbcff;
    --shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button,
a.button {
  min-height: 44px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav {
  width: min(calc(100% - 32px), var(--content));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 730;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #071b19;
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.page {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.hero {
  min-height: min(760px, calc(100dvh - 69px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 8vw, 112px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  max-width: 68ch;
  margin-top: 0;
}

.lead {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #071b19;
  font-weight: 740;
  line-height: 1.2;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button:active,
.language-button:active {
  transform: translateY(1px);
}

.product-visual {
  justify-self: end;
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-icon {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin: 0 auto 26px;
  border-radius: 26%;
}

.product-visual p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 38px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
}

.trust-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trust-panel:first-child {
  background: var(--accent-soft);
}

.trust-panel p:last-child {
  margin-bottom: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  padding: 64px 0 100px;
}

.legal-aside {
  position: sticky;
  top: 24px;
}

.legal-aside nav {
  display: grid;
  gap: 8px;
}

.legal-aside a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

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

.legal-content > header {
  margin-bottom: 54px;
}

.legal-content h1 {
  max-width: 16ch;
  font-size: clamp(38px, 6vw, 62px);
}

.legal-content section {
  scroll-margin-top: 24px;
  margin-bottom: 48px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

.notice p:last-child {
  margin-bottom: 0;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.language-button {
  min-height: 40px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.language-button[aria-pressed="true"] {
  background: var(--accent);
  color: #071b19;
}

.js [data-language-panel][hidden] {
  display: none;
}

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav {
    min-height: 62px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero,
  .trust-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 44px;
    padding: 56px 0 72px;
  }

  .product-visual {
    justify-self: stretch;
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .legal-layout {
    padding-top: 42px;
  }

  .legal-aside {
    position: static;
  }

  .legal-aside nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
