:root {
  color-scheme: light dark;
  --canvas: #f7f8fa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --ink: #17191d;
  --secondary: #626870;
  --line: rgba(29, 32, 37, 0.11);
  --red: #e52d42;
  --red-deep: #c91f35;
  --soft-red: #fff0f2;
  --green: #14845f;
  --shadow: 0 22px 70px rgba(28, 32, 39, 0.09);
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 4%, rgba(229, 45, 66, 0.08), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-deep); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[data-page-title] { display: none !important; }

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

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

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 5px 18px rgba(229, 45, 66, 0.18); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--secondary); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
}
.language-switcher.push-right { margin-left: auto; }

.language-switcher button {
  min-width: 38px;
  min-height: 32px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

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

main { min-height: calc(100vh - 150px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding: clamp(70px, 11vw, 130px) 0 80px;
}

.eyebrow { margin: 0 0 14px; color: var(--red-deep); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3.2rem, 9vw, 6.7rem); line-height: 0.93; letter-spacing: -0.065em; }
.legal-title { font-size: clamp(2.55rem, 7vw, 4.9rem); line-height: 0.98; }
h2 { margin: 0 0 16px; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.lead { max-width: 680px; margin: 26px 0 0; color: var(--secondary); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(28, 32, 39, 0.06);
}

.button.primary { border-color: var(--red); background: var(--red); color: white; }
.button:hover { transform: translateY(-1px); }
.app-store-placeholder { cursor: default; opacity: 0.58; box-shadow: none; }
.app-store-placeholder:hover { transform: none; }

.icon-stage {
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,240,242,.78));
  box-shadow: var(--shadow);
}
.icon-stage::after { content: ""; position: absolute; inset: auto 14% -11% 14%; height: 20%; border-radius: 50%; background: rgba(229,45,66,.16); filter: blur(28px); z-index: -1; }
.icon-stage img { width: min(100%, 340px); margin: auto; border-radius: 23%; }

.section { padding: 74px 0; }
.section.compact { padding: 44px 0; }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.section-heading p { color: var(--secondary); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(28, 32, 39, 0.05);
}
.card p:last-child { margin-bottom: 0; }
.card .symbol { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--soft-red); color: var(--red-deep); font-size: 1.1rem; font-weight: 800; }
.muted { color: var(--secondary); }
.status { color: var(--green); font-weight: 700; }

.legal-hero { padding: 70px 0 38px; }
.legal-meta { margin-top: 18px; color: var(--secondary); font-size: 0.92rem; }
.notice { margin: 30px 0; padding: 18px 20px; border: 1px solid rgba(229,45,66,.35); border-radius: 16px; background: var(--soft-red); }
.legal-body { padding-bottom: 76px; }
.legal-body section { padding: 27px 0; border-top: 1px solid var(--line); }
.legal-body section:first-child { border-top: 0; }
.legal-body ul { margin: 0.6em 0 1em; padding-left: 1.25em; }
.legal-body li { margin: 0.4em 0; }

.contact-card { display: grid; gap: 8px; }
.contact-value { font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.faq { display: grid; gap: 14px; }
details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 13px 0 0; color: var(--secondary); }

.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: inherit; }

@media (max-width: 780px) {
  .shell, .reading { width: min(100% - 28px, 780px); }
  .site-header { position: static; }
  .header-row { min-height: 66px; flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; overflow-x: auto; padding-top: 8px; border-top: 1px solid var(--line); }
  .language-switcher { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .icon-stage { width: min(72vw, 330px); margin: 0 auto; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .footer-row { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111317;
    --surface: rgba(27, 30, 35, 0.9);
    --surface-solid: #1b1e23;
    --ink: #f5f6f7;
    --secondary: #abb0b8;
    --line: rgba(255, 255, 255, 0.11);
    --soft-red: rgba(229, 45, 66, 0.14);
    --red-deep: #ff6677;
    --shadow: 0 22px 70px rgba(0,0,0,.28);
  }
  .icon-stage { background: linear-gradient(145deg, rgba(36,39,45,.98), rgba(73,25,34,.56)); }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .18s ease; }
  .icon-stage { animation: settle .7s cubic-bezier(.2,.75,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(10px) scale(.98); } }
}
