/* =========================================
   Mesrof — Coming Soon
   ========================================= */

:root {
  --bg: #F8FAF7;
  --primary: #0F766E;
  --primary-dark: #0B5A54;
  --primary-soft: #E6F4F2;
  --text: #102A27;
  --muted: #64748B;
  --accent: #D6B85A;
  --card: #FFFFFF;
  --border: #E6EBE9;
  --shadow-sm: 0 2px 8px rgba(16, 42, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 42, 39, 0.06);
  --shadow-lg: 0 24px 60px rgba(16, 42, 39, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Tahoma", "Geeza Pro", "Noto Naskh Arabic", "Cairo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 247, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(16, 42, 39, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.nav a:hover { color: var(--primary); opacity: 1; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

/* ========== Hero ========== */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -200px auto auto;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(15, 118, 110, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-secondary {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ========== Countdown ========== */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
}
.countdown-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.countdown-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.countdown-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.countdown-final {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* ========== Phone mockup ========== */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -40%);
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(214, 184, 90, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.phone {
  position: relative;
  width: 300px;
  height: 600px;
  background: #0c1f1d;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.04);
  z-index: 1;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F8FAF7 0%, #EEF4F2 100%);
  border-radius: 34px;
  padding: 40px 14px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.app-greeting { display: flex; flex-direction: column; flex: 1; }
.greeting-hi { font-size: 13px; font-weight: 700; color: var(--text); }
.greeting-sub { font-size: 11px; color: var(--muted); }
.bell { font-size: 15px; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(16, 42, 39, 0.05);
}
.budget-card {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #fff;
}
.budget-card .card-label {
  font-size: 12px;
  opacity: .85;
  display: block;
  margin-bottom: 4px;
}
.budget-card .card-value {
  font-size: 22px;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 10px;
}
.budget-meta strong {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.meta-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  background: #fff;
}
.meta-dot-spent { background: #D6B85A; }
.meta-dot-save { background: #5EEAD4; }
.budget-bar {
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D6B85A, #FDE68A);
  border-radius: 999px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 0 4px;
}
.see-all { color: var(--primary); font-weight: 600; font-size: 11px; }

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cat {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 42, 39, 0.04);
}
.cat-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 16px;
}
.cat-food { background: #FEF3C7; color: #B45309; }
.cat-transport { background: #DBEAFE; color: #1D4ED8; }
.cat-bills { background: #FCE7F3; color: #BE185D; }
.cat-name { font-size: 11px; color: var(--muted); }
.cat-amount { font-size: 12px; font-weight: 800; color: var(--text); }

.goal-card { padding: 12px 14px; }
.goal-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.goal-head strong { color: var(--primary); }
.goal-bar {
  height: 8px;
  background: #ECF3F1;
  border-radius: 999px;
  overflow: hidden;
}
.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F766E, #14B8A6);
  border-radius: 999px;
}
.goal-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.tx {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 2px 8px rgba(16, 42, 39, 0.04);
}
.tx-icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px;
  background: #ECF3F1;
  color: var(--primary);
}
.tx-food { background: #FEF3C7; color: #B45309; }
.tx-transport { background: #DBEAFE; color: #1D4ED8; }
.tx-save { background: #DCFCE7; color: #047857; }
.tx-info { display: flex; flex-direction: column; flex: 1; }
.tx-name { font-size: 12px; font-weight: 700; }
.tx-date { font-size: 10px; color: var(--muted); }
.tx-amount { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tx-out { color: #DC2626; }
.tx-in { color: var(--primary); }

/* ========== Section headings ========== */
.section-heading {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 640px;
}
.center { text-align: center; margin-inline: auto; }

/* ========== Features ========== */
.features {
  padding: 72px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 118, 110, 0.2);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ========== Trust ========== */
.trust {
  padding: 72px 0 96px;
}
.trust-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.pills {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  transition: transform .2s ease, background .2s ease;
}
.pill:hover {
  transform: translateY(-1px);
  background: #D5ECE8;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-meta {
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary) !important;
  font-weight: 700;
}
.footer-email i { font-size: 14px; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .countdown { margin-inline: auto; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 36px 0 60px; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .countdown-value { font-size: 26px; }
  .countdown-item { padding: 12px 4px; }

  .features-grid { grid-template-columns: 1fr; }
  .trust-inner { padding: 40px 22px; }

  .phone { width: 260px; height: 540px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
