/* =====================================================================
   GoldBridge — Static Landing Page
   Independent of the app (no PHP, no live data). Color tokens copied
   from the platform's own theme so this matches the user panel exactly.
   Built on Bootstrap 5 (grid/utilities/accordion/navbar) with a full
   custom skin layered on top via CSS variables.
   ===================================================================== */

:root {
  --gold: #d4af37;
  --gold-bright: #f4d35e;
  --gold-deep: #a9791f;
  --gold-dim: rgba(212, 175, 55, 0.15);

  --bg: #0a0e17;
  --bg-deep: #050710;
  --bg-alt: #0d1220;
  --card: #121826;
  --card-alt: #171f30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f1f3f7;
  --text-dim: #a7b0c0;
  --text-muted: #6b7484;

  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-dim); color: var(--gold-bright); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.25); border-radius: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }

.container { max-width: 1200px; }

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 em, h2 em, .gold-grad {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-dim { color: var(--text-dim) !important; }
.text-muted-gb { color: var(--text-muted) !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }

/* ---------------------------------------------------------------- Buttons */
.btn-gb-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1305 !important;
  border: none;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(212,175,55,0.25);
  transition: transform .15s ease, filter .15s ease;
}
.btn-gb-gold:hover { filter: brightness(1.08); transform: translateY(-2px); color: #1a1305; }
.btn-gb-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  font-weight: 700;
  padding: 12px 27px;
  border-radius: 10px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-gb-outline:hover { border-color: var(--gold); color: var(--gold-bright) !important; transform: translateY(-2px); }
.btn-lg-gb { padding: 15px 34px; font-size: 16px; }

/* ---------------------------------------------------------------- Navbar */
.gb-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  padding: 18px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.gb-navbar.scrolled {
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 11px 0;
}
.gb-brand { display: flex; align-items: center; gap: 11px; }
.gb-brand img { width: 38px; height: 38px; border-radius: 50%; }
.gb-brand .wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); }
.gb-nav-link {
  color: var(--text-dim) !important; font-weight: 600; font-size: 14.5px;
  padding: 8px 16px !important; transition: color .15s ease;
}
.gb-nav-link:hover { color: var(--gold-bright) !important; }
.gb-navbar .navbar-toggler { border-color: var(--border-strong); }
.gb-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.gb-navbar .offcanvas {
  background: var(--bg-alt); color: var(--text); border-left: 1px solid var(--border);
}
.gb-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-dim); border: 1px solid rgba(34,197,94,.3);
  padding: 6px 13px; border-radius: 999px;
}
.gb-live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: gbPulse 1.7s ease-in-out infinite; }
@keyframes gbPulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { opacity: .5; box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* ---------------------------------------------------------------- Hero + particle canvas */
.gb-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(212,175,55,0.10), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(212,175,55,0.06), transparent 60%),
              var(--bg);
}
#gbParticles { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.gb-hero .container { position: relative; z-index: 2; }
.gb-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.gb-hero .lead-gb { font-size: 17.5px; color: var(--text-dim); max-width: 50ch; margin-top: 20px; line-height: 1.7; }
.gb-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Animated connecting world-map lines (decorative, behind hero copy) */
.gb-world-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; }
.gb-world-lines path {
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-opacity: .35;
  stroke-dasharray: 6 8; animation: gbDash 26s linear infinite;
}
@keyframes gbDash { to { stroke-dashoffset: -400; } }
.gb-world-lines circle { fill: var(--gold-bright); opacity: .8; }

/* ---------------------------------------------------------------- Live market visualization (hero) */
.gb-market-viz {
  position: relative; z-index: 2;
  margin-top: 64px;
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.gb-market-viz .illustrative-tag {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.gb-viz-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.gb-viz-chip { text-align: center; min-width: 130px; }
.gb-viz-chip .flag { font-size: 30px; }
.gb-viz-chip .name { font-weight: 700; font-size: 13.5px; margin-top: 6px; color: var(--text-dim); }
.gb-viz-chip .local { font-family: var(--display); font-size: 15px; color: var(--text-dim); margin-top: 4px; }
.gb-viz-chip .usd { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--gold-bright); }
.gb-viz-center { text-align: center; }
.gb-viz-center .arrow-flow { font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; justify-content: center; }
.gb-viz-center .arrow-flow i { color: var(--gold); animation: gbFlow 1.6s ease-in-out infinite; }
@keyframes gbFlow { 0%,100% { transform: translateX(0); opacity: .6; } 50% { transform: translateX(4px); opacity: 1; } }
.gb-viz-profit {
  font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--green);
  animation: gbGlow 2.4s ease-in-out infinite;
}
@keyframes gbGlow { 0%,100% { text-shadow: 0 0 0 rgba(34,197,94,0);} 50% { text-shadow: 0 0 20px rgba(34,197,94,.5);} }
.gb-viz-profit-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }

/* ---------------------------------------------------------------- Sections generic */
.gb-section { padding: 110px 0; }
.gb-section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.gb-section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 16px; }
.gb-section-head p { margin-top: 16px; color: var(--text-dim); font-size: 16px; }
.gb-alt-bg { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.gb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.gb-reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------- How we calculate (4 steps) */
.gb-step-card {
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.gb-step-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.gb-step-num { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.gb-step-icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--gold-dim); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 16px 0 18px;
}
.gb-step-card h3 { font-size: 18px; font-family: var(--body); font-weight: 700; }
.gb-step-card p { margin-top: 8px; font-size: 14px; color: var(--text-dim); }

/* ---------------------------------------------------------------- Market grid cards */
.gb-market-card {
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.gb-market-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.5); box-shadow: 0 14px 34px rgba(212,175,55,0.12); }
.gb-market-card .top-row { display: flex; align-items: center; justify-content: space-between; }
.gb-market-card .flag { font-size: 26px; }
.gb-market-card .mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: gbPulse 1.8s ease-in-out infinite; }
.gb-market-card .country { font-weight: 700; font-size: 15px; margin-top: 12px; }
.gb-market-card .currency { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.gb-market-card .local-price { font-size: 13.5px; color: var(--text-dim); margin-top: 12px; }
.gb-market-card .usd-price { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--gold-bright); margin-top: 2px; }

/* ---------------------------------------------------------------- Arbitrage terminal section */
.gb-terminal {
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.gb-terminal table { color: var(--text); margin-bottom: 0; }
.gb-terminal thead th {
  color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border); font-weight: 700; padding-bottom: 14px;
}
.gb-terminal tbody td { border-color: var(--border); padding: 16px 8px; font-size: 14.5px; vertical-align: middle; }
.badge-buy { background: var(--green-dim); color: var(--green); font-weight: 800; padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; }
.badge-sell { background: rgba(245,158,11,0.15); color: #f59e0b; font-weight: 800; padding: 5px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; }
.badge-neutral { background: rgba(255,255,255,0.06); color: var(--text-muted); font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: 11px; }

.gb-flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; }
.gb-flow-node {
  padding: 12px 26px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em;
  border: 1px solid var(--border-strong);
}
.gb-flow-node.buy { color: var(--green); border-color: rgba(34,197,94,.35); background: var(--green-dim); }
.gb-flow-node.bridge { color: var(--gold-bright); border-color: rgba(212,175,55,.4); background: var(--gold-dim); font-family: var(--display); }
.gb-flow-node.sell { color: #f59e0b; border-color: rgba(245,158,11,.35); background: rgba(245,158,11,0.12); }
.gb-flow-arrow-down { color: var(--gold); font-size: 20px; animation: gbBounceDown 1.6s ease-in-out infinite; }
@keyframes gbBounceDown { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------------------------------------------------------------- Why GoldBridge feature cards */
.gb-feature-card { text-align: center; padding: 10px; }
.gb-feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.35);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold-bright);
  background: var(--gold-dim);
}
.gb-feature-card h3 { font-size: 17px; font-family: var(--body); font-weight: 700; }
.gb-feature-card p { margin-top: 10px; font-size: 14px; color: var(--text-dim); }

/* ---------------------------------------------------------------- Dashboard preview mockup */
.gb-device-frame {
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.gb-device-bar { display: flex; gap: 6px; padding: 4px 8px 14px; }
.gb-device-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.gb-device-screen { background: var(--bg); border-radius: 10px; padding: 20px; overflow: hidden; }
.gb-dash-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 10px; border-bottom: 1px solid var(--border);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.gb-dash-row:last-child { border-bottom: none; }
.gb-dash-side { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.gb-dash-side .flag { font-size: 20px; }
.gb-dash-side .info .name { font-size: 12.5px; font-weight: 700; }
.gb-dash-side .info .price { font-size: 12px; color: var(--text-muted); }
.gb-dash-side .info .usd { font-size: 14px; font-weight: 700; color: var(--gold-bright); }
.gb-dash-center { text-align: center; }
.gb-dash-profit { font-weight: 800; font-size: 15px; }
.gb-dash-profit.up { color: var(--green); }
.gb-dash-profit.down { color: var(--red); }
.gb-dash-order-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #1a1305;
  border: none; border-radius: 7px; font-size: 10.5px; font-weight: 800; padding: 5px 12px; margin-top: 4px;
}

/* ---------------------------------------------------------------- Continuous monitoring timeline */
.gb-timeline { position: relative; padding: 40px 0 10px; }
.gb-timeline-track { position: relative; height: 3px; background: var(--border); border-radius: 3px; margin: 0 20px; }
.gb-timeline-progress {
  position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 3px;
}
.gb-timeline-particle {
  position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 10px var(--gold-bright);
  transform: translateY(-50%);
  animation: gbTravelTrack 5s linear infinite;
}
@keyframes gbTravelTrack { from { left: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { left: 100%; opacity: 0; } }
.gb-timeline-steps { display: flex; justify-content: space-between; margin-top: 30px; flex-wrap: wrap; gap: 14px; }
.gb-timeline-step { text-align: center; flex: 1; min-width: 110px; }
.gb-timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--card-alt); border: 2px solid var(--gold); margin: 0 auto 12px; }
.gb-timeline-step span { font-size: 12px; font-weight: 700; color: var(--text-dim); }

/* ---------------------------------------------------------------- Trust section */
.gb-trust-list { list-style: none; padding: 0; margin: 0; }
.gb-trust-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-dim);
}
.gb-trust-list li:last-child { border-bottom: none; }
.gb-trust-list i { color: var(--gold); font-size: 17px; margin-top: 2px; }
.gb-trust-list strong { color: var(--text); }

/* ---------------------------------------------------------------- CTA band */
.gb-cta-band {
  position: relative;
  background: linear-gradient(135deg, #1a1305, var(--bg-deep) 55%, #1a1305);
  border-top: 1px solid rgba(212,175,55,.25);
  border-bottom: 1px solid rgba(212,175,55,.25);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.gb-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 340px at 50% 0%, rgba(212,175,55,.2), transparent 70%);
}
#gbCtaParticles { position: absolute; inset: 0; opacity: .5; }
.gb-cta-band .container { position: relative; z-index: 2; }
.gb-cta-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.gb-cta-band .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------------------------------------------------------------- FAQ accordion (Bootstrap skin override) */
.gb-accordion .accordion-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius) !important;
  margin-bottom: 14px; overflow: hidden;
}
.gb-accordion .accordion-button {
  background: transparent; color: var(--text); font-weight: 700; font-size: 15.5px;
  padding: 20px 24px; box-shadow: none !important;
}
.gb-accordion .accordion-button:not(.collapsed) { color: var(--gold-bright); background: var(--gold-dim); }
.gb-accordion .accordion-button::after {
  filter: invert(72%) sepia(45%) saturate(500%) hue-rotate(0deg) brightness(1.1);
}
.gb-accordion .accordion-body { color: var(--text-dim); font-size: 14.5px; padding: 4px 24px 22px; line-height: 1.7; }

/* ---------------------------------------------------------------- Footer */
.gb-footer { padding: 64px 0 30px; border-top: 1px solid var(--border); background: var(--bg-deep); }
.gb-footer .wordmark { font-family: var(--display); font-weight: 700; font-size: 18px; }
.gb-footer p.tagline { color: var(--text-dim); font-size: 14px; max-width: 32ch; margin-top: 14px; }
.gb-footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; margin-bottom: 18px; }
.gb-footer a.footer-link { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 11px; transition: color .15s; }
.gb-footer a.footer-link:hover { color: var(--gold-bright); }
.gb-footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; color: var(--text-muted);
}

/* ---------------------------------------------------------------- Mobile-specific */
@media (max-width: 767.98px) {
  .gb-hero { padding: 130px 0 60px; }
  .gb-market-viz .gb-viz-row { flex-direction: column; }
  .gb-market-scroll { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .gb-market-scroll .gb-market-card-wrap { flex: 0 0 78%; scroll-snap-align: start; }
  .gb-dash-side { min-width: 100px; }
  .gb-dash-side .info .name { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
