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

:root {
  --bg-deep: #06112e;
  --bg-mid: #0e2457;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f0f4ff;
  --text-muted: rgba(224, 234, 255, 0.6);
  --radius: 24px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  margin: 0;
  padding: 20px;
  overflow: hidden;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'DM Sans', system-ui, sans-serif;
}

/* ── Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-mid) 0%, transparent 70%),
    radial-gradient(circle 400px at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 100%),
    radial-gradient(circle 300px at 85% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--surface-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

/* ── Floating orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.orb--1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -80px;
  right: -60px;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb--2 {
  width: 200px;
  height: 200px;
  background: #6366f1;
  bottom: -40px;
  left: -40px;
  animation: drift 15s ease-in-out 2s infinite alternate-reverse;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
  width: 100%;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  border: 1px solid var(--surface-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.5),
    0 0 80px -20px var(--accent-glow);
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Logo ── */
.logo {
  width: 88px;
  height: 88px;
  background: #fff;
  border-radius: 22px;
  margin: 0 auto 24px;
  padding: 14px;
  box-shadow:
    0 8px 24px -4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: logoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes logoIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Typography ── */
h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  animation: fadeUp 0.6s ease 0.25s both;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  animation: fadeUp 0.6s ease 0.35s both;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Store buttons ── */
.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.6s ease 0.45s both;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 260px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.store-btn:active {
  transform: translateY(0) scale(0.98);
}

.store-btn svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

html[dir="rtl"] .store-btn .label {
  text-align: right;
}

.store-btn .label-sm {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.store-btn .label-lg {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Redirect hint (hidden by default) ── */
.redirect-hint {
  display: none;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  animation: fadeUp 0.4s ease both;
}

.redirect-hint.show {
  display: block;
}

.redirect-hint .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.5s ease-in-out infinite;
}

html[dir="rtl"] .redirect-hint .dot {
  margin-right: 0;
  margin-left: 6px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}