:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #111318;
  --surface-soft: #171a20;
  --text: #f7f4ec;
  --muted: #979ca6;
  --gold: #d7ad4b;
  --gold-light: #f5d77d;
  --line: rgba(255, 255, 255, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 10%, rgba(215, 173, 75, 0.13), transparent 28rem),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0.24em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 173, 75, 0.6);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, serif;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 28px;
  color: #c7c9ce;
  font-size: 0.93rem;
}

nav a:hover {
  color: var(--gold-light);
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 90px 0 48px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.24em;
}

h1 {
  margin: 18px 0 24px;
  font-size: clamp(3.3rem, 8vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.metal-tabs {
  margin: 48px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metal-tabs button {
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a8abb2;
  background: transparent;
  cursor: pointer;
}

.metal-tabs button.active {
  color: #15120b;
  border-color: var(--gold);
  background: var(--gold-light);
}

.price-card {
  min-height: 230px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(215, 173, 75, 0.25);
  border-radius: 28px;
  background:
    linear-gradient(130deg, rgba(215, 173, 75, 0.11), transparent 52%),
    var(--surface);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.price-label,
.price-note {
  color: var(--muted);
}

.price-value {
  margin: 12px 0;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
}

.metal-symbol {
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 173, 75, 0.4);
  border-radius: 28px;
  color: var(--gold-light);
  background: rgba(215, 173, 75, 0.08);
  font-family: Georgia, serif;
  font-size: 3rem;
}

.quick-grid {
  padding: 42px 0 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-card,
.content-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.quick-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 173, 75, 0.45);
}

.quick-card > span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.quick-card h2 {
  margin: 42px 0 12px;
  font-size: 1.35rem;
}

.quick-card p,
.content-card p {
  color: var(--muted);
  line-height: 1.6;
}

.content-card {
  min-height: 440px;
  margin: 70px 0;
}

.content-card h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer div {
  display: flex;
  gap: 20px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 55px;
  }

  .price-card {
    align-items: flex-start;
  }

  .metal-symbol {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    font-size: 2rem;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

.chart-section {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.chart-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.chart-periods {
  display: flex;
  gap: 8px;
}

.chart-periods button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.chart-periods button.active {
  color: #15120b;
  border-color: var(--gold);
  background: var(--gold-light);
}

.chart-wrap {
  height: 360px;
}

@media (max-width: 760px) {
  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-wrap {
    height: 280px;
  }
}

.price-change {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.price-change[data-direction="up"] {
  color: #78d6a3;
}

.price-change[data-direction="down"] {
  color: #ef8f8f;
}

.price-change[data-direction="same"] {
  color: #a7afbc;
}

