/* RESET */

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

body {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
}

.nav-btn {
  background: #2563eb;
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 8%;
  gap: 40px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #475569;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.primary-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}

.secondary-btn {
  background: white;
  border: 1px solid #2563eb;
  color: #2563eb;
  padding: 14px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.preview-card {
  background: white;
  border-radius: 10px;
  padding: 60px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* FEATURES */

.features {
  padding: 80px 8%;
  text-align: center;
}

.features h2 {
  font-size: 32px;
  margin-bottom: 50px;
}

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

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card i {
  font-size: 28px;
  color: #2563eb;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

/* WORKFLOW */

.workflow {
  padding: 80px 8%;
  background: #f1f5f9;
  text-align: center;
}

.workflow i {
  color: black;
}

.workflow h2 {
  margin-bottom: 40px;
  font-size: 30px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step {
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.step span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

/* CTA */

.cta {
  padding: 80px 8%;
  text-align: center;
}

.cta h2 {
  margin-bottom: 30px;
  font-size: 30px;
}

.cta-shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px 16px;
  min-height: 52px;
  padding: 0 8px;
  box-sizing: border-box;
}

.cta-shell .primary-btn {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.install-fab {
  grid-column: 1;
  justify-self: start;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, #059669 0%, #2563eb 100%);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.install-fab:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.install-fab:active {
  transform: scale(0.96);
}

.install-fab-icon {
  font-size: 20px;
}

.install-fab-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  border: 1.5px solid #e2e8f0;
}

.install-fab[hidden] {
  display: none !important;
}

@keyframes creatorFabGlow {
  0%,
  100% {
    box-shadow:
      0 8px 22px rgba(234, 88, 12, 0.35),
      0 0 0 0 rgba(192, 38, 211, 0.35);
  }
  50% {
    box-shadow:
      0 12px 28px rgba(234, 88, 12, 0.45),
      0 0 0 10px rgba(192, 38, 211, 0);
  }
}

@keyframes creatorFabFloat {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 4px));
  }
}

.creator-fab {
  grid-column: 3;
  justify-self: end;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #ea580c 0%, #c026d3 55%, #7c3aed 100%);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  z-index: 5;
  animation: creatorFabGlow 2.4s ease-in-out infinite;
  transition: filter 0.2s ease;
}

.creator-fab:hover {
  filter: brightness(1.08);
  animation-play-state: paused;
}

.creator-fab:active {
  filter: brightness(0.95);
  transform: scale(0.96);
}

.creator-program-popup .creator-program-box {
  max-width: 420px;
  text-align: left;
  position: relative;
  max-height: min(88vh, 640px);
  overflow-y: auto;
}

.creator-program-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease;
}

.creator-program-close:hover {
  background: #e2e8f0;
}

.creator-program-body p {
  text-align: left;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.creator-program-body p:last-child {
  margin-bottom: 0;
}

.creator-program-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: #eff6ff;
  border-radius: 8px;
  color: #1e40af !important;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.creator-program-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

.creator-program-popup .popup-box h3 {
  text-align: center;
  padding-right: 28px;
}

.creator-program-popup .popup-icon {
  display: block;
  text-align: center;
}

.creator-program-popup .popup-box > button:last-child {
  width: 100%;
  margin-top: 18px;
}

/* FOOTER */

.footer {
  background: #020617;
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 14px;
  overflow-x: hidden;
}

/* ---------------- */
/* RESPONSIVE */
/* ---------------- */

/* TABLET */

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

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

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

/* MOBILE */

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 6%;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .steps {
    gap: 20px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .cta-shell {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 0 4px;
  }

  .cta-shell .primary-btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px;
    font-size: 14px;
  }

  .install-fab,
  .creator-fab {
    width: 48px;
    height: 48px;
  }

  .install-fab-icon {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
/* index page vidio */

.preview-card {
  padding: 20px;
  overflow: hidden;
}

.preview-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.footer {
  background: #020617;
  color: #cbd5f5;
  padding: 40px 8%;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #94a3b8;
  white-space: nowrap;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 12px;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-icons a {
  font-size: 20px;
  color: #cbd5f5;
  transition: 0.3s;
}

.footer-icons a:hover {
  color: #2563eb;
  transform: translateY(-3px);
}

/* MOBILE */
@media (max-width: 600px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
/* mobile screen ke liye a to z all css medea quary */
/* ============================= */
/* PREMIUM MOBILE OPTIMIZATION */
/* ============================= */

@media (max-width: 600px) {
  body {
    background: #f1f5f9;
  }

  /* NAVBAR */
  .navbar {
    padding: 14px 5%;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .nav-btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
  }

  /* HERO */
  .hero {
    padding: 40px 5%;
    gap: 25px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .primary-btn,
  .secondary-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .preview-card {
    padding: 12px;
    border-radius: 16px;
  }

  /* FEATURES */
  .features {
    padding: 50px 5%;
  }

  .features h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .feature-card {
    padding: 22px;
    border-radius: 16px;
  }

  .feature-card i {
    font-size: 24px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 14px;
  }

  /* WORKFLOW */
  .workflow {
    padding: 50px 5%;
  }

  .workflow h2 {
    font-size: 22px;
  }

  .steps {
    gap: 14px;
  }

  .step {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  .step p {
    font-size: 14px;
  }

  /* CTA */
  .cta {
    padding: 50px 5%;
  }

  .cta h2 {
    font-size: 22px;
  }

  /* FOOTER */
  .footer {
    padding: 30px 5%;
  }

  .footer-text {
    white-space: normal;
    font-size: 12px;
  }

  .footer-links a {
    font-size: 13px;
    padding: 6px 0;
  }

  .footer-icons a {
    font-size: 18px;
  }

  /* TOUCH FEEL */
  .feature-card,
  .step,
  .primary-btn,
  .secondary-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .feature-card:active,
  .step:active {
    transform: scale(0.98);
  }

  .primary-btn:active,
  .secondary-btn:active {
    transform: scale(0.96);
  }
}

/* ============================= */
/* device popup (mobile) — same behavior as dashboard; refined motion */
/* ============================= */

.device-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  padding: 20px;
}

.device-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.device-popup .popup-box {
  background: #fff;
  padding: 28px 26px;
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  text-align: center;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transform: scale(0.94) translateY(8px);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.32s ease;
}

.device-popup.show .popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.device-popup .popup-icon {
  font-size: 34px;
  color: #2563eb;
  margin-bottom: 12px;
  display: block;
}

.device-popup .popup-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0f172a;
}

.device-popup .popup-box p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 20px;
}

.device-popup .popup-box button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.device-popup .popup-box button:hover {
  background: #1d4ed8;
}

.device-popup .popup-box button:active {
  transform: scale(0.97);
}

/* Force button visible — hamesha */
#pwaOpenBtn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#features-section {
  scroll-margin-top: 72px;
}