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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  color: #d1d5db;
  line-height: 1.7;
  overflow-x: hidden;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav h1 {
  font-size: 1.8rem;
  color: white;
  font-weight: 800;
  margin-right: auto;
}

nav h1 > a:hover {
    background: none;
    color: #d1d5db;
}

nav a, nav p {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border-radius: 0.4rem;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background: #1e40af;
  color: white;
}

header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: radial-gradient(ellipse at center, #1e293b, #0f172a);
  border-bottom: 1px solid #334155;
}

header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

header p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-top: 1rem;
}

main {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

main > h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #8bbffa;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

section:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

p, li {
  font-size: 1rem;
  color: #cbd5e1;
}

ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.5rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}

pre {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 1rem 1.5rem;
  border-radius: 0.8rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* Prism.js token tweaks */
pre[class*="language-"] {
  background: #1e293b;
}
.token.comment { color: #64748b; }
.token.punctuation { color: #94a3b8; }
.token.keyword { color: #93c5fd; }
.token.string { color: #a7f3d0; }
.token.function { color: #facc15; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
  background: #0f172a;
}