:root {
  --primary: #0b0e73;
  --primary-light: #1c208f;
  --primary-glow: #4a5fd4;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --bg: #f4f5fc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c5c7a;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(11, 14, 115, 0.12);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 14, 115, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: linear-gradient(145deg, var(--primary) 0%, #151a8c 45%, #1c208f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74, 95, 212, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-light), #fff8dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: var(--primary);
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

.store-btn strong {
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  color: #fff;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.75;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: min(300px, 80vw);
  background: linear-gradient(160deg, #1a1f9e, #0b0e73);
  border-radius: 36px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  animation: float 5s ease-in-out infinite;
}

.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
}

.phone-screen img.icon-large {
  width: 100px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.phone-screen h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.phone-screen p {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  animation: float 4s ease-in-out infinite;
}

.floating-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.floating-card.c1 { top: 10%; right: -10%; animation-delay: -1s; }
.floating-card.c2 { bottom: 15%; right: 5%; animation-delay: -2.5s; }
.floating-card.c3 { top: 30%; left: -8%; animation-delay: -0.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(11, 14, 115, 0.06);
  border: 1px solid rgba(11, 14, 115, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Highlights strip */
.highlights {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 3rem 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.highlight-item {
  color: #fff;
}

.highlight-item .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.highlight-item h4 {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.highlight-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Download CTA */
.download-cta {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 14, 115, 0.08);
}

.download-cta h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.download-cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Legal pages */
.legal-page {
  padding: 7rem 0 4rem;
  min-height: 100vh;
}

.legal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-inline: auto;
}

.legal-card h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-card .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-card h2 {
  color: var(--primary-light);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-card ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 320px;
}

.footer-links h4 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .store-buttons,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-card { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.open { display: flex; }

  .menu-toggle { display: block; }
}

/* Audio library */
.audio-page {
  padding-top: 72px;
}

.audio-page.has-player {
  padding-bottom: 88px;
}

.nav a.active {
  color: var(--gold-light);
}

.audio-main {
  min-height: calc(100vh - 160px);
}

.audio-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, #2d3eb8 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.audio-hero-inner {
  max-width: 720px;
}

.audio-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.audio-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.audio-hero p {
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.audio-hero code {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.audio-base-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.audio-base-url .label {
  opacity: 0.85;
}

.audio-base-url code {
  flex: 1;
  min-width: 200px;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

.icon-btn {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.audio-toolbar-section {
  padding: 1.5rem 0 0.5rem;
  position: sticky;
  top: 64px;
  z-index: 50;
  background: linear-gradient(var(--bg) 70%, transparent);
}

.audio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-wrap {
  flex: 1;
  min-width: min(100%, 320px);
  position: relative;
}

.search-wrap .search-icon {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 2px solid rgba(11, 14, 115, 0.08);
  border-radius: 14px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--primary-glow);
}

.audio-stats {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.audio-list-section {
  padding: 1rem 0 3rem;
}

.audio-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.audio-group-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(11, 14, 115, 0.08);
}

.group-icon {
  font-size: 1.1rem;
}

.group-count {
  margin-inline-start: auto;
  background: rgba(11, 14, 115, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.audio-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.audio-card:hover {
  transform: translateY(-2px);
}

.audio-card.playing {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.2);
}

.audio-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.audio-play {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 14, 115, 0.25);
  transition: transform 0.15s;
}

.audio-play:hover {
  transform: scale(1.05);
}

.audio-card-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.audio-filename {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

.audio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.action-btn {
  flex: 1;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(11, 14, 115, 0.12);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.action-btn:hover {
  background: rgba(11, 14, 115, 0.06);
  border-color: rgba(11, 14, 115, 0.2);
}

.download-btn,
.open-btn {
  text-decoration: none;
}

.audio-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.audio-player-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
}

.player-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-play-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-info strong {
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.audio-page.has-player .toast {
  bottom: 100px;
}
