:root {
  --bg-900: #051116;
  --bg-800: #0a1f27;
  --bg-700: #12313a;
  --surface-500: rgba(9, 30, 39, 0.68);
  --surface-400: rgba(20, 49, 60, 0.62);
  --text-100: #f4f8f7;
  --text-300: #c4d4d3;
  --accent-500: #1cc6a7;
  --accent-600: #11a88b;
  --gold-500: #dbb768;
  --stroke: rgba(210, 237, 232, 0.2);
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  --interactive-shadow: 0 14px 28px rgba(2, 20, 27, 0.38);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-100);
  background: radial-gradient(circle at 20% 15%, #144454 0%, transparent 32%),
    radial-gradient(circle at 80% 5%, #2a5c55 0%, transparent 28%),
    linear-gradient(140deg, var(--bg-900), var(--bg-800) 55%, #102f3f);
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100vw - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  border-radius: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: #f4f8f7;
  color: #072029;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.skip-link:focus-visible {
  top: 1rem;
}

.background-shape {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
}

.shape-left {
  top: -130px;
  left: -140px;
  background: #0da98f;
}

.shape-right {
  bottom: -140px;
  right: -120px;
  background: #d4a54f;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(5, 17, 22, 0.88),
    rgba(5, 17, 22, 0.56)
  );
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem 1.1rem;
  padding: 1.3rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-100);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.76rem;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 10px 20px rgba(7, 26, 34, 0.36);
  transition: transform 190ms ease;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-300);
  font-size: 0.94rem;
  border-radius: 0.62rem;
  padding: 0.32rem 0.5rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.main-nav a:hover {
  color: var(--text-100);
  background: rgba(29, 77, 89, 0.58);
}

.main-nav a.is-active {
  color: var(--text-100);
  background: rgba(34, 88, 101, 0.64);
}

.button {
  border-radius: 0.85rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-ghost {
  color: var(--text-100);
  background: rgba(20, 58, 69, 0.62);
}

.button-solid {
  background: linear-gradient(140deg, var(--accent-500), var(--accent-600));
  color: #03261f;
}

.button-outline {
  color: var(--text-100);
  background: rgba(219, 183, 104, 0.26);
}

.store-badges {
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}

.store-badge-ios img {
  height: 54px;
}

.store-badge-play img {
  height: 64px;
  margin-top: -5px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 0.75rem;
  background: rgba(10, 31, 39, 0.7);
  padding: 0.2rem;
  min-width: 160px;
  flex: 0 0 160px;
  justify-content: space-between;
}

.lang-link {
  color: var(--text-300);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.55rem;
  padding: 0.32rem 0.5rem;
  min-width: 2.8rem;
  text-align: center;
}

.lang-link.is-current {
  color: var(--text-100);
  background: rgba(28, 198, 167, 0.18);
}

a,
.button,
.stat-card,
.feature-card,
.visual-card,
.screen-card,
.plan-card,
.timing-panel,
.download,
.store-badge,
.prayer-list li,
.timing-panel li {
  transition: transform 190ms ease, box-shadow 190ms ease, color 190ms ease,
    background-color 190ms ease;
}

a:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 198, 167, 0.32);
}

@keyframes tapPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

.button:active,
.main-nav a:active,
.site-footer a:active,
.brand:active,
.stat-card:active,
.feature-card:active,
.screen-card:active,
.plan-card:active,
.store-badge:active,
.timing-panel:active,
.download:active,
.prayer-list li:active,
.timing-panel li:active {
  animation: none;
  filter: brightness(1.06);
}

.hero {
  padding: 4.4rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(24, 72, 83, 0.56);
  color: #a4dad2;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero h1 {
  margin: 1rem 0 0.75rem;
  font: 700 clamp(1.95rem, 3.8vw, 3.45rem) / 1.08 "El Messiri", serif;
}

.lead {
  color: var(--text-300);
  line-height: 1.65;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.stat-row {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-card {
  background: var(--surface-500);
  border-radius: 0.9rem;
  padding: 0.75rem 0.8rem;
  backdrop-filter: blur(7px);
}

.stat-card strong {
  display: block;
  font-size: 1.14rem;
}

.stat-card span {
  color: var(--text-300);
  font-size: 0.82rem;
}

.hero-preview {
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone-frame {
  width: min(300px, 92%);
  border-radius: 2.1rem;
  background: linear-gradient(175deg, #1a4355, #112633);
  padding: 0.62rem;
  box-shadow: var(--shadow);
  transform: none;
  animation: none;
}

.phone-frame-hero {
  width: min(300px, 95%);
  transform: rotateY(-11deg) rotateX(3deg);
  animation: none;
}

.phone-frame-mini {
  width: min(170px, 100%);
  margin-inline: auto;
}

.phone-frame-gallery {
  width: min(182px, 100%);
  margin-inline: auto;
}

.phone-notch {
  margin-inline: auto;
  width: 36%;
  height: 1.18rem;
  border-radius: 999px;
  background: #091c25;
}

.phone-screen {
  margin-top: 0.38rem;
  border-radius: 1.55rem;
  overflow: hidden;
  aspect-ratio: 1179 / 2556;
  background: #091a24;
}

.phone-frame-mini .phone-screen,
.phone-frame-gallery .phone-screen {
  aspect-ratio: 9 / 17;
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-300);
  font-size: 0.75rem;
}

.screen-header strong {
  color: var(--text-100);
  font-size: 0.95rem;
}

.next-prayer {
  margin: 0.8rem 0;
  padding: 0.8rem;
  border-radius: 1rem;
  background: linear-gradient(
    130deg,
    rgba(27, 133, 112, 0.45),
    rgba(13, 72, 83, 0.35)
  );
}

.next-prayer p {
  margin: 0;
  font-size: 0.72rem;
  color: #cae5df;
}

.next-prayer h3 {
  margin: 0.22rem 0;
  font-size: 1.22rem;
}

.prayer-list,
.timing-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.prayer-list li,
.timing-panel li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.72rem;
  padding: 0.55rem 0.62rem;
  background: rgba(23, 55, 67, 0.65);
  color: var(--text-300);
  font-size: 0.85rem;
}

.prayer-list li.active,
.timing-panel li.active {
  color: var(--text-100);
  background: rgba(134, 98, 40, 0.34);
}

.features,
.timings,
.plans,
.faq,
.download {
  margin-top: 4.4rem;
}

section[id] {
  scroll-margin-top: 5.8rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: 1.1rem;
  padding: 1.1rem 1.05rem;
  background: var(--surface-400);
}

.feature-card-screen {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.feature-copy h2 {
  margin: 0;
  font-size: 1.18rem;
}

.feature-copy p {
  margin: 0.58rem 0 0;
  color: var(--text-300);
  line-height: 1.62;
}

.feature-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-visual {
  width: 100%;
  max-height: 132px;
  object-fit: cover;
  border-radius: 0.82rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(160deg, #123744, #0d2431);
}

.feature-card p {
  margin: 0.6rem 0 0;
  color: var(--text-300);
  line-height: 1.6;
}

.visual-story {
  margin-top: 4.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visual-card {
  border-radius: 1.1rem;
  padding: 0.72rem;
  background: rgba(18, 50, 61, 0.62);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.86rem;
}

.visual-card h3 {
  margin: 0.72rem 0 0.4rem;
  font-size: 1.08rem;
}

.visual-card p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.6;
}

.app-gallery {
  margin-top: 4.4rem;
}

.gallery-intro {
  max-width: 72ch;
  margin-bottom: 1rem;
}

.gallery-intro h2 {
  margin: 0.7rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.9vw, 2.25rem);
}

.gallery-intro p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.63;
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screen-card {
  border-radius: 1.1rem;
  padding: 0.88rem;
  background: rgba(18, 50, 61, 0.62);
}

.screen-card h3 {
  margin: 0.78rem 0 0.38rem;
  font-size: 1.08rem;
}

.screen-card p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.6;
}

.timings {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 0.85fr;
}

.timing-copy h2 {
  margin: 0.65rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.timing-copy p {
  color: var(--text-300);
  line-height: 1.65;
}

.timing-panel {
  border-radius: 1.1rem;
  background: var(--surface-500);
  padding: 1.1rem;
}

.timing-panel h3 {
  margin: 0 0 0.85rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  border-radius: 1.1rem;
  padding: 1.1rem;
  background: rgba(18, 45, 56, 0.62);
}

.plan-card h3 {
  margin: 0.2rem 0 0.38rem;
}

.plan-card p {
  color: var(--text-300);
  line-height: 1.55;
  min-height: 5rem;
}

.plan-card strong {
  font-size: 1.3rem;
  color: var(--gold-500);
}

.plan-label {
  margin: 0;
  font-size: 0.75rem;
  color: #8cd6c7;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.plan-card.featured {
  background: linear-gradient(
    145deg,
    rgba(76, 53, 17, 0.52),
    rgba(21, 58, 69, 0.58)
  );
}

.faq-intro {
  max-width: 76ch;
  margin-bottom: 1rem;
}

.faq-intro h2 {
  margin: 0.7rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.faq-intro p {
  margin: 0;
  color: var(--text-300);
  line-height: 1.63;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-card {
  border-radius: 1.1rem;
  padding: 1rem;
  background: rgba(18, 49, 60, 0.64);
}

.faq-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.faq-card p {
  margin: 0.62rem 0 0;
  color: var(--text-300);
  line-height: 1.62;
}

.faq-card a {
  color: #a9e6dc;
}

.faq-card a:hover {
  color: var(--text-100);
}

.faq-meta {
  margin: 0.9rem 0 0;
  color: #9ec3be;
  font-size: 0.88rem;
}

.download {
  text-align: center;
  padding: 2.5rem 1.2rem;
  border-radius: 1.1rem;
  margin-bottom: 3rem;
  background: linear-gradient(
    165deg,
    rgba(18, 58, 68, 0.8),
    rgba(10, 26, 33, 0.92)
  );
}

.download h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
}

.download p {
  max-width: 64ch;
  margin: 0.8rem auto 0;
  color: var(--text-300);
  line-height: 1.65;
}

.download .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 1.15rem 0 2rem;
  color: #9ebbb7;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.site-footer a {
  color: #b9d4cf;
  text-decoration: none;
  margin-right: 0.9rem;
  font-size: 0.84rem;
}

.site-footer a:hover {
  color: var(--text-100);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    opacity: 0.96;
  }

  .brand:hover .brand-mark {
    transform: none;
    filter: brightness(1.04);
  }

  .main-nav a:hover {
    transform: none;
  }

  .button:hover {
    background: rgba(31, 81, 94, 0.72);
    box-shadow: var(--interactive-shadow);
  }

  .stat-card:hover,
  .feature-card:hover,
  .visual-card:hover,
  .screen-card:hover,
  .plan-card:hover,
  .timing-panel:hover,
  .download:hover {
    transform: none;
    background-color: rgba(27, 68, 80, 0.72);
    box-shadow: var(--interactive-shadow);
  }

  .store-badge:hover {
    transform: none;
    filter: brightness(1.02);
    box-shadow: none;
  }

  .prayer-list li:hover,
  .timing-panel li:hover {
    transform: none;
    color: var(--text-100);
    background: rgba(36, 74, 86, 0.72);
  }

  .site-footer a:hover {
    transform: none;
    background: rgba(31, 78, 89, 0.52);
    border-radius: 0.55rem;
    padding: 0.2rem 0.3rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPhone {
  0%,
  100% {
    transform: rotateY(-13deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-13deg) rotateX(4deg) translateY(-7px);
  }
}

@media (max-width: 1020px) {
  .hero,
  .timings {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    order: -1;
  }

  .phone-frame {
    transform: none;
  }

  .features,
  .app-gallery-grid,
  .visual-story,
  .plans,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    grid-template-columns: auto auto;
    gap: 0.65rem 0.9rem;
  }

  .lang-switcher {
    margin-left: 0;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
  }

  .site-header-inner > .button {
    justify-self: end;
  }

  .stat-row,
  .features,
  .app-gallery-grid,
  .visual-story,
  .plans,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .download {
    text-align: left;
    padding: 1.3rem 1rem;
  }

  .download .hero-actions {
    justify-content: flex-start;
  }

  .store-badge img {
    height: 48px;
    max-width: 190px;
  }

  .store-badge {
    height: 48px;
  }

  .store-badge-play img {
    height: 56px;
    margin-top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

html[dir="rtl"] body {
  font-family: "El Messiri", "Segoe UI", sans-serif;
}

html[dir="rtl"] .site-header {
  direction: rtl;
}

html[dir="rtl"] .main-nav {
  direction: rtl;
}
