/* =========================
   AG47 SILVER — style.css
   Works with the rebuilt index.html
   ========================= */

/* ---- Base Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #1e293b, #0b0f14);
  color: #e9eef5;
  line-height: 1.6;
}

/* Anchor offset so nav doesn’t cover headings */
section { scroll-margin-top: 92px; }

/* Links */
a { color: #9fd3ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================
   Layout Helpers
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.section {
  margin: 2.25rem 0;
}

/* =========================
   Top Badge
   ========================= */
.top-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.top-badge a {
  color: #93c5fd;
  font-weight: 600;
}

/* =========================
   Nav
   ========================= */
.nav {
  position: sticky;
  top: 42px; /* sits under the top-badge */
  z-index: 150;
  background: rgba(6, 10, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cfe7ff;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.95;
}

.nav-links a:hover { opacity: 1; }

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  width: 100%;
  background: #000;
}

.hero img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) brightness(0.85);
}

.hero-text {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 2.5rem));
  padding: 1.25rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.55),
    rgba(2, 6, 23, 0.15)
  );
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  letter-spacing: 0.3px;
}

.hero-text p {
  margin: 0.35rem 0 0;
  color: #cfe7ff;
  font-weight: 600;
}

/* =========================
   Typography
   ========================= */
h2 {
  margin: 0 0 0.85rem 0;
  font-size: 1.75rem;
}

p { margin: 0 0 1rem 0; }

.muted {
  color: rgba(233, 238, 245, 0.72);
}

/* =========================
   Cards, Panels, Grids
   ========================= */
.card {
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.92), rgba(10, 14, 20, 0.92));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.card h3 {
  margin: 0 0 0.5rem 0;
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.stats {
  margin: 0;
  padding-left: 1.1rem;
}

.stats li {
  margin: 0.35rem 0;
}

/* Chart iframe container */
iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #05080c;
}

/* Feature images */
.feature-image {
  width: 100%;
  max-width: 820px;
  display: block;
  margin: 1.25rem auto 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Buttons
   ========================= */
button {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #c0c0c0, #f8fafc);
  color: #020617;
}

button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================
   Footer
   ========================= */
.footer {
  margin-top: 2.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: rgba(2, 6, 23, 0.8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================
   Responsive
   ========================= */
@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero img { height: 280px; }
  .top-badge { font-size: 0.85rem; }
  .nav { top: 44px; }
}
.element-card {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 45px rgba(0,0,0,0.45);
}

#element .two-col {
  align-items: center;
}
.footer a {
  color: #9fd3ff;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}
/* Gold vs Silver section */
.gold-silver-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.mini-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem;
}

.mini-card h3 {
  margin: 0 0 0.5rem 0;
}

/* 2-up mini cards on wider screens */
@media (min-width: 860px) {
  .gold-silver-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* =========================
   Demand vs Supply Infographic
   ========================= */

.infographic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.info-col {
  padding: 0.25rem;
}

.info-head h3 {
  margin: 0.5rem 0 0.25rem 0;
}

.info-head p {
  margin: 0 0 0.75rem 0;
}

.pill {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.pill--demand {
  color: #93c5fd;
}

.pill--supply {
  color: #a7f3d0;
}

.info-list {
  display: grid;
  gap: 0.9rem;
}

.info-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.info-row p {
  margin: 0.25rem 0 0 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  box-shadow: 0 0 14px rgba(255,255,255,0.12);
}

.dot--demand {
  background: #93c5fd;
}

.dot--supply {
  background: #34d399;
}

.info-divider {
  display: none; /* shown on desktop */
  height: 100%;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
}

.divider-line {
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border-radius: 99px;
}

.divider-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at top, rgba(147,197,253,0.15), rgba(255,255,255,0.03));
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

/* Desktop layout: Demand | Divider | Supply */
@media (min-width: 900px) {
  .infographic {
    grid-template-columns: 1fr 90px 1fr;
    gap: 1.5rem;
  }

  .info-divider {
    display: grid;
  }
}
#demand-vs-supply .card {
  border-color: rgba(147,197,253,0.18);
}
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2.25rem;
}
