/* T'skharli — site vitrine futuriste (loun dyal logo : sfar + khder neon + khder ghame9) */
@font-face { font-family: "Bebas"; src: url("/assets/fonts/BebasNeue_400Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Kalam"; src: url("/assets/fonts/Kalam_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --yellow: #F7C400;
  --yellow-2: #FFD633;
  --neon: #1ED98B;
  --ink: #041F14;
  --bg: #030F0A;
  --bg-2: #06201A;
  --text: #EAFFF4;
  --dim: rgba(234, 255, 244, 0.62);
  --faint: rgba(234, 255, 244, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --radius: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 18s ease-in-out infinite alternate; }
.orb-y { width: 520px; height: 520px; background: radial-gradient(circle, rgba(247,196,0,0.55), transparent 65%); top: -140px; right: -120px; }
.orb-g { width: 620px; height: 620px; background: radial-gradient(circle, rgba(30,217,139,0.35), transparent 65%); bottom: -220px; left: -200px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }

.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(30,217,139,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,217,139,0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }

/* khtout s-sor3a (b7al logo) */
.speed-lines i {
  position: absolute; left: -30%; height: 3px; width: 26%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0; animation: streak 5s linear infinite;
}
.speed-lines i:nth-child(1) { top: 18%; animation-delay: 0s; }
.speed-lines i:nth-child(2) { top: 34%; animation-delay: 1.4s; width: 18%; }
.speed-lines i:nth-child(3) { top: 52%; animation-delay: 2.6s; }
.speed-lines i:nth-child(4) { top: 67%; animation-delay: 3.3s; width: 14%; background: linear-gradient(90deg, transparent, var(--neon), transparent); }
.speed-lines i:nth-child(5) { top: 81%; animation-delay: 0.8s; width: 20%; }
.speed-lines i:nth-child(6) { top: 9%; animation-delay: 4.1s; width: 12%; background: linear-gradient(90deg, transparent, var(--neon), transparent); }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 0.8; } 60% { opacity: 0.5; } 100% { transform: translateX(560%); opacity: 0; } }

.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(247,196,0,0.10), transparent 60%);
  transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity 0.3s;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 14px; border-radius: 999px;
  background: rgba(3, 15, 10, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(3, 15, 10, 0.85); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bebas", sans-serif; font-size: 26px; letter-spacing: 1.5px; }
.brand img { border-radius: 10px; }
.links { display: flex; gap: 26px; font-size: 14px; color: var(--dim); }
.links a { position: relative; transition: color 0.2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform 0.25s; border-radius: 2px; }
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 800; font-size: 15px; transition: transform 0.2s, box-shadow 0.25s, background 0.25s; cursor: pointer; white-space: nowrap;
}
.btn.small { padding: 10px 18px; font-size: 13px; }
.btn-yellow { background: linear-gradient(135deg, var(--yellow-2), var(--yellow)); color: var(--ink); box-shadow: 0 0 0 rgba(247,196,0,0); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(247,196,0,0.45); }
.btn-ghost { border: 1px solid rgba(247,196,0,0.5); color: var(--text); background: rgba(247,196,0,0.04); }
.btn-ghost:hover { background: rgba(247,196,0,0.12); transform: translateY(-2px); }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  min-height: 100vh; width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 120px 0 60px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(30,217,139,0.4); background: rgba(30,217,139,0.08); color: var(--neon); font-size: 13px; font-weight: 700;
}
.dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 0 rgba(30,217,139,0.7); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(30,217,139,0); } 100% { box-shadow: 0 0 0 0 rgba(30,217,139,0); } }

.title {
  font-family: "Bebas", sans-serif; font-weight: 400; letter-spacing: 3px; line-height: 0.92;
  font-size: clamp(64px, 9vw, 128px); margin-top: 18px;
  background: linear-gradient(180deg, #fff 30%, #BFFFE0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(30,217,139,0.15);
}
.brush { position: relative; display: inline-block; margin-top: 10px; margin-left: -8px; }
.brush-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brush-bg path { fill: var(--yellow); }
.brush-bg .streak { fill: none; stroke: var(--yellow); stroke-width: 3; opacity: 0.7; }
.brush span {
  position: relative; display: block; font-family: "Kalam", cursive; font-weight: 700; color: var(--ink);
  font-size: clamp(30px, 4.2vw, 50px); padding: 10px 26px 2px;
}
.swoosh { display: block; width: min(360px, 70%); height: 16px; margin: 8px 0 0 30px; overflow: visible; }
.swoosh path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; }
.lead { color: var(--dim); font-size: 18px; max-width: 520px; margin-top: 22px; }
.lead b { color: var(--text); }
.lead.center { margin: 16px auto 0; text-align: center; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* animation dyal pinceau mnin kaytla3 */
.brush.reveal .brush-bg { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s cubic-bezier(.7,0,.2,1) 0.25s; }
.brush.reveal.in .brush-bg { clip-path: inset(0 0 0 0); }
.brush.reveal span { opacity: 0; transition: opacity 0.4s 0.75s; }
.brush.reveal.in span { opacity: 1; }
.swoosh.reveal path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 0.7s ease 1s; }
.swoosh.reveal.in path { stroke-dashoffset: 0; }

/* khari6a neon */
.hero-visual { perspective: 1200px; }
.map-card {
  position: relative; aspect-ratio: 1; border-radius: 34px; padding: 18px;
  background: linear-gradient(160deg, rgba(10,50,34,0.85), rgba(3,15,10,0.9));
  border: 1px solid rgba(247,196,0,0.25);
  box-shadow: 0 0 0 1px rgba(30,217,139,0.08) inset, 0 40px 120px rgba(0,0,0,0.55), 0 0 80px rgba(247,196,0,0.12);
  transform: rotateY(-10deg) rotateX(8deg); transition: transform 0.4s ease;
}
.map { width: 100%; height: 100%; }
.streets path { stroke: rgba(30,217,139,0.22); stroke-width: 10; fill: none; stroke-linecap: round; }
.streets .diag { stroke-width: 6; stroke: rgba(30,217,139,0.12); }
.blocks rect { fill: rgba(255,255,255,0.035); stroke: rgba(255,255,255,0.05); }
.route { fill: none; stroke: url(#route); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease forwards 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.shop-ring { fill: #0B2A1C; stroke: var(--neon); stroke-width: 2; }
.pin path { fill: var(--yellow); filter: drop-shadow(0 0 8px rgba(247,196,0,0.8)); }
.pin .pin-hole { fill: var(--ink); }
.pin .pulse { fill: none; stroke: var(--yellow); stroke-width: 2; transform-origin: center; animation: radar 2s ease-out infinite; }
@keyframes radar { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(1.6); } }
.rider circle { fill: var(--yellow); filter: drop-shadow(0 0 10px rgba(247,196,0,0.9)); }
.map-chip {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 700;
  background: rgba(3,15,10,0.8); border: 1px solid var(--line); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 8px; animation: float 5s ease-in-out infinite;
}
.chip-a { top: -18px; left: 12%; border-color: rgba(30,217,139,0.4); }
.chip-b { bottom: 18%; right: -22px; animation-delay: -1.6s; }
.chip-c { bottom: -18px; left: 8%; border-color: rgba(247,196,0,0.45); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- bande ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(247,196,0,0.04); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: 30px -10px; }
.track { display: flex; gap: 30px; width: max-content; animation: marquee 28s linear infinite; font-family: "Bebas", sans-serif; font-size: 34px; letter-spacing: 2px; }
.track span { color: var(--text); }
.track b { color: var(--yellow); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 40px; }
.kicker { color: var(--neon); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.h2 { font-family: "Bebas", sans-serif; font-weight: 400; letter-spacing: 2px; font-size: clamp(44px, 6vw, 76px); line-height: 1; margin-top: 8px; }
.h3 { font-family: "Bebas", sans-serif; font-weight: 400; letter-spacing: 1.5px; font-size: 44px; line-height: 1; }

.card {
  position: relative; border-radius: var(--radius); padding: 28px; background: var(--glass);
  border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(247,196,0,0.6), transparent 40%, transparent 60%, rgba(30,217,139,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.065); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; margin: 10px 0 6px; }
.card p { color: var(--dim); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.num { font-family: "Bebas", sans-serif; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.cat {
  border-radius: var(--radius); padding: 30px 22px; text-align: center; border: 1px solid rgba(247,196,0,0.25);
  background: radial-gradient(circle at 50% 0%, rgba(247,196,0,0.16), rgba(255,255,255,0.03) 60%);
  transition: transform 0.15s ease-out, box-shadow 0.3s; transform-style: preserve-3d;
}
.cat:hover { box-shadow: 0 20px 60px rgba(247,196,0,0.18); }
.cat .emoji { font-size: 58px; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); transform: translateZ(40px); }
.cat h3 { font-family: "Bebas", sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 1.5px; margin-top: 12px; transform: translateZ(25px); }
.cat p { color: var(--dim); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ic { font-size: 30px; display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(247,196,0,0.1); border: 1px solid rgba(247,196,0,0.3); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.big { padding: 38px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.big p { font-size: 16px; max-width: 460px; }
.big-ic { width: 72px; height: 72px; font-size: 38px; border-radius: 22px; }
.big:first-child { background: linear-gradient(160deg, rgba(247,196,0,0.12), rgba(255,255,255,0.03)); }
.big:last-child { background: linear-gradient(160deg, rgba(30,217,139,0.12), rgba(255,255,255,0.03)); }

.final { text-align: center; padding-bottom: 90px; }
.final-logo { margin: 0 auto 18px; border-radius: 32px; filter: drop-shadow(0 0 40px rgba(247,196,0,0.35)); animation: float 6s ease-in-out infinite; }
.stores { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; padding: 12px 22px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04); font-weight: 800; font-size: 17px; opacity: 0.85;
}
.store small { font-weight: 600; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

.footer {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 40px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 14px; flex-wrap: wrap;
}
.footer .brand { font-size: 22px; color: var(--text); }
.footer a:hover { color: var(--yellow); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.brush.reveal, .swoosh.reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-visual { max-width: 460px; width: 100%; margin: 20px auto 0; }
  .map-card { transform: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .chip-b { right: 6px; }
}
@media (max-width: 520px) {
  .nav .btn.small { display: none; }
  .hero { width: calc(100% - 32px); }
  .section { width: calc(100% - 32px); padding-top: 80px; }
  .lead { font-size: 16px; }
  .track { font-size: 26px; }
  .big { padding: 26px; }
  .h3 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .route { stroke-dashoffset: 0; }
}

/* tilt sri3 ba3d ma ybano */
.cat.reveal.in { transition: transform 0.15s ease-out, box-shadow 0.3s, opacity 0.8s; }
