/* JL3 (jl-3.ph) - Official JL3 Metallic Champagne-Gold & Warm Obsidian Design System */
:root {
  --bg: #0D0C0A;
  --surface: #171511;
  --surface-elev: #211D17;
  --border: #30291E;
  --border-gold: rgba(240, 175, 50, 0.42);
  --gold-light: #FFF3B0;
  --accent: #F0AF32;
  --accent-deep: #C98218;
  --accent-hover: #FFE17D;
  --gold-grad: linear-gradient(180deg, #FFF3B0 0%, #F0AF32 52%, #C98218 100%);
  --gold-grad-hover: linear-gradient(180deg, #FFF8CC 0%, #F7BF48 52%, #D99020 100%);
  --accent2: #22C55E;
  --accent2-hover: #16A34A;
  --text: #FAF6EE;
  --text-muted: #A89F8F;
  --text-soft: #DDD5C7;
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-w: 1220px;
  --font-head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 38% at 50% 0%, rgba(240, 175, 50, 0.12), transparent 68%),
    linear-gradient(rgba(255, 243, 176, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 176, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s ease, opacity 0.18s ease, border-color 0.18s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.24;
  margin-top: 0;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 2.25rem 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.55rem; font-weight: 600; color: #FFF3D1; }
p { margin: 0 0 1.05rem; color: var(--text-soft); }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; color: var(--text-soft); }
li { margin-bottom: 0.45rem; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 12, 10, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-link img { filter: drop-shadow(0 2px 8px rgba(240, 175, 50, 0.28)); }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 4px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ghost-sm, .btn-gold-sm, .btn-primary-cta, .btn-secondary-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn-ghost-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-gold);
}
.btn-ghost-sm:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-gold-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
  color: #14110B;
  background: var(--gold-grad);
  box-shadow: 0 4px 14px rgba(240, 175, 50, 0.25);
}
.btn-gold-sm:hover { background: var(--gold-grad-hover); color: #14110B; transform: translateY(-1px); }

.btn-primary-cta {
  min-height: 48px;
  padding: 0 28px;
  font-size: 1rem;
  color: #14110B;
  background: var(--gold-grad);
  box-shadow: 0 8px 24px rgba(240, 175, 50, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary-cta:hover { background: var(--gold-grad-hover); color: #14110B; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240, 175, 50, 0.40); }
.btn-secondary-guide {
  min-height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  color: var(--gold-light);
  background: var(--surface-elev);
  border: 1px solid var(--border-gold);
}
.btn-secondary-guide:hover { border-color: var(--gold-light); color: #FFFFFF; transform: translateY(-1px); background: #2A241B; }

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 22px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mobile-drawer-links a {
  display: block;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.92rem;
}
.mobile-drawer-ctas { display: flex; gap: 10px; }
.mobile-drawer-ctas a { flex: 1; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 16px 0 6px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: #5C5242; }

/* Hero Section + 3-Slide Carousel */
.hero-section { padding: 34px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240, 175, 50, 0.11);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.06rem; color: var(--text-soft); margin-bottom: 22px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); }

/* Hero Carousel */
.carousel-wrap {
  position: relative;
  background: linear-gradient(165deg, #1B1813 0%, #12100C 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.carousel-label { font-family: var(--font-head); font-size: 0.92rem; font-weight: 700; color: var(--gold-light); letter-spacing: 0.04em; text-transform: uppercase; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { border-color: var(--gold-light); background: var(--surface-elev); }
.carousel-slides { position: relative; min-height: 250px; }
.carousel-slide { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.carousel-slide.active { display: grid; }
.carousel-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(240, 175, 50, 0.18); }
.carousel-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
}
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dot {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--gold-grad); }

/* Cards, Sections & Grids */
.section-block { padding: 26px 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.answer-capsule {
  background: linear-gradient(135deg, rgba(240, 175, 50, 0.11), rgba(23, 21, 17, 0.96));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.game-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.game-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 22px rgba(240, 175, 50, 0.16); }
.game-tile img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
}
.game-tile-meta { padding: 10px 12px; font-size: 0.84rem; }
.game-tile-title { font-family: var(--font-head); font-weight: 700; color: var(--text); margin-bottom: 2px; }
.game-tile-sub { color: var(--text-muted); font-size: 0.78rem; }

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 16px 0 22px;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.94rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-elev); color: var(--gold-light); font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(240, 175, 50, 0.03); }
.status-ok { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(34, 197, 94, 0.14); color: #86EFAC; font-weight: 600; font-size: 0.82rem; }
.status-warn { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(240, 175, 50, 0.16); color: var(--gold-light); font-weight: 600; font-size: 0.82rem; }

/* Interactive Calculator Widget */
.calc-widget {
  background: linear-gradient(160deg, #1E1A14 0%, #13110D 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 24px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.calc-header { margin-bottom: 18px; }
.calc-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #14110B;
  background: var(--gold-grad);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.calc-field { margin-bottom: 16px; }
.calc-field label { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--text); }
.calc-field input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; height: 8px; }
.calc-field select, .calc-field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.calc-output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.calc-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.calc-stat-val { font-family: var(--font-head); font-size: 1.38rem; font-weight: 700; color: var(--gold-light); }
.calc-stat-val.green { color: var(--accent2); }
.calc-note { font-size: 0.86rem; color: var(--text-muted); margin-top: 12px; padding: 12px 14px; background: rgba(13, 12, 10, 0.72); border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.03rem;
  font-weight: 600;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-height: 52px;
}
.faq-q:hover { color: var(--gold-light); }
.faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 12px 20px 18px; color: var(--text-soft); border-top: 1px solid rgba(240, 175, 50, 0.08); }
.faq-item.open .faq-a { display: block; }

/* Analyst Bio & Silo Links */
.analyst-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 26px 0;
}
.analyst-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #14110B;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-elev); }
.link-card-title { font-family: var(--font-head); font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 1rem; }
.link-card-desc { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* 3-Row Authority Footer */
.site-footer {
  background: #080706;
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 42px 0 84px;
}
.footer-row-1 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 { font-size: 0.9rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-row-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.footer-row-2 img { height: 38px; width: auto; }

.footer-row-3 { padding-top: 22px; text-align: center; font-size: 0.86rem; color: var(--text-muted); }
.rg-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #FCA5A5;
  font-weight: 700;
  margin-bottom: 14px;
}
.rg-banner:hover { color: #FFFFFF; border-color: #EF4444; }

/* Sticky Mobile Action Bar */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(13, 12, 10, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-mobile-bar a { flex: 1; min-height: 46px; font-size: 0.92rem; }

/* 21+ Age Modal */
.age-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 7, 6, 0.90);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-modal-backdrop.show { display: flex; }
.age-modal-card {
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.age-badge-lg {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #EF4444;
  color: #FCA5A5;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.age-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.age-modal-actions button, .age-modal-actions a { flex: 1; min-height: 46px; }

/* Responsive */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-row-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .calc-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-row-1 { grid-template-columns: 1fr; }
  .header-actions .btn-ghost-sm { display: none; }
  .sticky-mobile-bar { display: flex; }
  .analyst-box { flex-direction: column; }
}
