/* ============================================
   NamazMate Landing Page - HubSpot Module CSS
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary-teal: #147D85;
  --primary-light: #1A9BA5;
  --secondary-green: #80CC5C;
  --gold-accent: #F8BF0B;
  --dark-bg: #0A1415;
  --dark-card: #152224;
  --text: #FFFFFF;
  --text-muted: #A0AFAF;
  --border: #1E3335;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Amiri', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Geometric Background Pattern --- */
.nm-page {
  position: relative;
  background-color: var(--dark-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L55 30L30 55L5 30Z' fill='none' stroke='%231E3335' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

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

/* --- Fade-in Animation --- */
.nm-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.nm-fade-in.nm-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Spacing --- */
.nm-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .nm-section {
    padding: 50px 0;
  }
}

/* --- Section Title --- */
.nm-section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.nm-section-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   1. HEADER
   ============================================ */
.nm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(10, 20, 21, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nm-header.nm-scrolled {
  background: rgba(10, 20, 21, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

.nm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nm-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nm-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nm-logo-text span {
  color: var(--primary-light);
}

.nm-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-light));
  color: var(--text);
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}

.nm-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 125, 133, 0.4);
}

.nm-header-cta svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   2. HERO
   ============================================ */
.nm-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.nm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nm-hero-bismillah {
  font-family: var(--font-display);
  color: var(--gold-accent);
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: block;
}

.nm-hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.nm-hero-headline .nm-highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nm-hero-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.nm-store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nm-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--dark-card);
  transition: border-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.nm-store-badge:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.nm-store-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nm-store-badge-text small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1;
}

.nm-store-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Phone Mockup */
.nm-hero-phone-wrapper {
  display: flex;
  justify-content: center;
}

.nm-phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  border-radius: 40px;
  background: #000;
  padding: 10px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 25px 60px rgba(20, 125, 133, 0.25),
    0 0 80px rgba(20, 125, 133, 0.1);
  animation: nm-float 6s ease-in-out infinite;
}

.nm-phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.nm-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--dark-card);
}

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

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

/* Hero Responsive */
@media (max-width: 768px) {
  .nm-hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .nm-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .nm-hero-headline {
    font-size: 2.2rem;
  }

  .nm-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .nm-store-badges {
    justify-content: center;
  }

  .nm-phone-mockup {
    width: 230px;
    height: 470px;
  }
}

/* ============================================
   3. FEATURES
   ============================================ */
.nm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nm-feature-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.nm-feature-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 125, 133, 0.15);
}

.nm-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-feature-icon svg {
  width: 28px;
  height: 28px;
}

.nm-feature-icon--teal {
  background: rgba(20, 125, 133, 0.15);
  color: var(--primary-light);
}

.nm-feature-icon--green {
  background: rgba(128, 204, 92, 0.15);
  color: var(--secondary-green);
}

.nm-feature-icon--gold {
  background: rgba(248, 191, 11, 0.15);
  color: var(--gold-accent);
}

.nm-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

@media (max-width: 768px) {
  .nm-features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   4. APP PREVIEW / SCREENSHOT CAROUSEL
   ============================================ */
.nm-preview {
  overflow: hidden;
}

.nm-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  scrollbar-width: none;
}

.nm-carousel::-webkit-scrollbar {
  display: none;
}

.nm-carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.nm-carousel-phone {
  width: 230px;
  height: 470px;
  border-radius: 32px;
  background: #000;
  padding: 8px;
  box-shadow:
    0 0 0 1.5px #2a2a2a,
    0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.nm-carousel-phone:hover {
  transform: scale(1.03);
}

.nm-carousel-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--dark-card);
}

.nm-carousel-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.nm-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.nm-carousel-dot.nm-active {
  background: var(--primary-light);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .nm-carousel-phone {
    width: 190px;
    height: 390px;
  }
}

/* ============================================
   5. AD BANNER
   ============================================ */
.nm-ad-section {
  padding: 40px 0;
}

.nm-ad-banner {
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   6. DOWNLOAD CTA
   ============================================ */
.nm-cta-section {
  padding: 80px 0;
}

.nm-cta-box {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-light));
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nm-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.nm-cta-box::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.nm-cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.nm-cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.nm-cta-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nm-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.nm-cta-badge:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.nm-cta-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nm-cta-badge-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
}

.nm-cta-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .nm-cta-box {
    padding: 40px 24px;
  }

  .nm-cta-box h2 {
    font-size: 1.7rem;
  }
}

/* ============================================
   7. FOOTER
   ============================================ */
.nm-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.nm-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.nm-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nm-footer-brand {
  font-weight: 700;
  font-size: 1rem;
}

.nm-footer-brand span {
  color: var(--primary-light);
}

.nm-footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nm-footer-links {
  display: flex;
  gap: 20px;
}

.nm-footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

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

  .nm-footer-left {
    flex-direction: column;
    gap: 8px;
  }
}
