/* ==========================================================================
   Bawar (باور) Coming Soon Page Stylesheet
   Modern, elegant Pashto typographic & editorial design
   Using BahijHoma font throughout the entire page
   ========================================================================== */

/* Local BahijHoma Bold Font */
@font-face {
  font-family: 'BahijHoma';
  src: url('BahijHoma-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Color Variables */
:root {
  --color-paper: #FAF5EC;
  --color-paper-deep: #F3EBDD;
  --color-card: #FFFCF7;
  --color-card-hover: #FFFFFF;
  --color-ink: #26221C;
  --color-ink-soft: #443D34;
  --color-muted: #786F63;
  --color-muted-light: #A39A8D;
  --color-vermilion: #C85438;
  --color-vermilion-hover: #A94027;
  --color-vermilion-soft: #F9ECE7;
  --color-ochre: #D9A54A;
  --color-ochre-soft: #FAF3E5;
  --color-moss: #5F7347;
  --color-border: rgba(38, 34, 28, 0.12);
  --color-border-subtle: rgba(38, 34, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(38, 34, 28, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(38, 34, 28, 0.08);
  --shadow-lg: 0 16px 40px -8px rgba(38, 34, 28, 0.12);
  
  --font-all: 'BahijHoma', 'Vazirmatn', system-ui, sans-serif;
}

/* Base & Reset - BahijHoma applied everywhere */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-all) !important;
}

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-all) !important;
  line-height: 1.85;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Background Atmosphere */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(200, 84, 56, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(217, 165, 74, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(95, 115, 71, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle Ambient Background Watermark Logo */
.bg-watermark-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, 92vw);
  height: min(820px, 85vh);
  background-image: url('full-logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  filter: grayscale(20%);
}

/* Layout */
.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Brand Header & Logo */
.brand-header {
  margin-bottom: 2rem;
  position: relative;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.brand-logo {
  display: block;
  max-width: 230px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(38, 34, 28, 0.08));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  will-change: transform, filter;
}

.logo-wrapper:hover .brand-logo {
  transform: translateY(-6px) scale(1.06) rotate(-1.5deg);
  filter: drop-shadow(0 14px 22px rgba(200, 84, 56, 0.22)) drop-shadow(0 4px 10px rgba(38, 34, 28, 0.12));
}

.logo-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(200, 84, 56, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Hero Section */
.hero-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Islamic Manuscript Cartouche (کتیبه) */
.islamic-cartouche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.6rem 1.6rem;
  background: linear-gradient(180deg, #FFFCF7 0%, #FAF1E0 100%);
  border: 1.5px solid var(--color-ochre);
  outline: 1px solid rgba(217, 165, 74, 0.4);
  outline-offset: -4px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(217, 165, 74, 0.16), inset 0 0 10px rgba(217, 165, 74, 0.08);
  margin-bottom: 1.6rem;
  position: relative;
  transition: all 0.3s ease;
  min-height: 54px;
  max-width: 95%;
}

.islamic-cartouche:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(217, 165, 74, 0.24), inset 0 0 14px rgba(217, 165, 74, 0.12);
  border-color: #C69235;
}

.cartouche-motif {
  color: var(--color-vermilion);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  user-select: none;
  filter: drop-shadow(0 1px 2px rgba(200, 84, 56, 0.25));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.islamic-cartouche:hover .cartouche-motif {
  transform: rotate(45deg);
}

.cartouche-text {
  font-size: 1.05rem;
  color: #4A3A22;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
  min-height: 1.5em;
}

/* Main Titles */
.main-title {
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  line-height: 1.45;
  color: var(--color-ink);
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.title-highlight {
  color: var(--color-vermilion);
  position: relative;
  display: inline-block;
}

.title-highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 8px;
  background-color: rgba(217, 165, 74, 0.35);
  border-radius: 4px;
  z-index: -1;
}

.main-description {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--color-ink-soft);
  max-width: 720px;
  line-height: 2.1;
  margin-bottom: 3rem;
}

/* Countdown Timer - Unified Editorial Glass Panel */
.countdown-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 252, 247, 0.95), rgba(250, 243, 230, 0.8));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(217, 165, 74, 0.35);
  border-radius: 22px;
  padding: 1.25rem 2.2rem;
  box-shadow: 
    0 12px 32px -4px rgba(38, 34, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  margin-bottom: 3.5rem;
  max-width: 580px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-panel:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 16px 40px -4px rgba(38, 34, 28, 0.12),
    0 0 20px rgba(217, 165, 74, 0.15);
  border-color: rgba(217, 165, 74, 0.55);
}

.timer-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  min-width: 70px;
}

.timer-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(217, 165, 74, 0.45) 30%, rgba(217, 165, 74, 0.45) 70%, transparent);
}

.timer-num {
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-ink);
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.timer-num.tick {
  animation: numPulse 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
}

@keyframes numPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.timer-label {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.85rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 84, 56, 0.28);
  background: var(--color-card-hover);
}

.feature-title {
  font-size: 1.35rem;
  color: var(--color-ink);
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.85;
}

/* Footer (Clean, no social links) */
.page-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.copyright-text {
  font-size: 1rem;
  color: var(--color-muted);
}

.copyright-text strong {
  color: var(--color-ink);
}

/* Responsive Adjustments */
@media (max-width: 940px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 580px) {
  .islamic-cartouche {
    min-height: 70px;
    padding: 0.5rem 1.1rem;
    gap: 0.55rem;
    width: 100%;
    max-width: 440px;
  }

  .cartouche-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .cartouche-motif {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .countdown-panel {
    padding: 1rem 1.25rem;
    border-radius: 18px;
  }

  .timer-item {
    min-width: 55px;
    padding: 0.2rem 0.4rem;
  }

  .timer-divider {
    height: 40px;
  }

  .timer-num {
    font-size: 2.1rem;
  }
}

@media (max-width: 540px) {
  .page-container {
    padding: 2.25rem 1rem 2rem;
  }

  .brand-logo {
    max-width: 170px;
  }

  .islamic-cartouche {
    min-height: 72px;
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
  }

  .countdown-panel {
    padding: 0.85rem 0.75rem;
  }

  .timer-item {
    min-width: 46px;
    padding: 0.2rem 0.25rem;
  }

  .timer-divider {
    height: 34px;
  }

  .timer-num {
    font-size: 1.75rem;
  }

  .timer-label {
    font-size: 0.82rem;
  }
}
