@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ==========================================
   DYNAMIC LIGHT / DARK THEME VARIABLES
   ========================================== */
:root, [data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-sub: #475569;
  --navbar-bg: rgba(255, 255, 255, 0.94);
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --modal-bg: #ffffff;
  --logo-blue: #0b3c7d;
  --logo-accent: #2563eb;
  --logo-green: #10b981;
  --logo-green-hover: #059669;
  --logo-green-glow: rgba(16, 185, 129, 0.25);
  --hero-bg: radial-gradient(circle at 12% 18%, rgba(11, 60, 125, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 88% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
              #f8fafc;
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  --mockup-bg: #0f172a;
  --code-bg: #1e293b;
}

[data-theme="dark"] {
  --bg-main: #060e18;
  --bg-card: #0b1a2b;
  --bg-card-subtle: #0f243a;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --navbar-bg: rgba(11, 26, 43, 0.94);
  --input-bg: #071524;
  --input-text: #f8fafc;
  --modal-bg: #0b1a2b;
  --logo-blue: #38bdf8;
  --logo-accent: #60a5fa;
  --logo-green: #10b981;
  --logo-green-hover: #34d399;
  --logo-green-glow: rgba(16, 185, 129, 0.35);
  --hero-bg: radial-gradient(circle at 15% 20%, rgba(11, 60, 125, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
              #060e18;
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --mockup-bg: #030712;
  --code-bg: #020617;
}

/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

body.lang-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', sans-serif !important;
  direction: rtl;
  text-align: right;
}

.text-theme-main { color: var(--text-main) !important; }
.text-theme-sub { color: var(--text-sub) !important; }
.text-green { color: var(--logo-green) !important; }
.text-blue { color: var(--logo-accent) !important; }

/* ==========================================
   FLOATING CAPSULE NAVBAR
   ========================================== */
.navbar-capsule-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1030;
  padding: 0 14px;
}

.navbar-capsule {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 24px;
  box-shadow: var(--shadow-float);
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .navbar-capsule {
    border-radius: 24px;
    padding: 12px 20px;
  }
  .navbar-collapse {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px;
    margin-top: 12px;
  }
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-main) !important;
}

.nav-link {
  color: var(--text-sub) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--logo-green) !important;
  background: rgba(16, 185, 129, 0.08);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--logo-green);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-attendify {
  padding: 80px 0 70px 0;
  background: var(--hero-bg);
  position: relative;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--logo-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.product-pill-blue {
  background: rgba(37, 99, 235, 0.12);
  color: var(--logo-accent);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.hero-mockup-wrapper {
  position: relative;
}

.browser-frame {
  background: var(--mockup-bg);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.app-screenshot {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: -22px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
}
body.lang-urdu .floating-badge {
  left: auto;
  right: -20px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--logo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================
   CARDS & FEATURES
   ========================================== */
.card-attendify {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-attendify:hover {
  transform: translateY(-6px);
  border-color: var(--logo-green);
  box-shadow: 0 16px 36px var(--logo-green-glow);
}

.icon-box-green {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--logo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.icon-box-blue {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--logo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.mini-ui-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-tech {
  background: rgba(11, 60, 125, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
[data-theme="dark"] .badge-tech {
  background: rgba(11, 60, 125, 0.4);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* ==========================================
   CODE SNIPPET & TERMINAL BANNER
   ========================================== */
.terminal-block {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 22px;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
}
.terminal-command {
  color: #38bdf8;
}
.terminal-success {
  color: #10b981;
}

/* ==========================================
   COMPARISON TABLE
   ========================================== */
.table-comparison {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  min-width: 720px;
}
.table-comparison th {
  background: rgba(11, 60, 125, 0.05);
  color: var(--text-main);
  font-weight: 700;
  padding: 18px 22px;
  border-bottom: 2px solid var(--border-color);
}
[data-theme="dark"] .table-comparison th {
  background: rgba(255, 255, 255, 0.05);
}
.table-comparison td {
  padding: 18px 22px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table-comparison tr:last-child td {
  border-bottom: none;
}
.highlight-col {
  background: rgba(16, 185, 129, 0.06) !important;
  font-weight: 700;
  color: var(--text-main) !important;
}

/* ==========================================
   ROI CALCULATOR
   ========================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.range-slider-green {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: var(--border-color);
  outline: none;
}
.range-slider-green::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--logo-green);
  cursor: pointer;
  box-shadow: 0 0 14px var(--logo-green-glow);
}

/* ==========================================
   PRICING CARDS
   ========================================== */
.card-pricing {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 30px;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-pricing:hover {
  transform: translateY(-8px);
  border-color: var(--logo-green);
}

.card-pricing.popular {
  border: 2px solid var(--logo-green);
  box-shadow: 0 18px 40px var(--logo-green-glow);
  transform: translateY(-10px);
}
.card-pricing.popular:hover {
  transform: translateY(-14px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--logo-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 14px var(--logo-green-glow);
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-green-glow {
  background: var(--logo-green);
  color: #ffffff !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 0 20px var(--logo-green-glow);
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-green-glow:hover {
  background: var(--logo-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.5);
}

.btn-blue-outline {
  background: rgba(11, 60, 125, 0.08);
  border: 1px solid var(--logo-blue);
  color: var(--text-main) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-blue-outline:hover {
  background: var(--logo-blue);
  color: #ffffff !important;
}

/* ==========================================
   FLOATING WHATSAPP WIDGET
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 1050;
  transition: all 0.3s ease;
  text-decoration: none;
}
body.lang-urdu .whatsapp-float {
  right: auto;
  left: 28px;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  color: #ffffff;
}

/* ==========================================
   FORM CONTROLS
   ========================================== */
.form-attendify {
  background: var(--input-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--input-text) !important;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
}
.form-attendify::placeholder {
  color: var(--text-sub) !important;
  opacity: 0.7;
}
.form-attendify:focus {
  border-color: var(--logo-green) !important;
  box-shadow: 0 0 0 3px var(--logo-green-glow) !important;
}

/* ==========================================
   MODAL & FOOTER
   ========================================== */
.modal-content {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 22px;
}

/* ==========================================
   TRUST METRICS & STATS
   ========================================== */
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}
.stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--logo-green);
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--logo-green) 0%, var(--logo-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   SCREENSHOTS & DEMO VIDEO CARDS
   ========================================== */
.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.screenshot-card:hover {
  transform: translateY(-5px);
  border-color: var(--logo-green);
  box-shadow: 0 20px 40px -10px var(--logo-green-glow);
}
.screenshot-preview-wrap {
  position: relative;
  overflow: hidden;
  background: var(--mockup-bg);
  border-bottom: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
}
.screenshot-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.screenshot-card:hover .screenshot-preview-wrap img {
  transform: scale(1.04);
}
.screenshot-info {
  padding: 18px;
  flex-grow: 1;
}

.video-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.video-responsive-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-responsive-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   TESTIMONIALS & ONBOARDING
   ========================================== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--logo-green);
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.onboarding-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.onboarding-step:hover {
  border-color: var(--logo-green);
  transform: translateY(-3px);
}
.onboarding-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--logo-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--logo-green-glow);
}

.demo-sandbox-box {
  background: linear-gradient(135deg, rgba(11, 60, 125, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 20px;
}
