/* ============================================================
 * Billybots — shared bot-page styles
 * Used by: dungeon-keeper, poppy, opendm, openconfess,
 *          openmusic, openwarden
 * ============================================================ */

:root {
  /* Backgrounds — Discord-adjacent cool charcoals */
  --bg: #1E1F22;             /* deep cool charcoal — Discord's deepest layer */
  --bg-elev: #2B2D31;        /* cool charcoal — Discord's sidebar */
  --bg-card: #36373D;        /* cool slate — Discord's card surface */

  /* Ink — warm Petal Cream stays, contrasts with the cool greys */
  --ink: #F4ECDC;            /* Petal Cream */
  --ink-dim: #C9BFA8;        /* warm dimmed cream */
  --ink-faint: #7E7560;      /* subdued */

  /* Two-metal gold system */
  --gold: #E6B84C;           /* Poppy Gold — primary accent */
  --gold-soft: #F0CB78;      /* lighter Poppy Gold for hover */
  --gold-deep: #8C6818;      /* deep gold for borders/shadows */
  --amber: #B88A2C;          /* Shadow Amber — secondary metal */

  /* Status colors */
  --moss: #3F6B4F;           /* Muted Evergreen — live */
  --ember: #A5564A;          /* Brick Rose — in testing / beta */
  --clay: #9E3B2E;           /* Clay Red — strong warning if needed */

  /* Lines */
  --line: rgba(244, 236, 220, 0.08);
  --line-strong: rgba(244, 236, 220, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 400; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ''; position: fixed; top: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(230, 184, 76, 0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

nav { position: sticky; top: 0; background: rgba(30, 31, 34, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); z-index: 100; padding: 18px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; font-variation-settings: 'SOFT' 50, 'opsz' 144; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; background: var(--gold); border-radius: 6px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 14px; color: var(--bg); box-shadow: 0 0 0 1px var(--gold-deep), 0 8px 24px -8px rgba(230, 184, 76, 0.5); transform: rotate(-4deg); transition: transform 0.3s ease; }
.logo:hover .logo-mark { transform: rotate(4deg); }
.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s ease; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--bg); box-shadow: 0 0 0 1px var(--gold-deep); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--gold-deep), 0 8px 24px -8px rgba(230, 184, 76, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-dim); background: rgba(244, 236, 220, 0.03); }
.btn-quiet { background: transparent; color: var(--ink-dim); padding: 9px 14px; font-size: 13px; font-weight: 500; }
.btn-quiet:hover { color: var(--ink); background: rgba(244, 236, 220, 0.04); }
.btn-quiet svg { flex-shrink: 0; }

.breadcrumb { padding: 32px 0 0; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { transition: transform 0.2s; }
.breadcrumb a:hover svg { transform: translateX(-3px); }

.bot-hero { padding: 56px 0 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.bot-hero-status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.bot-hero-status .dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.bot-hero-status.live { background: rgba(63, 107, 79, 0.15); border: 1px solid rgba(63, 107, 79, 0.3); color: var(--moss); }
.bot-hero-status.live .dot { background: var(--moss); }
.bot-hero-status.beta { background: rgba(165, 86, 74, 0.12); border: 1px solid rgba(165, 86, 74, 0.3); color: var(--ember); }
.bot-hero-status.beta .dot { background: var(--ember); }
.bot-hero-status.open { background: rgba(230, 184, 76, 0.1); border: 1px solid rgba(230, 184, 76, 0.3); color: var(--gold-soft); }
.bot-hero-status.open .dot { background: var(--gold); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.bot-hero h1 { font-family: 'Fraunces', serif; font-variation-settings: 'SOFT' 80, 'opsz' 144; font-weight: 400; font-size: clamp(48px, 6.5vw, 88px); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 20px; }
.bot-hero h1 em { font-style: italic; font-weight: 300; color: var(--gold); }
.bot-hero-tagline { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 22px; color: var(--gold); margin-bottom: 24px; }
.bot-hero-desc { font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 52ch; margin-bottom: 36px; }
.bot-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.bot-hero-visual { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.bot-hero-visual.padded-art { display: grid; place-items: center; padding: 48px; }
@media (max-width: 880px) { .bot-hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 60px; } }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Fraunces', serif; font-variation-settings: 'SOFT' 50, 'opsz' 144; font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 22ch; }
.section-title em { font-style: italic; color: var(--gold); font-weight: 300; }
.section-sub { color: var(--ink-dim); font-size: 16px; max-width: 60ch; margin-bottom: 48px; }

/* Pillars: 3-up feature highlights */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 32px 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; transition: all 0.3s ease; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pillar-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(230, 184, 76, 0.1); border: 1px solid rgba(230, 184, 76, 0.25); display: grid; place-items: center; margin-bottom: 20px; }
.pillar-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; margin-bottom: 10px; letter-spacing: -0.01em; }
.pillar-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Feature stack: vertical detail rows */
.feature-stack { display: flex; flex-direction: column; gap: 0; }
.feature-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-label { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.feature-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; }
.feature-desc code { font-family: 'JetBrains Mono', monospace; color: var(--gold); font-size: 13px; }
@media (max-width: 720px) { .feature-row { grid-template-columns: 1fr; gap: 6px; } }

/* Command list (reusable) */
.command-list { display: flex; flex-direction: column; gap: 2px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.command-row { display: grid; grid-template-columns: 240px 1fr 100px; gap: 20px; align-items: center; padding: 16px 20px; border-radius: 8px; transition: background 0.2s; }
.command-row:hover { background: rgba(244, 236, 220, 0.02); }
.command-row + .command-row { border-top: 1px dashed var(--line); }
.command-name { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--gold); font-weight: 500; }
.command-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }
.command-perm { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); text-align: right; }
.command-perm.admin { color: var(--ember); }
.command-perm.mod { color: var(--gold-soft); }
@media (max-width: 760px) { .command-row { grid-template-columns: 1fr; gap: 8px; } .command-perm { text-align: left; } }

/* FAQ */
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.faq-a { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; max-width: 70ch; }
.faq-a code { font-family: 'JetBrains Mono', monospace; color: var(--gold); font-size: 13px; }

/* Install / GitHub CTA card */
.install-card { background: linear-gradient(135deg, var(--bg-card) 0%, #1A1B1E 100%); border: 1px solid rgba(230, 184, 76, 0.25); border-radius: 20px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.install-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.install-card h2 { font-family: 'Fraunces', serif; font-variation-settings: 'SOFT' 60, 'opsz' 144; font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.install-card h2 em { font-style: italic; color: var(--gold); font-weight: 300; }
.install-card p { color: var(--ink-dim); font-size: 16px; max-width: 50ch; margin: 0 auto 28px; }
.install-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.install-meta strong { color: var(--gold); font-weight: 500; }
.install-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Related */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: all 0.3s ease; }
.related-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.related-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.related-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.related-tagline { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--gold); font-size: 14.5px; margin-bottom: 4px; }
.related-desc { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.related-arrow { margin-top: 8px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 6px; }
.related-card:hover .related-arrow { color: var(--gold); }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* Footer */
footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--bg-elev); margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; }
.footer-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 880px) { .nav-links li:last-child { display: none; } }
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .container, .container-narrow { padding: 0 20px; }
  .install-card { padding: 36px 24px; }
}
