<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>How to Buy Bitcoin with a Card · Step-by-Step Guide</title>
<style>
  :root{
    --bg:#0b1020;
    --bg2:#10172e;
    --card:#161f3d;
    --card2:#1b2647;
    --line:#28335c;
    --txt:#eaf0ff;
    --muted:#9aa6cc;
    --accent:#f7931a;      /* bitcoin orange */
    --accent2:#ffb74d;
    --green:#27c499;
    --blue:#5b8cff;
    --glow:0 12px 40px rgba(247,147,26,.25);
  }
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;
    font-family:'Segoe UI',system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
    background:radial-gradient(1200px 700px at 80% -10%,#1a2752,transparent),
               radial-gradient(900px 600px at 0% 10%,#16224a55,transparent),
               linear-gradient(180deg,var(--bg),var(--bg2));
    color:var(--txt);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  .wrap{max-width:920px;margin:0 auto;padding:0 22px 80px}

  /* ---------- HERO ---------- */
  header.hero{
    position:relative;
    padding:64px 22px 54px;
    text-align:center;
    overflow:hidden;
  }
  .hero .coin{margin:0 auto 18px;display:block;filter:drop-shadow(0 14px 30px rgba(247,147,26,.45));animation:float 4s ease-in-out infinite}
  @keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
  .hero h1{
    font-size:clamp(28px,5vw,46px);
    margin:0 0 12px;
    letter-spacing:-.5px;
    background:linear-gradient(90deg,#fff,#ffd9a8);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .hero p{max-width:560px;margin:0 auto;color:var(--muted);font-size:17px}
  .badges{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}
  .badge{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--card);border:1px solid var(--line);
    padding:8px 14px;border-radius:999px;font-size:13px;color:var(--muted)
  }
  .badge svg{flex:none}

  /* ---------- WALLET CARD ---------- */
  .wallet{
    margin:8px auto 46px;max-width:760px;
    background:linear-gradient(135deg,var(--card2),var(--card));
    border:1px solid var(--line);border-radius:20px;padding:24px 26px;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
  }
  .wallet .row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
  .wallet .ico{
    width:52px;height:52px;border-radius:14px;flex:none;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    display:grid;place-items:center;box-shadow:var(--glow)
  }
  .wallet .label{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}
  .wallet .addr{font-family:'Courier New',monospace;font-size:15px;word-break:break-all;color:#fff;margin-top:2px}
  .copyBtn{
    margin-left:auto;border:none;cursor:pointer;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    color:#1a1206;font-weight:700;padding:11px 18px;border-radius:12px;font-size:14px;
    transition:transform .15s ease,box-shadow .15s ease;box-shadow:var(--glow)
  }
  .copyBtn:hover{transform:translateY(-2px)}
  .copyBtn.done{background:linear-gradient(135deg,var(--green),#5ee0bc);color:#06251c}

  /* ---------- STEPS ---------- */
  .steps{display:flex;flex-direction:column;gap:28px}
  .step{
    display:grid;grid-template-columns:130px 1fr;gap:24px;align-items:center;
    background:linear-gradient(135deg,var(--card),var(--bg2));
    border:1px solid var(--line);border-radius:22px;padding:26px;
    box-shadow:0 14px 36px rgba(0,0,0,.28);
    transition:transform .2s ease,border-color .2s ease;
  }
  .step:hover{transform:translateY(-4px);border-color:#3a4a82}
  .step .art{position:relative;display:grid;place-items:center}
  .step .num{
    position:absolute;top:-14px;left:-10px;
    width:38px;height:38px;border-radius:50%;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    color:#1a1206;font-weight:800;display:grid;place-items:center;font-size:16px;
    box-shadow:var(--glow);border:3px solid var(--bg2)
  }
  .step h3{margin:0 0 6px;font-size:20px}
  .step p{margin:0;color:var(--muted);font-size:15px}
  .step .tip{margin-top:10px;font-size:13px;color:var(--accent2);display:flex;align-items:center;gap:7px}
  .step.flip{grid-template-columns:1fr 130px}
  .step.flip .art{order:2}
  @media(max-width:620px){
    .step,.step.flip{grid-template-columns:1fr;text-align:center}
    .step.flip .art{order:0}
    .step .num{left:50%;transform:translateX(-50%)}
  }

  /* ---------- CTA ---------- */
  .cta{
    margin-top:46px;text-align:center;
    background:linear-gradient(135deg,#231a09,#2a1d06);
    border:1px solid #4a3a18;border-radius:24px;padding:40px 26px;
  }
  .cta h2{margin:0 0 10px;font-size:26px}
  .cta p{color:var(--muted);margin:0 0 22px}
  .goBtn{
    display:inline-flex;align-items:center;gap:10px;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    color:#1a1206;font-weight:800;text-decoration:none;
    padding:16px 30px;border-radius:14px;font-size:17px;
    box-shadow:var(--glow);transition:transform .15s ease
  }
  .goBtn:hover{transform:translateY(-3px)}

  /* ---------- SAFETY ---------- */
  .safety{margin-top:40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
  .scard{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}
  .scard h4{margin:0 0 6px;display:flex;align-items:center;gap:9px;font-size:15px}
  .scard p{margin:0;color:var(--muted);font-size:13.5px}

  footer{text-align:center;color:#67719b;font-size:12.5px;margin-top:50px;line-height:1.7}
  footer a{color:var(--accent2);text-decoration:none}
</style>
</head>
<body>

<header class="hero">
  <!-- Bitcoin coin illustration -->
  <svg class="coin" width="110" height="110" viewBox="0 0 110 110" fill="none" xmlns="http://www.w3.org/2000/svg">
    <defs>
      <linearGradient id="g1" x1="0" y1="0" x2="1" y2="1">
        <stop offset="0" stop-color="#ffd27d"/><stop offset="1" stop-color="#f7931a"/>
      </linearGradient>
    </defs>
    <circle cx="55" cy="55" r="50" fill="url(#g1)"/>
    <circle cx="55" cy="55" r="50" fill="none" stroke="#fff" stroke-opacity=".25" stroke-width="2"/>
    <path d="M62 38c5 1 8 4 7.5 9-.4 3.5-2.6 5.3-5.5 6 3.3 1 5.3 3.4 4.8 7.4-.7 5.6-5.3 7.2-11.3 7.2v6h-4v-6h-3v6h-4v-6h-8v-4.2h2.8c1.4 0 1.9-.6 1.9-1.8V44.4c0-1.3-.6-1.8-1.9-1.8H38V38.4h8v-6h4v6h3v-6h4v6Zm-13 4.5v8.5h6.5c2.8 0 4.5-1.3 4.5-4.3s-1.7-4.2-4.5-4.2H49Zm0 12.5v9h7.5c3 0 4.8-1.4 4.8-4.5s-1.8-4.5-4.8-4.5H49Z" fill="#7a4a06"/>
  </svg>
  <h1>Buy Bitcoin with Your Card</h1>
  <p>A simple, visual walkthrough for purchasing BTC instantly with a debit or credit card on Changelly — sent straight to your own wallet.</p>
  <div class="badges">
    <span class="badge">⚡ Instant card payment</span>
    <span class="badge">🔒 Non-custodial — your keys</span>
    <span class="badge">🌍 Visa &amp; Mastercard</span>
  </div>
</header>

<div class="wrap">

  <!-- WALLET CARD -->
  <section class="wallet">
    <div class="row">
      <div class="ico">
        <svg width="26" height="26" viewBox="0 0 24 24" fill="none"><path d="M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z" stroke="#1a1206" stroke-width="2"/><path d="M16 12.5h2.5" stroke="#1a1206" stroke-width="2" stroke-linecap="round"/><path d="M3 9h18" stroke="#1a1206" stroke-width="2"/></svg>
      </div>
      <div>
        <div class="label">Your receiving BTC wallet</div>
        <div class="addr" id="addr">bc1qdnzhv8hwjup2x84hfq4sydlc78pum0uqaplxmz</div>
      </div>
      <button class="copyBtn" id="copyBtn" onclick="copyAddr()">Copy address</button>
    </div>
  </section>

  <!-- STEPS -->
  <div class="steps">

    <!-- 1 -->
    <article class="step">
      <div class="art">
        <span class="num">1</span>
        <!-- browser / open site -->
        <svg width="110" height="100" viewBox="0 0 110 100" fill="none">
          <rect x="8" y="14" width="94" height="68" rx="9" fill="#1b2647" stroke="#3a4a82" stroke-width="2"/>
          <rect x="8" y="14" width="94" height="18" rx="9" fill="#243259"/>
          <circle cx="20" cy="23" r="3" fill="#ff6b6b"/><circle cx="31" cy="23" r="3" fill="#ffd166"/><circle cx="42" cy="23" r="3" fill="#27c499"/>
          <rect x="52" y="19" width="44" height="8" rx="4" fill="#11182f"/>
          <rect x="22" y="44" width="40" height="7" rx="3.5" fill="#f7931a"/>
          <rect x="22" y="57" width="64" height="5" rx="2.5" fill="#3a4a82"/>
          <rect x="22" y="67" width="50" height="5" rx="2.5" fill="#2c3a6a"/>
        </svg>
      </div>
      <div>
        <h3>Open the Changelly Buy page</h3>
        <p>Go to <strong>changelly.com/buy/btc</strong> in your browser. This is the page where you select Bitcoin as the crypto you want to purchase with a card.</p>
        <div class="tip">💡 Always check the URL spelling to avoid look-alike phishing sites.</div>
      </div>
    </article>

    <!-- 2 -->
    <article class="step flip">
      <div class="art">
        <span class="num">2</span>
        <!-- amount input -->
        <svg width="110" height="100" viewBox="0 0 110 100" fill="none">
          <rect x="14" y="20" width="82" height="56" rx="12" fill="#1b2647" stroke="#3a4a82" stroke-width="2"/>
          <text x="26" y="42" fill="#9aa6cc" font-size="11" font-family="Arial">You pay</text>
          <text x="26" y="60" fill="#fff" font-size="20" font-weight="bold" font-family="Arial">$100</text>
          <circle cx="80" cy="52" r="13" fill="#243259"/>
          <text x="80" y="57" fill="#27c499" font-size="13" font-weight="bold" font-family="Arial" text-anchor="middle">USD</text>
        </svg>
      </div>
      <div>
        <h3>Enter the amount &amp; pick a provider</h3>
        <p>Type how much you want to spend (e.g. in USD or EUR). Changelly shows quotes from several payment providers — pick the best BTC rate and tap <strong>Buy</strong>.</p>
        <div class="tip">💡 Compare the rate &amp; fees shown before confirming.</div>
      </div>
    </article>

    <!-- 3 -->
    <article class="step">
      <div class="art">
        <span class="num">3</span>
        <!-- wallet paste -->
        <svg width="110" height="100" viewBox="0 0 110 100" fill="none">
          <rect x="12" y="24" width="86" height="48" rx="11" fill="#1b2647" stroke="#f7931a" stroke-width="2"/>
          <text x="24" y="44" fill="#9aa6cc" font-size="10" font-family="Arial">BTC address</text>
          <rect x="24" y="50" width="58" height="8" rx="4" fill="#2c3a6a"/>
          <rect x="24" y="50" width="34" height="8" rx="4" fill="#f7931a"/>
          <path d="M84 44l5 5 9-10" stroke="#27c499" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
        </svg>
      </div>
      <div>
        <h3>Paste your BTC wallet address</h3>
        <p>When asked for the recipient address, paste <strong>your own</strong> wallet address so the Bitcoin lands where you control the keys:</p>
        <p style="font-family:'Courier New',monospace;color:#fff;background:#11182f;border:1px solid #28335c;border-radius:10px;padding:10px 12px;margin-top:10px;word-break:break-all;font-size:13px">bc1qdnzhv8hwjup2x84hfq4sydlc78pum0uqaplxmz</p>
        <div class="tip">⚠️ Double-check the address — crypto transfers can't be reversed.</div>
      </div>
    </article>

    <!-- 4 -->
    <article class="step flip">
      <div class="art">
        <span class="num">4</span>
        <!-- card -->
        <svg width="110" height="100" viewBox="0 0 110 100" fill="none">
          <defs><linearGradient id="cardg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#5b8cff"/><stop offset="1" stop-color="#7a4af7"/></linearGradient></defs>
          <rect x="12" y="26" width="86" height="52" rx="10" fill="url(#cardg)"/>
          <rect x="12" y="38" width="86" height="9" fill="#1b1f33" opacity=".55"/>
          <rect x="22" y="56" width="30" height="6" rx="3" fill="#fff" opacity=".85"/>
          <rect x="22" y="65" width="46" height="4" rx="2" fill="#fff" opacity=".55"/>
          <circle cx="84" cy="64" r="7" fill="#ffb74d" opacity=".9"/><circle cx="76" cy="64" r="7" fill="#ff6b6b" opacity=".75"/>
        </svg>
      </div>
      <div>
        <h3>Pay securely with your card</h3>
        <p>Complete KYC if prompted, then enter your Visa or Mastercard details on the provider's secure checkout. You may confirm with 3-D Secure (a code from your bank).</p>
        <div class="tip">🔒 Card details go to the licensed payment provider, not stored by you here.</div>
      </div>
    </article>

    <!-- 5 -->
    <article class="step">
      <div class="art">
        <span class="num">5</span>
        <!-- received -->
        <svg width="110" height="100" viewBox="0 0 110 100" fill="none">
          <circle cx="55" cy="50" r="34" fill="#143427" stroke="#27c499" stroke-width="2"/>
          <path d="M40 50l10 10 22-22" stroke="#27c499" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
          <circle cx="86" cy="24" r="10" fill="#f7931a"/>
          <text x="86" y="29" fill="#7a4a06" font-size="13" font-weight="bold" font-family="Arial" text-anchor="middle">₿</text>
        </svg>
      </div>
      <div>
        <h3>Receive your Bitcoin</h3>
        <p>After the payment clears, the BTC is sent on-chain to your address. It usually arrives within minutes to an hour depending on network confirmations.</p>
        <div class="tip">💡 Track it on any block explorer using your address.</div>
      </div>
    </article>

  </div>

  <!-- CTA -->
  <section class="cta">
    <h2>Ready to buy?</h2>
    <p>Open the official Changelly Buy BTC page to get started.</p>
    <a class="goBtn" href="https://changelly.com/buy/btc" target="_blank" rel="noopener noreferrer">
      Go to Changelly · Buy BTC
      <svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M5 12h14M13 6l6 6-6 6" stroke="#1a1206" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
    </a>
  </section>

  <!-- SAFETY -->
  <div class="safety">
    <div class="scard">
      <h4>🔐 Use your own wallet</h4>
      <p>Sending to an address you control means you hold the private keys — not an exchange.</p>
    </div>
    <div class="scard">
      <h4>🧾 Check fees first</h4>
      <p>Card purchases include a provider fee &amp; network fee. The final BTC amount is shown before you confirm.</p>
    </div>
    <div class="scard">
      <h4>🛡️ Avoid fake sites</h4>
      <p>Only type the address yourself. Never trust an address sent to you by a stranger.</p>
    </div>
  </div>

  <footer>
    Educational guide only — not financial advice. Crypto purchases carry risk and prices fluctuate.<br>
    Always verify you are on the official <a href="https://changelly.com/buy/btc" target="_blank" rel="noopener noreferrer">changelly.com</a> domain before entering payment details.
  </footer>

</div>

<script>
  function copyAddr(){
    const addr = document.getElementById('addr').innerText.trim();
    const btn = document.getElementById('copyBtn');
    navigator.clipboard.writeText(addr).then(()=>{
      btn.textContent = '✓ Copied!';
      btn.classList.add('done');
      setTimeout(()=>{ btn.textContent='Copy address'; btn.classList.remove('done'); },1800);
    }).catch(()=>{
      btn.textContent = 'Copy failed';
    });
  }
</script>
</body>
</html>