:root {
  --bg: #1e1f22;
  --surface: #2b2d31;
  --text: #f2f3f5;
  --muted: #b5bac1;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --border: #3f4147;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f2f3f5;
    --text: #1e1f22;
    --muted: #4e5058;
    --border: #e3e5e8;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.top,
.bottom,
main {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

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

main {
  flex: 1;
}

.hero {
  padding: 72px 0 56px;
  max-width: 720px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.lead {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button:hover {
  background: var(--accent-hover);
}

.button.small {
  padding: 8px 16px;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button.ghost:hover {
  background: var(--surface);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.features article {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.features h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
