:root {
  --bg0: #0b1220;
  --bg1: #111c33;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --card2: rgba(255, 255, 255, 0.02);
  --accent: #7dd3fc;
  --accent-glow: rgba(125, 211, 252, 0.15);
  --accent2: #a78bfa;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: 
    radial-gradient(circle at 15% 15%, rgba(125, 211, 252, 0.12) 0%, transparent 600px),
    radial-gradient(circle at 85% 15%, rgba(167, 139, 250, 0.12) 0%, transparent 600px),
    linear-gradient(170deg, var(--bg0) 0%, var(--bg1) 100%);
  background-attachment: fixed;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Typography */
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin-top: 0; }
a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: #fff; text-shadow: 0 0 12px var(--accent-glow); }
p { margin-bottom: 1rem; }
code { font-family: 'Fira Code', 'Roboto Mono', monospace; font-size: 0.9em; }

/* Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }

/* Header */
.top { padding: 40px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 32px; background: rgba(11,18,32,0.6); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; }
.top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; }
.logo { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(125,211,252,0.4), rgba(167,139,250,0.4)); display: grid; place-items: center; box-shadow: 0 0 20px rgba(125,211,252,0.2); position: relative; overflow: hidden; }
.logo::after { content: "P"; font-weight: 800; font-size: 24px; color: #fff; }
.title { font-size: 22px; }
.subtitle { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: #fff; transition: all 0.2s ease;
}
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: #fff; }
.button.primary {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  border: none; select: none;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}
.button.primary:hover { box-shadow: 0 6px 16px rgba(56, 189, 248, 0.5); }

/* Sections & Cards */
section { margin-bottom: 40px; }
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
  transition: transform 0.2s, border-color 0.2s;
  height: 100%;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); }

/* Content Elements */
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
h2 { font-size: 1.25rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; display: block; width: 4px; height: 1.2em; background: var(--accent); border-radius: 2px; }

ul.bullets { padding-left: 20px; color: var(--muted); margin-bottom: 24px; }
ul.bullets li { margin-bottom: 8px; }

/* Code Block */
pre {
  background: rgba(0,0,0,0.3); border-radius: 12px; padding: 16px; 
  overflow-x: auto; border: 1px solid var(--border);
}
pre code { font-size: 13px; color: #e2e8f0; }

/* Pills & Badges */
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px;
  background: rgba(125, 211, 252, 0.1); color: #7dd3fc; border: 1px solid rgba(125, 211, 252, 0.2);
}

/* Links List */
.links { display: flex; flex-direction: column; gap: 10px; }
.link-item { 
  display: flex; align-items: center; gap: 12px; padding: 12px; 
  background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid transparent;
}
.link-item:hover { background: rgba(255,255,255,0.06); border-color: var(--border); text-decoration: none; }
.link-icon { font-size: 18px; opacity: 0.8; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 60px; color: var(--muted); font-size: 13px; text-align: center; }
.mono { font-family: monospace; opacity: 0.7; }

/* Util */
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted); }
