:root {
  --copper: #c66a2b;
  --ember: #ff8a2a;
  --bronze: #7a3e1c;
  --dark: #0b0b0b;
  --text: #f3e9df;
  --muted: #cfc6bd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #1a0e08, #0b0b0b 70%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden; /* 🔒 prevent horizontal spill */
}

/* FX */
.bg-grain {
  position: fixed;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: .06;
  z-index: 1;
}

.embers {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(198,106,43,.35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,138,42,.25), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(122,62,28,.25), transparent 45%);
  animation: embersMove 22s linear infinite;
  opacity: .3;
  z-index: 2;
}

@keyframes embersMove {
  to { background-position: 300px -700px, -400px -900px, 200px -600px; }
}

/* LAYOUT */
.container {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* BOX */
.glow-box {
  margin-top: 90px;
  padding: 50px 30px;
  border-radius: 20px;
  border: 1px solid rgba(198,106,43,.45);
  background: linear-gradient(180deg, rgba(20,10,6,.9), rgba(10,10,10,.8));
  box-shadow: 0 0 40px rgba(198,106,43,.25);
  overflow: hidden; /* 🔒 fixes iframe bleed */
}

/* HERO */
.hero-img {
  max-width: 360px;
  width: 100%;
  margin: 20px auto;
  border-radius: 16px;
  filter: drop-shadow(0 0 50px rgba(198,106,43,.55));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

/* TEXT */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

.subtitle {
  margin: 15px 0 30px;
  color: var(--muted);
}

/* BUTTONS */
.buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn.outline {
  padding: 12px 26px;
  border-radius: 30px;
  border: 1px solid rgba(198,106,43,.7);
  color: var(--text);
  text-decoration: none;
  transition: .3s;
}

.btn.outline:hover {
  box-shadow: 0 0 28px rgba(255,138,42,.6);
}

/* STEPS */
.steps {
  max-width: 620px;
  margin: 40px auto;
  text-align: left;
}

.step h3 {
  color: var(--ember);
}

.step ul {
  padding-left: 18px;
  color: var(--muted);
}

/* ✅ CA FIX — THIS WAS THE PROBLEM */
.ca-box {
  margin-top: 30px;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(198,106,43,.65);
  background: rgba(15,8,4,.95);
  box-shadow: 0 0 30px rgba(198,106,43,.35);
  max-width: 100%;
  overflow: hidden;
}

.ca-box code {
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  flex: 1 1 auto;     /* 🔑 allows wrapping */
  max-width: 100%;
}

.copy-icon {
  cursor: pointer;
  color: var(--ember);
  flex-shrink: 0;     /* 🔒 keeps icon inside */
  font-size: 1.2rem;
}

/* CTA */
.cta {
  margin-top: 70px;
}

.cta-btn {
  padding: 18px 52px;
  border-radius: 40px;
  background: linear-gradient(135deg, #ff9a3c, #c66a2b, #7a3e1c);
  color: #140a05;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 50px rgba(255,138,42,.7);
}

/* ✅ CHART FIX — ACTUALLY VISIBLE */
.chart-box {
  margin-top: 30px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(198,106,43,.45);
  background: rgba(10,10,10,.9);
}

.chart-box iframe {
  display: block;
  width: 100%;
  height: 1000px;      /* 👈 REAL chart height */
  min-height: 1000px;
  border-radius: 12px;
  border: none;
}

/* MOBILE SAFETY */
@media (max-width: 600px) {
  .chart-box iframe {
    height: 560px;
    min-height: 560px;
  }
}

/* FOOTER */
.footer {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,10,6,.95);
  border: 1px solid rgba(198,106,43,.7);
  color: var(--ember);
  padding: 12px 22px;
  border-radius: 30px;
  opacity: 0;
  transition: .4s;
  z-index: 10;
}

#toast.show {
  opacity: 1;
}