:root {
  --brand: #004b87;
  --brand-dark: #002f56;
  --brand-soft: #eef5fc;
  --maroon: #8a1538;
  --gold: #d4af37;
  --emerald: #059669;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 44px rgba(0, 47, 86, 0.14);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 75, 135, 0.22);
}

.brand-title {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.18s;
}

.header-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(0, 75, 135, 0.34);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-dark);
  border: 1.2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lang {
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #004b87 0%, #002f56 58%, #6b102b 100%);
  color: #ffffff;
  padding: 58px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.22), transparent 45%),
              radial-gradient(circle at 14% 86%, rgba(212, 175, 55, 0.20), transparent 46%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.store-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.1;
}

.store-btn strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.25;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.hero-card-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 2.5px solid rgba(253, 230, 138, 0.85);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
}

.hero-card h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 13px;
  margin: 0 auto 16px;
}

.live-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: start;
}

.live-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
}

.live-pill span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.live-pill strong {
  font-size: 14.5px;
  font-weight: 900;
  color: #fde68a;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 900;
  color: var(--brand-dark);
}

.section-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* 7 Groups Grid */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 75, 135, 0.35);
  box-shadow: var(--shadow-lg);
}

.group-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
  background: var(--brand-soft);
}

.group-card h3 {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.group-card p {
  font-size: 12.5px;
  color: var(--muted);
}

/* Live Showcase Ads */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.chip.active,
.chip:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}

.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 75, 135, 0.35);
  box-shadow: var(--shadow-lg);
}

.ad-media {
  position: relative;
  height: 175px;
  background: linear-gradient(135deg, #e2eef9, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-placeholder {
  font-size: 40px;
  opacity: 0.72;
}

.ad-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 47, 86, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.ad-lock-pill {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.ad-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ad-title {
  font-size: 14.8px;
  font-weight: 900;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.2px;
  color: var(--muted);
  margin-top: auto;
}

.ad-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--brand);
}

/* Trust & Safety Strip */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.trust-card h3 {
  font-size: 15.5px;
  font-weight: 900;
  color: var(--brand-dark);
  margin: 10px 0 6px;
}

.trust-card p {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #0b192c;
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 28px;
  margin-top: 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-copy {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Smart App Download Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
  position: relative;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.22);
}

.modal-context-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-card h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.modal-store-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
  border: 1.4px solid var(--border);
  background: #ffffff;
  color: var(--brand-dark);
  transition: all 0.18s;
}

.modal-store-btn.recommended {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 75, 135, 0.28);
}

.qr-box {
  margin: 14px auto 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-box img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
}

.qr-box span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

/* Legal pages */
.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin: 34px auto;
  max-width: 840px;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.legal-card h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  margin: 22px 0 8px;
}

.legal-card p,
.legal-card li {
  font-size: 14.5px;
  color: #334155;
  margin-bottom: 8px;
}

.legal-card ul {
  padding-inline-start: 22px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .header-nav {
    display: none;
  }
}

