:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(17, 24, 39, 0.1);
  --accent: #ef4444;
  --accent-2: #f97316;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1300px 700px at 85% -10%, rgba(239, 68, 68, 0.18), transparent 55%),
    radial-gradient(1000px 700px at -10% 15%, rgba(249, 115, 22, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: max(0px, env(safe-area-inset-top));
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.locale-switch a {
  min-width: 34px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  padding: 6px 8px;
  border-radius: 999px;
}

.locale-switch a:hover {
  background: rgba(15, 23, 42, 0.06);
}

.locale-switch a.active-locale {
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #273246;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.18);
  color: #0f172a;
}

.nav a.active {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #991b1b;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  font-weight: 700;
  font-size: 13px;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 56px 0;
}

.hero-card {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 54ch;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  border: 1px solid #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.apple-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.apple-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.apple-label {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.apple-label small {
  opacity: 0.84;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.apple-label strong {
  font-size: 17px;
}

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

.doc {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}

.doc h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.doc h2 {
  font-size: 1.14rem;
  margin: 26px 0 8px;
}

.doc p,
.doc li {
  color: #1f2937;
}

.doc ul {
  margin: 8px 0 0;
}

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

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

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

.footer-locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(960px, calc(100% - 24px));
  }

  .topbar-inner {
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-card {
    padding: 28px 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    white-space: normal;
    font-size: 13px;
    padding: 10px 12px;
    width: 100%;
    text-align: center;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .logo {
    width: 108px;
    height: 108px;
  }

  .subtitle {
    font-size: 15px;
  }

  .apple-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
