:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #c4494d;
  --accent-glow: rgba(196,73,77,0.15);
  --code-bg: #111;
  --radius: 8px;
  --max-w: 880px;
}

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

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
header .container { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--text); }

/* Badge */
.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Hero */
.hero { padding: 2rem 0 4rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.03em; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin-bottom: 2rem; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Content */
.content { padding: 2rem 0 4rem; }
.content h1 { font-size: 2rem; margin-bottom: 1.5rem; font-weight: 700; }
.content h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.content p { margin-bottom: 1.15rem; color: var(--muted); }
.content ul, .content ol { margin: 0 0 1.5rem 1.5rem; color: var(--muted); }
.content li { margin-bottom: 0.4rem; }
.content strong { color: var(--text); }

.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.content blockquote p { margin-bottom: 0.5rem; color: var(--text); }

/* Code */
code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; }

/* Notice */
.notice {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.notice h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.notice p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer a { color: var(--muted); }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--text); font-weight: 600; }
td { color: var(--muted); }

/* Registration Banner */
.banner {
  background: linear-gradient(135deg, var(--accent), #8b2252);
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.banner a { color: #fff; text-decoration: underline; }
.banner a:hover { text-decoration: none; }

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  nav { gap: 1rem; }
}
