/* =========================================================
   Variables & Reset
========================================================= */
:root {
  --primary: #1D9E75;
  --primary-dark: #147053;
  --primary-light: #25c492;
  --primary-faint: #e8faf4;
  --secondary: #185FA5;
  --warning: #EF9F27;
  --danger: #E24B4A;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* =========================================================
   Layout helpers
========================================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* =========================================================
   Navbar
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}


.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

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



.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  background: linear-gradient(160deg, #f0fdf8 0%, #ffffff 50%, #eff6ff 100%);
  padding: 88px 0 64px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 158, 117, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-faint);
  border: 1px solid rgba(29, 158, 117, .25);
  padding: 5px 14px;
  border-radius: 50px;
}

.hero-h1 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-h1 span {
  color: var(--primary);
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: var(--border);
}

.hero-visual {
  position: relative;
}

/* Dashboard mockup */
.dashboard-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f57;
}

.dot-y {
  background: #febc2e;
}

.dot-g {
  background: #28c840;
}

.mockup-url {
  margin-right: auto;
  font-size: .7rem;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
}

.mockup-body {
  padding: 16px;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.kpi-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.kpi-label {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.kpi-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.kpi-val.green {
  color: var(--primary);
}

.kpi-val.blue {
  color: var(--secondary);
}

.kpi-val.orange {
  color: var(--warning);
}

.mockup-table {
  font-size: .72rem;
  width: 100%;
  border-collapse: collapse;
}

.mockup-table th {
  text-align: right;
  padding: 6px 8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.mockup-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text);
}

.status-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-amber {
  background: #fef3c7;
  color: #92400e;
}

.mockup-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: .75rem;
  white-space: nowrap;
}

.mockup-float-1 {
  bottom: -18px;
  right: -20px;
}

.mockup-float-2 {
  top: 30px;
  left: -24px;
}

.float-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.float-val {
  font-weight: 800;
  color: var(--primary);
  font-size: .9rem;
}

.float-lbl {
  color: var(--text-muted);
  font-size: .68rem;
}

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s, border-color .25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* =========================================================
   How It Works
========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: linear-gradient(to left, var(--border), var(--primary), var(--border));
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(29, 158, 117, .3);
}

.step-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Pricing
========================================================= */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.pricing-toggle span {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-muted);
}

.pricing-toggle span.active {
  color: var(--primary);
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
}

.toggle-switch.on {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  transition: transform .3s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.on::after {
  transform: translateX(-24px);
}

.save-badge {
  background: var(--warning);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color .25s, box-shadow .25s;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, .08);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-card .plan-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
}

.price-currency {
  font-size: .9rem;
  color: var(--text-muted);
}

.price-period {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li.no::before {
  content: '✕';
  color: var(--text-light);
}

.pricing-features li.no {
  color: var(--text-muted);
}

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

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  font-size: .95rem;
}

.author-name {
  font-weight: 700;
  font-size: .88rem;
}

.author-role {
  font-size: .78rem;
  color: var(--text-muted);
}

/* =========================================================
   FAQ
========================================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.faq-q .icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-q.open .icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-a.open {
  display: block;
}

/* =========================================================
   CTA Banner
========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #25c492 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.cta-note {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
  margin-top: 16px;
  position: relative;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

/* =========================================================
   Footer
========================================================= */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, .6);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--primary-light); }

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: .85rem;
  transition: color .2s;
}

.footer-col ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}

/* =========================================================
   Form elements (contact page)
========================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, .12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger);
  font-size: .82rem;
}

.form-success {
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
}

/* =========================================================
   Admin panel
========================================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #0f172a;
  color: #fff;
  padding: 24px 16px;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 32px;
  padding: 0 8px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  transition: all .2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-main {
  flex: 1;
  background: var(--bg-alt);
  padding: 32px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 900;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
}

.stat-card .stat-sub {
  font-size: .75rem;
  color: var(--primary);
  margin-top: 4px;
}

/* Table */
.data-table-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.data-table-head h2 {
  font-size: 1rem;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 16px;
  text-align: right;
  font-size: .85rem;
}

th {
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--primary-faint);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-new {
  background: #eff6ff;
  color: #2563eb;
}

.badge-contacted {
  background: #fefce8;
  color: #ca8a04;
}

.badge-converted {
  background: var(--primary-faint);
  color: var(--primary-dark);
}

.badge-lost {
  background: #fef2f2;
  color: var(--danger);
}

.badge-unread {
  background: #eff6ff;
  color: #2563eb;
}

.badge-read {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.badge-replied {
  background: var(--primary-faint);
  color: var(--primary-dark);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1024px) {

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 16px;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

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

  .pricing-toggle {
    flex-wrap: wrap;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .navbar-links {
    display: none;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}