:root {
  --bg: #0f1416;
  --bg-elevated: #161d20;
  --bg-card: #192226;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef6f2;
  --muted: #93a69e;
  --accent: #00f0a0;
  --accent-dim: rgba(0, 240, 160, 0.14);
  --accent-text: #062118;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(900px 520px at 50% -80px, rgba(0, 240, 160, 0.11), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

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

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 160, 0.28);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

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

h1 {
  margin: 0 auto 18px;
  max-width: 740px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.preview {
  margin: 44px auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--bg-elevated);
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 56px 0;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  margin: 56px auto 72px;
}

.prose h1 {
  text-align: left;
  font-size: 36px;
  margin: 0 0 8px;
}

.prose .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: #cfe0d8;
  font-size: 15.5px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13.5px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

footer .links {
  display: flex;
  gap: 18px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}
