@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
}

:root {
  --bg-dark: #01060f;
  --bg-dark-rgb: 1, 6, 15;
  --bg-card: rgba(6, 17, 34, 0.65);
  --bg-card-hover: rgba(10, 26, 51, 0.85);
  --gold-primary: #e6c280;
  --gold-primary-rgb: 230, 194, 128;
  --gold-secondary: #c5a059;
  --text-primary: #ffffff;
  --text-muted: #8fa0ba;
  --border-gold: rgba(230, 194, 128, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --glow-gold: 0 0 20px rgba(230, 194, 128, 0.25);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --phone-bg: #030a16;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(10, 28, 58, 0.4) 0%, rgba(var(--bg-dark-rgb), 1) 70%);
  background-attachment: fixed;
}

/* RTL Support */
[dir="rtl"] {
  --font-serif: 'Playfair Display', 'Traditional Arabic', 'Simplified Arabic', serif;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-gold {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(var(--bg-dark-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b1c37 0%, #030c1b 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-icon-img-footer {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  object-fit: cover;
}

.cta-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  object-fit: cover;
  box-shadow: var(--glow-gold);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-primary);
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-secondary);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
}

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

.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
}

.lang-selector:hover {
  border-color: var(--border-gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #030c1b;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: var(--glow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(230, 194, 128, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(230, 194, 128, 0.03);
}

.btn-outline:hover {
  background: rgba(230, 194, 128, 0.1);
  border-color: var(--gold-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero_bg.png') no-repeat center top;
  background-size: cover;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-title span {
  display: block;
}

.hero-title span.italic {
  font-style: italic;
  color: var(--gold-primary);
  font-weight: 400;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
}

.badge-item:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
  background: rgba(230, 194, 128, 0.05);
}

.badge-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-secondary);
}

/* Feature Grid Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-tag {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-gold);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(230, 194, 128, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--gold-primary);
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-primary);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrapper svg {
  fill: #030c1b;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.25s;
}

.feature-card:hover .feature-learn-more {
  gap: 0.75rem;
}

/* Interactive Demo Title Section */
.demo-intro {
  text-align: center;
  padding: 80px 0 20px;
}

.demo-intro h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.demo-intro p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

/* Phone Mockup Area */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 100px;
}

.iphone-mockup {
  position: relative;
  width: 360px;
  height: 740px;
  border-radius: 48px;
  background: #000000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 12px #1c1c1e, 0 0 0 13px #2c2c2e, var(--glow-gold);
  padding: 11px;
  overflow: hidden;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

/* iPhone Notch / Dynamic Island */
.iphone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.iphone-camera {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #080f26;
  border: 1px solid #1a233a;
}

/* Time, Signal, Battery Icons on iPhone Header */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 90;
  font-family: var(--font-sans);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-right svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

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

.phone-header-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: radial-gradient(circle at top, rgba(230, 194, 128, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Phone Inner Screens Container */
.phone-screens-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding-top: 44px;
  padding-bottom: 64px;
}

.phone-view {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: calc(100% - 108px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.30s ease, transform 0.30s ease;
  transform: translateY(10px);
  overflow-y: auto;
  padding: 16px;
  z-index: 10;
}

/* Hide scrollbar inside phone view */
.phone-view::-webkit-scrollbar {
  display: none;
}

.phone-view.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Bottom Tab Navigation inside Phone */
.phone-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(4, 12, 28, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 80;
  padding-bottom: 6px;
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}

.phone-nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s;
}

.phone-nav-item span {
  font-size: 0.6rem;
  font-weight: 500;
}

.phone-nav-item.active {
  color: var(--gold-primary);
}

.phone-nav-item.active svg {
  transform: scale(1.1);
}

/* Phone View Elements: Prayer */
.phone-greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.phone-username {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.phone-location-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--gold-secondary);
  margin-bottom: 12px;
}

.phone-location-bar svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.phone-date-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-date-card span.hijri {
  color: var(--gold-primary);
  font-weight: 600;
}

.phone-tracker-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tracker-header strong {
  color: var(--text-primary);
}

.tracker-dots {
  display: flex;
  gap: 6px;
}

.tracker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.tracker-dot.completed {
  background: var(--gold-primary);
  box-shadow: 0 0 5px rgba(var(--gold-primary-rgb), 0.5);
}

/* Prayer Time Big Card */
.prayer-time-card {
  background: linear-gradient(135deg, rgba(8, 22, 45, 0.8) 0%, rgba(4, 12, 26, 0.8) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.prayer-time-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(230, 194, 128, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.prayer-card-header {
  font-size: 0.7rem;
  color: var(--gold-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prayer-card-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.prayer-card-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prayer-card-countdown {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.phone-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-btn:hover {
  background: rgba(230, 194, 128, 0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Phone View: Quran */
.phone-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-section-title span.arabic {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.quran-translation-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}

.quran-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quran-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quran-item:hover {
  border-color: var(--border-gold);
  background: rgba(230,194,128,0.03);
}

.quran-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quran-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(230, 194, 128, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.quran-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quran-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quran-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.quran-arabic-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold-secondary);
}

/* Surah Viewer View */
.surah-viewer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.back-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

.back-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.surah-title-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.bismillah-card {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.ayah-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.ayah-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 10px;
}

.ayah-arabic {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: right;
  line-height: 1.8;
  color: var(--text-primary);
}

.ayah-translation {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Phone View: Qibla */
.compass-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  gap: 14px;
}

.compass-bearing-card {
  text-align: center;
}

.compass-bearing-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.compass-bearing-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.compass-bearing-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.compass-outer {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle, rgba(11,28,58,0.2) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-face {
  position: absolute;
  width: 170px;
  height: 170px;
  transition: transform 0.25s ease-out;
}

.compass-needle {
  position: absolute;
  width: 10px;
  height: 140px;
  z-index: 5;
  pointer-events: none;
}

.compass-turn-instruction {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.compass-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.compass-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  padding: 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.compass-btn.active,
.compass-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.mosque-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.7rem;
}

.mosque-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(230,194,128,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.mosque-card-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mosque-card-details {
  display: flex;
  flex-direction: column;
}

.mosque-card-name {
  font-weight: 600;
  color: var(--text-primary);
}

.mosque-card-distance {
  color: var(--text-muted);
}

/* Phone View: Calendar */
.intention-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}

.intention-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.intention-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.intention-input-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.intention-input {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  outline: none;
}

.intention-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.intention-add-btn {
  background: var(--gold-primary);
  color: #030c1b;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.7rem;
  cursor: pointer;
}

.intention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intention-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.intention-chip:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.intention-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.intention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
}

.intention-item-text {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.intention-item-text.completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.intention-item-checkbox {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intention-item-checkbox.checked::after {
  content: '✓';
  color: var(--gold-primary);
  font-size: 8px;
}

.intention-delete-btn {
  background: none;
  border: none;
  color: #ff5e62;
  cursor: pointer;
  font-size: 0.75rem;
}

.calendar-coming-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.coming-up-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
}

.coming-up-date {
  font-size: 0.6rem;
  color: var(--gold-secondary);
}

.coming-up-name {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
}

/* Phone View: Learn */
.learn-badge {
  background: rgba(230,194,128,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
}

.learn-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.learn-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.learn-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
}

.learn-btn-green {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.2);
}

.learn-btn-green:hover {
  background: rgba(16,185,129,0.15);
  border-color: rgb(16,185,129);
}

.learn-btn svg {
  width: 14px;
  height: 14px;
}

.learn-path-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.learn-path-card:hover {
  border-color: var(--border-gold);
  background: rgba(230,194,128,0.03);
}

.learn-path-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.learn-path-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.learn-path-subtitle {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-secondary);
}

.learn-path-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Phone View: Tasbih */
.tasbih-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  text-align: center;
}

.tasbih-phrase-arabic {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.tasbih-phrase-english {
  font-size: 0.9rem;
  font-weight: 600;
}

.tasbih-phrase-meaning {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tasbih-click-zone {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(230,194,128,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.tasbih-click-zone:active {
  transform: scale(0.96);
}

.tasbih-bead-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: rotate(0deg);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tasbih-counter {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tasbih-counter-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tasbih-phrase-selectors {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tasbih-phrase-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.55rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tasbih-phrase-btn.active,
.tasbih-phrase-btn:hover {
  background: rgba(230,194,128,0.05);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.tasbih-lifetime {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.tasbih-lifetime strong {
  color: var(--gold-primary);
}

/* Founder Story Section */
.founder-section {
  padding: 100px 0;
  position: relative;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 4rem 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.founder-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.founder-img-wrapper {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  padding: 6px;
  background: rgba(3, 10, 22, 0.8);
  box-shadow: var(--glow-gold);
  overflow: hidden;
}

.founder-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 35%;
}

.founder-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  color: var(--gold-primary);
  line-height: 1.4;
}

.founder-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-title-text {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.founder-p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* CTA Download Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-container {
  background: radial-gradient(circle at center, rgba(11,28,58,0.4) 0%, transparent 80%);
  padding: 4rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  background: #030c1b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  margin-bottom: 0.5rem;
}

.cta-logo svg {
  width: 44px;
  height: 44px;
  fill: var(--gold-primary);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
}

.cta-desc {
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  text-align: left;
}

.app-store-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.app-store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-meta {
  display: flex;
  flex-direction: column;
}

.btn-meta .sub {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.btn-meta .main {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: rgba(2, 9, 20, 0.95);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-col h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 2rem;
}

/* Subpages Styling */
.subpage-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.subpage-container {
  padding-bottom: 100px;
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Standalone Quran styles */
.quran-search-bar {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
}

.quran-search-bar:focus {
  border-color: var(--gold-primary);
}

.quran-grid-standalone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Standalone Qibla styles */
.qibla-standalone-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.qibla-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qibla-compass-card-standalone {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.compass-outer-standalone {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  background: radial-gradient(circle, rgba(11,28,58,0.25) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-face-standalone {
  position: absolute;
  width: 280px;
  height: 280px;
  transition: transform 0.25s ease-out;
}

.compass-needle-standalone {
  position: absolute;
  width: 16px;
  height: 240px;
  z-index: 5;
  pointer-events: none;
}

/* Standalone Calendar styles */
.calendar-standalone-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.calendar-main-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hijri-calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.hijri-calendar-table th,
.hijri-calendar-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.hijri-calendar-table th {
  background: rgba(230,194,128,0.05);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.hijri-calendar-table td {
  font-size: 0.9rem;
}

.hijri-calendar-table td.today {
  background: rgba(230,194,128,0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.hijri-calendar-table td .gregorian-date {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Standalone Learn styles */
.learn-standalone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.study-paths-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.study-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Standalone Privacy styles */
.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.privacy-content h2 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.privacy-content p strong {
  color: var(--text-primary);
}

.privacy-content ul {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .badges-row {
    justify-content: center;
  }

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

  .founder-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .quran-grid-standalone {
    grid-template-columns: repeat(2, 1fr);
  }

  .qibla-standalone-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calendar-standalone-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.75rem;
  }

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

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

  .quran-grid-standalone {
    grid-template-columns: 1fr;
  }

  .study-paths-grid {
    grid-template-columns: 1fr;
  }

  .iphone-mockup {
    transform: scale(0.9);
    margin: -30px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }

  .iphone-mockup {
    transform: scale(0.8);
    margin: -60px 0;
  }
}

/* ==========================================================================
   Falah 2026 — Quiet Horizon
   ========================================================================== */

:root,
.sw-root,
#world {
  --bg-dark: #020914;
  --bg-dark-rgb: 2, 9, 20;
  --bg-raised: #07172b;
  --bg-card: rgba(7, 23, 43, 0.76);
  --bg-card-hover: rgba(10, 31, 57, 0.9);
  --gold-primary: #e6c280;
  --gold-primary-rgb: 230, 194, 128;
  --gold-secondary: #bfa266;
  --pearl: #f7f3eb;
  --text-primary: #f7f3eb;
  --text-muted: #a9b8cb;
  --emerald: #6e8f83;
  --border-gold: rgba(230, 194, 128, 0.26);
  --border-light: rgba(210, 226, 244, 0.11);
  --glow-gold: 0 18px 54px rgba(230, 194, 128, 0.12);
  --shadow-deep: 0 32px 90px rgba(0, 0, 0, 0.38);
  --sw-bg: #020914 !important;
  --sw-ink: #f7f3eb !important;
  --sw-ink-soft: #a9b8cb !important;
  --sw-accent: #e6c280 !important;
  --sw-font-display: 'Playfair Display', Georgia, serif !important;
  --sw-font-body: 'Inter', system-ui, -apple-system, sans-serif !important;
}

::selection {
  color: #020914;
  background: var(--gold-primary);
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 76% -8%, rgba(26, 58, 96, 0.4), transparent 34rem),
    radial-gradient(circle at 8% 28%, rgba(73, 104, 98, 0.1), transparent 30rem),
    var(--bg-dark);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a,
button,
select,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 0.8rem 1rem;
  color: #020914;
  background: var(--pearl);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, 1240px);
  max-width: none;
  padding: 0;
}

/* Shared navigation */
header {
  height: 78px;
}

header.scrolled,
header.site-header {
  background: linear-gradient(180deg, rgba(2, 9, 20, 0.94), rgba(2, 9, 20, 0.7));
  border-bottom: 1px solid rgba(230, 194, 128, 0.13);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.home-page header.site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(2, 9, 20, 0.88), transparent);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-container {
  height: 78px;
}

.logo-link {
  gap: 0.78rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #061225;
  border-color: rgba(230, 194, 128, 0.34);
  box-shadow: 0 8px 30px rgba(230, 194, 128, 0.1);
}

.logo-text {
  color: var(--pearl);
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.logo-tagline {
  margin-top: 1px;
  color: rgba(230, 194, 128, 0.78);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  gap: clamp(1rem, 2.1vw, 2rem);
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: rgba(226, 235, 245, 0.64);
  font-size: 0.82rem;
  letter-spacing: 0.015em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-actions {
  gap: 0.8rem;
}

.lang-selector {
  min-height: 40px;
  padding: 0.45rem 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-light);
  border-radius: 999px;
}

.btn-primary,
.plan-cta {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--gold-primary);
  color: #06101d;
  box-shadow: 0 12px 30px rgba(230, 194, 128, 0.16);
}

.btn-primary:hover,
.plan-cta:hover {
  color: #020914;
  background: #f0d69e;
  box-shadow: 0 18px 40px rgba(230, 194, 128, 0.24);
}

.btn-primary--large {
  padding: 0.94rem 1.6rem;
  font-size: 0.94rem;
}

.btn-outline {
  min-height: 44px;
  border-color: rgba(230, 194, 128, 0.34);
  background: rgba(2, 9, 20, 0.35);
}

.mobile-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.25s ease, top 0.25s ease;
}

.mobile-menu-toggle span:first-child { top: 17px; }
.mobile-menu-toggle span:last-child { top: 25px; }

header.menu-open .mobile-menu-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

header.menu-open .mobile-menu-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Scroll world */
.cinematic-world {
  min-height: 100vh;
}

#world {
  background: var(--bg-dark);
}

.sw-topbar {
  display: none !important;
}

.sw-sky {
  background: var(--bg-dark) !important;
}

.sw-sky__grad {
  background:
    radial-gradient(58% 44% at 76% 16%, rgba(93, 126, 156, 0.16), transparent 70%),
    linear-gradient(180deg, #020914, #030b17 62%, #020914) !important;
}

.sw-sky__glow {
  opacity: 0.32;
}

.sw-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 9, 20, 0.98) 0%, rgba(2, 9, 20, 0.84) 22%, rgba(2, 9, 20, 0.22) 58%, rgba(2, 9, 20, 0.06) 100%),
    linear-gradient(180deg, rgba(2, 9, 20, 0.3), transparent 42%, rgba(2, 9, 20, 0.28));
  pointer-events: none;
}

.sw-scene__still,
.sw-scene__video {
  filter: saturate(0.88) contrast(1.03);
}

.sw-copylayer::before {
  display: none;
}

.sw-copy {
  left: max(20px, calc((100vw - 1240px) / 2));
  width: min(58vw, 760px);
  transform: translateY(calc(-50% + var(--sw-copy-shift, 0vh)));
}

.sw-copy__num {
  color: rgba(230, 194, 128, 0.66) !important;
  font-size: 0.68rem !important;
}

.sw-copy__eyebrow {
  margin-top: 20px !important;
  color: var(--gold-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.19em !important;
}

.sw-copy__title {
  max-width: 14ch;
  margin-top: 0.8rem !important;
  color: var(--pearl) !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(3.2rem, 6.1vw, 6.35rem) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(2, 9, 20, 0.9) !important;
}

.sw-copy__body {
  max-width: 54ch !important;
  margin-top: 1.6rem !important;
  color: rgba(225, 233, 243, 0.78) !important;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem) !important;
  line-height: 1.72 !important;
  text-wrap: pretty;
  text-shadow: 0 3px 18px rgba(2, 9, 20, 0.94) !important;
}

.sw-copy__tags {
  gap: 7px !important;
  margin-top: 1.55rem !important;
}

.sw-copy__tags li {
  padding: 0.45rem 0.72rem !important;
  color: rgba(245, 231, 199, 0.86) !important;
  background: rgba(2, 9, 20, 0.54) !important;
  border: 1px solid rgba(230, 194, 128, 0.24) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem !important;
  font-weight: 500 !important;
}

.sw-copy__cta {
  margin-top: 1.8rem !important;
}

.sw-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem !important;
}

.sw-btn--primary {
  color: #06101d !important;
  background: var(--gold-primary) !important;
}

.sw-btn--ghost {
  color: var(--pearl) !important;
  background: rgba(2, 9, 20, 0.38);
  border-color: rgba(230, 194, 128, 0.36) !important;
}

.sw-route {
  right: clamp(10px, 2.1vw, 30px) !important;
}

.sw-route__dot i {
  background: rgba(230, 194, 128, 0.35) !important;
}

.sw-route__dot.is-active i {
  background: var(--gold-primary) !important;
  box-shadow: 0 0 0 6px rgba(230, 194, 128, 0.14) !important;
}

.sw-route__label {
  color: var(--pearl) !important;
  background: rgba(2, 9, 20, 0.82) !important;
  border-color: var(--border-light) !important;
}

.sw-scrollbar {
  z-index: 1200 !important;
  background: rgba(230, 194, 128, 0.12) !important;
}

.sw-scrollbar span {
  background: var(--gold-primary) !important;
}

.sw-hint {
  color: rgba(226, 234, 244, 0.6) !important;
  bottom: 24px !important;
}

/* Homepage continuation */
.post-world {
  position: relative;
  z-index: 220;
  overflow: clip;
  background:
    radial-gradient(circle at 85% 16%, rgba(37, 76, 114, 0.18), transparent 32rem),
    linear-gradient(180deg, #020914 0%, #04101f 32%, #020914 100%);
}

.trust-ribbon {
  border-top: 1px solid rgba(230, 194, 128, 0.15);
  border-bottom: 1px solid rgba(230, 194, 128, 0.15);
  background: rgba(3, 13, 27, 0.86);
}

.trust-ribbon__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.trust-ribbon span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: rgba(226, 234, 244, 0.68);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-ribbon span + span {
  border-left: 1px solid var(--border-light);
}

.trust-ribbon i {
  width: 5px;
  height: 5px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(230, 194, 128, 0.5);
}

.editorial-section,
.product-story,
.privacy-promise,
.closing-cta {
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.product-story h2,
.privacy-promise h2,
.closing-cta h2 {
  color: var(--pearl);
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-heading h2 em {
  color: var(--gold-primary);
  font-weight: 400;
}

.section-heading > p,
.product-story__copy > p,
.privacy-promise__copy > p,
.closing-cta__content > p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.75;
}

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

.experience-card {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.3rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(140deg, rgba(12, 34, 59, 0.88), rgba(4, 16, 31, 0.82)),
    radial-gradient(circle at 85% 20%, rgba(230, 194, 128, 0.12), transparent 18rem);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.experience-card::before {
  content: '';
  position: absolute;
  right: -15%;
  bottom: -48%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(230, 194, 128, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(230, 194, 128, 0.025), 0 0 0 84px rgba(230, 194, 128, 0.015);
  transition: transform 0.5s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 194, 128, 0.32);
  background:
    linear-gradient(140deg, rgba(13, 39, 68, 0.94), rgba(5, 18, 34, 0.9)),
    radial-gradient(circle at 85% 20%, rgba(230, 194, 128, 0.17), transparent 18rem);
}

.experience-card:hover::before {
  transform: scale(1.08) rotate(8deg);
}

.experience-card--wide {
  grid-column: 1 / -1;
  min-height: 350px;
}

.experience-card__index {
  color: rgba(230, 194, 128, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.experience-card__body {
  position: relative;
  z-index: 1;
  max-width: 570px;
  align-self: end;
}

.experience-card__body > span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.experience-card h3 {
  color: var(--pearl);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.experience-card p {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.experience-card__arrow {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
}

.product-story {
  border-top: 1px solid rgba(230, 194, 128, 0.1);
}

.product-story__grid,
.privacy-promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.product-story__copy h2,
.privacy-promise__copy h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
}

.feature-list {
  margin: 2rem 0;
  list-style: none;
  border-top: 1px solid var(--border-light);
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.feature-list li span {
  min-width: 46px;
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pearl);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.text-link span {
  color: var(--gold-primary);
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.app-orbit {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.app-orbit::before {
  content: '';
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 194, 128, 0.14), rgba(24, 58, 93, 0.08) 46%, transparent 68%);
  filter: blur(12px);
}

.orbit-ring {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(230, 194, 128, 0.11);
  border-radius: 50%;
}

.orbit-ring--two {
  width: 62%;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(340px, 74vw);
  aspect-ratio: 0.49;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(145deg, #313b46, #05080c 18%, #101820 78%, #39424b);
  box-shadow: 0 48px 100px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.2), var(--glow-gold);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.phone-shell__island {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 50%;
  width: 105px;
  height: 28px;
  border-radius: 999px;
  background: #020408;
  transform: translateX(-50%);
}

.phone-shell__screen {
  height: 100%;
  padding: 88px 24px 28px;
  overflow: hidden;
  border-radius: 41px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 194, 128, 0.15), transparent 36%),
    linear-gradient(180deg, #07152a, #020813 60%, #050d19);
}

.phone-shell__top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-shell__top span {
  color: var(--gold-primary);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.phone-shell__top strong {
  margin-top: 0.55rem;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
}

.phone-shell__top small {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.phone-shell__countdown {
  margin-top: 3.6rem;
  color: var(--pearl);
  font-size: 2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: center;
}

.phone-shell__time {
  margin-top: 0.25rem;
  color: var(--gold-primary);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.phone-shell__progress {
  height: 3px;
  margin: 2.2rem 0 2.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.phone-shell__progress i {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-primary));
}

.phone-shell__rows {
  display: flex;
  flex-direction: column;
}

.phone-shell__rows > div {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.phone-shell__rows span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.77rem;
}

.phone-shell__rows i {
  width: 7px;
  height: 7px;
  background: var(--gold-primary);
  border-radius: 50%;
}

.phone-shell__rows i.day { background: #8fb0cf; }
.phone-shell__rows i.sunset { background: #c98162; }

.phone-shell__rows strong {
  color: var(--pearl);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* Founder */
.founder-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: linear-gradient(180deg, rgba(8, 25, 46, 0.52), rgba(2, 9, 20, 0.16));
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.founder-card {
  padding: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(8, 27, 49, 0.92), rgba(4, 15, 29, 0.84));
  border-color: rgba(230, 194, 128, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow-deep);
}

.founder-img-wrapper {
  max-width: 440px;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: none;
  border: 1px solid rgba(230, 194, 128, 0.28);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.founder-img {
  border-radius: 21px;
}

.founder-quote {
  color: rgba(230, 194, 128, 0.78);
  font-size: 1rem;
}

.founder-title-text {
  max-width: 12ch;
  color: var(--pearl);
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.founder-p {
  max-width: 64ch;
  color: var(--text-muted);
}

/* Privacy promise */
.privacy-promise {
  border-bottom: 1px solid var(--border-light);
}

.privacy-promise__grid {
  grid-template-columns: minmax(340px, 0.7fr) minmax(0, 1fr);
}

.privacy-promise__mark {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.privacy-promise__mark svg {
  position: relative;
  z-index: 2;
  width: 170px;
  color: var(--gold-primary);
  filter: drop-shadow(0 18px 36px rgba(230, 194, 128, 0.18));
}

.privacy-promise__halo {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(230, 194, 128, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(230, 194, 128, 0.025), 0 0 0 104px rgba(230, 194, 128, 0.012);
}

.privacy-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.privacy-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--pearl);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  font-size: 0.88rem;
}

.privacy-links a span {
  color: var(--gold-primary);
}

/* Closing CTA */
.closing-cta__panel {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(230, 194, 128, 0.22);
  border-radius: 32px;
  box-shadow: var(--shadow-deep);
}

.closing-cta__panel > img:not(.cta-logo-img) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.closing-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 9, 20, 0.96), rgba(2, 9, 20, 0.72) 48%, rgba(2, 9, 20, 0.18));
}

.closing-cta__content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 960px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.closing-cta__content .cta-logo-img {
  margin-bottom: 1.5rem;
}

.closing-cta__content h2 {
  max-width: 12ch;
}

.closing-cta__content > p {
  max-width: 48ch;
  margin-top: 1.2rem;
}

.closing-cta__actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Supporting pages */
body:not(.home-page) main {
  position: relative;
  z-index: 1;
}

.subpage-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 160px 0 72px;
  overflow: hidden;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.46;
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.72) 44%, rgba(2, 9, 20, 0.2)),
    url('../img/generated/quiet-horizon-dawn.webp') center / cover no-repeat;
}

body[data-page="quran"] .subpage-hero::before,
body[data-page="learn"] .subpage-hero::before {
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.7) 48%, rgba(2, 9, 20, 0.15)),
    url('../img/generated/quiet-horizon-reflection.webp') center / cover no-repeat;
}

body[data-page="qibla"] .subpage-hero::before {
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.68) 48%, rgba(2, 9, 20, 0.12)),
    url('../img/generated/quiet-horizon-direction.webp') center / cover no-repeat;
}

body[data-page="calendar"] .subpage-hero::before,
body[data-page="pricing"] .subpage-hero::before {
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.7) 48%, rgba(2, 9, 20, 0.15)),
    url('../img/generated/quiet-horizon-prayer.webp') center / cover no-repeat;
}

body[data-page="support"] .subpage-hero::before,
body[data-page="privacy"] .subpage-hero::before,
body[data-page="terms"] .subpage-hero::before,
body[data-page="delete"] .subpage-hero::before {
  background:
    linear-gradient(90deg, #020914 0%, rgba(2, 9, 20, 0.7) 48%, rgba(2, 9, 20, 0.15)),
    url('../img/generated/quiet-horizon-journey.webp') center / cover no-repeat;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(transparent, var(--bg-dark));
}

.subpage-hero .container {
  position: relative;
}

.subpage-hero .section-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.subpage-hero .hero-title {
  max-width: 13ch;
  margin: 0 !important;
  color: var(--pearl);
  font-size: clamp(2.8rem, 6vw, 5.2rem) !important;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.subpage-hero .hero-subtitle {
  max-width: 58ch;
  margin: 1.2rem 0 0 !important;
  color: rgba(225, 234, 244, 0.72);
  font-size: 1.02rem;
}

.subpage-container {
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(6rem, 10vw, 10rem);
}

.subpage-card,
.surah-sidebar,
.reader-pane,
.story-reading-pane,
.support-tile,
.step-card,
details.faq-item,
.plan-card {
  background: linear-gradient(145deg, rgba(9, 29, 52, 0.82), rgba(4, 16, 30, 0.78)) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.subpage-card {
  border-radius: 28px;
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
}

.privacy-content h2 {
  color: var(--pearl);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 500;
  border-color: rgba(230, 194, 128, 0.16);
}

.privacy-content h3,
.privacy-content strong,
.support-tile h3,
.step-card h3 {
  color: var(--pearl);
}

.privacy-content a,
.support-tile a,
details.faq-item .answer a {
  color: var(--gold-primary) !important;
}

.quran-reader-split {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) !important;
}

.surah-sidebar,
.reader-pane {
  max-height: 760px !important;
  border-radius: 22px !important;
}

.quran-item {
  min-height: 64px;
  border-radius: 14px;
}

.quran-item.active {
  background: rgba(230, 194, 128, 0.08);
}

.reader-controls {
  gap: 1rem;
  flex-wrap: wrap;
}

.reader-controls > div {
  flex-wrap: wrap;
}

.control-btn {
  min-height: 40px;
  border-radius: 999px;
}

.ayah-arabic {
  font-family: 'Traditional Arabic', 'Noto Naskh Arabic', serif;
  line-height: 2;
}

.qibla-compass-card-standalone {
  background:
    radial-gradient(circle, rgba(230, 194, 128, 0.1), transparent 48%),
    rgba(3, 15, 29, 0.72);
}

.compass-outer-standalone {
  box-shadow: 0 0 0 18px rgba(230, 194, 128, 0.025), 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hijri-calendar-table {
  overflow: hidden;
  border-radius: 16px;
}

.hijri-calendar-table th {
  background: rgba(230, 194, 128, 0.08);
}

.learn-card-img {
  display: none;
}

.story-reading-pane::before,
.learn-interactive-grid > div:first-child > .subpage-card:first-child::before {
  content: '';
  display: block;
  height: 190px;
  margin: -2.5rem -2.5rem 2rem;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, rgba(2, 9, 20, 0.06), rgba(2, 9, 20, 0.8)),
    url('../img/generated/quiet-horizon-reflection.webp') 70% center / cover no-repeat;
}

.learn-interactive-grid > div:first-child > .subpage-card:first-child::before {
  background:
    linear-gradient(180deg, rgba(2, 9, 20, 0.05), rgba(2, 9, 20, 0.82)),
    url('../img/generated/quiet-horizon-prayer.webp') 70% center / cover no-repeat;
}

.podcast-item {
  min-height: 84px;
  border-radius: 16px;
}

.plan-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.plan-card {
  border-radius: 22px !important;
}

.plan-card.featured {
  border-color: rgba(230, 194, 128, 0.42) !important;
  transform: translateY(-10px);
}

.plan-name {
  color: var(--gold-primary);
}

details.faq-item {
  border-radius: 16px !important;
}

details.faq-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer */
footer {
  position: relative;
  z-index: 300;
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  background: #01060f;
  border-top: 1px solid rgba(230, 194, 128, 0.14);
}

.footer-grid {
  grid-template-columns: minmax(280px, 1.6fr) repeat(2, 1fr);
}

.footer-brand p {
  max-width: 40ch;
  line-height: 1.7;
}

.footer-col h3 {
  color: var(--gold-primary);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  font-size: 0.82rem;
}

.footer-bottom {
  color: rgba(169, 184, 203, 0.82);
  border-top-color: var(--border-light);
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-download {
    display: none;
  }

  .product-story__grid,
  .privacy-promise__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .founder-card {
    gap: 3rem;
  }

  .app-orbit {
    min-height: 650px;
  }

  .plan-grid {
    grid-template-columns: 1fr !important;
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1240px);
  }

  .nav-links {
    position: fixed;
    top: 77px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    background: rgba(3, 13, 27, 0.97);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    box-shadow: var(--shadow-deep);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }

  header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(230, 194, 128, 0.08);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-actions .lang-selector {
    display: block;
  }

  .sw-copy {
    left: 22px !important;
    right: 42px !important;
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
  }

  .sw-scene::after {
    background:
      linear-gradient(0deg, rgba(2, 9, 20, 0.99) 0%, rgba(2, 9, 20, 0.9) 28%, rgba(2, 9, 20, 0.24) 68%, rgba(2, 9, 20, 0.12)),
      linear-gradient(90deg, rgba(2, 9, 20, 0.32), transparent 66%);
  }

  .sw-scene__still,
  .sw-scene__video {
    object-position: 72% center !important;
  }

  .sw-copy__eyebrow {
    margin-top: 10px !important;
  }

  .sw-copy__title {
    max-width: 12ch;
    font-size: clamp(2.15rem, 10vw, 3.25rem) !important;
  }

  .sw-copy__body {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.92rem !important;
    line-height: 1.52 !important;
  }

  .sw-copy__tags {
    margin-top: 1rem !important;
  }

  .sw-copy__tags li {
    font-size: 0.65rem !important;
  }

  .sw-route {
    right: 2px !important;
  }

  .sw-hint {
    font-size: 0 !important;
  }

  .trust-ribbon__inner {
    min-height: 104px;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-ribbon span {
    min-height: 52px;
    font-size: 0.63rem;
  }

  .trust-ribbon span + span {
    border-left: 0;
  }

  .trust-ribbon span:nth-child(even) {
    border-left: 1px solid var(--border-light);
  }

  .trust-ribbon span:nth-child(n+3) {
    border-top: 1px solid var(--border-light);
  }

  .section-heading--split,
  .product-story__grid,
  .privacy-promise__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .experience-card--wide {
    grid-column: auto;
  }

  .app-orbit {
    min-height: 650px;
    order: -1;
  }

  .privacy-promise__mark {
    min-height: 390px;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .closing-cta__panel {
    min-height: 680px;
  }

  .closing-cta__panel > img:not(.cta-logo-img) {
    object-position: 72% center;
  }

  .closing-cta__scrim {
    background: linear-gradient(0deg, rgba(2, 9, 20, 0.98), rgba(2, 9, 20, 0.78) 62%, rgba(2, 9, 20, 0.2));
  }

  .closing-cta__content {
    align-self: end;
    padding-bottom: 3rem;
  }

  .quran-reader-split,
  .learn-interactive-grid {
    grid-template-columns: 1fr !important;
  }

  .qibla-standalone-grid,
  .calendar-standalone-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  header,
  .nav-container {
    height: 72px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-tagline {
    display: none;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .lang-selector {
    min-height: 38px;
    max-width: 68px;
  }

  .nav-links {
    top: 70px;
  }

  .sw-copy {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .sw-copy__num {
    display: none;
  }

  .sw-copy__title {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }

  .sw-copy__body {
    margin-top: 0.85rem !important;
    -webkit-line-clamp: 2;
  }

  .sw-copy__tags {
    display: none !important;
  }

  .sw-copy__cta {
    margin-top: 1.15rem !important;
  }

  .sw-btn {
    min-height: 44px;
    padding: 0.68rem 1rem !important;
    font-size: 0.83rem !important;
  }

  .section-heading h2,
  .product-story h2,
  .privacy-promise h2,
  .closing-cta h2 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .experience-card {
    min-height: 330px;
    grid-template-columns: auto 1fr;
  }

  .experience-card__arrow {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
  }

  .app-orbit {
    min-height: 570px;
  }

  .phone-shell {
    width: min(300px, 78vw);
  }

  .phone-shell__screen {
    padding: 82px 20px 24px;
  }

  .privacy-promise__mark {
    min-height: 320px;
  }

  .privacy-promise__halo {
    width: 240px;
    height: 240px;
  }

  .privacy-promise__mark svg {
    width: 120px;
  }

  .closing-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .closing-cta__actions a {
    width: 100%;
    justify-content: center;
  }

  .subpage-hero {
    min-height: 390px;
    padding: 135px 0 56px;
  }

  .subpage-hero::before {
    background-position: 68% center !important;
  }

  .subpage-card {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .reader-pane,
  .surah-sidebar,
  .story-reading-pane {
    padding: 1.2rem !important;
  }

  .story-reading-pane::before,
  .learn-interactive-grid > div:first-child > .subpage-card:first-child::before {
    height: 150px;
    margin: -1.2rem -1.2rem 1.4rem;
  }

  .compass-outer-standalone {
    width: min(280px, 76vw);
    height: min(280px, 76vw);
  }

  .compass-face-standalone {
    width: 86%;
    height: 86%;
  }

  .compass-needle-standalone {
    height: 72%;
  }

  .hijri-calendar-table {
    display: block;
    overflow-x: auto;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* Interactive product preview: retained as a real stateful demo, not a poster. */
.app-orbit .phone-mockup-wrapper {
  position: relative;
  z-index: 2;
  padding: 0;
}

.app-orbit .iphone-mockup {
  width: 340px;
  height: 700px;
  animation: none;
  transform: perspective(1100px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.app-orbit .iphone-mockup:focus-within,
.app-orbit .iphone-mockup:hover {
  transform: perspective(1100px) rotateY(0) rotateX(0);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.72), 0 0 0 12px #1c1c1e, 0 0 0 13px #2c2c2e, 0 0 60px rgba(230, 194, 128, 0.13);
}

.phone-view[aria-hidden="true"] {
  pointer-events: none;
}

button.quran-item,
button.tracker-dot,
button.intention-chip,
button.tasbih-click-zone {
  font: inherit;
}

button.quran-item {
  width: 100%;
  color: inherit;
  text-align: left;
}

button.tracker-dot {
  padding: 0;
}

button.intention-chip {
  cursor: pointer;
}

button.intention-item-text {
  flex: 1;
  min-height: 40px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.calendar-sidebar-column .intention-chip {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
}

button.tasbih-click-zone {
  padding: 0;
  background: rgba(230, 194, 128, 0.025);
  color: inherit;
}

#live-compass-toggle {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .app-orbit .iphone-mockup {
    width: min(300px, 82vw);
    height: 620px;
    border-radius: 42px;
  }
}

/* Contextual App Store journey across supporting pages */
.subpage-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 28px;
}

.subpage-hero__download {
  min-height: 50px;
  padding-inline: 1.35rem;
  gap: 0.7rem;
}

.subpage-hero__assurance {
  color: rgba(225, 233, 243, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-bridge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: center;
  border-top: 1px solid rgba(230, 194, 128, 0.16);
  border-bottom: 1px solid rgba(230, 194, 128, 0.16);
  background: #020914;
}

.app-bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url('../img/generated/quiet-horizon-journey.webp') center 58% / cover no-repeat;
  filter: saturate(0.8) contrast(1.06);
  transform: scale(1.015);
}

.app-bridge::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 9, 20, 0.99) 0%, rgba(2, 9, 20, 0.93) 38%, rgba(2, 9, 20, 0.55) 68%, rgba(2, 9, 20, 0.2) 100%),
    linear-gradient(180deg, rgba(2, 9, 20, 0.18), rgba(2, 9, 20, 0.56));
}

.app-bridge[data-tone='quiet']::before {
  opacity: 0.52;
  filter: saturate(0.45) contrast(1.08);
}

.app-bridge__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  align-items: end;
  gap: clamp(48px, 9vw, 140px);
  padding-block: clamp(72px, 9vw, 118px);
}

.app-bridge__content {
  max-width: 760px;
}

.app-bridge__eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-bridge h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--pearl);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.4vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.app-bridge__content > p {
  max-width: 56ch;
  margin: 1.5rem 0 0;
  color: rgba(225, 233, 243, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.72;
}

.app-bridge__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
}

.app-bridge__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 231, 199, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
}

.app-bridge__trust li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 12px rgba(230, 194, 128, 0.4);
}

.app-bridge__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  padding-bottom: 4px;
}

.app-bridge__actions .btn-primary {
  min-height: 54px;
  justify-content: space-between;
  gap: 1rem;
}

.app-bridge__secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pearl);
  border: 1px solid rgba(230, 194, 128, 0.28);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.app-bridge__secondary:hover {
  border-color: rgba(230, 194, 128, 0.58);
  background: rgba(230, 194, 128, 0.08);
}

.app-bridge__actions small {
  color: rgba(225, 233, 243, 0.52);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 820px) {
  .app-bridge {
    min-height: 0;
  }

  .app-bridge::after {
    background:
      linear-gradient(0deg, rgba(2, 9, 20, 0.99) 0%, rgba(2, 9, 20, 0.9) 56%, rgba(2, 9, 20, 0.48) 100%),
      linear-gradient(90deg, rgba(2, 9, 20, 0.5), transparent);
  }

  .app-bridge__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    padding-block: 72px;
  }

  .app-bridge h2 {
    font-size: clamp(2.7rem, 10vw, 4.2rem);
  }

  .app-bridge__actions {
    width: min(100%, 380px);
  }
}

@media (max-width: 560px) {
  .subpage-hero__actions {
    align-items: stretch;
  }

  .subpage-hero__download {
    width: 100%;
    justify-content: space-between;
  }

  .subpage-hero__assurance {
    width: 100%;
    line-height: 1.5;
  }

  .app-bridge__inner {
    padding-block: 62px;
  }

  .app-bridge__trust {
    gap: 9px 15px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .phone-shell,
  .app-orbit .iphone-mockup {
    transform: none;
  }
}
