:root {
  --burgundy: #80091b;
  --burgundy-deep: #4a0810;
  --burgundy-mid: #6e0a18;
  --text: #1d3d47;
  --subtext: #666666;
  --bg: #fafafa;
  --border: #e0e0e0;
  --on-burgundy: #ffffff;
  --font: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--burgundy);
}

/* —— Site chrome —— */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  pointer-events: none;
}

.site-top > * {
  pointer-events: auto;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switch a:hover,
.lang-switch a.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-top--light .lang-switch a {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.7;
}

.site-top--light .lang-switch a:hover,
.site-top--light .lang-switch a.is-active {
  opacity: 1;
  border-color: var(--burgundy);
  background: #fff;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-top--light .menu-btn {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.menu-btn-bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 50;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  color: var(--text);
  z-index: 60;
  transform: translateX(104%);
  transition: transform 0.34s var(--ease);
  padding: 22px 22px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.nav-drawer-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--burgundy);
  margin: 0;
  font-size: 1.05rem;
}

.nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(128, 9, 27, 0.08);
  color: var(--burgundy);
}

/* —— Landing hero —— */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(120% 90% at 18% 8%, #9a1428 0%, transparent 55%),
    linear-gradient(160deg, var(--burgundy-mid) 0%, var(--burgundy-deep) 72%);
  color: var(--on-burgundy);
  padding: 88px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s var(--ease) 0.12s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner {
  width: 100%;
  margin: 0 0 28px;
}

.hero-support {
  margin: 0 0 28px;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.015em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--burgundy);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff8f8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* —— Sections —— */
.section {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 72px 20px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lead {
  margin: 0 0 36px;
  max-width: 34rem;
  color: var(--subtext);
  font-size: 1.08rem;
}

.steps {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--burgundy);
}

.step p {
  margin: 0;
  color: var(--subtext);
  font-size: 1rem;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.platforms img {
  height: 28px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  opacity: 0.92;
}

.platforms img.plate {
  background: #fff;
  padding: 4px 6px;
  border-radius: 8px;
  height: 36px;
}

.section--tint {
  background: linear-gradient(180deg, #fff 0%, #f3ecee 100%);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px 56px;
}

.site-footer-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  color: var(--subtext);
  font-size: 0.95rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

/* —— Download page —— */
.download-hero {
  min-height: 52svh;
  padding: 110px 20px 48px;
  background:
    radial-gradient(100% 80% at 80% 0%, #9a1428 0%, transparent 50%),
    linear-gradient(165deg, var(--burgundy-mid), var(--burgundy-deep));
  color: #fff;
}

.download-hero-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.download-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.download-hero p {
  margin: 0 0 28px;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease);
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.store-btn span {
  display: block;
  font-size: 0.82rem;
  color: var(--subtext);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* —— Legal / simple pages —— */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 20px 80px;
  position: relative;
}

.brand {
  color: var(--burgundy);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
  letter-spacing: -0.02em;
}

p,
li {
  color: #222;
}

.muted,
.muted a {
  color: var(--subtext);
}

.disclaimer {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: #333;
  background: #fafafa;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
}

ul {
  padding-left: 1.2em;
}

li {
  margin: 6px 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 84px 16px 32px;
  }

  .hero-support {
    margin-bottom: 22px;
  }

  .platforms img {
    height: 24px;
    max-width: 78px;
  }
}
