/* ============================================================
   Cryptoway — Crypto Payment Gateway
   style.css
   ============================================================ */

:root {
  --bg: #0b0f1a;
  --bg-alt: #0e1424;
  --surface: #131a2c;
  --surface-2: #18203580;
  --border: #232b42;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --primary: #6c5ce7;
  --primary-2: #8b7bff;
  --accent: #00d8a8;
  --accent-2: #2dd4bf;
  --grad: linear-gradient(135deg, #8b7bff 0%, #00d8a8 100%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 820px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid var(--b); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #07101e; box-shadow: 0 10px 30px -10px rgba(108, 92, 231, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 216, 168, .6); }
.btn-outline { --b: var(--border); background: transparent; color: var(--text); }
.btn-outline:hover { --b: var(--primary-2); background: var(--surface-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 15, 26, .65); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 15, 26, .88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; font-family: 'Sora', sans-serif; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--grad); color: #07101e; font-weight: 800; font-size: 1.1rem;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: inherit; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(108, 92, 231, .35), transparent 70%),
              radial-gradient(closest-side, rgba(0, 216, 168, .22), transparent 70%);
  background-position: 30% 30%, 70% 60%; background-repeat: no-repeat; filter: blur(20px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }

.pill {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.lead-sm { font-size: 1.08rem; color: var(--muted); margin: 14px 0 22px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.hero-points li { color: var(--accent-2); }

/* Hero checkout card */
.hero-visual { display: flex; justify-content: center; }
.pay-card {
  width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pay-card-head { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.pay-card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3550; }
.pay-card-head .dot:nth-child(1) { background: #ff5f57; }
.pay-card-head .dot:nth-child(2) { background: #febc2e; }
.pay-card-head .dot:nth-child(3) { background: #28c840; }
.pay-title { margin-left: auto; font-size: .8rem; color: var(--muted); }
.pay-body { padding: 22px; }
.pay-amount { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.pay-amount span { color: var(--muted); font-size: .85rem; }
.pay-amount strong { font-size: 2.1rem; font-family: 'Sora', sans-serif; }
.pay-coins { display: flex; gap: 8px; margin-bottom: 18px; }
.pay-coins .coin {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt);
  color: var(--muted); font-weight: 600; font-size: .82rem; cursor: pointer; transition: .2s;
}
.pay-coins .coin.active { border-color: var(--primary-2); color: var(--text); background: var(--surface-2); }
.pay-qr { display: grid; place-items: center; margin-bottom: 16px; }
.qr {
  width: 130px; height: 130px; border-radius: 14px;
  background: #fff url("../assets/qr.png") center / 112px 112px no-repeat;
  border: 6px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.pay-status { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); margin-bottom: 16px; justify-content: center; }
.ping { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 216, 168, .6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 216, 168, .55); } 70% { box-shadow: 0 0 0 12px rgba(0, 216, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 216, 168, 0); } }

/* ---------- Stats ---------- */
.stats { padding: 30px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; color: var(--accent-2); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; position: relative;
}
.card:hover { transform: translateY(-5px); border-color: #34406a; box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.5rem;
  background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-num {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.2rem; background: var(--grad); color: #07101e; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Coins ---------- */
.coins-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.coin-chip {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .95rem; transition: .25s;
}
.coin-chip:hover { border-color: var(--primary-2); transform: translateY(-3px); }
.coin-chip span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); color: var(--accent-2); font-size: 1rem; flex-shrink: 0;
}

/* ---------- Pricing ---------- */
.pricing .price-card { display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 6px; }
.price .amt { font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 800; }
.price .per { color: var(--muted); font-size: .9rem; }
.price-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.feature-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.feature-list li { color: var(--text); font-size: .96rem; }
.price-card.featured { border-color: var(--primary-2); box-shadow: 0 0 0 1px var(--primary-2), 0 30px 60px -30px rgba(108, 92, 231, .6); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #07101e; font-weight: 700; font-size: .78rem; padding: 5px 14px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }

/* ---------- Split / Security ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.check-list strong { color: var(--text); }
.security-visual { display: flex; justify-content: center; }
.shield-card {
  width: 100%; max-width: 340px; text-align: center; padding: 40px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shield { font-size: 3.5rem; margin-bottom: 14px; }
.shield-card p { color: var(--muted); margin-bottom: 20px; }
.shield-row { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--accent-2); padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-2); transition: transform .3s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { padding: 80px 0; }
.cta-inner {
  text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 60px 30px; position: relative; overflow: hidden;
  background-image: radial-gradient(closest-side at 50% 0%, rgba(108, 92, 231, .25), transparent 70%);
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 14px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-block: 22px; color: var(--muted); font-size: .85rem;
}
.footer-disclaimer { opacity: .75; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .coins-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11, 15, 26, .98); backdrop-filter: blur(14px); padding: 18px 22px 26px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s var(--ease);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { border-bottom: 0; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 120px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .coins-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
}

@media (max-width: 420px) {
  .coins-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
