/* Landing page (Views/Home/Index.cshtml). Standalone: does not use Bootstrap or site.css. */
:root {
    --blue: #1450b8;
    --blue-2: #0670e0;
    --green: #0b8a3a;
    --green-2: #1cac52;
    --ink: #0b1f33;
    --muted: #56687c;
    --bg: #f6f9fc;
    --line: #e3ebf3;
    --grad: linear-gradient(120deg, var(--blue-2), var(--green-2));
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Almarai", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(var(--p, 0));
    transform-origin: right;
    z-index: 30;
}

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(11, 31, 51, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.brand b { color: var(--green); }
.nav-links { display: flex; gap: 32px; font-weight: 700; font-size: .95rem; }
.nav-links a { position: relative; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-main { position: relative; overflow: hidden; color: #fff; background: var(--grad); box-shadow: 0 12px 28px rgba(6, 112, 224, .3); }
.btn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(120%); animation: shine 3.5s ease-in-out infinite; }
.btn-ghost { border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); }
.btn-ghost:hover { box-shadow: 0 10px 24px rgba(11, 31, 51, .1); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 70px; isolation: isolate; overflow: clip; }
.blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: var(--blue-2); top: -140px; right: -140px; }
.blob-2 { width: 440px; height: 440px; background: var(--green-2); bottom: -100px; left: -100px; animation-delay: -7s; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(20, 80, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 80, 184, .07) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); animation: pulse 1.8s infinite; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.3; font-weight: 800; margin: 20px 0 16px; }
.grad { display: block; background: linear-gradient(90deg, var(--blue-2), var(--green-2), var(--blue-2)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient 5s linear infinite; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; font-size: .9rem; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--green-2); stroke-width: 3; }
.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d) * .12s); }

/* Phone mockup */
.stage { display: flex; justify-content: center; perspective: 1200px; animation: rise 1s var(--ease) .25s both; }
.tilt { position: relative; width: 290px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1.5px dashed rgba(20, 80, 184, .22); translate: -50% -50%; animation: spin 40s linear infinite; }
.ring-1 { width: 430px; height: 430px; }
.ring-2 { width: 560px; height: 560px; animation-direction: reverse; animation-duration: 60s; border-color: rgba(28, 172, 82, .2); }
.phone { position: relative; padding: 11px; border-radius: 46px; background: var(--ink); box-shadow: 0 40px 80px rgba(11, 31, 51, .3); animation: bob 6s ease-in-out infinite; }
.notch { position: absolute; top: 19px; left: 50%; translate: -50% 0; width: 80px; height: 22px; border-radius: 20px; background: var(--ink); z-index: 1; }
.screen { display: flex; flex-direction: column; gap: 12px; min-height: 560px; padding: 48px 16px 18px; border-radius: 36px; background: #f4f8fd; }
.app-head { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--muted); font-size: .85rem; box-shadow: 0 4px 14px rgba(11, 31, 51, .06); }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: middle; background: var(--blue-2); animation: blink .9s steps(1) infinite; }
.banner { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; color: #fff; background: var(--grad); background-size: 180% 180%; animation: sway 6s ease infinite alternate; }
.banner small { opacity: .85; font-size: .75rem; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; animation: slide .6s var(--ease) both; animation-delay: calc(.8s + var(--d) * .2s); }
.item div { flex: 1; display: grid; gap: 8px; }
.item i { display: block; height: 8px; border-radius: 8px; background: var(--line); }
.item i:last-child { width: 55%; }
.thumb { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #cfe3fb, #e9f3ff); position: relative; }
.thumb::after { content: ""; position: absolute; top: 16px; left: 9px; width: 24px; height: 11px; border-radius: 11px; rotate: -35deg; background: linear-gradient(90deg, var(--blue-2) 50%, #fff 50%); }
.thumb.alt { background: linear-gradient(135deg, #c8efd7, #e8faef); }
.thumb.alt::after { background: linear-gradient(90deg, var(--green-2) 50%, #fff 50%); }
.add { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 700; }
.cart { margin-top: auto; padding: 12px; border-radius: 16px; text-align: center; font-weight: 700; color: #fff; background: var(--ink); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(11, 31, 51, .16); white-space: nowrap; font-size: .85rem; line-height: 1.5; translate: 0 0; animation: bob 5s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: .72rem; }
.fc-1 { top: 250px; right: -120px; animation-delay: -1.5s; }
.fc-2 { bottom: 90px; left: -90px; animation-delay: -3.5s; }
.float-card .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.ico.green { background: var(--green-2); }
.ico.blue { background: var(--blue-2); }
.capsule { position: absolute; width: 58px; height: 24px; border-radius: 24px; box-shadow: 0 10px 20px rgba(11, 31, 51, .18); animation: tumble 8s ease-in-out infinite; }
.c1 { top: 20px; left: -70px; background: linear-gradient(90deg, var(--blue-2) 50%, #fff 50%); }
.c2 { bottom: 20px; right: -60px; background: linear-gradient(90deg, var(--green-2) 50%, #fff 50%); animation-delay: -3s; }
.c3 { top: 55%; left: -110px; scale: .65; background: linear-gradient(90deg, var(--green-2) 50%, var(--blue-2) 50%); animation-delay: -5s; }

/* Marquee */
.marquee { direction: ltr; overflow: hidden; padding: 18px 0; background: var(--ink); color: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee ul { display: flex; direction: rtl; }
.marquee li { display: flex; align-items: center; gap: 36px; padding-inline-start: 36px; font-weight: 700; white-space: nowrap; }
.marquee li::after { content: "✚"; color: var(--green-2); }

/* Sections */
.section { padding: 96px 0; scroll-margin-top: 40px; }
.head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.eyebrow { font-weight: 800; font-size: .85rem; color: var(--green); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; overflow: hidden; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 112, 224, .12), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card .ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px; font-size: 1.4rem; color: #fff; background: var(--grad); transition: transform .35s var(--ease); }
.card:hover .ico { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Order tracking */
.dark { position: relative; color: #fff; background: radial-gradient(circle at 85% 0, #14457f, transparent 55%), radial-gradient(circle at 10% 100%, #0d4f3a, transparent 50%), var(--ink); }
.dark .head p { color: #b6c8da; }
.dark .eyebrow { color: #5fe092; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.track li:not(:last-child)::before,
.track li:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: 50%; width: 100%; height: 4px; background: rgba(255, 255, 255, .14); }
.track li:not(:last-child)::after { background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .7s linear; transition-delay: calc(var(--d) * .7s + .4s); }
.track span { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-weight: 800; font-size: 1.2rem; background: #1a3350; border: 3px solid rgba(255, 255, 255, .14); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); transition-delay: calc(var(--d) * .7s); }
.track.in span { background: var(--green-2); border-color: #7cf0a8; box-shadow: 0 0 0 8px rgba(28, 172, 82, .18); transform: scale(1.05); }
.track.in li::after { transform: scaleX(1) !important; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.num { display: block; font-size: 3.4rem; font-weight: 800; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* Call to action */
.cta { display: flex; align-items: center; gap: 36px; padding: 48px; border-radius: 34px; color: #fff; background: linear-gradient(120deg, var(--blue), var(--blue-2), var(--green)); background-size: 200% 200%; box-shadow: 0 30px 60px rgba(20, 80, 184, .25); animation: sway 8s ease infinite alternate; }
.cta img { padding: 10px; border-radius: 28px; background: #fff; }
.cta div { flex: 1; }
.cta p { opacity: .9; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.store { display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 12px 22px; border-radius: 18px; background: var(--ink); box-shadow: 0 14px 30px rgba(11, 31, 51, .3); line-height: 1.4; transition: transform .25s var(--ease), box-shadow .25s; }
a.store:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(11, 31, 51, .4); }
.cta a.store:focus-visible { outline-color: #fff; }
.store svg { font-size: 1.7rem; }
.store span { display: flex; flex-direction: column; align-items: flex-start; }
.store small { font-size: .72rem; opacity: .75; }
.store b { font-size: 1.1rem; }
.store.soon { opacity: .65; cursor: default; }

/* Contact */
.contact { padding-top: 0; }
.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.channels li { flex: 1 1 200px; max-width: 280px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.channels .ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; font-size: 1.4rem; color: #fff; background: var(--grad); }
.channels h3 { font-size: 1.05rem; }
.channels a, .channels p { color: var(--muted); overflow-wrap: anywhere; }
.channels a:hover { color: var(--blue); }
.contact-empty { text-align: center; color: var(--muted); }
.js .channels li.reveal:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(11, 31, 51, .1); }

/* Privacy policy page */
.legal { width: min(820px, 100% - 40px); margin: 116px auto 60px; padding: 44px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 6px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; color: var(--blue); }
.legal p, .legal li { color: #34475c; }
.legal p + p, .legal ul + p { margin-top: 10px; }
.legal ul { list-style: disc; padding-inline-start: 22px; margin-top: 8px; }
.legal a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.nav-actions { display: flex; gap: 10px; }

.foot {padding: 28px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a:hover { color: var(--blue); }

/* Scroll reveal: content is only hidden when JavaScript is available to show it again. */
.js .reveal { opacity: 0; translate: 0 36px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .3s var(--ease), box-shadow .3s; transition-delay: calc(var(--d, 0) * .12s), calc(var(--d, 0) * .12s), 0s, 0s; }
.js .reveal.in { opacity: 1; translate: 0 0; }
.card:hover, .steps li:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(11, 31, 51, .1); }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes drift { to { transform: translate(60px, 50px) scale(1.15); } }
@keyframes gradient { from { background-position: 0% center; } to { background-position: 200% center; } }
@keyframes sway { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes shine{ 55%, 100% { transform: translateX(-120%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(28, 172, 82, .5); } 100% { box-shadow: 0 0 0 10px rgba(28, 172, 82, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes tumble { 50% { transform: translateY(-22px) rotate(160deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 70px; }
    .lead { margin-inline: auto; }
    .actions, .ticks { justify-content: center; }
    .cards, .steps { grid-template-columns: repeat(2, 1fr); }
    .cta { flex-direction: column; text-align: center; }
    .stores { justify-content: center; }
}

@media (max-width: 600px) {
    .nav .btn { padding: 8px 14px; font-size: .82rem; }
    .brand { font-size: 1rem; }
    .brand img { width: 42px; height: 42px; }
    .section { padding: 68px 0; }
    .cards, .steps { grid-template-columns: 1fr; }
    .legal { padding: 26px 20px; }
    .tilt { width: 250px; }
    .screen { min-height: 490px; }
    .fc-1 { right: -45px; }
    .fc-2 { left: -45px; }
    .c1, .c2, .c3 { display: none; }
    .track b { font-size: .78rem; }
    .track span { width: 46px; height: 46px; }
    .track li:not(:last-child)::before, .track li:not(:last-child)::after { top: 21px; }
    .cta { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
