/* Mesali Landing Page */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --surface: #fff;
  --bg: #f9fafb;
  --radius: 0.75rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--surface); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.btn-lg { padding: 0.875rem 2rem; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.375rem; font-weight: 800; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9375rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text-muted); font-size: 1rem; }

/* HERO */
.hero {
  max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.375rem 0.875rem; border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 30rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-proof { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--text-muted); flex-wrap: wrap; }
.hero-proof span::before { content: ''; }

/* Mockup */
.hero-visual { display: flex; justify-content: center; }
.mockup-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12); width: 100%; max-width: 22rem; overflow: hidden;
}
.mockup-header {
  background: #f3f4f6; padding: 0.625rem 1rem;
  display: flex; align-items: center; gap: 0.375rem;
}
.mockup-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }
.mockup-url { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.mockup-body { padding: 1.25rem; }
.mock-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.mock-services { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.25rem; }
.mock-service { font-size: 0.8125rem; padding: 0.625rem 0.875rem; border: 1.5px solid var(--border); border-radius: 0.5rem; color: var(--text-muted); }
.mock-service.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.mock-btn {
  background: var(--primary); color: #fff; text-align: center;
  padding: 0.625rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9375rem;
}

/* Sections */
.section-inner { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-sub { font-size: 1.125rem; color: var(--text-muted); }

/* Features */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* How */
.steps-row { display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.step { flex: 1; min-width: 14rem; max-width: 20rem; }
.step-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-light); line-height: 1; margin-bottom: 0.75rem; }
.step h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }
.step-arrow { font-size: 2rem; color: var(--border); align-self: center; padding-top: 1rem; }

/* Pricing */
.pricing { background: var(--bg); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; align-items: start; }
.plan-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative;
}
.plan-card.plan-featured { border-color: var(--primary); box-shadow: 0 8px 30px rgba(79,70,229,0.15); }
.plan-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.875rem; border-radius: 9999px; white-space: nowrap;
}
.plan-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.plan-price { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; font-size: 0.9375rem; }
.plan-features li.disabled { color: var(--text-muted); }
.plan-card .btn { width: 100%; }

/* Demo CTA */
.demo-cta { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); color: #fff; }
.cta-inner { text-align: center; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-sub { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; }
.cta-form { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; max-width: 48rem; margin: 0 auto 1rem; }
.cta-input {
  flex: 1; min-width: 14rem; padding: 0.75rem 1rem;
  border: none; border-radius: 0.5rem; font-size: 1rem; font-family: var(--font);
  outline: none;
}
.cta-form .btn { flex-shrink: 0; }
.form-success { font-size: 1.125rem; font-weight: 600; }
.hidden { display: none; }

/* Footer */
.footer { background: #111827; color: #d1d5db; padding: 3rem 1.5rem 0; }
.footer-inner { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer .brand { color: #fff; font-size: 1.25rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.875rem; color: #9ca3af; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links h4 { color: #fff; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.footer-links a { color: #9ca3af; font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding: 1.25rem 0; max-width: 72rem; margin: 0 auto; }
.footer-bottom p { font-size: 0.875rem; color: #6b7280; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-form { flex-direction: column; }
  .cta-input { min-width: 0; }
}
