/* FixYalla website — same brand as the app. Developed by Codelop Studio */
:root {
  --brand: #ff6a13;
  --brand-dark: #e0560a;
  --brand-soft: #fff1e8;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --gold: #d97706;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { font-family: 'Segoe UI', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5.5vw, 62px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 18px; font-weight: 650; color: var(--text); }
.nav-links a:hover { color: var(--brand); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px;
  padding: 6px 11px; border-radius: 999px; color: var(--muted);
}
.lang button.on { background: var(--ink); color: #fff; }
.menu-btn { display: none; border: 0; background: #f1f5f9; border-radius: 12px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 16px; font-weight: 800; font-size: 17px;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 19, 0.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost { background: rgba(255, 255, 255, 0.18); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  border-radius: 14px; padding: 9px 20px 9px 16px; min-height: 58px; transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .play { width: 28px; height: 30px; }
.store-badge small { display: block; font-size: 11px; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge b { display: block; font-size: 20px; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5a1f 55%, #f43f5e 120%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -45% auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%); pointer-events: none;
}
.hero.dark { background: linear-gradient(135deg, #1e293b 0%, #0f172a 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 20px; opacity: 0.95; max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 26px; font-weight: 900; }
.hero-stats div span { opacity: 0.85; font-size: 14px; }

/* ---------- Phone mockup (pure CSS, mirrors the app) ---------- */
.phone {
  width: 320px; max-width: 100%; margin: 0 auto; background: #0b1220; border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.45); position: relative; transform: rotate(-3deg);
}
.phone .screen { background: var(--bg); border-radius: 36px; overflow: hidden; min-height: 600px; color: var(--text); }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0b1220; border-radius: 0 0 16px 16px; z-index: 2; }
.m-head { background: linear-gradient(135deg, #ff8a3d, #ff5a1f); color: #fff; padding: 46px 18px 22px; border-radius: 0 0 24px 24px; }
.m-head small { opacity: 0.9; font-weight: 700; }
.m-head h4 { margin: 2px 0 12px; font-size: 21px; line-height: 1.2; color: #fff; }
.m-search { background: #fff; color: var(--muted); border-radius: 999px; padding: 10px 14px; font-size: 13px; }
.m-body { padding: 14px; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.m-tile { text-align: center; font-size: 10px; font-weight: 700; color: var(--ink); }
.m-tile i { font-style: normal; display: block; }
.m-tile span { display: grid; place-items: center; height: 50px; border-radius: 16px; font-size: 24px; margin-bottom: 4px; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08); }
.m-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.m-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--brand); background: var(--brand-soft); flex: none; }
.m-card b { font-size: 13px; color: var(--ink); display: block; }
.m-card small { font-size: 11px; color: var(--muted); display: block; }
.m-card .ok { color: var(--green); font-weight: 700; }
.m-badge { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: #fef3c7; color: #b45309; margin-inline-start: 4px; }
.m-tabs { display: flex; justify-content: space-around; align-items: end; padding: 10px 8px 14px; background: #fff; border-top: 1px solid var(--line); font-size: 18px; }
.m-tabs .sos { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #f43f5e, #dc2626); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; border: 3px solid #fff; margin-top: -26px; box-shadow: 0 6px 14px rgba(220, 38, 38, 0.4); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head p { font-size: 18px; color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 14px; }
.white { background: #fff; }

.trades { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.trade { text-align: center; font-weight: 750; color: var(--ink); font-size: 14px; }
.trade span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 26px; font-size: 38px; margin-bottom: 10px;
  border: 3px solid #fff; box-shadow: var(--shadow); transition: transform 0.2s ease;
}
.trade:hover span { transform: translateY(-4px) rotate(-3deg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step .num { position: absolute; top: 20px; inset-inline-end: 22px; font-size: 54px; font-weight: 900; color: #f1f5f9; line-height: 1; }
.step .ico { font-size: 42px; margin-bottom: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid #eef2f6; box-shadow: var(--shadow); }
.feature .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }

.sos-band { background: linear-gradient(135deg, #f43f5e, #b91c1c); color: #fff; border-radius: 32px; padding: 46px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }
.sos-band h2 { color: #fff; }
.sos-circle { width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: grid; place-items: center; position: relative; }
.sos-circle::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.3); animation: pulse 2s infinite; }
.sos-circle span { width: 120px; height: 120px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 34px; font-weight: 900; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checks li::before { content: '✓'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 900; font-size: 15px; }

.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.price-card.pro { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); position: relative; }
.price-card.pro::before { content: '⭐ PRO'; position: absolute; top: -14px; inset-inline-start: 24px; background: var(--gold); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.price-card .big { font-size: 46px; font-weight: 900; color: var(--ink); line-height: 1; margin: 10px 0 4px; }
.price-card .big small { font-size: 17px; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.price-card li::before { content: '✓  '; color: var(--green); font-weight: 900; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 18px 22px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { background: var(--ink); color: #fff; border-radius: 32px; padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Legal / simple pages ---------- */
.page-hero { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; padding: 64px 0 50px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); }
.doc { max-width: 860px; margin: -26px auto 0; padding: 0 22px 80px; position: relative; }
.doc .card { background: #fff; border-radius: 20px; padding: 24px 26px; border: 1px solid var(--line); margin-bottom: 14px; }
.doc .card h3 { margin-bottom: 8px; }
.doc .card p { white-space: pre-line; color: var(--text); margin: 0; }
.note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 16px; padding: 14px 18px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
footer { background: #0b1220; color: #cbd5e1; padding: 60px 0 30px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
footer a { display: block; margin-bottom: 8px; color: #cbd5e1; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 12px; }
.made-by { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.made-by a { display: inline; color: #fff; font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .split, .sos-band { grid-template-columns: 1fr; }
  .trades { grid-template-columns: repeat(4, 1fr); }
  .steps, .features, .price-cards { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 22px; gap: 14px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav .btn { display: none; }
  section { padding: 64px 0; }
  .sos-band, .cta-band { padding: 32px 24px; border-radius: 24px; }
  .trades { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .trade span { font-size: 28px; border-radius: 18px; }
  .trade { font-size: 12px; }
}
