:root {
  --bg: #17151a;
  --bg-card: #1f1c24;
  --text: #e8e6ed;
  --text-muted: #a8a3b3;
  --primary: #6629cc;
  --accent: #4db2ff;
  --border: rgba(102, 41, 204, 0.25);
  --max-width: 720px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

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

a:hover, a:focus-visible {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(23, 21, 26, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.meta p { margin: 0.25rem 0; }

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: #fff;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

p, ul, ol { margin: 0 0 1rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: 0.35rem; }

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.notice {
  background: rgba(102, 41, 204, 0.12);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.notice strong { color: #fff; }

.contact-pending {
  background: rgba(77, 178, 255, 0.08);
  border: 1px solid rgba(77, 178, 255, 0.25);
  border-radius: 0.65rem;
  padding: 1rem 1.15rem;
  margin: 1rem 0 2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
