:root {
  color-scheme: light dark;
  --background: #08090d;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f8f8fb;
  --muted: #b9bbc5;
  --accent: #ff496c;
  --accent-soft: rgba(255, 73, 108, 0.14);
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 73, 108, 0.18), transparent 38rem),
    radial-gradient(circle at 105% 30%, rgba(93, 137, 255, 0.13), transparent 32rem),
    var(--background);
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 18px;
}

.brand {
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.language-link,
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 650;
}

.language-link:hover,
.button-link:hover {
  background: var(--surface-strong);
}

.hero {
  padding: 72px 0 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ff7d96;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 5rem);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 52px;
}

.card,
.document-section,
.notice {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card {
  display: block;
  min-height: 180px;
  padding: 24px;
  text-decoration: none;
}

.card:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.card p,
.document-section p,
.document-section li,
.notice p {
  color: var(--muted);
}

.card p:last-child,
.document-section p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.document-header {
  padding: 56px 0 24px;
}

.document-header h1 {
  font-size: clamp(2.3rem, 8vw, 4rem);
}

.meta {
  margin-top: 14px;
  color: var(--muted);
}

.document-section,
.notice {
  margin: 16px 0;
  padding: 24px;
}

.notice {
  border-color: rgba(255, 73, 108, 0.34);
  background: var(--accent-soft);
}

.document-section ul {
  margin: 10px 0 0;
  padding-left: 1.25rem;
}

.contact {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.site-footer {
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 14px;
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .document-section,
  .notice {
    border-radius: 20px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .language-link,
  .button-link {
    transition: background-color 160ms ease, transform 160ms ease;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .card,
  .document-section,
  .notice,
  .language-link,
  .button-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #18191f;
  }
}
