:root {
  --primary: #e67e22;
  --primary-dark: #c5651a;
  --primary-soft: #ffb975;
  --bg: #fcfbf9;
  --surface: #ffffff;
  --surface-tint: #fff7ec;
  --on-surface: #4e342e;
  --on-surface-muted: #7a635c;
  --secondary: #8d6e63;
  --cream: #f4e3c1;
  --border: #efe5d6;
  --hero-start: #fff4dc;
  --hero-mid: #ffdfa2;
  --hero-end: #ffc97a;
  --shadow-card: 0 10px 30px rgba(78, 52, 46, 0.08);
  --shadow-phone: 0 30px 80px rgba(230, 126, 34, 0.25),
    0 10px 30px rgba(78, 52, 46, 0.15);
  --maxw: 1140px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ───────── Top bar ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(78, 52, 46, 0.06);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  font-weight: 700;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(58, 39, 24, 0.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.topnav {
  display: flex;
  gap: 8px;
}

.topnav a {
  color: var(--on-surface);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.topnav a:hover {
  background: var(--surface-tint);
  text-decoration: none;
}

@media (max-width: 560px) {
  .topnav a:not(:last-child) {
    display: none;
  }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: 56px 24px 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #ffd9a3 0%, transparent 70%);
  top: -120px;
  right: -120px;
  animation: float 12s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ffe8c4 0%, transparent 70%);
  bottom: -120px;
  left: -120px;
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -20px);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 16px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--on-surface);
}

.accent {
  background: linear-gradient(135deg, var(--primary) 0%, #ff9d3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--on-surface-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

@media (max-width: 920px) {
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 920px) {
  .cta-row {
    justify-content: center;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.store-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.store-btn-disabled {
  background: #6b6b6b;
  cursor: not-allowed;
}

.store-btn-disabled:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.store-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-text small {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.75;
}

.store-text strong {
  font-size: 16px;
  font-weight: 600;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--on-surface-muted);
}

@media (max-width: 920px) {
  .trust {
    justify-content: center;
  }
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  width: 14px;
  height: 14px;
  color: #2e7d32;
}

/* ───────── Phone mockup ───────── */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 360px;
  height: 760px;
  background: #1a1a1a;
  border-radius: 48px;
  padding: 11px;
  box-shadow: var(--shadow-phone);
  animation: phoneFloat 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 70px;
  background: radial-gradient(ellipse, rgba(230, 126, 34, 0.4), transparent 70%);
  filter: blur(22px);
  z-index: 1;
}

/* Status bar */
.sb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface);
}

.sb-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sb-bar {
  width: 3px;
  height: 8px;
  background: var(--on-surface);
  border-radius: 1px;
}

.sb-bar:nth-child(1) {
  height: 4px;
}
.sb-bar:nth-child(2) {
  height: 6px;
}
.sb-bar:nth-child(3) {
  height: 8px;
}
.sb-bar:nth-child(4) {
  height: 10px;
}

.sb-icons svg {
  width: 14px;
  height: 10px;
  margin-left: 4px;
}

/* Dome scene */
.dome-scene {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.dome-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dome-clock {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 52px;
  color: #5d3a14;
  letter-spacing: -1px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Two-column meta */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px 14px;
  flex-shrink: 0;
}

.meta-col {
  flex: 1;
  text-align: center;
  font-size: 11px;
}

.meta-col small {
  display: block;
  letter-spacing: 0.5px;
  color: var(--on-surface-muted);
  margin-bottom: 4px;
  font-size: 10px;
}

.meta-col strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Features card (4 + 3 grid) */
.features-card {
  margin: 0 14px;
  background: var(--surface-tint);
  border-radius: 16px;
  padding: 12px 8px;
  flex-shrink: 0;
}

.features-row {
  display: grid;
  gap: 4px;
}

.features-row-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 8px;
}

.features-row-3 {
  grid-template-columns: repeat(4, 1fr);
}

.features-row-3 .feat:nth-child(1) {
  grid-column: 1;
}
.features-row-3 .feat:nth-child(2) {
  grid-column: 2;
}
.features-row-3 .feat:nth-child(3) {
  grid-column: 3;
}

.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface-muted);
  padding: 6px 2px;
  text-align: center;
}

.feat-ico {
  font-size: 22px;
  line-height: 1;
}
  justify-content: space-between;
}

.big-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-weight: 700;
  font-size: 38px;
  color: #5d3a14;
  letter-spacing: -1px;
}

.big-clock-num {
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.big-clock-sep {
  animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

/* Prayer times */
.ptimes-title {
  padding: 16px 18px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  flex-shrink: 0;
}

.ptimes-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}

.ptime {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  text-align: center;
}

.ptime-active {
  background: var(--surface-tint);
  border-color: var(--primary-soft);
}

.ptime-ico {
  font-size: 15px;
}

.ptime-edge {
  opacity: 0.55;
}

.ptime-name {
  font-weight: 600;
  color: var(--on-surface);
}

.ptime-time {
  font-weight: 700;
  font-size: 10px;
  color: var(--on-surface);
}

/* Daily Hadith */
.hadith-title {
  padding: 14px 18px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
  flex-shrink: 0;
}

.hadith-card {
  margin: 0 14px;
  background: #fff1d6;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  color: var(--on-surface);
  flex-shrink: 0;
}

.hadith-card p {
  margin: 0;
}

/* Bottom nav */
.bottom-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  gap: 2px;
  flex-shrink: 0;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--on-surface-muted);
  padding: 6px 2px;
  border-radius: 16px;
  text-align: center;
}

.bn-item span {
  font-size: 16px;
}

.bn-active {
  background: var(--surface-tint);
  color: var(--on-surface);
}

/* ───────── Features section ───────── */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--on-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(78, 52, 46, 0.12);
}

.feature-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--on-surface);
}

.feature-card p {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 15px;
}

/* ───────── Final CTA ───────── */
.cta {
  padding: 80px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(
    135deg,
    var(--hero-start) 0%,
    var(--hero-end) 100%
  );
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  border-radius: 50%;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #5d3a14;
  position: relative;
}

.cta-card p {
  font-size: 17px;
  color: #6b4a1f;
  margin: 0 0 28px;
  position: relative;
}

.cta-card .cta-row {
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}

/* ───────── Footer ───────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--on-surface-muted);
}

.footer-nav a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 13px;
  color: var(--on-surface-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .phone,
  .blob,
  .big-clock-sep {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
