:root {
  --color-bg: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text-primary: #f0f0f0;
  --color-text-secondary: #c0c0c0;
  --color-text-muted: #888;
  --color-accent: #E5A00D;
  --color-accent-hover: #ffba2e;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width-page: 1140px;
  --max-width-prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }

p { margin: 0 0 1em; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--color-accent-hover); }

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: 0.25em 0; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

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

.container {
  width: 100%;
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 24px;
}

.container--prose {
  max-width: var(--max-width-prose);
}

/* ---------- Nav ---------- */

.site-nav {
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.site-nav__brand:hover { color: var(--color-text-primary); }
.site-nav__brand img { width: 40px; height: 40px; border-radius: 8px; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav__links li { margin: 0; }
.site-nav__links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}
.site-nav__links a:hover { color: var(--color-text-primary); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 20px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.hero h1 {
  margin-bottom: 0.4em;
}
.hero__lede {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: var(--color-text-secondary);
  margin: 0 auto 1.2em;
  max-width: 640px;
  font-weight: 500;
}
.hero__sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 2em;
}
.pill {
  display: inline-block;
  border: 1px solid rgba(229, 160, 13, 0.4);
  color: var(--color-accent);
  background: rgba(229, 160, 13, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Features ---------- */

.features {
  padding: 64px 0 96px;
  border-top: 1px solid var(--color-border);
}
.features__heading {
  text-align: center;
  margin-bottom: 56px;
}
.features__heading h2 { margin-top: 0; }
.features__heading p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 26px;
}
.feature-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 8px 0;
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Closing / contact ---------- */

.closing {
  padding: 80px 0 96px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.closing h2 { margin-top: 0; }
.closing p {
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 0.8em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0 36px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  text-align: center;
}
.site-footer a {
  color: var(--color-text-muted);
}
.site-footer a:hover { color: var(--color-text-primary); }
.site-footer .sep { color: #444; }

/* ---------- Legal pages (privacy / terms) ---------- */

.legal {
  padding: 56px 0 80px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.2em;
}
.legal__effective {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 2.5em;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
  color: var(--color-text-primary);
}
.legal p, .legal li {
  color: var(--color-text-secondary);
}
.legal a { word-break: break-word; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .features__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding: 64px 0 48px; }
  .features { padding: 48px 0 64px; }
  .closing { padding: 56px 0 64px; }
  .site-nav__links { gap: 14px; }
}
