/* ================================================
   Halali landing page
   ================================================ */

:root {
  --color-primary: #2c6ae5;
  --color-primary-dark: #1f4eaa;
  --color-primary-soft: #eaf0fc;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fb;
  --color-text: #1a2233;
  --color-text-muted: #6b7280;
  --color-text-soft: #9aa2b1;
  --color-border: #e3e7ee;
  --color-accent: #f59e0b;
  --color-success: #1aa260;

  --max-w: 1180px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.small { font-size: 13px; }

/* Language toggle */
.lang-en { display: inline; }
.lang-ar { display: none; }
[dir="rtl"] .lang-en { display: none; }
[dir="rtl"] .lang-ar { display: inline; font-family: "Noto Sans Arabic", sans-serif; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-text); text-decoration: none;
  font-weight: 700; font-size: 18px;
}
.brand-link:hover { color: var(--color-text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--color-primary); color: #fff;
  border-radius: 9px; font-size: 20px; font-weight: 700;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--color-text-muted); font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-toggle {
  background: transparent; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 6px 14px;
  font-family: inherit; font-size: 13px; cursor: pointer;
  color: var(--color-text);
}
.lang-toggle:hover { background: var(--color-bg-alt); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f7f8fb 0%, #eaf0fc 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.kicker {
  display: inline-block;
  background: var(--color-primary-soft); color: var(--color-primary);
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: 52px; line-height: 1.08; letter-spacing: -1px;
  margin: 0 0 18px; font-weight: 800;
}
.hero-text h1 .accent { color: var(--color-primary); }
.lede {
  font-size: 18px; line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.store-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: #1a2233; color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.store-badge:hover { transform: translateY(-1px); color: #fff; }
.store-badge.disabled {
  opacity: 0.55; cursor: default; pointer-events: none;
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 11px; opacity: 0.85; }
.store-badge strong { display: block; font-size: 16px; font-weight: 600; }

/* ===== Hero phone mockup ===== */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px; height: 560px;
  background: #1a2233;
  border-radius: 38px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(0); }
.phone-screen {
  width: 100%; height: 100%;
  background: #f7f8fb;
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 16px;
}
.screen-header {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--color-primary); font-size: 22px;
  margin-bottom: 8px;
}
.screen-header .ar { direction: rtl; }
.screen-header .dot {
  width: 10px; height: 10px; background: var(--color-success); border-radius: 50%;
}
.card-mini {
  background: #fff; border-radius: 14px;
  padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; gap: 10px;
}
.card-mini .row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.card-mini .row .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--color-primary-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ico-cow::before  { content: "🐄"; }
.ico-sheep::before{ content: "🐑"; }
.ico-goat::before { content: "🐐"; }
.card-mini .row .label { flex: 1; font-weight: 500; }
.card-mini .row .count {
  font-weight: 700; color: var(--color-primary);
}
.card-mini.pending {
  background: #fffbea;
  border: 1px solid #fde68a;
}
.row-small {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 13px;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section h2 {
  font-size: 36px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px; text-align: center;
}
.section-lede {
  text-align: center; max-width: 640px; margin: 0 auto 48px;
  color: var(--color-text-muted); font-size: 17px;
}

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.feature-ico {
  font-size: 32px; margin-bottom: 14px;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--color-primary-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.feature p { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.55; }

/* Who it's for */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.audience-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--color-border);
}
.audience-emoji { font-size: 44px; margin-bottom: 16px; }
.audience-card h3 { font-size: 24px; margin: 0 0 10px; }
.audience-card p { color: var(--color-text-muted); margin: 0 0 18px; }
.audience-card ul { padding-left: 18px; margin: 0; color: var(--color-text); }
.audience-card li { margin-bottom: 6px; }
[dir="rtl"] .audience-card ul { padding-left: 0; padding-right: 18px; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  text-align: center; padding: 24px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h4 { margin: 0 0 8px; font-size: 17px; }
.step p { color: var(--color-text-muted); margin: 0; font-size: 15px; }

/* CTA */
.section-cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; }
.section-cta .section-lede { color: rgba(255,255,255,0.85); }
.cta-form {
  display: flex; gap: 12px; justify-content: center;
  max-width: 480px; margin: 0 auto;
  flex-wrap: wrap;
}
.cta-form input {
  flex: 1; min-width: 240px;
  padding: 14px 18px; border-radius: 10px; border: 0;
  font-size: 15px; outline: none;
  background: #fff; color: var(--color-text);
}
.cta-form button {
  background: #1a2233; color: #fff; border: 0;
  padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.cta-form button:hover { background: #0f1623; }
#notifyMsg { margin-top: 14px; color: rgba(255,255,255,0.95); }

/* Footer */
.footer {
  background: #fafbfc;
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h5 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  margin: 0 0 12px; color: var(--color-text-muted);
}
.footer-col a {
  display: block; padding: 4px 0;
  color: var(--color-text); font-size: 14px;
}
.footer-col a:hover { color: var(--color-primary); }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 56px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-text h1 { font-size: 36px; }
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 32px; }
  .phone { transform: scale(0.9) rotate(-3deg); }
}
