:root {
  --bg: #0a0a0d;
  --bg2: #111118;
  --ink: #f0eaf8;
  --muted: #9b93b0;
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --card: #16151f;
  --line: #2a2738;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 600px at 15% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(600px 400px at 85% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 10, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px clamp(20px, 6vw, 64px);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #1a1826;
  border: 1px solid var(--line);
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

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

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.container {
  position: relative;
  z-index: 1;
  padding: 56px clamp(20px, 6vw, 96px) 80px;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.link-card {
  display: block;
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #1e1b2e;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.link-title {
  font-weight: 600;
  font-size: 15px;
}

.link-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.button.ghost:hover {
  background: rgba(124, 58, 237, 0.12);
}

.grid {
  margin-top: 48px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 22px;
}

.card a {
  color: var(--accent-light);
}

.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.doc-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 40px);
}

.doc h2 {
  margin-top: 36px;
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--accent-light);
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.75;
}

.doc a {
  color: var(--accent-light);
}

.doc ul {
  padding-left: 20px;
}

.muted {
  color: var(--muted);
}

.site-footer {
  padding: 28px clamp(20px, 6vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
