/* Pi Aeon Modern Design System */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1f242c;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-gold: #f1e05a;
  --accent-purple: #bc8cff;
  --accent-red: #ff7b72;
  --accent-green: #3fb950;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
a:hover {
  text-decoration: underline;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span.symbol {
  color: var(--accent-gold);
  font-size: 1.7rem;
}

nav.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

nav.main-nav a.badge-nav {
  background: linear-gradient(135deg, #238636, #2ea043);
  color: #fff;
  font-weight: 600;
}
nav.main-nav a.badge-nav:hover {
  background: linear-gradient(135deg, #2ea043, #3fb950);
}

/* Hero Section */
.hero {
  padding: 70px 24px 50px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero p.tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
}
.btn-primary:hover {
  background: #79b8ff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-game {
  background: linear-gradient(135deg, #8a2be2, #bc8cff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(188, 140, 255, 0.35);
}
.btn-game:hover {
  background: linear-gradient(135deg, #9b42eb, #cba4ff);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Container & Cards */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #484f58;
}

.card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Feature Spotlight */
.spotlight-card {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(188, 140, 255, 0.1));
  border: 1px solid rgba(188, 140, 255, 0.3);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.spotlight-info h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.spotlight-info p {
  color: var(--text-muted);
  max-width: 540px;
}

/* Essay Styling */
article.essay {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin: 30px 0;
  line-height: 1.8;
}

article.essay h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

article.essay .subtitle {
  font-size: 1.2rem;
  color: var(--accent-purple);
  font-style: italic;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

article.essay h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin: 36px 0 16px;
}

article.essay h3 {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin: 28px 0 12px;
}

article.essay p {
  margin-bottom: 18px;
  color: #d0d7de;
}

article.essay blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0;
  color: #fff;
  font-style: italic;
  background: rgba(88, 166, 255, 0.05);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

article.essay img.essay-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.warning-box {
  background: rgba(255, 123, 114, 0.1);
  border: 1px solid rgba(255, 123, 114, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  color: #ffb4a9;
}
.warning-box strong {
  color: var(--accent-red);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--text-muted);
  margin: 0 10px;
}
footer.site-footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  article.essay { padding: 24px 18px; }
  .spotlight-card { padding: 20px; }
  nav.main-nav { gap: 10px; font-size: 0.85rem; }
}
