:root {
  --bg: #0f0f10;
  --surface: #171718;
  --surface-2: #1f1f21;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4efe8;
  --muted: #b0a89d;
  --accent: #f7935a;
  --accent-strong: #ff8c4c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(247, 147, 90, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(247, 147, 90, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #262628, #18181a);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: 140ms ease;
}

.nav a:hover,
.button-link:hover {
  border-color: rgba(247, 147, 90, 0.35);
  transform: translateY(-1px);
}

.hero,
.panel,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  padding: 44px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link.primary {
  background: var(--accent);
  border-color: transparent;
  color: #161311;
  font-weight: 800;
}

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

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

.card {
  padding: 24px;
  text-decoration: none;
}

.card p,
.panel p,
.panel li {
  color: var(--muted);
}

.panel {
  padding: 34px;
  margin-top: 20px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(247, 147, 90, 0.08);
  color: #ffd8c0;
  font-size: 14px;
}

.prose h2,
.prose h3 {
  margin-top: 32px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 8px;
}

.note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(247, 147, 90, 0.08);
  border: 1px solid rgba(247, 147, 90, 0.18);
}

.footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel,
  .card {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .panel,
  .card {
    padding: 24px;
  }
}
