/* ==========================================================
   Rokn Landing Page
   Palette taken from the logo: olive, sand and cream.
   ========================================================== */
:root {
  --olive: #5d6535;
  --olive-2: #444a25;
  --sand: #b9976a;
  --sand-2: #9c7c50;
  --grad: linear-gradient(135deg, #6f7a3f 0%, #444a25 100%);
  --grad-sand: linear-gradient(135deg, #cdb187 0%, #a8865a 100%);
  --bg: #f7efe2;          /* same cream as the logo background */
  --bg-2: #efe3cf;
  --card: #fffaf2;
  --line: rgba(93, 101, 53, .14);
  --text: #2c2e1e;
  --muted: #74705f;
  --radius: 20px;
  --shadow: 0 20px 45px -22px rgba(68, 74, 37, .35);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Poppins", system-ui, sans-serif;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: "Poppins", "Cairo", system-ui, sans-serif; }
a { text-decoration: none; }
::selection { background: var(--olive); color: #fff; }

.text-gradient { background: linear-gradient(135deg, var(--olive) 0%, var(--sand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--grad); color: #fff; border: 0; font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(68, 74, 37, .7);
  transition: transform .2s, box-shadow .2s;
}
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(68, 74, 37, .85); }
.btn-ghost { border: 1px solid rgba(93,101,53,.3); color: var(--olive-2); background: rgba(255,255,255,.5); font-weight: 600; }
.btn-ghost:hover { border-color: var(--olive); color: #fff; background: var(--olive); }
.btn-outline-olive { border: 1px solid rgba(93,101,53,.4); color: var(--olive); font-weight: 700; }
.btn-outline-olive:hover { background: var(--olive); color: #fff; }

/* ---------- Navbar ---------- */
#mainNav { padding: 14px 0; transition: all .3s; }
#mainNav.scrolled { background: rgba(247, 239, 226, .94); backdrop-filter: blur(14px); padding: 6px 0; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(68,74,37,.4); }
.navbar-toggler { color: var(--olive); }
.navbar-toggler:focus { box-shadow: none; }
/* The logo PNG has generous cream padding, so it is scaled up to fill the bar. */
.brand-logo { height: 56px; width: auto; object-fit: contain; transform: scale(1.9); }
#mainNav .nav-link { color: var(--muted); font-weight: 700; padding: 8px 14px !important; position: relative; }
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--olive-2); }
#mainNav .nav-link.active::after {
  content: ""; position: absolute; bottom: 2px; inset-inline: 14px; height: 2px; border-radius: 2px; background: var(--sand);
}
@media (max-width: 991.98px) {
  #navMenu { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 10px; box-shadow: var(--shadow); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,151,106,.35), transparent 65%);
  top: -220px; inset-inline-end: -220px; pointer-events: none;
}
/* Diamond pattern, echoing the triangles on the logo's awning */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--line) 25%, transparent 25%),
    linear-gradient(-45deg, var(--line) 25%, transparent 25%);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%);
  opacity: .45;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 50px;
  background: rgba(93,101,53,.08); border: 1px solid rgba(93,101,53,.25); color: var(--olive); font-weight: 700; font-size: .9rem;
}
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.25; margin: 22px 0 18px; color: var(--olive-2); }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; line-height: 1.9; }
@media (max-width: 991.98px) { .hero-sub { margin-inline: auto; } }
.hero-mini { color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-mini i { color: var(--sand-2); }

/* Scalloped awning divider (from the logo) */
.awning {
  height: 26px; margin-top: -26px; position: relative; z-index: 2;
  background: radial-gradient(circle at 50% 0, var(--sand) 13px, transparent 14px) 0 0 / 40px 26px repeat-x;
  opacity: .9;
}

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; max-width: 330px; margin: 0 auto; }
.phone {
  position: relative; border-radius: 44px; padding: 12px; background: #2c2e1e;
  box-shadow: 0 40px 80px -25px rgba(44,46,30,.55), 0 0 0 8px rgba(93,101,53,.06);
  animation: floaty 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #2c2e1e; border-radius: 20px; z-index: 2; }
.phone-screen { background: var(--bg); border-radius: 34px; padding: 54px 16px 20px; min-height: 560px; }
.ph-bell { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--olive); }
.ph-bell span { position: absolute; top: 8px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: #c5523a; }
.ph-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.ph-cats { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.ph-cats span { font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ph-cats span.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.ph-offer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--grad); color: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.ph-offer::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); inset-inline-end: -40px; top: -50px; }
.ph-offer div { display: flex; flex-direction: column; line-height: 1.35; }
.ph-offer small { opacity: .8; font-size: .72rem; }
.ph-offer b { font-size: .95rem; }
.ph-offer code { color: #f1dfbf; font-size: .72rem; font-weight: 700; letter-spacing: 1px; }
.ph-offer > i { font-size: 2rem; color: var(--sand); }
.ph-label { font-weight: 800; font-size: .88rem; margin-bottom: 10px; color: var(--olive-2); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-prod { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; font-size: .8rem; }
.ph-prod b { display: block; margin: 8px 2px 4px; }
.ph-img { position: relative; height: 92px; border-radius: 12px; display: grid; place-items: center; font-size: 2.2rem; }
.ph-img.i1 { background: #eadcc4; color: var(--sand-2); }
.ph-img.i2 { background: #e2e5cf; color: var(--olive); }
.ph-img .fav { position: absolute; top: 6px; inset-inline-end: 8px; font-size: .9rem; color: #c5523a; }
.price { color: var(--olive); font-weight: 800; font-size: .78rem; padding-inline-start: 2px; }
.add { width: 24px; height: 24px; border-radius: 8px; background: var(--olive); color: #fff; display: grid; place-items: center; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 250, 242, .92); backdrop-filter: blur(10px); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow);
}
.float-card i { font-size: 1.4rem; color: var(--sand-2); }
.float-card div { display: flex; flex-direction: column; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .72rem; }
.float-card strong { font-size: .95rem; color: var(--olive-2); }
.fc-1 { top: 110px; inset-inline-start: -90px; animation: floaty 5s ease-in-out infinite reverse; }
.fc-2 { bottom: 90px; inset-inline-end: -80px; animation: floaty 7s ease-in-out infinite; }
@media (max-width: 575.98px) {
  .fc-1 { inset-inline-start: -10px; top: 40px; }
  .fc-2 { inset-inline-end: -10px; bottom: 40px; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stats { padding: 50px 0 40px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 12px; font-size: 2.3rem; font-weight: 800; color: var(--olive); box-shadow: var(--shadow); }
.stat .counter { background: linear-gradient(135deg, var(--olive), var(--sand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { font-size: .95rem; color: var(--muted); font-weight: 700; margin: 4px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2, .section h2 { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--olive-2); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sand-2); font-weight: 800; letter-spacing: .5px; margin-bottom: 10px; font-size: .95rem; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--sand); transform: rotate(45deg); }
.lead-muted { color: var(--muted); font-size: 1.1rem; line-height: 1.9; }

/* ---------- Features ---------- */
.feature {
  height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--grad-sand); transform: scaleX(0); transition: transform .35s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(185,151,106,.5); box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.f-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--grad); margin-bottom: 20px; box-shadow: 0 10px 25px -10px rgba(68,74,37,.7); }
.col-lg-4:nth-child(even) .f-icon { background: var(--grad-sand); box-shadow: 0 10px 25px -10px rgba(156,124,80,.7); }
.feature h5 { font-weight: 800; margin-bottom: 10px; color: var(--olive-2); }
.feature p { color: var(--muted); margin: 0; line-height: 1.8; }

/* ---------- Seller demo ---------- */
.seller-demo { max-width: 440px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 0 35px 70px -30px rgba(68,74,37,.45); }
.sd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sd-shop { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.sd-switch { width: 46px; height: 26px; border-radius: 26px; background: var(--olive); position: relative; }
.sd-switch span { position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.sd-kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.sd-kpi small { color: var(--muted); display: block; font-weight: 600; font-size: .8rem; }
.sd-kpi b { font-size: 1.35rem; color: var(--olive-2); }
.sd-order { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.sd-order:last-child { margin-bottom: 0; }
.sd-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(185,151,106,.18); color: var(--sand-2); font-size: 1.1rem; flex-shrink: 0; }
.sd-order > div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.sd-order small { color: var(--muted); font-size: .78rem; }
.st { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.st-new { background: rgba(197,82,58,.12); color: #b2452f; }
.st-way { background: rgba(185,151,106,.2); color: var(--sand-2); }
.st-done { background: rgba(93,101,53,.12); color: var(--olive); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }
.check-list i { color: var(--olive); font-size: 1.3rem; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 30px 20px; position: relative; }
.step-num {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 900; color: var(--olive); border: 2px dashed rgba(185,151,106,.8); background: var(--card);
}
.step h5 { font-weight: 800; color: var(--olive-2); }
.step p { color: var(--muted); line-height: 1.8; }
@media (min-width: 768px) {
  .steps > div:not(:last-child) .step::after {
    content: ""; position: absolute; top: 68px; inset-inline-start: calc(50% + 50px); width: calc(100% - 100px);
    border-top: 2px dashed rgba(185,151,106,.5);
  }
}

/* ---------- FAQ ---------- */
.faq .accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px !important; margin-bottom: 14px; overflow: hidden; }
.faq .accordion-button { background: transparent; color: var(--text); font-weight: 700; padding: 20px 24px; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--olive); }
.faq .accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235d6535'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.faq .accordion-body { color: var(--muted); padding: 0 24px 22px; line-height: 1.9; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0 100px; }
.cta-box { background: var(--grad); color: #fff; border-radius: 32px; padding: 64px 48px 56px; position: relative; overflow: hidden; }
.cta-box::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 24px;
  background: radial-gradient(circle at 50% 0, var(--sand) 12px, transparent 13px) 0 0 / 36px 24px repeat-x;
}
.cta-box::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); bottom: -200px; inset-inline-end: -100px; }
.cta-box h2 { font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.6rem); position: relative; color: #fff; }
.cta-box p { font-size: 1.1rem; opacity: .9; margin: 0; position: relative; }
.store-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: var(--bg); color: var(--olive-2);
  padding: 10px 20px; border-radius: 14px; transition: transform .2s; direction: ltr; text-align: left;
}
.store-btn:hover { color: var(--olive-2); transform: translateY(-3px); }
.store-btn i { font-size: 1.8rem; }
.store-btn div { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .7rem; opacity: .75; }
.store-btn b { font-size: 1.05rem; font-family: "Poppins", sans-serif; }
@media (max-width: 575.98px) { .cta-box { padding: 48px 22px 40px; } }

/* ---------- Footer ---------- */
/* Footer keeps the logo's cream background so the PNG blends in. */
.footer { padding: 40px 0 30px; border-top: 1px solid var(--line); background: var(--bg); }
.footer .brand-logo { transform: none; height: 120px; margin: -20px -30px; }
.footer hr { border-color: var(--line); margin: 30px 0 20px; opacity: 1; }
.footer-link { color: var(--muted); margin: 0 12px; font-weight: 700; }
.footer-link:hover { color: var(--olive); }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--olive); margin: 0 4px; transition: all .2s; }
.social:hover { background: var(--olive); color: #fff; border-color: transparent; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; font-size: 1.2rem; z-index: 50; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .float-card { animation: none; }
}
