/* =============================================================================
   BLAZE CLIENT — STYLES
   Dark premium theme, warm "blaze" gradients (amber → rose → violet).
   ========================================================================== */

:root {
  --bg:        #08070c;
  --bg-2:      #0d0b14;
  --panel:     rgba(22, 19, 32, 0.55);
  --panel-2:   rgba(30, 26, 43, 0.7);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #f4f1fa;
  --text-dim:  #a49fb5;
  --text-mute: #6f6a80;

  /* the signature blaze gradient */
  --g-1: #ff9d3d;   /* amber   */
  --g-2: #ff4d6d;   /* rose    */
  --g-3: #b14dff;   /* violet  */
  --grad: linear-gradient(120deg, var(--g-1), var(--g-2) 52%, var(--g-3));
  --grad-soft: linear-gradient(120deg, rgba(255,157,61,.16), rgba(255,77,109,.16) 52%, rgba(177,77,255,.16));

  --radius:   18px;
  --radius-sm: 12px;
  --shadow:   0 20px 60px -20px rgba(0,0,0,.7);
  --glow:     0 0 40px -6px rgba(255,77,109,.45);
  --maxw:     1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name, .price-int, .hero-badge {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

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

/* ---------- animated backdrop ---------- */
.bg-orbs, .bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-orbs { overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.orb-1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle, rgba(255,157,61,.9), transparent 70%); }
.orb-2 { width: 42vw; height: 42vw; right: -8vw; top: 8vw;
  background: radial-gradient(circle, rgba(177,77,255,.85), transparent 70%);
  animation-delay: -7s; }
.orb-3 { width: 40vw; height: 40vw; left: 28vw; top: 46vw;
  background: radial-gradient(circle, rgba(255,77,109,.8), transparent 70%);
  animation-delay: -13s; }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(6vw, 4vw) scale(1.12); }
  66% { transform: translate(-4vw, 6vw) scale(.94); }
}
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- glass ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--glow);
  background-size: 160% 160%; animation: sheen 6s ease infinite;
}
.btn-primary:hover { box-shadow: 0 0 46px -4px rgba(255,77,109,.7); transform: translateY(-1px); }
@keyframes sheen { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border-2); color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-sm  { --pad-y: .5rem; --pad-x: .9rem; font-size: .85rem; }
.btn-lg  { --pad-y: 1rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.25rem; }
.brand-mark { font-size: 1.25rem; filter: drop-shadow(0 0 8px rgba(255,120,60,.8)); }
.brand-name { font-family: "Space Grotesk", sans-serif; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav > .btn { margin-left: .25rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 6rem 1.5rem 4rem; text-align: center;
}
.hero-badge {
  display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--grad-soft);
  font-size: .82rem; color: var(--text-dim); margin-bottom: 1.6rem;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; font-weight: 700; }
.hero-sub { margin: 1.4rem auto 0; max-width: 560px; color: var(--text-dim); font-size: 1.12rem; }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-note { margin-top: 1.4rem; color: var(--text-mute); font-size: .88rem; }
.hero-note strong { color: var(--text-dim); }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-desc { margin: .9rem auto 0; max-width: 540px; color: var(--text-dim); }

/* ---------- features ---------- */
.feature-cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
}
.feature-cat { padding: 1.6rem; }
.cat-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.cat-icon {
  --c: var(--g-2);
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-head h3 { font-size: 1.2rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.feature-list li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1rem; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.feature-list b { font-weight: 600; font-size: .98rem; }
.feature-list span { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }

.qol {
  margin-top: 1.2rem; padding: 1.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.qol-item { display: flex; flex-direction: column; gap: .3rem; }
.qol-k { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .98rem; }
.qol-v { color: var(--text-dim); font-size: .84rem; }

/* ---------- install steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { padding: 1.8rem 1.6rem; position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; font-family: "Space Grotesk"; font-weight: 700;
  background: var(--grad); color: #fff; margin-bottom: 1rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .92rem; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; }
code { background: rgba(255,255,255,.07); padding: .1em .4em; border-radius: 6px; color: #ffcf9e; }
kbd {
  background: rgba(255,255,255,.08); border: 1px solid var(--border-2);
  border-bottom-width: 2px; padding: .12em .5em; border-radius: 6px;
}

/* ---------- pricing ---------- */
.price-card { max-width: 420px; margin: 0 auto; padding: 2.4rem; position: relative; overflow: hidden; }
.price-glow {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; pointer-events: none;
}
.price-top { text-align: center; padding-bottom: 1.6rem; border-bottom: 1px solid var(--border); }
.price-plan { color: var(--text-dim); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.price-amount { display: flex; align-items: flex-start; justify-content: center; gap: .1rem; margin: .5rem 0 .2rem; }
.price-cur { font-size: 1.6rem; font-weight: 600; margin-top: .6rem; color: var(--text-dim); }
.price-int { font-size: 4rem; font-weight: 700; line-height: 1; }
.price-eq { color: var(--text-mute); font-size: .84rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin: 1.6rem 0; }
.price-features li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-dim); font-size: .94rem; }
.price-features li::before { content: "✓"; color: #66ff9c; font-weight: 700; }
.price-fine { text-align: center; color: var(--text-mute); font-size: .8rem; margin-top: 1rem; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq details { padding: 1.1rem 1.4rem; cursor: pointer; }
.faq summary { list-style: none; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--g-2); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); font-size: .92rem; margin-top: .8rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 3rem auto 0; padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; }
.footer-legal { color: var(--text-mute); font-size: .82rem; max-width: 560px; }
.footer-support { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-support a { color: var(--text-dim); font-size: .88rem; border-bottom: 1px solid var(--border-2); padding-bottom: 2px; }
.footer-support a:hover { color: var(--text); }

/* ============================================================================
   CHECKOUT MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,8,.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: 100%; max-width: 440px; padding: 2rem 1.9rem 1.9rem;
  animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
  max-height: 92vh; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-close {
  position: absolute; top: .9rem; right: 1.1rem; background: none; border: none;
  color: var(--text-mute); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.steps-dots { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.6rem; }
.steps-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); transition: .3s; }
.steps-dots .dot.is-active { background: var(--grad); width: 26px; }

.cstep-title { font-size: 1.5rem; text-align: center; }
.cstep-sub { text-align: center; color: var(--text-dim); font-size: .92rem; margin: .4rem 0 1.5rem; }

.field { display: block; margin-bottom: 1.2rem; }
.field-label { display: block; font-size: .82rem; color: var(--text-dim); margin-bottom: .45rem; }
.field input {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--border-2);
  color: var(--text); font: inherit; font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--g-2); box-shadow: 0 0 0 3px rgba(255,77,109,.18); }
.field-error { display: block; color: #ff6b7d; font-size: .82rem; margin-top: .4rem; min-height: 1em; }

/* coin choices */
.coin-choices { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.coin-btn {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-2);
  cursor: pointer; color: var(--text); font: inherit; text-align: left;
  transition: .18s;
}
.coin-btn:hover { border-color: var(--g-2); background: rgba(255,255,255,.07); transform: translateY(-1px); }
.coin-logo { width: 38px; height: 38px; flex-shrink: 0; }
.coin-meta { display: flex; flex-direction: column; }
.coin-name { font-weight: 600; }
.coin-amt { color: var(--text-dim); font-size: .85rem; }
.coin-arrow { margin-left: auto; color: var(--text-mute); font-size: 1.3rem; }

/* pay step */
.pay-amount { text-align: center; margin-bottom: 1.2rem; }
.pay-amount-crypto { font-family: "Space Grotesk"; font-size: 1.9rem; font-weight: 700; }
.pay-amount-ticker { font-weight: 600; color: var(--g-1); margin-left: .3rem; }
.pay-amount-usd { display: block; color: var(--text-mute); font-size: .85rem; margin-top: .2rem; }
.pay-qr {
  width: 180px; height: 180px; margin: 0 auto 1.3rem; padding: 10px;
  background: #fff; border-radius: var(--radius-sm); display: grid; place-items: center;
}
.pay-qr img, .pay-qr canvas, .pay-qr table { width: 100% !important; height: 100% !important; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .82rem; }
.pay-for { text-align: center; color: var(--text-dim); font-size: .88rem; margin: .3rem 0 1.2rem; }
.pay-for b { color: var(--text); }

/* done step */
.done-check {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, #34d17a, #12a35c);
  box-shadow: 0 0 34px -4px rgba(52,209,122,.6);
}
.download-name { text-align: center; color: var(--text-mute); font-size: .82rem; margin-top: .7rem; }
.done-support { text-align: center; margin-top: 1.4rem; color: var(--text-dim); font-size: .88rem; }
.done-support a { color: var(--g-1); border-bottom: 1px solid rgba(255,157,61,.4); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature-cats { grid-template-columns: 1fr; }
  .qol { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .qol { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .orb, .btn-primary { animation: none; }
  html { scroll-behavior: auto; }
}
