:root {
  --bg: #060c1a;
  --bg-2: #0a1428;
  --card: #0d182e;
  --card-2: #11203d;
  --border: rgba(56, 189, 248, 0.18);
  --border-strong: rgba(56, 189, 248, 0.42);
  --text: #e8f1ff;
  --muted: #93a7c6;
  --cyan: #00d4ff;
  --cyan-dark: #061326;
  --amber: #f59e0b;
  --green: #22c55e;
  --common: #94a3b8;
  --rare: #3b82f6;
  --epic: #d8b4fe;
  --legendary: #f59e0b;
  --mythic: #f472b6;
  --protocol: #00d4ff;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, .brand-name { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 12, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: all .15s; }
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(0, 212, 255, 0.14); text-decoration: none; }
.nav-link.is-active { border: 1px solid var(--border-strong); color: var(--cyan); }
.header-search input {
  width: 220px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(13, 24, 46, 0.9);
  color: #fff; font-size: 13px; font-family: inherit;
}
.header-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }

/* Hero */
.hero-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 48px 0 42px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: right center; opacity: 0.58; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, #060c1a 0%, rgba(6,12,26,0.92) 48%, rgba(6,12,26,0.35) 100%); }
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 610px; }
.version-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--cyan); background: var(--card-2); border: 1px solid var(--border-strong);
  margin-bottom: 14px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-title { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; color: #fff; }
.accent-cyan { color: var(--cyan); text-shadow: 0 0 24px rgba(0, 212, 255, 0.45); }
.hero-subtitle { margin: 0 0 22px; color: var(--text); font-size: 16px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-cyan { background: var(--cyan); color: var(--cyan-dark); box-shadow: 0 6px 22px rgba(0, 212, 255, 0.28); }
.btn-cyan:hover { filter: brightness(1.08); color: var(--cyan-dark); }
.btn-glass { background: rgba(17, 32, 61, 0.85); color: var(--text); border-color: var(--border-strong); }
.btn-glass:hover { border-color: var(--cyan); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-chip {
  display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px;
  background: rgba(13, 24, 46, 0.85); border: 1px solid var(--border); min-width: 128px;
}
.stat-chip strong { font-size: 20px; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.stat-chip span { font-size: 12px; color: var(--muted); }

/* Sub-hero & Badges */
.sub-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(15,33,68,0.6), transparent); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.page-title { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; color: #fff; }
.page-subtitle { margin: 0; color: var(--muted); font-size: 16px; max-width: 720px; }
.rarity-pill, .slot-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.rarity-common { background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }
.rarity-rare { background: var(--card-2); color: var(--cyan); border: 1px solid var(--border-strong); }
.rarity-epic { background: var(--card-2); color: var(--epic); border: 1px solid var(--epic); }
.rarity-legendary { background: var(--card-2); color: var(--amber); border: 1px solid var(--amber); }
.rarity-mythic { background: var(--card-2); color: var(--mythic); border: 1px solid var(--mythic); }
.rarity-protocol { background: var(--card-2); color: var(--cyan); border: 1px solid var(--cyan); }
.slot-pill { background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }
.recipe-hero-box {
  margin-top: 18px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border-strong);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.recipe-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cyan); font-weight: 700; width: 100%; margin-bottom: -6px; }
.recipe-hero-formula { font-size: 20px; font-weight: 700; color: #fff; font-family: 'Space Grotesk', sans-serif; }
.recipe-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* Content, Video, FAQ, Comments, Footer */
.lab-section { padding: 28px 0 18px; }
.content-band, .video-band, .faq-band, .related-band, .engage-band { padding: 18px 0 28px; }
.prose-card, .video-card, .comments-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.prose-card h2 { margin: 22px 0 10px; font-size: 22px; color: #fff; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card h3 { margin: 18px 0 8px; font-size: 17px; color: var(--cyan); }
.prose-card p, .prose-card li { color: var(--text); }
.prose-card ul, .prose-card ol { padding-left: 20px; }
.prose-card table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose-card th, .prose-card td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose-card th { color: var(--cyan); font-weight: 700; background: rgba(0,212,255,0.06); }
.video-head h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.video-head p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq-band h2, .related-band h2 { margin: 0 0 14px; font-size: 24px; color: #fff; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 15px; }
.faq-item p { margin: 10px 0 0; color: var(--text); font-size: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.related-card:hover { border-color: var(--cyan); text-decoration: none; }
.related-card strong { color: #fff; font-size: 15px; }
.related-card span { color: var(--muted); font-size: 13px; }
.engage-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); margin-bottom: 16px;
}
.engage-left, .engage-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.count-pill { background: rgba(0,212,255,0.16); color: var(--cyan); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.share-label, .share-msg, .comment-msg, .muted { font-size: 13px; color: var(--muted); }
.comments-panel h3 { margin: 0 0 6px; font-size: 19px; color: #fff; }
.comment-form { display: grid; gap: 10px; margin: 14px 0 18px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: #fff; font-family: inherit; font-size: 14px;
}
.form-actions { display: flex; align-items: center; gap: 8px; }
.comments-list { display: grid; gap: 10px; }
.comment-card, .reply-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.comment-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.comment-meta strong { color: #fff; font-size: 13px; }
.owner-badge { background: rgba(0,212,255,0.2); color: var(--cyan); padding: 1px 7px; border-radius: 6px; font-weight: 700; display: none; }
[data-gf-owner] .owner-badge { display: inline-block; }
.comment-body { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.reply-btn { background: none; border: 0; color: var(--cyan); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 30px 0 42px; margin-top: 24px; background: rgba(4, 9, 20, 0.9); }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-meta { margin: 0; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-disclaimer { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .header-search { width: 100%; }
  .header-search input { width: 100%; }
  .hero-banner { padding: 32px 0; }
}