:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --primary-hover: #1d4ed8;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 3px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tag {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.14s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-mobile-cta {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 11px;
}

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

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

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

.btn-outline:hover {
  background: var(--surface-subtle);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Hero */
.hero {
  padding: 52px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.65);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero App Preview Card */
.app-card {
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 22px;
  padding: 20px;
  position: relative;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.app-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  direction: ltr;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-confirmed {
  background: var(--success-bg);
  color: var(--success);
}

.period-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.period-evening {
  background: rgba(219, 234, 254, 0.7);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.doctor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.doctor-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 4px;
}

.doctor-row h3 {
  font-size: 16px;
  font-weight: 700;
}

.doctor-row p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  font-weight: 700;
  color: var(--text);
}

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

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(219, 234, 254, 0.55);
  padding: 6px 12px;
  border-radius: 10px;
}

.capacity-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}

/* Stats Strip */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-subtle {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(219, 234, 254, 0.65);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.service-featured {
  border-color: rgba(37, 99, 235, 0.28);
}

.service-accent {
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 0;
  width: 3.5px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.service-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Payments */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.pay-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}

.pay-card img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.pay-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* B2B Clinics */
.clinics-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.clinics-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}

.clinics-content p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.clinics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clinics-list li {
  position: relative;
  padding-right: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.clinics-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 700;
}

.clinics-panel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.metric-title {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-val {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 2px 0;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* FAQ */
.faq-wrap {
  max-width: 820px;
}

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

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

.faq-trigger {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-plus {
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.16s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.faq-item.open .faq-body {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 2px;
}

.footer-brand strong {
  display: block;
  font-size: 14px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .clinics-box {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-mobile-cta {
    display: inline-flex !important;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}
