/* ===========================
   TARBIYA — LANDING PAGE CSS
   =========================== */

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --green: #10B981;
  --green-light: #ECFDF5;
  --blue: #3B82F6;
  --blue-light: #EFF6FF;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg-light: #F9FAFB;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  padding: 14px 0;
}

#mainNav.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow);
}

.brand-icon {
  color: var(--primary);
  margin-right: 4px;
}

.navbar-brand {
  font-size: 1.3rem;
  color: var(--text) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  padding: 10px 24px;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text) !important;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  padding: 10px 24px;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0ff 100%);
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.badge-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(79,70,229,0.2);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
}

.hero-stats {
  padding-top: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ---- DASHBOARD MOCKUP ---- */
.hero-visual {
  position: relative;
}

.dashboard-mockup {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-bar {
  background: #F3F4F6;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1D5DB;
}

.mockup-bar span:nth-child(1) { background: #FC8181; }
.mockup-bar span:nth-child(2) { background: #F6AD55; }
.mockup-bar span:nth-child(3) { background: #68D391; }

.mockup-content {
  display: flex;
  height: 320px;
}

.mockup-sidebar {
  width: 56px;
  background: #1E1B4B;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 12px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.sidebar-item {
  width: 32px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.sidebar-item.active {
  background: var(--primary);
}

.mockup-main {
  flex: 1;
  padding: 16px;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-title-block {
  width: 120px;
  height: 10px;
  background: #E5E7EB;
  border-radius: 4px;
}

.mockup-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
}

.mockup-cards {
  display: flex;
  gap: 10px;
}

.mockup-card {
  flex: 1;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-green { background: var(--green-light); }
.card-blue { background: var(--blue-light); }
.card-purple { background: #F5F3FF; }

.card-icon-sm { font-size: 1rem; }

.card-lines { display: flex; flex-direction: column; gap: 4px; }
.line { height: 5px; border-radius: 3px; background: rgba(0,0,0,0.1); }
.line.short { width: 40px; }
.line.long { width: 60px; }

.mockup-chart {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
}

.bar {
  flex: 1;
  background: #E5E7EB;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
}

.bar.active { background: var(--primary); }

/* ---- FLOATING BADGES ---- */
.floating-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  bottom: 30px;
  left: -20px;
  animation-delay: 0s;
}

.badge-2 {
  top: 40px;
  right: -10px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- LOGO STRIP ---- */
.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.logo-text {
  font-weight: 600;
  color: #9CA3AF;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* ---- SECTIONS ---- */
.section-pad { padding: 96px 0; }

.bg-light-custom { background: var(--bg-light); }

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- PRODUCT CARDS ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-green { background: var(--green-light); color: var(--green); }
.icon-blue { background: var(--blue-light); color: var(--blue); }

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.product-features li i {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-product-green {
  background: var(--green-light);
  color: var(--green) !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.2s;
}

.btn-product-green:hover {
  background: var(--green);
  color: white !important;
}

.btn-product-blue {
  background: var(--blue-light);
  color: var(--blue) !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.2s;
}

.btn-product-blue:hover {
  background: var(--blue);
  color: white !important;
}

/* ---- FEATURE CARDS ---- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- PRICING ---- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-label.active { color: var(--text); font-weight: 600; }

.badge-save {
  background: #D1FAE5;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-popular {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 40%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 12px 0 8px;
}

.currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.pricing-features li i { color: var(--green); font-size: 1rem; }
.pricing-features li.disabled { color: var(--text-muted); }
.pricing-features li.disabled i { color: #D1D5DB; }

.btn-outline-pricing {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px;
  transition: all 0.2s;
}

.btn-outline-pricing:hover {
  background: var(--primary);
  color: white !important;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  height: 100%;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 2px; }

.testimonial-card p {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- CTA ---- */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

.cta-box { max-width: 600px; margin: 0 auto; }

.cta-box .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.cta-input {
  border-radius: 10px;
  border: none;
  padding: 12px 18px;
  font-size: 0.9rem;
  min-width: 260px;
  box-shadow: none;
}

.cta-input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
  outline: none;
}

.cta-email-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 20px 32px;
  text-align: left;
}

.cta-email-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.cta-email-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.cta-email-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}

.cta-email-link:hover {
  opacity: 0.8;
  text-decoration: underline;
  color: white;
}

.cta-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.cta-note a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

/* ---- FOOTER ---- */
.footer-section {
  background: #0F0E1A;
  padding: 72px 0 32px;
  color: rgba(255,255,255,0.6);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer-heading {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.82rem;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .floating-badge { display: none; }
  .hero-visual { margin-top: 40px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 64px 0; }
  .product-card { padding: 28px; }
  .pricing-card { padding: 28px; }
  .cta-input { min-width: unset; width: 100%; }
}
