:root {
  --brand: #5048f0;
  --brand-dark: #3d36c0;
  --brand-light: #f0eefe;
  --text: #1a1a1f;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #fafafe;
  --border: #e5e5ee;
  --max: 1080px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
nav.site a {
  margin-left: 24px;
  color: var(--text-muted);
  font-weight: 500;
}
nav.site a:hover { color: var(--brand); text-decoration: none; }

/* Hero */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  text-align: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, #7c72ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(80, 72, 240, 0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(80, 72, 240, 0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 12px;
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* Features */
.features {
  padding: 80px 0;
}
.features h2 {
  font-size: 36px;
  text-align: center;
  margin: 0 0 56px;
  letter-spacing: -0.5px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Section: tech */
.tech {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech h2 {
  font-size: 32px;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.tech p.lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
}

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta h2 {
  font-size: 40px;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* Article (privacy, terms, support) */
article.doc {
  padding: 60px 0 100px;
  max-width: 760px;
}
article.doc h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
article.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 40px;
}
article.doc h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
article.doc h3 {
  font-size: 17px;
  margin-top: 28px;
  margin-bottom: 8px;
}
article.doc p, article.doc li {
  font-size: 16px;
  color: #333;
}
article.doc ul, article.doc ol { padding-left: 24px; }
article.doc li { margin-bottom: 8px; }

/* Footer */
footer.site {
  background: #0f0f17;
  color: #999;
  padding: 60px 0 40px;
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
footer.site h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}
footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site li { margin-bottom: 8px; }
footer.site a {
  color: #aaa;
  font-size: 14px;
}
footer.site a:hover { color: #fff; text-decoration: none; }
footer.site .copy {
  width: 100%;
  border-top: 1px solid #2a2a35;
  padding-top: 24px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

/* Mobile */
@media (max-width: 720px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
  nav.site a { margin-left: 16px; font-size: 14px; }
  .features { padding: 50px 0; }
  .features h2 { font-size: 28px; }
  .cta h2 { font-size: 28px; }
  .btn-secondary { display: block; margin: 12px auto 0; max-width: 240px; }
}
