@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", 
                 "Noto Color Emoji";
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════
   GLOBAL BACKGROUND
══════════════════════════════ */
.global-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(47.52% 71.38% at 49.27% 66.74%, rgba(0,0,0,.1) 75.86%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%),
    url('/static/img/bg.png') center / cover no-repeat;
  z-index: -2;
  filter: brightness(3.8);
}

/* ══════════════════════════════
   CONTAINER
══════════════════════════════ */
.container {
  max-width: 799px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════════════════
   NAVBAR
   z-index: 100 — always above crab (z:2) and dropdowns
══════════════════════════════ */
.navbar {
  position: relative;
  z-index: 100;              /* sits above the crab and all card content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 46px;
  margin-bottom: 60px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 0 20px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.logo-icon-fallback {
  width: 28px;
  height: 28px;
  background: linear-gradient(224.79deg, #316BE2 3.51%, #0751E9 96.92%);
  border-radius: 8px;
  display: none;             /* shown via onerror JS */
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #fff;
}

/* ── Language selector ── */
.lang-selector {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.lang-trigger {
  background: rgba(255,255,255,.05);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
  height: 36px;
}

.lang-flag { font-size: 16px; line-height: 1; display: flex; align-items: center; }
.flag-svg { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; display: inline-block; vertical-align: middle; }
.lang-name  { font-size: 15px; font-weight: 500; color: #fff; }

.arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #CACACA;
  border-bottom: 2px solid #CACACA;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s;
  flex-shrink: 0;
}

.lang-selector.open .arrow {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* dropdown opens downward within navbar's z-index:100 context — always above crab */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(37,37,37,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 6px 0;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  z-index: 10;               /* relative to navbar stacking context; navbar=100 globally */
  display: none;
  overflow: hidden;
}

.lang-selector.open .dropdown-menu { display: block; }

.dropdown-item {
  padding: 9px 16px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.dropdown-item:hover  { background: rgba(255,255,255,.1); }
.dropdown-item.active { color: #fff; }

/* ══════════════════════════════
   MIXER CARD WRAPPER
   Three-layer stacking context:
     .mixer-card-bg  z-index: 1  (glass background)
     .crab-wrap      z-index: 2  (crab image)
     .mixer-inner    z-index: 3  (all inputs / text)
══════════════════════════════ */
.mixer-card-wrap {
  position: relative;
  width: 100%;
  min-height: 529px;
  margin-bottom: 120px;
}

/* ── Layer 1: frosted glass background ── */
.mixer-card-bg {
  position: absolute;
  inset: 0;
  background: rgba(37,37,37,.25);
  backdrop-filter: blur(37.5px);
  -webkit-backdrop-filter: blur(37.5px);
  border-radius: 32px;
  z-index: 1;
}

/* ── Layer 2: crab ──
   bottom: -100px → upper claws visible at input level,
   body exits below the card edge; z-index: 4 so claws
   render on top of the content in the right half
── */
.crab-wrap {
  position: absolute;
  left: 49%;
  top: auto;
  width: 53%;
  max-width: 424px;
  pointer-events: none;
  z-index: 2;
}

.crab-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Layer 3: content — sits on top of both bg and crab ── */
.mixer-inner {
  position: relative;
  z-index: 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 529px;
}

.mixer-title {
  font-weight: 700;
  font-size: 41px;
  line-height: 90%;
  letter-spacing: -.04em;
  color: #fff;
  width: 295px;
  max-width: 100%;
}

.mixer-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 141%;
  color: rgba(255,255,255,.5);
  width: 266px;
  max-width: 100%;
}

/* pushes input block to the bottom of the card */
.mixer-spacer { flex: 1; }

/* ── Bottom section — backdrop blurs the crab behind it (Figma: Frame 2087327365) ── */
.mixer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

/* ── Address + crypto input row ── */
.input-group {
  width: 100%;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 78px;
}

.address-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  line-height: 120%;
  display: block;
}

.field-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  font-family: inherit;
  line-height: 120%;
  width: 100%;
  padding: 0;
  caret-color: #316BE2;
}

.field-input::placeholder {
  color: rgba(255,255,255,.3);
  font-weight: 400;
  font-size: 14px;
}

.v-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Crypto selector ── */
.crypto-sel {
  position: relative;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.crypto-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.crypto-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  box-shadow: inset 0 1px 4px rgba(255,255,255,.5);
  flex-shrink: 0;
  transition: background .2s;
}

.crypto-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.crypto-info { display: flex; flex-direction: column; gap: 4px; }

.crypto-symbol {
  font-size: 20px;
  font-weight: 500;
  line-height: 115%;
  color: #fff;
}

.crypto-badge {
  background: rgba(255,255,255,.05);
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  text-align: center;
  line-height: 120%;
  white-space: nowrap;
}

.crypto-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #CACACA;
  border-bottom: 2px solid #CACACA;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .2s;
  flex-shrink: 0;
}

.crypto-sel.open .crypto-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* crypto dropdown — z-index relative to mixer-inner (z:3) stacking context */
.crypto-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(37,37,37,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 6px 0;
  min-width: 174px;
  box-shadow:
    0 1.43px 3.82px rgba(12,25,39,.05),
    0 5.73px 9.55px rgba(12,25,39,.06),
    0 19.1px 28.66px rgba(12,25,39,.1);
  z-index: 10;
  display: none;
  overflow: hidden;
}

.crypto-sel.open .crypto-dropdown { display: block; }

.crypto-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s;
  height: 63px;
}
.crypto-option:hover { background: rgba(255,255,255,.07); }

.co-icon {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  box-shadow: inset 0 1px 4px rgba(255,255,255,.5);
  flex-shrink: 0;
}

.co-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.co-info { display: flex; flex-direction: column; gap: 4px; }
.co-sym  { font-size: 18px; font-weight: 500; line-height: 115%; color: #fff; }
.co-name {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  box-shadow: 0 5px 5px rgba(0,0,0,.15);
  border-radius: 10px;
  padding: 2px 6px;
  line-height: 120%;
}

.crypto-sep {
  height: 1px;
  background: rgba(255,255,255,.05);
}

/* ── Start Mixed button ── */
.mix-btn {
  width: 100%;
  background: #316BE2;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  border: none;
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .01em;
  font-family: inherit;
  cursor: pointer;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .1s;
}
.mix-btn:hover  { opacity: .9; }
.mix-btn:active { transform: scale(.99); }

/* ── Service fee note ── */
.fee-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 15px 18px;
  background: rgba(49,107,226,.1);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  color: #316BE2;
  text-align: center;
}

/* ══════════════════════════════
   WHY SECTION
══════════════════════════════ */
.why-section { margin-bottom: 120px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #316BE2;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 12px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 32px;
}

/* 3 cards per row × 2 rows — matching Figma */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feat-card {
  background: #090909;
  border-radius: 30px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 300px;
}

.feat-icon-wrap {
  width: 96px;
  height: 96px;
  background: rgba(49,107,226,.1);
  border-radius: 666px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feat-icon-wrap svg { width: 56px; height: 56px; }

.feat-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 130%;
  margin-bottom: 8px;
  color: #fff;
}

.feat-card p {
  font-size: 16px;
  line-height: 140%;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

/* ══════════════════════════════
   STATUS CARD
══════════════════════════════ */
.status-card {
  position: relative;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 32px;
  padding: 50px 113px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-bottom: 120px;
  background-image: url('../img/status_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.status-error-msg {
  width: 100%;
  background: rgba(216,0,39,.15);
  border: 1px solid rgba(216,0,39,.4);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: #ff6b6b;
  text-align: center;
}

.status-badge {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  background: #316BE2;
  border-radius: 4px;
  padding: 7px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.status-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.status-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: -.04em;
  color: #fff;
}

.status-desc {
  font-size: 18px;
  line-height: 140%;
  color: rgba(255,255,255,.5);
  max-width: 380px;
}

.status-input-wrap {
  width: 100%;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 14px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-btn {
  background: #316BE2;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  border: none;
  border-radius: 20px;
  padding: 18px 32px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .01em;
  font-family: inherit;
  cursor: pointer;
  height: 58px;
  transition: opacity .2s;
}
.status-btn:hover { opacity: .9; }

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-section { margin-bottom: 80px; }

.faq-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 90%;
  letter-spacing: -.04em;
  text-align: center;
  margin-bottom: 32px;
}

.faq-list { border-radius: 8px; overflow: hidden; }

.faq-item { border: 1px solid rgba(255,255,255,.15); margin-top: -1px; }
.faq-item:first-child { margin-top: 0; border-radius: 8px 8px 0 0; }
.faq-item:last-child  { border-radius: 0 0 8px 8px; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: #fff;
  user-select: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #fff;
  transition: .2s;
  border-radius: 1px;
}
.faq-icon::before { width: 14px; height: 1.5px; top: 8px; left: 2px; }
.faq-icon::after  { width: 1.5px; height: 14px; top: 2px; left: 8px; }
.faq-item.open .faq-icon::after { opacity: 0; }

.faq-a {
  padding: 0 17px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 16px;
  line-height: 140%;
  color: rgba(255,255,255,.5);
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 17px 14px; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */


.copyright {
  font-size: 14px;
  line-height: 140%;
  color: rgba(255,255,255,.5);
}

.socials { display: flex; gap: 16px; align-items: center; }

.social-btn {
  width: 24px;
  height: 24px;
  opacity: .65;
  cursor: pointer;
  transition: opacity .2s;
}
.social-btn:hover { opacity: 1; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 760px) {
  .mixer-title { width: 100%; font-size: 32px; }
  .mixer-desc  { width: 100%; }
  .crab-wrap   { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .status-card { padding: 50px 24px 40px; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .mixer-inner { padding: 24px; }
  .navbar { padding: 0 14px; }
}



.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.status-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
.status-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}


/* BLUR BACKGROUND */
body.modal-open .container {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* MODAL */
.captcha-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.captcha-modal.active {
  display: block;
}

.captcha-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.captcha-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  background: #0c0c0c;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.captcha-icon {
  width: 40px;
  margin-bottom: 10px;
}

.captcha-title {
  font-size: 22px;
  font-weight: 600;
}

.captcha-sub {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.captcha-question {
  font-size: 24px;
  margin-bottom: 15px;
}

.captcha-input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  text-align: center;
}

.captcha-submit {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #316BE2;
  color: #fff;
  cursor: pointer;
}

.captcha-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}