:root {
  --bg: #0f0e2e;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-border: rgba(255, 255, 255, 0.12);
  --brand-blue: #2233c4;
  --brand-purple: #7440ec;
  --ink: #ffffff;
  --ink-secondary: rgba(255, 255, 255, 0.68);
  --ink-faint: rgba(255, 255, 255, 0.45);
  --accent: #ff9f45;
  --accent-ink: #241205;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* Background: mountain-and-constellation gradient, same language as the app icon */
.sky {
  position: relative;
  background: radial-gradient(circle at 80% 0%, var(--brand-purple), transparent 55%),
    radial-gradient(circle at 10% 30%, var(--brand-blue), transparent 60%), var(--bg);
  overflow: hidden;
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 25% 60%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 40% 15%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 45%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 75% 25%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 95% 10%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

/* Nav */
.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
}

.nav-links a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 64px 0 88px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin: 24px auto;
  box-shadow: 0 20px 60px rgba(45, 30, 150, 0.55);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-secondary);
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  font-size: 13px;
  color: var(--ink-secondary);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-secondary {
  background: transparent;
  border-color: var(--bg-card-border);
  color: var(--ink);
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--ink-secondary);
  font-size: 16px;
  margin: 0;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 24px;
}

.card .icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* Ascent / ranks strip */
.ranks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  font-size: 14px;
  color: var(--ink-secondary);
}

.rank-pill.filled {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: var(--ink);
  border-color: transparent;
}

/* Plain (non-sky) page content, e.g. legal pages */
.plain {
  padding: 56px 0 96px;
}

.plain h1 {
  font-size: 30px;
  margin: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 6px;
}

.page-header .btn {
  flex-shrink: 0;
}

.plain .updated {
  color: var(--ink-faint);
  font-size: 13px;
  margin-bottom: 40px;
}

.plain h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}

.plain p,
.plain li {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.plain ul {
  padding-left: 20px;
}

.plain a:not(.btn) {
  color: var(--accent);
}

.plain .faq-item + .faq-item {
  margin-top: 28px;
}

.plain .faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.plain .faq-item p {
  margin: 0;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bg-card-border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-faint);
}

.footer-links a:hover {
  color: var(--ink-secondary);
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}
