/* ==========================================================================
   ATHAR (أَثَر) — Production Landing Page Stylesheet
   Direction: RTL-first
   Fonts: Cairo (UI) & Amiri (Serif/Sacred)
   Theme: Obsidian cinematic dark base with Dawn/Sunset/Night palette tokens
   ========================================================================== */

:root {
  /* Obsidian Base (Night Theme & Master Page Canvas) */
  --bg-canvas: #0A0908;
  --bg-surface: #141210;
  --bg-surface-elevated: #1B1815;
  --bg-surface-glass: rgba(20, 18, 16, 0.82);
  --bg-surface-glass-card: rgba(26, 23, 20, 0.7);
  
  --ink-primary: #F5EFE3;
  --ink-subtle: #C0B29B;
  --ink-muted: #8B7C69;
  
  --gold-accent: #C99B45;
  --gold-soft: #DCB76E;
  --gold-deep: #B08A38;
  --gold-ambient: rgba(201, 155, 69, 0.16);
  --gold-ambient-strong: rgba(201, 155, 69, 0.28);
  
  --hairline: #3A342C;
  --hairline-gold: rgba(201, 155, 69, 0.25);

  /* Morning Theme Tokens (Dawn) */
  --morning-panel: #FAF4EB;
  --morning-ink: #1C140E;
  --morning-subtle: #5D4E3D;
  --morning-muted: #8A7560;
  --morning-gold: #B08A38;
  --morning-gold-soft: #D4A94F;
  --morning-edge: #D8CBB4;

  /* Sunset Theme Tokens (Caramel) */
  --sunset-panel: #F6E2C4;
  --sunset-ink: #241505;
  --sunset-subtle: #6B4C28;
  --sunset-muted: #997B53;
  --sunset-gold: #BC9340;
  --sunset-gold-soft: #E0B15A;
  --sunset-edge: #D6B98C;

  /* Night Theme Tokens (Obsidian) */
  --night-panel: #141210;
  --night-ink: #F5EFE3;
  --night-subtle: #C0B29B;
  --night-muted: #8B7C69;
  --night-gold: #C99B45;
  --night-gold-soft: #DCB76E;
  --night-edge: #3A342C;

  /* Typography */
  --font-ui: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Amiri', serif;

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-phone: 40px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px rgba(201, 155, 69, 0.28);
  --shadow-phone: 0 28px 70px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(201, 155, 69, 0.12);

  /* Layout */
  --container-width: 1200px;
  --container-pad: 1.5rem;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Document Base
   ========================================================================== */

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

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* Screen reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: 6rem;
}

.section-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold-accent);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-primary);
  margin-bottom: 1.15rem;
}

.section-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-subtle);
  max-width: 680px;
  margin-inline: auto;
}

/* Ambient Glow Lighting */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
}

.ambient-glow-hero {
  top: -10%;
  right: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(201, 155, 69, 0.16) 0%, rgba(176, 138, 56, 0.05) 50%, transparent 75%);
}

.ambient-glow-overlay {
  top: 25%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 155, 69, 0.14) 0%, rgba(220, 183, 110, 0.04) 55%, transparent 80%);
}

.ambient-glow-cta {
  bottom: 0;
  right: 25%;
  width: 650px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 155, 69, 0.15) 0%, transparent 70%);
}

/* ==========================================================================
   Navigation Header (Apple-Grade Glassmorphism)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background-color var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hairline-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(201, 155, 69, 0.3));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(201, 155, 69, 0.12);
  border: 1px solid rgba(201, 155, 69, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.25rem;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-subtle);
  position: relative;
  padding-block: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-soft);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(201, 155, 69, 0.08);
  border: 1px solid rgba(201, 155, 69, 0.2);
  color: var(--ink-primary);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #DCB76E 0%, #C99B45 60%, #B08A38 100%);
  color: #141210;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 155, 69, 0.42);
  background: linear-gradient(135deg, #E5C37E 0%, #D4A54F 60%, #BC9340 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(26, 23, 20, 0.7);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(40, 35, 30, 0.85);
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.btn-nav {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Section 2: Hero
   ========================================================================== */

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(201, 155, 69, 0.1);
  border: 1px solid rgba(201, 155, 69, 0.3);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-accent);
  box-shadow: 0 0 10px var(--gold-soft);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-primary);
  margin-bottom: 1.35rem;
  letter-spacing: -0.015em;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #FFF6E5 20%, #DCB76E 60%, #C99B45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-subtle);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold-accent);
}

/* Device Frame Component */
.device-presentation {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #1A1714;
  border-radius: var(--radius-phone);
  padding: 10px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(201, 155, 69, 0.25);
  outline: 6px solid #141210;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.phone-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.9), 0 0 55px rgba(201, 155, 69, 0.2);
}

.phone-screen-wrapper {
  position: relative;
  border-radius: calc(var(--radius-phone) - 8px);
  overflow: hidden;
  background: #141210;
  aspect-ratio: 824 / 1784;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  background: #0D0B0A;
  border-radius: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1F1B17;
}

.phone-notch-speaker {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #25201B;
}

/* Ambient Floating Badges for Hero Mockup */
.hero-floating-chip {
  position: absolute;
  z-index: 6;
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.hero-chip-top {
  top: 12%;
  right: -25px;
  animation: float-chip 4s ease-in-out infinite;
}

.hero-chip-bottom {
  bottom: 14%;
  left: -25px;
  animation: float-chip 4s ease-in-out infinite 2s;
}

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

.chip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-icon-dawn {
  background: rgba(176, 138, 56, 0.15);
  color: var(--morning-gold);
}

.chip-icon-tap {
  background: rgba(201, 155, 69, 0.15);
  color: var(--gold-soft);
}

.chip-text-title {
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.chip-text-subtitle {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section 3: Themes Showcase (Morning / Sunset / Night)
   ========================================================================== */

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

.theme-card {
  position: relative;
  background: var(--bg-surface-glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-fast);
}

.theme-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-gold);
  box-shadow: var(--shadow-lg);
}

.themes-grid:hover .theme-card:not(:hover) {
  opacity: 0.8;
}

.theme-card-morning {
  background: linear-gradient(180deg, rgba(250, 244, 235, 0.05) 0%, rgba(20, 18, 16, 0.8) 100%);
}

.theme-card-sunset {
  background: linear-gradient(180deg, rgba(246, 226, 196, 0.06) 0%, rgba(20, 18, 16, 0.8) 100%);
}

.theme-card-night {
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.9) 0%, rgba(10, 9, 8, 0.95) 100%);
}

.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.badge-morning {
  background: rgba(250, 244, 235, 0.12);
  color: #FAF4EB;
  border: 1px solid rgba(216, 203, 180, 0.4);
}

.badge-sunset {
  background: rgba(246, 226, 196, 0.15);
  color: #F6E2C4;
  border: 1px solid rgba(214, 185, 140, 0.4);
}

.badge-night {
  background: rgba(201, 155, 69, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(201, 155, 69, 0.3);
}

.theme-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
  text-align: center;
}

.theme-hours {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  unicode-bidi: isolate;
}

.theme-phone-wrapper {
  width: 100%;
  max-width: 250px;
  margin-block: 1rem 1.5rem;
}

.theme-card .phone-mockup {
  padding: 8px;
  border-radius: calc(var(--radius-phone) - 6px);
  outline: 4px solid #141210;
}

.theme-card .phone-screen-wrapper {
  border-radius: calc(var(--radius-phone) - 12px);
}

.theme-card-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--ink-subtle);
  text-align: center;
  margin-top: auto;
}

/* Pacing Highlight Banner */
.pacing-banner {
  background: linear-gradient(135deg, rgba(26, 23, 20, 0.85) 0%, rgba(20, 18, 16, 0.95) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pacing-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pacing-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(201, 155, 69, 0.12);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pacing-icon-box svg {
  width: 24px;
  height: 24px;
}

.pacing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.pacing-desc {
  font-size: 0.925rem;
  color: var(--ink-subtle);
  line-height: 1.5;
}

.pacing-badge-tag {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(201, 155, 69, 0.1);
  border: 1px solid rgba(201, 155, 69, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* ==========================================================================
   Section 4: How It Works (Micro-dosing & Calm Steps)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.step-card {
  position: relative;
  background: var(--bg-surface-glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-gold);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(201, 155, 69, 0.12);
  border: 1px solid rgba(201, 155, 69, 0.28);
  color: var(--gold-soft);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.35rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section 5: Native Overlay Showcase (Signature Feature)
   ========================================================================== */

.section-overlay {
  background: radial-gradient(ellipse at 50% 30%, rgba(201, 155, 69, 0.08) 0%, rgba(10, 9, 8, 1) 70%);
  border-block: 1px solid var(--hairline);
}

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

.overlay-content {
  display: flex;
  flex-direction: column;
}

.overlay-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.overlay-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.overlay-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(201, 155, 69, 0.12);
  border: 1px solid rgba(201, 155, 69, 0.25);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.overlay-feature-icon svg {
  width: 20px;
  height: 20px;
}

.overlay-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
}

.overlay-feature-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--ink-subtle);
}

/* Overlay Visual Showcase (Hero 06 with 07 & 08 smaller companions) */
.overlay-visual-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding-inline: 2rem;
}

.overlay-primary-mockup {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 300px;
}

.overlay-secondary-mockup {
  position: absolute;
  top: 50%;
  width: 220px;
  opacity: 0.85;
  filter: brightness(0.85);
  transition: opacity var(--transition-base), transform var(--transition-base), filter var(--transition-base);
}

.overlay-secondary-mockup:hover {
  opacity: 1;
  filter: brightness(1);
  z-index: 4;
}

.overlay-mockup-sunset {
  right: -2%;
  transform: translateY(-50%) rotate(5deg) scale(0.9);
  z-index: 1;
}

.overlay-mockup-night {
  left: -2%;
  transform: translateY(-50%) rotate(-5deg) scale(0.9);
  z-index: 2;
}

/* ==========================================================================
   Section 6: Features Grid (6 Core Pillars)
   ========================================================================== */

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

.feature-box {
  background: var(--bg-surface-glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity var(--transition-base), width var(--transition-base);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--hairline-gold);
  box-shadow: var(--shadow-md);
}

.feature-box:hover::before {
  opacity: 1;
  width: 120px;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(201, 155, 69, 0.1);
  border: 1px solid rgba(201, 155, 69, 0.22);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section 7: Statistics Showcase (Screen 04)
   ========================================================================== */

.stats-showcase-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: center;
  gap: 4rem;
}

.stats-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.stats-mini-card {
  background: rgba(26, 23, 20, 0.7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color var(--transition-fast);
}

.stats-mini-card:hover {
  border-color: var(--hairline-gold);
}

.stats-mini-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stats-mini-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section 8: Screens Gallery (05-settings + Masonry Grid)
   ========================================================================== */

.gallery-showcase {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.gallery-settings-featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
  background: var(--bg-surface-glass-card);
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.gallery-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.gallery-item-box {
  background: rgba(20, 18, 16, 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item-box:hover {
  transform: translateX(-4px);
  border-color: var(--hairline-gold);
}

.gallery-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(201, 155, 69, 0.1);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.gallery-item-icon svg {
  width: 18px;
  height: 18px;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.gallery-item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-subtle);
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

.masonry-card {
  background: var(--bg-surface-glass-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.masonry-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-gold);
  box-shadow: var(--shadow-lg);
}

.masonry-phone-wrapper {
  width: 100%;
  max-width: 220px;
  margin-block: 1rem 1.25rem;
}

.masonry-card .phone-mockup {
  padding: 7px;
  border-radius: calc(var(--radius-phone) - 8px);
  outline: 4px solid #141210;
}

.masonry-card .phone-screen-wrapper {
  border-radius: calc(var(--radius-phone) - 14px);
}

.masonry-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
  text-align: center;
}

.masonry-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-subtle);
  text-align: center;
}

/* ==========================================================================
   Section 9: Privacy & Honesty Band
   ========================================================================== */

.privacy-section {
  background: linear-gradient(180deg, #0A0908 0%, #141210 50%, #0A0908 100%);
  border-block: 1px solid var(--hairline);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.privacy-card {
  background: rgba(20, 18, 16, 0.65);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.privacy-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-gold);
}

.privacy-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 155, 69, 0.1);
  border: 1px solid rgba(201, 155, 69, 0.25);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.privacy-icon svg {
  width: 24px;
  height: 24px;
}

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

.privacy-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section 10: Download / Final CTA
   ========================================================================== */

.cta-box {
  position: relative;
  background: linear-gradient(145deg, rgba(28, 24, 20, 0.9) 0%, rgba(18, 16, 14, 0.95) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(201, 155, 69, 0.12);
  overflow: hidden;
  max-width: 900px;
  margin-inline: auto;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.cta-logo {
  width: 64px;
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(201, 155, 69, 0.4));
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.cta-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-subtle);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-btn-main {
  font-size: 1.15rem;
  padding: 1.1rem 2.8rem;
}

.cta-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.cta-notes-box {
  background: rgba(14, 12, 10, 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  max-width: 720px;
  margin-inline: auto;
  text-align: right;
}

.cta-notes-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-notes-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Section 11: Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 4rem 2.5rem;
  background-color: var(--bg-surface);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 28px;
  height: auto;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.footer-desc {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

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

.footer-nav-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.footer-nav-link {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.footer-support-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Scroll-Reveal Animations (Progressive Enhancement)
   ========================================================================== */

html.js-enabled .fade-in-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-enabled .fade-in-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
html.js-enabled .delay-1 { transition-delay: 0.1s; }
html.js-enabled .delay-2 { transition-delay: 0.2s; }
html.js-enabled .delay-3 { transition-delay: 0.3s; }
html.js-enabled .delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Adaptations (360px -> 1440px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

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

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

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

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

  .themes-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }

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

  .overlay-hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .overlay-visual-group {
    order: -1;
  }

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

  .stats-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-device-col {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .gallery-settings-featured {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }

  .gallery-device-col {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --container-pad: 1.25rem;
  }

  .section {
    padding-block: 4.5rem;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline-gold);
    flex-direction: column;
    padding: 1.75rem var(--container-pad);
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-floating-chip {
    display: none;
  }

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

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

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

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

  .pacing-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .pacing-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .overlay-secondary-mockup {
    display: none;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .cta-btn-main {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    max-width: 280px;
    padding: 8px;
    outline-width: 4px;
  }

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

  .btn {
    width: 100%;
  }

  .header-cta-group .btn-nav {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js-enabled .fade-in-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Salawat al-Nabi section
   ═══════════════════════════════════════════════════════════════ */

.section-salawat {
  background:
    radial-gradient(70% 55% at 12% 20%, var(--gold-ambient), transparent 65%),
    radial-gradient(60% 50% at 88% 80%, rgba(201, 155, 69, 0.06), transparent 68%);
}

.salawat-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.salawat-copy .section-title { margin-bottom: 1rem; }

.salawat-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.salawat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-subtle);
}

.salawat-item strong { color: var(--ink-primary); font-weight: 700; }

.salawat-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 12px var(--gold-ambient-strong);
}

.salawat-figure { margin: 0; }

.salawat-figure img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.salawat-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

.footer-owner { color: var(--gold-accent); font-weight: 700; }

@media (max-width: 900px) {
  .salawat-grid { grid-template-columns: 1fr; }
  .salawat-figure { order: -1; max-width: 320px; margin-inline: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   Salawat al-Nabi section
   ═══════════════════════════════════════════════════════════════ */

.section-salawat {
  background:
    radial-gradient(70% 55% at 12% 20%, var(--gold-ambient), transparent 65%),
    radial-gradient(60% 50% at 88% 80%, rgba(201, 155, 69, 0.06), transparent 68%);
}

.salawat-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.salawat-copy .section-title { margin-bottom: 1rem; }

.salawat-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.salawat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-subtle);
}

.salawat-item strong { color: var(--ink-primary); font-weight: 700; }

.salawat-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.7em;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 12px var(--gold-ambient-strong);
}

.salawat-figure { margin: 0; }

.salawat-figure img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.salawat-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

.footer-owner { color: var(--gold-accent); font-weight: 700; }

@media (max-width: 900px) {
  .salawat-grid { grid-template-columns: 1fr; }
  .salawat-figure { order: -1; max-width: 320px; margin-inline: auto; }
}
