/* ============================================================
   Bitcoin Charity — stylesheet
   ============================================================ */
:root {
  --bg: #0b0e11;
  --bg-alt: #12161c;
  --card: #161b22;
  --card-border: #232a34;
  --text: #f5f6f7;
  --text-dim: #a7b0bc;
  --orange: #f7931a;
  --gold: #f0b90b;
  --green: #16c784;
  --red: #ea3943;
  --radius: 16px;
  --max-width: 1120px;
  --shadow-glow: 0 0 60px rgba(247, 147, 26, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 15% 20%, rgba(247, 147, 26, 0.08), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(240, 185, 11, 0.07), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(247, 147, 26, 0.04), transparent 60%);
  background-size: 140% 140%;
  animation: meshDrift 22s ease-in-out infinite;
}

#embers-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(22, 199, 132, 0.6);
  animation: livePulse 1.8s ease-in-out infinite;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a1300;
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.35);
  animation: breathe 3.2s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(247, 147, 26, 0.6);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn[data-prelaunch="true"]::after {
  content: "Coming soon";
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: rgba(26, 19, 0, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(247, 147, 26, 0.12), transparent 55%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-orb-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.35), transparent 70%);
  animation: orbFloat 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.3), transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  filter: drop-shadow(var(--shadow-glow));
  animation: floatY 4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero h1 .ticker {
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ca-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 10px 10px 10px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: borderGlow 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

.ca-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  animation-play-state: paused;
}

.ca-card .ca-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ca-card code {
  font-size: 13px;
  color: var(--gold);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-card .copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ca-card .copy-icon:hover {
  color: var(--orange);
  border-color: var(--orange);
  transform: scale(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
  margin: 0 auto;
  gap: 24px;
}

.hero-stats .stat {
  padding: 18px 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-stats .stat:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}

.hero-stats .stat strong {
  display: block;
  font-size: 22px;
  color: var(--orange);
}

.hero-stats .stat span {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.card {
  position: relative;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 147, 26, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(0, 0, 0, 0.35);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.18), rgba(240, 185, 11, 0.18));
  font-size: 22px;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
  animation: iconWobble 3.6s ease-in-out infinite;
}

.card:hover .icon {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-6deg);
}

.card h3 {
  font-size: 19px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.card blockquote {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  background: rgba(247, 147, 26, 0.06);
  font-style: italic;
  color: var(--text-dim);
  font-size: 14px;
  border-radius: 0 8px 8px 0;
}

.section-alt {
  background: rgba(18, 22, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.source-note {
  max-width: 680px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Tokenomics ---------- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.flow-step {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 150px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: floatY 3.6s ease-in-out infinite;
}

.flow-step:nth-child(3) {
  animation-delay: 0.4s;
}

.flow-step:nth-child(5) {
  animation-delay: 0.8s;
}

.flow-step:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: rgba(247, 147, 26, 0.5);
}

.flow-arrow {
  animation: arrowPulse 1.8s ease-in-out infinite;
}

.flow-step .flow-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: inline-block;
  animation: iconWobble 3s ease-in-out infinite;
}

.flow-step strong {
  display: block;
  font-size: 14px;
}

.flow-step span {
  font-size: 12px;
  color: var(--text-dim);
}

.flow-arrow {
  color: var(--orange);
  font-size: 22px;
}

.tax-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 520px;
  margin: 0 auto 48px;
}

.tax-cards .card {
  text-align: center;
  animation: taxPulse 3s ease-in-out infinite;
}

.tax-cards .card:hover {
  animation-play-state: paused;
}

.tax-cards .tax-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--orange);
}

.wallet-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  animation: borderGlow 4.5s ease-in-out infinite;
}

.wallet-box .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
}

.wallet-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--gold);
}

.wallet-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.wallet-note strong {
  color: var(--red);
}

/* ---------- Tracker ---------- */
.tracker-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--card), var(--bg-alt)) padding-box,
    linear-gradient(135deg, rgba(247, 147, 26, 0.55), rgba(240, 185, 11, 0.25), rgba(247, 147, 26, 0.55)) border-box;
  box-shadow: var(--shadow-glow);
  z-index: 1;
}

.tracker-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.tracker-amount {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
  transition: text-shadow 0.4s ease;
}

.tracker-amount.flash {
  text-shadow: 0 0 24px rgba(247, 147, 26, 0.9);
}

.tracker-card {
  animation: cardGlow 4s ease-in-out infinite;
}

.tracker-usd {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.tracker-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}

.tracker-status[data-tone="ok"] {
  color: var(--green);
}

.tracker-status[data-tone="warn"] {
  color: var(--gold);
}

.tracker-status[data-tone="error"] {
  color: var(--red);
}

.tracker-countdown {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buy steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  transition: transform 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step:hover .step-num {
  animation-play-state: paused;
  transform: scale(1.15);
}

.step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #1a1300;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.25s ease;
  animation: stepPulse 2.6s ease-in-out infinite;
}

.step:nth-child(2) .step-num {
  animation-delay: 0.2s;
}

.step:nth-child(3) .step-num {
  animation-delay: 0.4s;
}

.step:nth-child(4) .step-num {
  animation-delay: 0.6s;
}

.step h3 {
  font-size: 15px;
}

.step p {
  font-size: 13px;
  color: var(--text-dim);
}

.buy-cta {
  text-align: center;
}

.buy-cta .btn {
  padding: 18px 44px;
  font-size: 17px;
}

.buy-warning {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.faq-question:hover {
  color: var(--orange);
  padding-left: 8px;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--orange);
  transition: transform 0.2s ease;
  animation: plusPulse 3.2s ease-in-out infinite;
}

.faq-item.is-open .faq-question::after {
  animation: none;
  transform: rotate(45deg);
}

.faq-question:hover::after {
  animation-play-state: paused;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-dim);
  font-size: 14px;
}

.faq-item.is-open .faq-answer {
  max-height: 220px;
  padding-bottom: 20px;
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  border-top: 1px solid var(--card-border);
  padding: 56px 0 32px;
  background: rgba(18, 22, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
}

.disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
}

.disclaimer p + p {
  margin-top: 10px;
}

.copyright {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .tax-cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .flow {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .tracker-card {
    padding: 32px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframe animations ---------- */
@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(247, 147, 26, 0.35);
  }
  50% {
    box-shadow: 0 8px 34px rgba(247, 147, 26, 0.55);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 20px) scale(1.08);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(22, 199, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 199, 132, 0);
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cardGlow {
  0%,
  100% {
    box-shadow: 0 0 60px rgba(247, 147, 26, 0.15);
  }
  50% {
    box-shadow: 0 0 80px rgba(247, 147, 26, 0.3);
  }
}

@keyframes meshDrift {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  50% {
    background-position: 10% 15%, 90% 85%, 45% 55%;
  }
}

@keyframes iconWobble {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes taxPulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 rgba(247, 147, 26, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 28px rgba(247, 147, 26, 0.3);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: var(--card-border);
  }
  50% {
    border-color: rgba(247, 147, 26, 0.45);
  }
}

@keyframes stepPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(247, 147, 26, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(247, 147, 26, 0);
  }
}

@keyframes plusPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
