:root {
  --bg: #f6f0ff;
  --bg-strong: radial-gradient(circle at top left, #ffffff 0%, #efe4ff 42%, #e7dcff 100%);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #221a39;
  --muted: #665d82;
  --primary: #7e4bde;
  --primary-dark: #6030bf;
  --border: rgba(102, 72, 156, 0.16);
  --shadow: 0 20px 60px rgba(71, 43, 122, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-strong);
  line-height: 1.55;
}

a {
  color: var(--primary-dark);
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.page-narrow {
  max-width: 820px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}

.hero-copy,
.hero-card,
.card,
.section-accent {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy,
.hero-card,
.card,
.section-accent,
.subpage-header {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lede,
.muted,
.subpage-header p {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

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

.button-secondary {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.app-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(86, 47, 163, 0.24);
}

.app-meta {
  margin: 0;
  display: grid;
  gap: 14px;
}

.app-meta dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.app-meta dd {
  margin: 0;
  font-weight: 600;
}

.section {
  margin-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.section-accent {
  background: rgba(255, 255, 255, 0.7);
}

.stack {
  display: grid;
  gap: 18px;
}

.content-list,
.link-list {
  margin: 0;
  padding-left: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-weight: 700;
}

.subpage-header {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero,
  .grid,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer {
    justify-content: stretch;
  }

  .hero-card {
    order: -1;
  }
}
