:root {
  --bg0: #08090d;
  --bg1: #101218;
  --text: #eef0f5;
  --text-soft: #b8becd;
  --muted: #7d8499;
  --accent: #ff9f1c;
  --accent-hover: #ffb84d;
  --accent-muted: rgba(255, 159, 28, 0.14);
  --accent-glow: rgba(255, 159, 28, 0.22);
  --ios-tint: rgba(100, 180, 255, 0.12);
  --android-tint: rgba(100, 220, 140, 0.1);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --content-max: 52rem;
  --doc-max: 44rem;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  width: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-muted);
  color: var(--text);
}

/* Ambient background */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse 50% 45% at 110% 30%, rgba(255, 90, 120, 0.06), transparent 45%),
    radial-gradient(ellipse 40% 40% at -10% 70%, rgba(80, 140, 255, 0.06), transparent 45%),
    linear-gradient(165deg, var(--bg1) 0%, var(--bg0) 42%, #06070a 100%);
  pointer-events: none;
  z-index: -1;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Top bar */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.92) 0%, rgba(8, 9, 13, 0.78) 100%);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.site-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-logo:hover {
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.site-logo[aria-current="page"] {
  color: var(--accent);
}

.site-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.site-topbar-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-topbar-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.site-topbar-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Main landing */
.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  min-height: calc(100vh - 3.25rem);
}

.brand {
  text-align: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f0f2f5 100%);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 48px rgba(255, 159, 28, 0.12);
  animation: logoLift 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logo-frame {
    animation: none;
  }
}

@keyframes logoLift {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 48px rgba(255, 159, 28, 0.12);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 56px rgba(255, 159, 28, 0.2);
  }
}

.logo-img {
  width: 6rem;
  height: 6rem;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand h1 {
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.65rem;
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 35%, var(--text-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 159, 28, 0.12));
}

.about {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Download cards */
.actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.btn {
  flex: 1 1 14rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  min-height: 10.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(165deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.85;
  transition: opacity 0.22s ease;
}

.btn-ios::before {
  background: linear-gradient(90deg, #5ac8fa, #64b5ff);
}

.btn-android::before {
  background: linear-gradient(90deg, #6ee7a8, #3ddc84);
}

.btn:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-ios:hover {
  background: linear-gradient(165deg, var(--ios-tint), rgba(255, 255, 255, 0.03));
}

.btn-android:hover {
  background: linear-gradient(165deg, var(--android-tint), rgba(255, 255, 255, 0.03));
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn-label {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.btn-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-icon-wrap {
  position: relative;
  z-index: 1;
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: currentColor;
  opacity: 1;
}

.ios-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.android-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.523 15.3414c-.5511 0-.9993-.4486-.9993-.9997s.4482-.9993.9993-.9993c.5511 0 .9993.4482.9993.9993.0005.5511-.4482.9997-.9993.9997m-11.046 0c-.5511 0-.9993-.4486-.9993-.9997s.4482-.9993.9993-.9993c.551 0 .9993.4482.9993.9993 0 .5511-.4483.9997-.9993.9997m11.4045-6.02l1.9973-3.4592a.416.416 0 00-.1521-.5676.416.416 0 00-.5676.1521l-2.0223 3.503C15.5902 8.2439 13.8533 7.5758 12 7.5758s-3.5902.6681-5.1349 1.7957L4.8429 5.8685a.4161.4161 0 00-.5676-.1521.4157.4157 0 00-.1521.5676l1.9973 3.4592C2.6889 11.186.8535 13.1854.8535 15.5714c0 .1574.0103.3106.0306.4578h22.2322c.0203-.1472.0306-.3004.0306-.4578 0-2.386-1.8354-4.3855-4.2214-5.25'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fineprint {
  margin: 2.25rem auto 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  width: 100%;
  max-width: 38rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Site footer */
.site-footer {
  margin: 2.5rem auto 0;
  width: min(100%, 38rem);
  max-width: 38rem;
  padding: 1.65rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  text-align: center;
}

.site-footer-heading {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.site-footer-links li {
  margin: 0;
}

.site-footer-links a {
  display: inline-block;
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-footer-links a:hover {
  color: var(--accent-hover);
  background: var(--accent-muted);
  border-color: rgba(255, 159, 28, 0.22);
}

.site-footer-contact {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer-contact a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .site-topbar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .site-logo {
    text-align: center;
  }

  .site-topbar-nav {
    justify-content: center;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 10rem;
  }
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.92) 0%, rgba(8, 9, 13, 0.78) 100%);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.legal-home {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-home:hover {
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.legal-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.legal-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.legal-nav a[aria-current="page"] {
  color: var(--accent-hover);
  background: var(--accent-muted);
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.25);
}

.legal-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.legal-doc {
  position: relative;
  background: linear-gradient(165deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem 2.35rem;
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.legal-doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

@media (min-width: 640px) {
  .legal-doc {
    padding: 2.35rem 2.1rem 2.85rem;
  }

  .legal-doc::before {
    left: 2.25rem;
    right: 2.25rem;
  }
}

.legal-doc h1 {
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  margin: 0.35rem 0 1rem;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 20%, var(--text-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px rgba(255, 159, 28, 0.1));
}

.legal-doc .meta-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.75rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.legal-doc h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.022em;
  margin: 2.35rem 0 0.7rem;
  padding-left: 0.95rem;
  border-left: 3px solid var(--accent);
  line-height: 1.35;
}

.legal-doc h2:first-of-type {
  margin-top: 0.75rem;
}

.legal-doc p {
  margin: 0 0 1.05rem;
  color: rgba(238, 240, 245, 0.92);
  font-size: 0.98rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
  color: rgba(238, 240, 245, 0.92);
  font-size: 0.98rem;
}

.legal-doc li {
  margin-bottom: 0.55rem;
}

.legal-doc li::marker {
  color: var(--muted);
}

.legal-doc a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 184, 77, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-doc a:hover {
  color: #ffd089;
  border-bottom-color: rgba(255, 208, 137, 0.55);
}

.legal-doc strong {
  font-weight: 600;
  color: var(--text);
}

/* Bottom navigation card */
.legal-footer {
  margin-top: 2.25rem;
  padding: 1.5rem 1.35rem 1.65rem;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  text-align: center;
}

.legal-footer-label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.legal-footer-links li {
  margin: 0;
}

.legal-footer-links a {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 0.92rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-footer-links a:hover {
  color: var(--accent-hover);
  background: var(--accent-muted);
  border-color: rgba(255, 159, 28, 0.22);
}

.legal-footer-links a[aria-current="page"] {
  color: var(--accent-hover);
  background: var(--accent-muted);
  border-color: rgba(255, 159, 28, 0.28);
}

.legal-footer-mail {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.legal-footer-mail a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: none;
  transition: color 0.2s ease;
}

.legal-footer-mail a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .legal-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .legal-nav {
    justify-content: center;
  }

  .legal-doc h2 {
    padding-left: 0.75rem;
    font-size: 1rem;
  }
}
