@import url('fonts.css');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #ec4899;
  --accent2: #f59e0b;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1e1b2e;
  --text-muted: #6b7280;
  --border: #e7e5ef;
  --success: #16a34a;
  --danger: #dc2626;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(76, 29, 149, 0.08);
  --shadow-pop: 0 18px 45px rgba(76, 29, 149, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #ec4899 100%);
  color: #ffffff;
  padding: 64px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.hero-section::before { width: 320px; height: 320px; top: -140px; left: -100px; }
.hero-section::after { width: 260px; height: 260px; bottom: -120px; right: -80px; }

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: 'Noto Sans Bengali', sans-serif;
}

.hero-content .subtitle {
  font-size: clamp(15px, 2.4vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.how-it-works {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
}

.how-it-works span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.how-it-works .arrow { opacity: 0.7; font-weight: 400; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.download-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--primary-dark);
  background: #f1f0fb;
  padding: 7px 16px;
  border-radius: 999px;
}
.download-counter strong { font-weight: 800; }

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 32px rgba(236, 72, 153, 0.45); transform: translateY(-1px); }

.btn-secondary {
  background: #f1f0fb;
  color: var(--primary-dark);
}
.btn-secondary:hover { background: #e6e4fb; }

.btn-hero {
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 16px;
  padding: 15px 32px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22); }

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-size: 16px;
  padding: 15px 30px;
}
.btn-hero-outline:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 13px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------------------------------------------------------- */
/* Privacy strip                                                     */
/* ---------------------------------------------------------------- */
.privacy-strip {
  max-width: 900px;
  margin: -48px auto 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.privacy-strip .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.privacy-strip p { font-size: 14px; color: var(--text-muted); }
.privacy-strip strong { color: var(--text); }

/* ---------------------------------------------------------------- */
/* Showcase section                                                  */
/* ---------------------------------------------------------------- */
.section-heading {
  text-align: center;
  margin: 56px 0 28px;
}
.section-heading h2 {
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: clamp(22px, 3.6vw, 30px);
  margin-bottom: 8px;
}
.section-heading p { color: var(--text-muted); font-size: 15px; }

/* ---------------------------------------------------------------- */
/* Features section                                                   */
/* ---------------------------------------------------------------- */
.features-section { padding: 8px 20px 8px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------------------------------------------------------------- */
/* Install as app (PWA)                                               */
/* ---------------------------------------------------------------- */
.install-pwa-section { padding: 12px 20px 8px; max-width: 900px; margin: 0 auto; }

.install-pwa-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.install-pwa-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.install-pwa-text { max-width: 480px; }
.install-pwa-text h3 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.install-pwa-text p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.install-pwa-card .btn { white-space: nowrap; margin-top: 14px; }

.install-platform { margin-bottom: 18px; }
.install-platform h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.install-platform p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
#installNowBtn { width: 100%; margin-bottom: 22px; }

/* ---------------------------------------------------------------- */
/* FAQ section                                                        */
/* ---------------------------------------------------------------- */
.faq-section { padding: 12px 20px 40px; max-width: 820px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 14px; color: var(--text-muted); padding-bottom: 16px; line-height: 1.6; }

/* ---------------------------------------------------------------- */
/* Footer                                                              */
/* ---------------------------------------------------------------- */
.app-footer {
  margin-top: 60px;
  background: #171226;
  color: #cbd5e1;
  padding: 44px 20px 26px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand h3 {
  color: #ffffff;
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: #9ca3af; max-width: 320px; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links h4 { font-size: 13px; color: #e5e7eb; margin-bottom: 10px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 13px; color: #9ca3af; text-decoration: none; }
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
}

/* ---------------------------------------------------------------- */
/* Static content pages (about / privacy / terms / contact)          */
/* ---------------------------------------------------------------- */
.static-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #ec4899 100%);
  color: #ffffff;
  padding: 36px 20px;
}
.static-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.static-header .brand { font-family: 'Noto Sans Bengali', sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; color: #ffffff; }
.static-header .back-link {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255,255,255,0.16);
  padding: 8px 16px;
  border-radius: 999px;
}
.static-header .back-link:hover { background: rgba(255,255,255,0.26); }

.static-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 20px;
}
.static-content h1 {
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 8px;
}
.static-content .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.static-content h2 {
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--primary-dark);
}
.static-content p { margin-bottom: 14px; color: #374151; font-size: 15px; }
.static-content ul { margin: 0 0 14px 20px; color: #374151; font-size: 15px; }
.static-content li { margin-bottom: 6px; }
.static-content a.inline-link { color: var(--primary); font-weight: 600; text-decoration: underline; }
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-top: 8px;
}
.contact-card p { margin-bottom: 10px; }
.contact-card strong { color: var(--text); }

/* ---------------------------------------------------------------- */
/* How-to-create guide modal                                          */
/* ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 30px 30px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f0fb;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}
.modal-close:hover { background: #e6e4fb; color: var(--text); }

.modal-box h2 {
  font-family: 'Noto Sans Bengali', sans-serif;
  font-size: clamp(20px, 3.4vw, 25px);
  margin-bottom: 6px;
}
.modal-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.guide-steps { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.guide-steps h3 { font-size: 15.5px; margin-bottom: 3px; color: var(--text); }
.guide-steps p { font-size: 13.5px; color: var(--text-muted); }

.modal-box .btn-primary { width: 100%; }
