:root {
  --bg: #070b12;
  --bg-card: rgba(18, 26, 40, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --gold: #fbbf24;
  --radius: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, 0.12), transparent);
}

body.rtl {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
}

.lang-flag-picker {
  position: relative;
  flex-shrink: 0;
  z-index: 50;
}

.flag-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(72vw, 280px);
  height: 40px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.flag-trigger:active {
  transform: scale(0.98);
}

.lang-trigger-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
}

body.rtl .lang-trigger-label {
  text-align: right;
}

.chev {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.country-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.country-flag.fallback {
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.flag-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  display: grid;
  gap: 2px;
  padding: 8px;
  width: min(92vw, 280px);
  max-height: min(60vh, 320px);
  overflow-y: auto;
  background: rgba(18, 26, 40, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.rtl .flag-panel {
  right: auto;
  left: 0;
}

.flag-panel[hidden] {
  display: none !important;
}

.flag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: background 0.15s;
}

body.rtl .flag-row {
  text-align: right;
}

.flag-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.flag-row.active {
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.flag-row .row-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3.5rem;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32rem;
}

@media (max-width: 880px) {
  .hero .sub {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 880px) {
  .cta-row {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn small {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.72rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  background: #0c1220;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-coin {
  position: absolute;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  animation: float 4s ease-in-out infinite;
}

.float-coin.usdt {
  top: -8%;
  right: 8%;
}

.float-coin.btc {
  bottom: 5%;
  left: 0;
  width: 56px;
  height: 56px;
  animation-delay: 1.2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reward-card {
  margin: 0 0 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .reward-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.reward-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}

.reward-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.reward-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  counter-reset: step;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0f172a;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

body.rtl .step::before {
  left: auto;
  right: 1.25rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.tagline {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.7;
}
