/* فزعة · Faz3a — marketing site. Brand tokens mirror the app (spec §2). */
:root {
  --pine: #0E5C43;
  --pine-deep: #083D2C;
  --pine-soft: #E7F0EA;
  --signal: #E8551E;
  --signal-soft: #FDEBE2;
  --bg: #F6F2EA;
  --bg-2: #F1EBDF;
  --card: #FFFFFF;
  --border: #E5DFD2;
  --ink: #22271F;
  --ink-soft: #6B7265;
  --gold: #C98A0B;
  --maxw: 1160px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow: 0 1px 2px rgba(34,39,31,.04), 0 14px 34px -14px rgba(34,39,31,.16);
  --shadow-lg: 0 40px 80px -28px rgba(8,61,44,.34);
  --f-display: 'Alexandria', system-ui, -apple-system, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: var(--f-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.eyebrow { color: var(--pine); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-block: 14px 16px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600;
  font-size: 16px; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pine); color: #fff; box-shadow: 0 12px 26px -12px rgba(14,92,67,.7); }
.btn-primary:hover { background: var(--pine-deep); box-shadow: 0 18px 34px -12px rgba(14,92,67,.75); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 12px 26px -12px rgba(232,85,30,.7); }
.btn-signal:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--pine); background: var(--pine-soft); }

/* App-store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 14px; transition: transform .15s ease, opacity .2s ease; position: relative; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { font-size: 11px; opacity: .8; line-height: 1.1; }
.store-badge .sb-big { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.1; }
.store-badge .sb-txt { display: flex; flex-direction: column; text-align: start; }
.store-badge .soon { position: absolute; inset-block-start: -9px; inset-inline-end: -6px; background: var(--signal);
  color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(246,242,234,.82); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
header.scrolled { border-color: var(--border); box-shadow: 0 6px 20px -16px rgba(34,39,31,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--pine-deep); }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--ink); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--pine); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { border: 1.5px solid var(--border); background: var(--card); color: var(--pine); font-family: var(--f-display);
  font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: border-color .2s; }
.lang-toggle:hover { border-color: var(--pine); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(14,92,67,.10), transparent 70%),
    radial-gradient(48% 42% at 8% 88%, rgba(232,85,30,.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); }
.hero h1 .hl { color: var(--pine); }
.hero .lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); margin-block: 22px 30px; max-width: 34ch; }
.hero .cta-row { display: flex; flex-direction: column; gap: 18px; }
.trust-inline { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; margin-top: 26px; }
.trust-inline svg { width: 18px; height: 18px; color: var(--pine); }
.hero-visual { position: relative; display: flex; justify-content: center; }

/* Phone mockup */
.phone { position: relative; width: 288px; aspect-ratio: 1206 / 2622; background: #0f120e; border-radius: 46px;
  padding: 10px; box-shadow: var(--shadow-lg); }
.phone::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0f120e; border-radius: 999px; z-index: 3; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.hero-visual .phone { transform: rotate(2.5deg); }
.hero-visual .phone-back { position: absolute; inset-block-start: 34px; inset-inline-end: 8%; width: 232px;
  transform: rotate(-6deg); opacity: .55; filter: saturate(.9); z-index: -1; }

/* Trust strip */
.trust-strip { background: var(--pine-deep); color: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 30px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 26px; height: 26px; color: #7fd0ad; flex: none; }
.trust-item b { font-family: var(--f-display); display: block; font-size: 16px; }
.trust-item span { font-size: 13px; opacity: .72; }

/* About */
.about-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-card .mark-badge { width: 92px; height: 92px; border-radius: 26px; background: #F4EDE5; display: grid; place-items: center; margin-bottom: 22px; }
.about-card .mark-badge img { width: 60px; }
.about-card h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.about-card p { color: var(--ink-soft); font-size: 17px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--bg); border-radius: var(--r); padding: 22px; text-align: center; border: 1px solid var(--border); }
.stat b { font-family: var(--f-display); font-size: 30px; color: var(--pine); display: block; }
.stat span { font-size: 14px; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; position: relative; }
.step .num { width: 60px; height: 60px; border-radius: 50%; background: var(--pine-soft); color: var(--pine);
  font-family: var(--f-display); font-weight: 700; font-size: 24px; display: grid; place-items: center; margin: 0 auto 20px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 52px; height: 52px; border-radius: 15px; background: var(--pine-soft); color: var(--pine);
  display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* Screenshots gallery */
.shots-section { background: var(--bg-2); }
.gallery { display: flex; gap: 26px; overflow-x: auto; padding-block: 12px 26px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .shot { flex: none; scroll-snap-align: center; text-align: center; }
.gallery .shot .phone { width: 244px; }
.gallery .shot p { margin-top: 16px; font-family: var(--f-display); font-weight: 600; color: var(--pine-deep); font-size: 15px; }

/* Trades */
.trades { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin-inline: auto; }
.trade-chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 11px 20px;
  font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.trade-chip:hover { border-color: var(--pine); color: var(--pine); }
.trade-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* Download CTA */
.download { text-align: center; }
.download-inner { background: linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%); color: #fff;
  border-radius: var(--r-xl); padding: clamp(44px, 6vw, 76px) 28px; position: relative; overflow: hidden; }
.download-inner::before { content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -8%; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(232,85,30,.4), transparent 65%); }
.download-inner h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; position: relative; }
.download-inner p { color: rgba(255,255,255,.82); font-size: 18px; margin-bottom: 30px; position: relative; }
.download-inner .stores { justify-content: center; position: relative; }
.download-inner .store-badge { background: #fff; color: var(--ink); }
.download-inner .store-badge .sb-small { opacity: .6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin-inline: auto; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; text-align: center;
  transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.contact-card .ic svg { width: 27px; height: 27px; }
.contact-card.wa .ic { background: #25D36622; color: #128C7E; }
.contact-card.tel .ic { background: var(--pine-soft); color: var(--pine); }
.contact-card.mail .ic { background: var(--signal-soft); color: var(--signal); }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card .num { color: var(--pine); font-weight: 600; direction: ltr; unicode-bidi: plaintext; display: inline-block; margin-top: 8px; font-size: 16px; }

/* Footer */
footer { background: var(--pine-deep); color: rgba(255,255,255,.72); padding-block: 56px 30px; }
footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer .brand { color: #fff; margin-bottom: 14px; }
footer p { font-size: 14px; max-width: 34ch; }
footer .f-col h4 { color: #fff; font-family: var(--f-display); font-size: 15px; margin-bottom: 14px; }
footer .f-col a { display: block; font-size: 14px; padding-block: 5px; transition: color .2s; }
footer .f-col a:hover { color: #fff; }
footer .f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
footer .dev { display: inline-flex; align-items: center; gap: 8px; }
footer .dev a { color: #7fd0ad; font-weight: 600; }
footer .dev a:hover { color: #fff; }

/* Legal pages */
.legal { max-width: 820px; margin-inline: auto; padding-block: 48px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; color: var(--pine); font-weight: 600; margin-bottom: 26px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin-block: 34px 12px; color: var(--pine-deep); }
.legal p, .legal li { color: #3a4038; font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-inline-start: 22px; }
.legal .lang-note { background: var(--pine-soft); border-radius: var(--r); padding: 14px 18px; font-size: 14px; color: var(--pine-deep); margin-bottom: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .cta-row { align-items: center; }
  .trust-inline { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .hero-visual .phone-back { display: none; }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-card .mark-badge { margin-inline: auto; }
  .steps, .features, .contact-grid, footer .f-top { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .trust-strip .wrap { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
