:root {
  --bg: #0d0a14;
  --bg-soft: #151022;
  --card: #1a1428;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3effa;
  --muted: #a79fc0;
  --amber: #ffb454;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --grad: linear-gradient(90deg, #ffb454, #f472b6, #8b5cf6);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.brand-ar { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700;
}
.brand-ar { font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-en { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.clock-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.clock-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* Hero */
.hero { position: relative; padding: 110px 24px 90px; }
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: #8b5cf6; top: -120px; left: -80px; }
.blob-2 { width: 380px; height: 380px; background: #f472b6; bottom: -140px; right: -60px; opacity: 0.3; }
.kicker {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--amber); font-size: 1.15rem; margin-bottom: 18px; font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 999px;
  font-family: inherit; font-size: 0.98rem; font-weight: 600;
  text-decoration: none; color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #14091f; box-shadow: 0 8px 28px rgba(244, 114, 182, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(244, 114, 182, 0.5); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-whatsapp { background: #25d366; color: #062b16; }
.btn-whatsapp:hover { background: #2fe377; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px 30px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin-top: 6px; }

/* Planner */
.planner-card {
  margin-top: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 18px; align-items: end;
}
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.field select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); font-family: inherit; font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a79fc0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer;
}
.field select:focus { outline: 2px solid var(--violet); }
.btn-plan { white-space: nowrap; }

/* Result */
.result {
  margin-top: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  animation: pop 0.35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-head h3 { font-size: 1.35rem; }
.total { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.stops { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.stop {
  display: grid; grid-template-columns: 86px 1fr; gap: 18px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
}
.stop-time { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.stop-time small { display: block; color: var(--muted); font-weight: 400; }
.stop-body h4 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stop-body p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }
.stop-meta { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted);
}
.chip.open { border-color: rgba(74, 222, 128, 0.5); color: #4ade80; }
.chip.closed { border-color: rgba(248, 113, 113, 0.5); color: #f87171; }
.result-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.copied { color: #4ade80; margin-top: 12px; font-size: 0.9rem; }

/* Picks */
.picks {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}
.pick {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform 0.2s, border-color 0.2s;
}
.pick:hover { transform: translateY(-4px); border-color: var(--violet); }
.pick h4 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pick .area-tag { font-size: 0.78rem; color: var(--violet); font-weight: 600; }
.pick p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.pick .stop-meta { margin-top: 12px; }

/* How */
.steps { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad); color: #14091f; font-weight: 700;
}
.step h4 { margin-top: 14px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px 24px 56px; text-align: center; color: var(--muted); }
.footer-inner .brand { justify-content: center; margin-bottom: 14px; }
.footer-inner .muted { font-size: 0.85rem; margin-top: 8px; opacity: 0.7; }

@media (max-width: 900px) {
  .planner-card { grid-template-columns: 1fr 1fr; }
  .btn-plan { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .planner-card { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding-top: 80px; }
}
