/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --brand:        #0b3a3c;
  --brand-mid:    #0f5154;
  --brand-light:  #e8f5f0;
  --mint:         #9ee6c8;
  --gold:         #e8c48a;
  --ink:          #0f1f1c;
  --muted:        #5c6f69;
  --surface:      #ffffff;
  --canvas:       #f6f8f6;
  --line:         rgba(11, 58, 60, 0.1);
  --shadow:       0 24px 80px rgba(7, 41, 43, 0.13);
  --shadow-sm:    0 8px 24px rgba(7, 41, 43, 0.09);
  --radius:       28px;
  --radius-sm:    16px;
  --transition:   160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1400px 700px at 85% -15%, rgba(158, 230, 200, 0.38), transparent 52%),
    radial-gradient(1000px 600px at -12% 115%, rgba(232, 196, 138, 0.24), transparent 50%),
    radial-gradient(600px 400px at 50% 110%, rgba(11, 58, 60, 0.04), transparent 60%),
    var(--canvas);
  line-height: 1.55;
}

/* ── Shell ──────────────────────────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
}

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-logo {
  width: 36px;
  height: 36px;
  display: block;
}

.topbar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.lang {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.lang:hover {
  background: var(--brand-light);
  border-color: rgba(11, 58, 60, 0.25);
}

.lang:active {
  transform: scale(0.97);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  width: min(660px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px 40px;
  text-align: center;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.logo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(11, 58, 60, 0.22);
  animation: fadeUp 0.55s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Wordmark ───────────────────────────────────────────────────────────── */
.wordmark {
  margin: 0;
  font-size: clamp(2.6rem, 7.5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--brand);
  animation: fadeUp 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.latin {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  animation: fadeUp 0.55s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Slogan & Sub ───────────────────────────────────────────────────────── */
.slogan {
  margin: 26px auto 10px;
  max-width: 30ch;
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  animation: fadeUp 0.55s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sub {
  margin: 0 auto 32px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: fadeUp 0.55s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Store badges ───────────────────────────────────────────────────────── */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.55s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.store {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 180px;
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.store:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.store:active {
  transform: translateY(-1px);
}

.store img {
  height: 54px;
  width: auto;
  display: block;
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.card-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0 32px;
  animation: fadeUp 0.55s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Features ───────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  animation: fadeUp 0.55s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  background: var(--brand-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
  margin: 0;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  max-width: 1080px;
  width: 100%;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.footer a {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 2px;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width var(--transition);
}

.footer a:hover::after { width: 100%; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .card { padding: 60px 56px 48px; }
}

@media (max-width: 500px) {
  .features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature {
    flex-direction: row;
    text-align: start;
    padding: 14px 16px;
  }

  .feature-icon { font-size: 1.6rem; }
}

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