/*
  Waddini Landing Page — Minimal centered splash.
  Logo, title, description, download buttons.
  Dark, premium, single-screen, RTL-first, mobile-first.
*/

/* ─── Reset / Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #48e200;
  --bg: #1f1f1f;
  --text-light: #fafafa;
  --text-dark: #252835;

  --primary-soft: rgba(72, 226, 0, 0.14);
  --primary-medium: rgba(72, 226, 0, 0.28);
  --primary-strong: rgba(72, 226, 0, 0.55);
  --primary-glow: rgba(72, 226, 0, 0.75);

  --radius-sm: 16px;

  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.35rem;
  --space-lg: 2.25rem;

  --font-stack: "Segoe UI", "Tahoma", "Geneva", "Verdana", sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text-light);
  direction: rtl;
  text-align: center;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ─── Layout ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

/* ─── Background Glows ─── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow--one {
  width: 55vmin;
  height: 55vmin;
  top: -18vmin;
  left: -14vmin;
  background: radial-gradient(circle, var(--primary-strong) 0%, transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}

.glow--two {
  width: 45vmin;
  height: 45vmin;
  bottom: -16vmin;
  right: -12vmin;
  background: radial-gradient(circle, var(--primary-medium) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

/* ─── Logo ─── */
.brand-logo {
  position: relative;
  width: clamp(120px, 36vw, 180px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.brand-logo__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 28%;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}

.brand-logo__glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  opacity: 0.55;
  z-index: 1;
  animation: pulse 4s ease-in-out infinite;
}

/* ─── Typography ─── */
.brand {
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-light);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.subline {
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  color: rgba(250, 250, 250, 0.72);
  max-width: 26ch;
  font-weight: 500;
  margin-top: -0.35rem;
}

::selection {
  background: var(--primary);
  color: var(--text-dark);
}

/* ─── Store Buttons ─── */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  margin-top: 0.5rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex: 1 1 150px;
  min-width: 150px;
  max-width: 220px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid rgba(250, 250, 250, 0.12);
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-stack);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.store-button:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(72, 226, 0, 0.12);
  border-color: rgba(72, 226, 0, 0.35);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 32px var(--primary-soft);
}

.store-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.store-button__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.store-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-button__small {
  font-size: 0.66rem;
  opacity: 0.72;
  font-weight: 500;
}

.store-button__large {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ─── Animations ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16px, 12px) scale(1.06); }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-logo__img,
  .brand-logo__glow,
  .glow {
    animation: none;
  }
}

/* ─── Compact screens ─── */
@media (max-height: 640px) {
  .hero {
    padding: var(--space-sm);
  }

  .brand-logo {
    width: clamp(100px, 30vw, 150px);
  }

  .content {
    gap: var(--space-sm);
  }
}
