:root {
  color-scheme: light dark;
  --paper: #f1ede4;
  --paper-deep: #e5ded1;
  --ink: #25313a;
  --muted: #64717b;
  --blue: #48657a;
  --blue-deep: #314b5e;
  --gold: #b58a49;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(49, 75, 94, 0.18);
  --shadow: 0 20px 60px rgba(37, 49, 58, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(181, 138, 73, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(72, 101, 122, 0.16), transparent 34rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans SC",
    "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.18em;
}

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

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(37, 49, 58, 0.16);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.language-switcher button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: white;
  background: var(--blue-deep);
}

[data-language-content] {
  display: none;
}

[data-language-content].is-active {
  display: block;
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.app-icon {
  display: block;
  width: clamp(128px, 18vw, 180px);
  height: auto;
  margin: 0 auto 32px;
  border-radius: 22.5%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 6vw, 4.65rem);
}

.lead {
  max-width: 710px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.support-card,
.policy {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 14px 42px rgba(37, 49, 58, 0.07);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 290px;
  padding: 30px;
  border-radius: 26px;
}

.feature-card h2,
.support-card h2 {
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

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

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 9px 24px rgba(49, 75, 94, 0.22);
}

.support-card {
  margin: 20px 0 80px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 30px;
}

.support-card h2 {
  max-width: 720px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue-deep);
  color: white;
  background: var(--blue-deep);
}

.policy-main {
  width: min(900px, calc(100% - 40px));
  padding: 56px 0 72px;
}

.policy {
  padding: clamp(28px, 6vw, 64px);
  border-radius: 30px;
}

.policy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.policy h2 {
  margin: 2.1em 0 0.55em;
  font-size: 1.32rem;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy .meta {
  margin-top: 8px;
  color: var(--gold);
  font-weight: 650;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero {
    padding-top: 58px;
  }

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

  .feature-card {
    min-height: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #172027;
    --paper-deep: #202b33;
    --ink: #edf0ec;
    --muted: #b4bec4;
    --blue: #7695aa;
    --blue-deep: #9ab4c5;
    --gold: #d2ab69;
    --card: rgba(34, 46, 55, 0.78);
    --border: rgba(220, 229, 233, 0.13);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 15% 5%, rgba(181, 138, 73, 0.12), transparent 30rem),
      radial-gradient(circle at 90% 20%, rgba(118, 149, 170, 0.13), transparent 34rem),
      var(--paper);
  }

  .language-switcher,
  .button {
    background: rgba(255, 255, 255, 0.045);
  }

  .language-switcher button[aria-pressed="true"],
  .button.primary {
    color: #172027;
    background: #d7e2e7;
    border-color: #d7e2e7;
  }
}
