/* ===========================
   Tarhum Landing — Styles
   Bilingual (EN LTR / AR RTL)
   =========================== */

:root {
  --teal-50: #ecfeff;
  --teal-100: #cffafe;
  --teal-500: #0ea5a4;
  --teal-600: #0d8f8e;
  --teal-700: #0b7876;

  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --orange-100: #ffedd5;
  --orange-500: #f97316;

  --ink-900: #0b1220;
  --ink-700: #1f2a44;
  --ink-500: #4b5563;
  --ink-400: #6b7280;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f8fafc;

  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --max-w: 1180px;

  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--green-500));
  color: white;
  box-shadow: 0 8px 22px rgba(14, 165, 164, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 165, 164, 0.34); }

.btn-ghost {
  background: white;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }

.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink-900);
}
.brand-logo {
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-logo--sm { border-radius: 8px; }
.brand-name { letter-spacing: -0.01em; }

.primary-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.primary-nav a {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 15px;
  transition: color .15s ease;
}
.primary-nav a:hover { color: var(--teal-700); }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-700);
  transition: all .15s ease;
}
.lang-toggle:hover { border-color: var(--teal-500); }
.lang-active { color: var(--teal-700); }
.lang-divider { color: var(--ink-200); }
.lang-other { color: var(--ink-400); }

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 5% 10%, rgba(14, 165, 164, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
html[dir="rtl"] .hero {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 95% 10%, rgba(14, 165, 164, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--ink-900);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-500);
  max-width: 540px;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.meta-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
}
.meta-item span {
  font-size: 13px;
  color: var(--ink-400);
}

.hero-visual {
  position: relative;
}
.hero-phone {
  position: relative;
}
.hero-phone > img:last-child {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-logo-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(14, 165, 164, 0.35);
  z-index: 2;
  background: white;
  padding: 4px;
}
html[dir="rtl"] .hero-logo-badge {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.float-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}
.float-card small {
  display: block;
  font-size: 12px;
  color: var(--ink-400);
}
.float-card .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-teal { background: var(--teal-500); }
.dot-orange { background: var(--orange-500); }
.dot-green { background: var(--green-500); }

.card-1 { top: 8%; left: -8%; animation: float 5s ease-in-out infinite; }
.card-2 { bottom: 12%; right: -6%; animation: float 6s ease-in-out infinite 0.5s; }
.card-3 { bottom: 38%; left: -4%; animation: float 5.5s ease-in-out infinite 1s; }
html[dir="rtl"] .card-1 { left: auto; right: -8%; }
html[dir="rtl"] .card-2 { right: auto; left: -6%; }
html[dir="rtl"] .card-3 { left: auto; right: -4%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ====== Section base ====== */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink-900);
}
.section-head .section-sub {
  font-size: 17px;
  color: var(--ink-500);
  margin: 0;
}

/* ====== About ====== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 8px 0 16px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.about-copy p {
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0 0 16px;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  background: white;
  border: 1px solid var(--ink-200);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}

/* ====== Features ====== */
.features { background: var(--bg-soft); }

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

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-200);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-body {
  padding: 22px 24px 26px;
}
.feature-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}
.feature-body p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.6;
  font-size: 15px;
}

.feature-card--icon .feature-icon {
  height: 200px;
  display: grid;
  place-items: center;
}
.feature-icon {
  color: white;
}
.feature-icon--purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.feature-icon--teal {
  background: linear-gradient(135deg, var(--teal-500), var(--green-500));
}
.feature-icon--orange {
  background: linear-gradient(135deg, var(--orange-500), #f59e0b);
}

/* ====== How it works ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--teal-500), var(--green-500));
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}
.step p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.6;
  font-size: 15px;
}

/* ====== Screens gallery ====== */
.screens { background: var(--bg-soft); }

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}

.phone-frame {
  margin: 0;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: white;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-200);
  overflow: hidden;
  transition: transform .3s ease;
}
.phone-frame:hover { transform: translateY(-6px); }
.phone-frame img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* ====== Download ====== */
.download {
  background: linear-gradient(135deg, var(--teal-500), var(--green-500));
  color: white;
  text-align: center;
}
.download-inner {
  text-align: center;
}
.download-logo {
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: white;
  padding: 6px;
}
.download-copy h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.download-copy p {
  margin: 0 0 32px;
  font-size: 17px;
  opacity: 0.9;
}
.download-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  transition: transform .15s ease, background .2s ease;
}
.store-btn:hover { transform: translateY(-2px); background: #000; }
.store-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  text-align: start;
}
.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
}
.store-btn-apk {
  background: white;
  color: var(--ink-900);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.store-btn-apk:hover {
  background: var(--teal-50);
  transform: translateY(-2px);
}
.download-note {
  margin: 24px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand .brand { color: white; }
.footer-brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-cols h5 {
  margin: 0 0 14px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-cols a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-cols a:hover { color: white; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .float-card { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lang-toggle { padding: 8px 10px; font-size: 12px; }
  .btn-sm { padding: 9px 14px; font-size: 13px; }
}