:root {
  --emerald: #0A4D30;
  --emerald-deep: #072118;
  --emerald-surface: #0B2B20;
  --emerald-rich: #0F5C3B;
  --emerald-light: #158055;
  --emerald-glow: #10B981;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-deep: #A68226;
  --ink: #111D16;
  --muted: #4F6156;
  --bg: #F4F8F6;
  --card: #FFFFFF;
  --line: #D9E5DE;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F0FDF4;
    --muted: #94A3B8;
    --bg: #051610;
    --card: #09231A;
    --line: #143C2E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}
html, body { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1024px; padding-inline: 20px; margin-inline: auto; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #FBF7EE;
  background: radial-gradient(ellipse at 50% 30%, rgba(16, 185, 129, .28), transparent 65%),
              radial-gradient(ellipse at 50% 85%, rgba(212, 175, 55, .15), transparent 55%),
              linear-gradient(145deg, #186043, #0D4730 45%, var(--emerald-deep));
  padding: 64px 0 60px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 40px rgba(7, 33, 24, .18);
}
.lattice {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--gold) 1px, transparent 1px),
    linear-gradient(-45deg, var(--gold) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212, 175, 55, .14);
  border: 1px solid rgba(212, 175, 55, .38);
  color: #F3E5AB;
  padding: 6px 16px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.badge-sep { opacity: .5; }

.app-icon {
  border-radius: 28%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .45), 0 0 0 1px rgba(212, 175, 55, .25);
  transition: transform .25s ease;
}
.app-icon:hover { transform: scale(1.03); }

h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin: 20px 0 6px; font-weight: 700; letter-spacing: 0; }
.tagline { max-width: 44ch; font-size: 1.18rem; opacity: .92; margin: 0 0 28px; line-height: 1.65; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #F9E7BA, var(--gold) 55%, #C2953B);
  color: #241804; font-weight: 700; font-size: 1.15rem; text-decoration: none;
  padding: 16px 34px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn:active { transform: translateY(0); }
.meta { margin: 16px 0 4px; font-size: .95rem; opacity: .82; }
.link {
  background: none; border: 0; color: var(--gold-light); font: inherit; font-weight: 600;
  cursor: pointer; padding: 6px 12px; text-decoration: underline; text-underline-offset: 6px;
  opacity: .9; transition: opacity .2s;
}
.link:hover { opacity: 1; }

/* Spotlight Sections */
.spotlight {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin: 40px 0 20px;
}
.spotlight-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}
.spotlight-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tag-new {
  display: inline-block;
  background: rgba(16, 185, 129, .15);
  color: #0D7A50;
  border: 1px solid rgba(16, 185, 129, .3);
  font-size: .78rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  .tag-new { background: rgba(52, 211, 153, .16); color: #6EE7B7; border-color: rgba(52, 211, 153, .35); }
}
.spotlight-card h2 { margin: 0; font-size: 1.4rem; color: var(--emerald-rich); }
@media (prefers-color-scheme: dark) { .spotlight-card h2 { color: #6EE7B7; } }
.spotlight-desc { color: var(--muted); margin: 0 0 20px; font-size: 1rem; }

.spotlight-grid { display: flex; flex-direction: column; gap: 14px; }
.sub-feature { display: flex; gap: 14px; align-items: flex-start; }
.sub-ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(212, 175, 55, .12); color: var(--gold-deep);
  font-size: 1.1rem; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  .sub-ic { background: rgba(212, 175, 55, .18); color: var(--gold-light); }
}
.sub-feature h4 { margin: 0 0 2px; font-size: 1.05rem; }
.sub-feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* Landmarks Showcase */
.landmarks-showcase { margin: 24px 0; }
.section-title-wrap { margin-bottom: 22px; }
.section-title-wrap h2 { margin: 8px 0 4px; font-size: 1.45rem; }
.sub-text { margin: 0; color: var(--muted); font-size: .98rem; }

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.landmark-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #072118;
  border: 1px solid rgba(212, 175, 55, .22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.landmark-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.landmark-card:hover img { transform: scale(1.05); }
.landmark-info {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(7, 33, 24, .95) 0%, rgba(7, 33, 24, .65) 60%, transparent 100%);
  color: #FFFFFF;
}
.landmark-info h4 { margin: 0 0 2px; font-size: .96rem; font-weight: 700; color: #FFF; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.landmark-info p { margin: 0; font-size: .8rem; opacity: .88; color: var(--gold-light); }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 32px 0;
}
.features article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
}
.features .ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(10, 77, 48, .10); color: var(--emerald-rich);
}
.features .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .features .ic { background: rgba(52, 211, 153, .14); color: #6EE7B7; } }
.features h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
}
.card h2 { margin: 0 0 10px; font-size: 1.4rem; }
.install ol { margin: 0; padding-inline-start: 1.3em; }
.install li { margin: 8px 0; font-size: 1rem; }
.note { color: var(--muted); font-size: .95rem; margin: 16px 0 0; line-height: 1.6; }

.dedication { text-align: center; }
.stars { color: var(--gold-deep); letter-spacing: .5em; font-size: 1.1rem; }
.over { color: var(--muted); margin: 6px 0; font-size: .95rem; }
.dedication ul { list-style: none; padding: 0; margin: 8px 0 14px; }
.dedication li { color: var(--emerald-rich); font-weight: 700; font-size: 1.15rem; margin: 6px 0; }
@media (prefers-color-scheme: dark) { .dedication li, .credit .name { color: #6EE7B7; } }
.dua { color: var(--muted); max-width: 65ch; margin: 12px auto; line-height: 1.8; }
.closing { color: var(--gold-deep); font-weight: 700; margin-bottom: 0; }

.credit { text-align: center; margin: 36px 0 12px; }
.credit .name { color: var(--emerald-rich); font-weight: 700; font-size: 1.2rem; margin: 0; }
.credit .name::before, .credit .name::after { content: "✦"; color: var(--gold-deep); margin: 0 10px; font-size: .8em; }

.footer { text-align: center; color: var(--muted); font-size: .95rem; padding: 24px 0 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer a { color: inherit; font-weight: 600; }

@media (max-width: 600px) {
  .hero { padding: 48px 0 42px; border-radius: 0 0 28px 28px; }
  .card, .spotlight-card { padding: 22px; }
  .landmarks-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .app-icon, .landmark-card img { transition: none; }
}
