*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
main { flex: 1; }
a { color: var(--violet); }
a:hover { color: var(--text); }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; word-break: break-all; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: 22px; }
h3 { font-weight: 700; font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; font: 600 15px var(--font-body); cursor: pointer; text-decoration: none; transition: filter .15s, background .15s; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--violet); color: var(--ground); }
.btn-primary:hover { filter: brightness(1.08); color: var(--ground); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { background: var(--raised); color: var(--text); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--border); padding: 24px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 30px; width: auto; }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero p { font-size: 18px; max-width: 560px; margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; gap: 16px; justify-content: space-between; font-size: 14px; }

@media (max-width: 560px) {
  .topbar-inner { padding: 10px 16px; gap: 12px; }
  .brand img { height: 24px; }
  .topnav { gap: 12px; }
}
