/* ============================================================
   SITE-15 — Bybit Global Access
   Design DNA: Global Portal (Wise/Revolut global pages)
   Visual mood: clean neutral, globe blue, orange accent
============================================================ */

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/Inter-latin.woff2") format("woff2");
}

:root {
  --bg:        #F5F5F5;
  --surface:   #FFFFFF;
  --ink:       #111827;
  --ink-2:     #4B5563;
  --ink-3:     #9CA3AF;
  --primary:   #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-light: #EFF6FF;
  --accent:    #F7A600;
  --accent-hover: #D97706;
  --success:   #059669;
  --success-light: #ECFDF5;
  --danger:    #DC2626;
  --danger-light: #FEF2F2;
  --warning:   #D97706;
  --warning-light: #FFFBEB;
  --border:    #E5E7EB;
  --border-2:  #D1D5DB;

  --ff: "Inter", system-ui, -apple-system, sans-serif;

  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-2xl: 42px;
  --fs-3xl: clamp(32px, 4.5vw, 52px);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.06);
  --sh-md: 0 4px 12px rgba(0,0,0,.08);
  --sh-lg: 0 12px 32px rgba(0,0,0,.1);

  --ease: cubic-bezier(.2,.8,.2,1);
  --t: 200ms;
  --max-w: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
::selection { background: var(--primary); color: #fff; }

/* ---- Shell / Container ---- */
.shell { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }

/* ---- Header ---- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.masthead__inner {
  display: flex; align-items: center; gap: var(--sp-8);
  height: 100%;
}
.brand {
  display: flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--fs-md); color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { width: 28px; height: 28px; }
.brand__sub { color: var(--primary); }
.mastnav {
  display: flex; align-items: center; gap: var(--sp-5);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  flex: 1;
}
.mastnav a { transition: color var(--t) var(--ease); }
.mastnav a:hover, .mastnav a.is-active { color: var(--primary); }
.mastactions { display: flex; align-items: center; gap: var(--sp-3); }
.lang-select {
  padding: var(--sp-1) var(--sp-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: var(--fs-xs); background: var(--surface);
  cursor: pointer;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--r-pill); transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--accent {
  background: var(--accent); color: #fff;
}
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent; color: var(--ink-2); font-weight: 500;
}
.btn--ghost:hover { color: var(--primary); }
.btn--outline {
  border: 1px solid var(--border-2); color: var(--ink); background: var(--surface);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
.btn--lg { padding: var(--sp-4) var(--sp-10); font-size: var(--fs-base); }
.menu-btn { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 40%, #1D4ED8 100%);
  color: #fff; padding: var(--sp-16) 0 var(--sp-12);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12);
  align-items: center; position: relative; z-index: 2;
}
.hero__content { max-width: 560px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4); border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: var(--sp-6);
}
.hero__badge i { color: var(--accent); }
.hero h1 {
  font-size: var(--fs-3xl); font-weight: 700; line-height: 1.12;
  margin-bottom: var(--sp-6);
}
.hero__desc {
  font-size: var(--fs-md); opacity: .8; line-height: 1.6;
  margin-bottom: var(--sp-8); max-width: 480px;
}
.hero__ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero__ctas .btn--accent { font-size: var(--fs-base); padding: var(--sp-4) var(--sp-8); }

/* World map SVG area */
.hero__map {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.world-map { width: 100%; max-width: 520px; opacity: .25; }
.world-map .dot { fill: #fff; }
.world-map .dot--highlight { fill: var(--accent); opacity: 1; }
.world-map .dot--region { fill: var(--accent); opacity: .6; }

/* Stats row */
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
  margin-top: var(--sp-12); padding-top: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative; z-index: 2;
}
.stat { text-align: center; }
.stat__num {
  font-size: var(--fs-xl); font-weight: 700;
  background: linear-gradient(90deg, var(--accent), #FBBF24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label { font-size: var(--fs-sm); opacity: .7; margin-top: var(--sp-1); }

/* ---- Sections ---- */
.section { padding: var(--sp-16) 0; }
.section--alt { background: var(--surface); }
.section__header {
  text-align: center; max-width: 640px; margin: 0 auto var(--sp-12);
}
.section__header h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  line-height: 1.2; margin-bottom: var(--sp-4);
}
.section__header p { font-size: var(--fs-md); color: var(--ink-2); }
.section__label {
  display: inline-block; font-size: var(--fs-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--primary);
  margin-bottom: var(--sp-3);
}

/* ---- Search & Filter ---- */
.search-panel {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: var(--sp-6);
  margin-bottom: var(--sp-8); position: sticky; top: 68px; z-index: 50;
}
.search-row {
  display: flex; gap: var(--sp-4); align-items: center;
}
.search-input-wrap {
  flex: 1; position: relative;
}
.search-input-wrap svg {
  position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}
.search-input {
  width: 100%; padding: var(--sp-3) var(--sp-4) var(--sp-3) 42px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-base); font-family: var(--ff);
  background: var(--bg); transition: border-color var(--t) var(--ease);
}
.search-input:focus { outline: none; border-color: var(--primary); }
.filter-select {
  padding: var(--sp-3) var(--sp-6) var(--sp-3) var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-family: var(--ff);
  background: var(--bg); cursor: pointer; color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.search-results-info {
  font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-3);
}

/* ---- Country Grid ---- */
.country-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
}
.country-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: var(--sp-5);
  transition: all var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.country-card:hover {
  box-shadow: var(--sh-md); border-color: var(--primary);
  transform: translateY(-2px);
}
.country-card__header {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.country-card__flag { font-size: 28px; line-height: 1; }
.country-card__name {
  font-size: var(--fs-md); font-weight: 600; color: var(--ink);
}
.country-card__status {
  margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
}
.status--available { background: var(--success-light); color: var(--success); }
.status--limited { background: var(--warning-light); color: var(--warning); }
.status--unavailable { background: var(--danger-light); color: var(--danger); }
.country-card__region {
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin-bottom: var(--sp-3);
}
.country-card__features {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3);
}
.feature-tag {
  padding: 2px 8px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 500;
  background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--border);
}
.feature-tag--yes { background: var(--success-light); color: var(--success); border-color: transparent; }
.feature-tag--no { background: var(--danger-light); color: var(--danger); border-color: transparent; opacity: .7; }

/* ---- Features / How it Works ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8);
}
.feature-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--sp-8); border: 1px solid var(--border);
  text-align: center; transition: box-shadow var(--t) var(--ease);
}
.feature-card:hover { box-shadow: var(--sh-md); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5); font-size: 24px;
  background: var(--primary-light); color: var(--primary);
}
.feature-card__icon--accent { background: #FFF7ED; color: var(--accent); }
.feature-card__icon--success { background: var(--success-light); color: var(--success); }
.feature-card h3 {
  font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-3);
}
.feature-card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* ---- Region Sections ---- */
.region-section { margin-bottom: var(--sp-10); }
.region-title {
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--primary); margin-bottom: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-2);
}
.region-count {
  font-size: var(--fs-xs); font-weight: 600; background: var(--primary);
  color: #fff; padding: 1px 8px; border-radius: var(--r-pill);
}

/* ---- Payment Methods ---- */
.payment-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
}
.payment-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--sp-6); border: 1px solid var(--border); text-align: center;
}
.payment-card__name { font-weight: 600; margin-bottom: var(--sp-2); }
.payment-card__desc { font-size: var(--fs-sm); color: var(--ink-2); }
.payment-card__badge {
  display: inline-block; margin-top: var(--sp-3);
  padding: 2px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
  background: var(--success-light); color: var(--success);
}

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-5) 0; font-size: var(--fs-base); font-weight: 600;
  text-align: left; color: var(--ink); cursor: pointer;
  transition: color var(--t) var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-q svg { flex-shrink: 0; transition: transform var(--t) var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s var(--ease);
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7;
}
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: var(--sp-5); }

/* ---- Guide Steps ---- */
.steps { display: flex; flex-direction: column; gap: var(--sp-8); max-width: 700px; margin: 0 auto; }
.step {
  display: flex; gap: var(--sp-5); align-items: flex-start;
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-md);
  background: var(--primary); color: #fff;
}
.step__content h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-2); }
.step__content p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* ---- Risk Page ---- */
.risk-content { max-width: 800px; margin: 0 auto; }
.risk-content h2 {
  font-size: var(--fs-lg); font-weight: 700; margin: var(--sp-10) 0 var(--sp-4);
  color: var(--ink);
}
.risk-content h2:first-child { margin-top: 0; }
.risk-content p, .risk-content li {
  font-size: var(--fs-base); color: var(--ink-2); line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.risk-content ul { padding-left: var(--sp-8); }
.risk-content li { margin-bottom: var(--sp-2); }
.risk-alert {
  padding: var(--sp-5); border-radius: var(--r-md);
  border-left: 4px solid var(--danger);
  background: var(--danger-light); margin: var(--sp-6) 0;
}
.risk-alert strong { color: var(--danger); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #0F172A, #1D4ED8);
  color: #fff; text-align: center; padding: var(--sp-16) 0;
}
.cta-banner h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 700; margin-bottom: var(--sp-4); }
.cta-banner p { font-size: var(--fs-md); opacity: .8; margin-bottom: var(--sp-8); }
.cta-banner .btn--accent { font-size: var(--fs-base); padding: var(--sp-4) var(--sp-10); }

/* ---- Footer ---- */
.footer {
  background: #0F172A; color: #fff; padding: var(--sp-12) 0 var(--sp-8);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--sp-10);
  padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand p { font-size: var(--fs-sm); opacity: .6; margin-top: var(--sp-3); max-width: 300px; line-height: 1.6; }
.footer__col h4 {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; opacity: .5; margin-bottom: var(--sp-4);
}
.footer__col a {
  display: block; font-size: var(--fs-sm); opacity: .7; padding: var(--sp-1) 0;
  transition: opacity var(--t) var(--ease);
}
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-8); font-size: var(--fs-xs); opacity: .4;
}
.footer__disclaimer {
  max-width: var(--max-w); margin: var(--sp-6) auto 0;
  font-size: var(--fs-xs); opacity: .3; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.05); padding-top: var(--sp-6);
}

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-8 { margin-bottom: var(--sp-8); }
