:root {
  color-scheme: light;
  --bg: #f7f2fb;
  --surface: #ffffff;
  --surface-soft: #fbf7ff;
  --text: #211c2b;
  --muted: #6f6678;
  --line: #e4ddea;
  --accent: #7c3aed;
  --accent-deep: #5b21b6;
  --accent-soft: #efe7ff;
  --ink: #171321;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 36%),
    linear-gradient(180deg, #ffffff 0, var(--bg) 62%, #ffffff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 980px;
  min-height: 58px;
  margin: 12px auto 0;
  padding: 8px 10px;
  border: 1px solid rgba(228, 221, 234, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(33, 28, 43, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero,
.document {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 80px);
  padding: 64px 0;
}

.app-icon-large {
  width: 112px;
  height: 112px;
  margin: 0 0 24px;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.18);
}

.eyebrow,
.updated {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  word-break: keep-all;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 900;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
  word-break: keep-all;
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 64px;
}

.feature-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.feature-card h3 {
  font-size: 18px;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.document {
  max-width: 820px;
  padding: 72px 0;
}

.document header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-weight: 850;
  text-decoration: none;
}

.document h1 {
  font-size: 44px;
}

.document section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.document h2 {
  font-size: 22px;
}

.document p,
.document li {
  color: var(--muted);
}

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

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  h1,
  .document h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }
}
