/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Roboto, Inter, system-ui, sans-serif; color: #0f172a; background: #fff; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 600; cursor: pointer; border: 0; font-size: 15px; padding: 14px 26px; font-family: inherit; transition: .2s; }
.btn-blue { background: #3f8cff; color: #fff; }
.btn-blue:hover { background: #2f7cf0; }
.btn-outline { background: #fff; color: #1e3a8a; border: 1.5px solid #cbd5e1; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-white { background: #fff; color: #1d3fa6; }
.btn-white:hover { background: #eef4ff; }

/* Button with full image icon */
.btn-icon { padding: 8px 22px 8px 8px; gap: 12px; }
.btn-icon img { display: block; width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }

/* Image-only badge button */
.badge-img { display: inline-block; height: 48px; border-radius: 10px; overflow: hidden; transition: .2s; }
.badge-img:hover { opacity: .9; transform: translateY(-1px); }
.badge-img img { display: block; height: 100%; width: auto; }

/* ===== Announcement bar ===== */
.topbar { background: #3b5bdb; color: #fff; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 60px; font-size: 15px; position: relative; }
.topbar b { font-weight: 700; }
.topbar .lm { background: #fff; color: #3b5bdb; border-radius: 8px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.topbar .x { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; cursor: pointer; opacity: .9; }

/* ===== Navigation ===== */
.nav { border-bottom: 1px solid #eef2f7; position: relative; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.nav .right { display: flex; align-items: center; gap: 16px; }

.menu { display: flex; gap: 6px; list-style: none; font-size: 15px; font-weight: 500; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 10px 12px; color: #334155; border-radius: 8px; transition: .2s; }
.menu > li > a:hover, .menu > li:hover > a { color: #3f8cff; background: #f1f5ff; }

/* dropdown (shared) */
.dd { position: absolute; top: 100%; left: 0; margin-top: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.12); padding: 10px; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.has-dd:hover .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dd a { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 11px 14px; border-radius: 10px; color: #0f172a; font-weight: 500; transition: .15s; }
.dd a:hover { background: #f1f5ff; color: #3f8cff; }
.dd img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.dd .dd-more { margin-top: 6px; border-top: 1px solid #eef2f7; border-radius: 0 0 10px 10px; padding-top: 14px; color: #3f8cff; font-weight: 600; justify-content: space-between; }
.dd .dd-more span { transition: .2s; }
.dd .dd-more:hover span { transform: translateX(4px); }

/* wide 3-column dropdown (Buy Crypto) */
.dd-wide { display: flex; gap: 8px; padding: 14px; min-width: 0; }
.dd-col { display: flex; flex-direction: column; min-width: 200px; }

/* ===== Logo (image) ===== */
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 52px; width: auto; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #1d3fa6 0%, #2b55d6 60%, #3f6fe8 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: 52px; line-height: 1.1; font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 18px; line-height: 1.6; opacity: .92; margin-bottom: 30px; }
.hero .txt { flex: 0 0 46%; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Dashboard image */
.mock { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.mock img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }

/* ===== Stats ===== */
.stats { display: flex; justify-content: space-around; padding: 64px 0; text-align: center; flex-wrap: wrap; gap: 24px; }
.stats .n { font-size: 48px; font-weight: 800; color: #5b7ce6; }
.stats .l { font-size: 15px; color: #475569; margin-top: 8px; }

/* ===== Perps banner ===== */
.perps { position: relative; overflow: hidden; background: linear-gradient(90deg, #1d3fa6, #2b4fd0); border-radius: 16px; color: #fff; padding: 36px 44px; min-height: 160px; }
.perps-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .55; pointer-events: none; }
.perps-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 36px; }
.perps-l { flex: 0 0 auto; padding-right: 36px; border-right: 1px solid rgba(255,255,255,.35); }
.perps-l h3 { font-size: 36px; font-weight: 700; line-height: 1.1; margin: 0; }
.perps-l span { display: block; font-size: 17px; opacity: .9; margin-top: 6px; }
.perps-in p { font-size: 22px; line-height: 1.4; max-width: 640px; margin: 0; }
.perps-dots { position: absolute; right: 36px; bottom: 32px; z-index: 1; display: flex; gap: 6px; }
.perps-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.perps-dots i.on { background: #fff; }

/* ===== Generic sections ===== */
.sec { padding: 90px 0 20px; }
.sec h2 { font-size: 40px; font-weight: 800; text-align: center; line-height: 1.2; }
.sec .sub { text-align: center; color: #64748b; font-size: 17px; margin: 16px auto 48px; max-width: 680px; line-height: 1.6; }
.center { text-align: center; margin-top: 40px; }

/* Feature cards (Why Choose) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.card { background: #f6f8fc; border-radius: 20px; padding: 32px 28px; }
.card .ic { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: 20px; }
.card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; color: #475569; line-height: 1.6; }

/* ===== Comparison table ===== */
.cmp { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 0 24px 24px; overflow-x: auto; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: 16px; text-align: center; }
.cmp-t th, .cmp-t td { padding: 14px 12px; vertical-align: middle; }
.cmp-t th { font-weight: 700; font-size: 20px; color: #0f172a; padding-top: 28px; padding-bottom: 18px; }
.cmp-t td:first-child, .cmp-t th:first-child { text-align: left; color: #475569; font-weight: 400; font-size: 16px; width: 18%; }
.cmp-t td { color: #475569; }
.cmp-t td b { color: #3f8cff; font-weight: 600; }
.cmp-t .hl { background: linear-gradient(180deg, #e9efff 0%, #f6f8ff 40%, #fff 100%); }
.cmp-t th.hl { padding-top: 20px; }
.cmp-t tbody tr:last-child .hl { border-radius: 0 0 16px 16px; }
.cmp-logo { display: block; width: 48px; height: 48px; object-fit: contain; margin: 0 auto 10px; }
.cmp-t i.yes, .cmp-t i.no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 700; }
.cmp-t i.yes { background: #e0eaff; color: #3f8cff; }
.cmp-t i.yes::before { content: "✓"; }
.cmp-t i.no { background: #f1f5f9; color: #94a3b8; }
.cmp-t i.no::before { content: "✕"; font-size: 10px; }
.plat { display: inline-flex; gap: 14px; align-items: center; justify-content: center; }
.plat svg { width: 24px; height: 24px; fill: none; stroke: #475569; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hl .plat svg { stroke: #3f8cff; }

/* ===== Security ===== */
.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard { border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px 28px; text-align: center; }
.scard .sic { display: block; width: 72px; height: 72px; object-fit: contain; margin: 0 auto 20px; }
.scard h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.scard p { font-size: 15px; color: #475569; line-height: 1.6; }

/* ===== Reviews ===== */
.reviews { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.rev { flex: 0 0 360px; background: #f6f8fc; border-radius: 20px; padding: 28px; }
.rev .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.rev p { font-size: 15px; line-height: 1.6; color: #334155; margin-bottom: 16px; }
.rev .who { font-size: 14px; color: #64748b; font-weight: 600; }
.rev .src { display: inline-block; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 12px; font-size: 12px; margin-top: 12px; font-weight: 600; }

/* ===== Swap in app ===== */
.swap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.swap-img { display: flex; justify-content: center; }
.swap-img img { display: block; width: 100%; max-width: 380px; height: auto; }
.swap-t h2 { text-align: left; font-size: 40px; font-weight: 800; line-height: 1.15; }
.swap-t p { font-size: 17px; color: #475569; line-height: 1.6; margin: 18px 0 28px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; background: #f6f8fc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 18px; color: #0f172a; transition: .2s; }
.store:hover { border-color: #3f8cff; background: #eef4ff; }
.store-ic { width: 34px; height: 34px; border-radius: 8px; background: #0f172a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.store-t { display: flex; flex-direction: column; line-height: 1.2; }
.store-t b { font-size: 15px; font-weight: 700; }
.store-t small { font-size: 12px; color: #64748b; margin-top: 3px; }

/* ===== How to buy crypto ===== */
.howto { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.howto-l { position: sticky; top: 40px; }
.howto-l h2 { text-align: left; font-size: 40px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.howto-l p { font-size: 17px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }
.howto-r { display: flex; flex-direction: column; gap: 20px; }
.hstep { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #f6f8fc; border-radius: 20px; padding: 28px 32px; }
.hstep-t { flex: 1; }
.hstep .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #e6efff; color: #3f8cff; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.hstep h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hstep p { font-size: 15px; color: #475569; line-height: 1.6; }
.hstep img { flex: 0 0 200px; width: 200px; height: auto; border-radius: 14px; }

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 40px auto 0; }
.q { border-bottom: 1px solid #e2e8f0; }
.q button { width: 100%; background: none; border: 0; text-align: left; padding: 24px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #0f172a; font-family: inherit; }
.q button span { font-size: 26px; color: #3f8cff; transition: .2s; }
.q .a { display: none; padding: 0 0 24px; font-size: 16px; color: #475569; line-height: 1.7; }
.q.open .a { display: block; }
.q.open button span { transform: rotate(45deg); }

/* ===== CTA (full-width, two image layers) ===== */
.cta { position: relative; overflow: hidden; margin-top: 70px; background: #1d3fa6; color: #fff; min-height: 460px; display: flex; align-items: center; }
.cta-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; z-index: 0; }
.cta-bg { position: absolute; right: 4%; bottom: 0; width: 46%; max-width: 620px; height: auto; object-fit: contain; object-position: right bottom; pointer-events: none; z-index: 1; }
.cta .wrap { position: relative; z-index: 2; width: 100%; }
.cta-t { max-width: 520px; padding: 70px 0; }
.cta-t h2 { text-align: left; font-size: 44px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.cta-t p { font-size: 17px; opacity: .92; line-height: 1.6; margin-bottom: 28px; }
.cta-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-sq { width: 48px; height: 48px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; transition: .2s; }
.cta-sq:hover { background: #eef4ff; }
.cta-sq img { width: 28px; height: 28px; object-fit: contain; }

/* ===== Footer (white) ===== */
.footer { background: #fff; color: #475569; padding: 70px 0 30px; border-top: 1px solid #e2e8f0; }
.fcols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; }
.fcols h5 { color: #0f172a; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.fcols li { list-style: none; margin-bottom: 10px; cursor: pointer; transition: .2s; }
.fcols li:hover { color: #3f8cff; }
.fcols p { line-height: 1.6; max-width: 280px; }
.fcols .logo { margin-bottom: 16px; }
.fcols .logo img { height: 56px; }
.soc { display: flex; gap: 10px; margin-top: 16px; }
.soc span { width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #0f172a; cursor: pointer; transition: .2s; }
.soc span:hover { background: #3f8cff; border-color: #3f8cff; color: #fff; }
.fbot { border-top: 1px solid #e2e8f0; margin-top: 48px; padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; color: #94a3b8; flex-wrap: wrap; gap: 8px; }

/* ===== Chat widget ===== */
.chat { position: fixed; right: 28px; bottom: 28px; width: 60px; height: 60px; border-radius: 50%; background: #3f8cff; box-shadow: 0 10px 25px rgba(63,140,255,.5); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 99; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero .wrap { flex-direction: column; }
  .hero .txt { flex: auto; }
  .mock { width: 100%; justify-content: center; }
  .cards, .sec-cards { grid-template-columns: 1fr 1fr; }
  .swap { grid-template-columns: 1fr; gap: 32px; }
  .swap-t h2, .swap-t p { text-align: center; }
  .stores { justify-content: center; }
  .howto { grid-template-columns: 1fr; gap: 32px; }
  .howto-l { position: static; }
  .cta { min-height: 0; }
  .cta-t { max-width: 100%; padding: 48px 0; }
  .cta-bg { width: 70%; right: 0; opacity: .3; }
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .logo img { height: 44px; }
  .hero h1 { font-size: 36px; }
  .sec h2, .howto-l h2, .swap-t h2, .cta-t h2 { font-size: 30px; }
  .cards, .cards.two, .sec-cards { grid-template-columns: 1fr; }
  .cmp { padding: 0 8px 12px; }
  .cmp-t { font-size: 13px; min-width: 560px; }
  .cmp-t th { font-size: 15px; }
  .cmp-t td:first-child, .cmp-t th:first-child { font-size: 13px; }
  .perps { padding: 28px 24px 48px; }
  .perps-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .perps-l { border-right: 0; padding-right: 0; }
  .perps-l h3 { font-size: 28px; }
  .perps-in p { font-size: 17px; }
  .perps-dots { right: 24px; bottom: 20px; }
  .hstep { flex-direction: column; align-items: flex-start; }
  .hstep img { width: 100%; flex: auto; }
  .topbar { flex-direction: column; padding: 12px 40px; }
  .stats .n { font-size: 36px; }
}