:root {
  /* Tokens from a26-045-launcher-common res/values-night/colors.xml (iOS-style dark palette) */
  --bg-primary: #1c1c1e;
  --bg-secondary: #000000;
  --bg-content: #2c2c2e;           /* semantic_fg_background_primary (night) */
  --bg-content-2: #3a3a3c;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.10);
  --border: rgba(84, 84, 88, 0.65); /* icon_pack_divider_color (night) */
  --border-subtle: rgba(255, 255, 255, 0.06);

  --accent: #0088ff;               /* semantic_accent_bold */
  --accent-pink: #5e5ce6;          /* indigo used by the app's icon palette */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-tertiary: rgba(235, 235, 245, 0.62);
  --text-quaternary: rgba(235, 235, 245, 0.40);
  --text-on-accent: #ffffff;       /* semantic_accent_on_accent */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}
.nav a { color: var(--text-tertiary); }
.nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5e5ce6 100%);
  color: var(--text-on-accent);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { background: var(--surface-hover); }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
.lede { color: var(--text-tertiary); font-size: 17px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 52px 0 40px;
  color: var(--text-quaternary);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-tertiary); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav { gap: 14px; font-size: 13.5px; }
  .nav .nav-hide-sm { display: none; }
}
