/* =========================================================
   Heritage Gold Depository LLC — Design System
   ========================================================= */
:root {
  --ink: #0d1117;
  --ink-2: #131a24;
  --ink-3: #1b2533;
  --panel: #11161f;
  --line: rgba(200, 162, 74, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #9aa4b2;
  --muted-2: #6b7686;
  --gold: #c8a24a;
  --gold-2: #e7c878;
  --gold-3: #b6862f;
  --gold-grad: linear-gradient(135deg, #f4dd9a 0%, #e7c878 18%, #c8a24a 52%, #a9802c 100%);
  --gold-line: linear-gradient(90deg, transparent, #c8a24a, transparent);
  --green: #3fae7a;
  --red: #d9534f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 18px 50px -18px rgba(200, 162, 74, 0.35);
  --maxw: 1200px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: #fff; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; color: var(--muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.text-gold { color: var(--gold-2); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--text); opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, #e7c878, #c8a24a 60%, #a9802c);
  color: #1a1206; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a1206; box-shadow: 0 22px 60px -16px rgba(200,162,74,.55); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(10, 13, 18, 0.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo { width: 44px; height: 44px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: var(--serif); font-size: 1.18rem; color: #fff; font-weight: 600; letter-spacing: .3px; }
.brand .brand-sub { font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--gold-line);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.nav-phone svg { width: 16px; height: 16px; color: var(--gold); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 110px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 10%, rgba(200,162,74,.22), transparent 60%),
    radial-gradient(700px 600px at 12% 90%, rgba(35,60,90,.35), transparent 60%),
    linear-gradient(180deg, #0b0f15, #0d1117 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(200,162,74,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(200,162,74,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 35%, black, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 span { background: linear-gradient(135deg, #f4e2a8, #e7c878 40%, #c8a24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-trust .stat .num { font-family: var(--serif); font-size: 2rem; color: #fff; }
.hero-trust .stat .lbl { font-size: .8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1.5px; }
.hero-visual { position: relative; }
.hero-visual .hv-card {
  position: absolute; background: rgba(17,22,31,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
}
.hv-card .row { display: flex; align-items: center; gap: 10px; }
.hv-price { top: 7%; left: -6%; }
.hv-price .tag { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1.5px; }
.hv-price .val { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.hv-price .chg { color: var(--green); font-weight: 600; font-size: .85rem; }
.hv-vault { bottom: 6%; right: -4%; }
.hv-vault .lbl { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1.5px; }
.hv-vault .name { color: #fff; font-weight: 600; }
.hv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63,174,122,.18); }

/* ---------- Section ---------- */
section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.alt { background: linear-gradient(180deg, var(--ink), #0a0e14); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.divider { height: 1px; background: var(--gold-line); opacity: .5; }

/* ---------- Marquee / ticker ---------- */
.ticker { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #0a0e14; overflow: hidden; }
.ticker-track { display: flex; gap: 48px; padding: 16px 0; white-space: nowrap; animation: scroll 32s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.ticker-item .sym { color: #fff; font-weight: 700; }
.ticker-item .up { color: var(--green); } .ticker-item .down { color: var(--red); }
.ticker-item .dot { color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--ink-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.card .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(231,200,120,.25), rgba(200,162,74,.08)); border: 1px solid var(--line); }
.card .ico svg { width: 28px; height: 28px; color: var(--gold-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; margin-bottom: 0; }
.card .link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; }
.card-top-line::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background: var(--gold-line); opacity:0; transition:opacity .3s; }
.card-top-line:hover::before { opacity:1; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { display: flex; gap: 13px; margin-bottom: 16px; color: var(--text); }
.checklist li svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.checklist li strong { color: #fff; }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-band .s .num { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3rem); background: linear-gradient(135deg,#f4e2a8,#c8a24a); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stats-band .s .lbl { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* products */
.product { background: linear-gradient(180deg, var(--ink-2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.product:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.product .pimg { aspect-ratio: 4/3; background: radial-gradient(circle at 50% 40%, #1c2330, #0c1016); display:grid; place-items:center; border-bottom: 1px solid var(--line-soft); }
.product .pimg svg { width: 70%; height: 70%; }
.product .pbody { padding: 24px; }
.product .ptag { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.product h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.product .meta { display:flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.product .purity { color: var(--muted); font-size: .85rem; }
.product .price { font-family: var(--serif); color:#fff; font-size: 1.2rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 28px; }
.step { display:grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.step .n { counter-increment: step; width: 56px; height: 56px; border-radius: 50%; display:grid; place-items:center; font-family: var(--serif); font-size:1.4rem; color: var(--gold-2); border:1px solid var(--line); background: rgba(200,162,74,.06); }
.step .n::before { content: "0" counter(step); }

/* testimonials */
.quote { background: linear-gradient(180deg, var(--ink-2), var(--panel)); border:1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 30px; position: relative; }
.quote .mark { font-family: var(--serif); font-size: 4rem; color: var(--gold); opacity:.3; line-height:.5; }
.quote p { color: var(--text); font-style: italic; }
.quote .who { display:flex; align-items:center; gap:14px; margin-top: 18px; }
.quote .who .av { width:46px; height:46px; border-radius:50%; background: var(--gold-grad); display:grid; place-items:center; color:#1a1206; font-weight:700; font-family: var(--serif); }
.quote .who .nm { color:#fff; font-weight:600; } .quote .who .ro { color: var(--muted-2); font-size:.84rem; }
.stars { color: var(--gold); letter-spacing:2px; margin-bottom:12px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 64px 56px; text-align:center;
  background: radial-gradient(700px 400px at 50% -20%, rgba(200,162,74,.22), transparent), linear-gradient(135deg,#11161f,#0a0e14); border:1px solid var(--line); }
.cta-band h2 { max-width: 720px; margin: 0 auto .2em; }
.cta-band .actions { display:flex; gap:16px; justify-content:center; margin-top: 28px; flex-wrap: wrap; }

/* page hero (interior) */
.page-hero { position: relative; padding: 92px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(800px 380px at 80% 0%, rgba(200,162,74,.16), transparent 60%), linear-gradient(180deg,#0b0f15,#0d1117); }
.page-hero .container { position: relative; z-index:2; }
.breadcrumb { font-size:.85rem; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* prose (legal pages) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--muted-2); font-size: .9rem; }
.toc { background: var(--panel); border:1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 36px; }
.toc h4 { color: var(--gold-2); font-size:.8rem; letter-spacing:2px; text-transform:uppercase; margin-bottom: 12px; }
.toc ul { list-style:none; padding:0; margin:0; columns:2; }
.toc li { margin-bottom: 8px; }

/* contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size:.82rem; color: var(--muted); margin-bottom: 7px; font-weight:600; letter-spacing:.4px; }
.field input, .field select, .field textarea {
  width:100%; padding: 13px 16px; background: var(--ink); border:1px solid var(--line-soft); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size:.95rem; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.info-row { display:flex; gap:16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.info-row .ic { width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:rgba(200,162,74,.07);border:1px solid var(--line); flex:none; }
.info-row .ic svg { width:22px;height:22px;color:var(--gold-2); }
.info-row .t { font-size:.78rem; text-transform:uppercase; letter-spacing:1.5px; color:var(--muted-2); }
.info-row .v { color:#fff; font-weight:600; }
.form-note { font-size:.82rem; color: var(--muted-2); margin-top: 6px; }
.form-success { display:none; padding: 16px; border-radius: 10px; background: rgba(63,174,122,.12); border:1px solid rgba(63,174,122,.4); color: #b8e8cf; margin-bottom: 18px; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q { width:100%; text-align:left; background:none; border:0; color:#fff; font-family: var(--serif); font-size: 1.15rem; padding: 24px 40px 24px 0; cursor:pointer; position:relative; }
.faq-q::after { content:"+"; position:absolute; right:6px; top:50%; transform: translateY(-50%); color: var(--gold); font-size:1.6rem; font-family: var(--sans); transition: transform .25s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 24px; margin:0; }

/* logo cloud / badges */
.badges { display:flex; flex-wrap:wrap; gap: 16px; justify-content:center; }
.badge { display:flex; align-items:center; gap:10px; padding: 12px 20px; border:1px solid var(--line-soft); border-radius: 50px; color: var(--muted); font-size:.86rem; font-weight:600; background: rgba(255,255,255,.02); }
.badge svg { width:18px;height:18px;color:var(--gold); }

/* footer */
.site-footer { background: #080b10; border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size:.92rem; max-width: 320px; }
.footer-social { display:flex; gap:12px; margin-top: 18px; }
.footer-social a { width:38px;height:38px;border-radius:10px;border:1px solid var(--line-soft);display:grid;place-items:center;color:var(--muted); }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width:18px;height:18px; }
.footer-col h4 { font-family: var(--sans); font-size:.8rem; text-transform:uppercase; letter-spacing:2px; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--muted); font-size:.93rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size:.84rem; }
.footer-bottom .legal-links { display:flex; gap:20px; flex-wrap:wrap; }
.disclaimer { font-size:.78rem; color: var(--muted-2); margin-top: 18px; line-height:1.7; max-width: 980px; }

/* reveal animation */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* responsive */
@media (max-width: 980px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav-links { position: fixed; inset: 78px 0 auto 0; background: #0a0e14; flex-direction: column; padding: 24px 28px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .3s ease; }
  .nav-links li { width:100%; }
  .nav-links a { display:block; padding: 12px 0; }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-phone span { display:none; }
  .hamburger { display:block; }
  .nav-cta .btn { display:none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .toc ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 26px; }
}
