/* wein-iq.com. Brand colours come from brand/icon.svg (sky gradient, orange dot) and the app's route purple. */
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --sky-1: #5be0ff;
  --sky-2: #0a84e0;
  --orange: #ff7a00;
  --route: #5b21d6;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --ink: #0b1b2b;
  --muted: #526273;
  --line: #dde6ee;
  --tint: #e8f3fb;
  --shade: 244, 248, 251; /* --bg as RGB, for the hero gradient */
  --shadow: 0 1px 2px rgba(11, 27, 43, 0.06), 0 12px 32px -12px rgba(11, 27, 43, 0.18);
  --radius: 22px;
  --grad: linear-gradient(135deg, var(--sky-1), var(--sky-2));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07121d;
    --surface: #0e1d2c;
    --ink: #eaf2f8;
    --muted: #9db0c2;
    --line: #1d3044;
    --tint: #0b1826;
    --shade: 7, 18, 29;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 3px; border-radius: 8px; }
.sprite { display: none; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.nav.scrolled {
  background: rgba(var(--shade), 0.78);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
.brand img { border-radius: 10px; box-shadow: 0 4px 14px -4px rgba(10, 132, 224, 0.6); }
.nav-links { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); background: rgba(127, 150, 170, 0.14); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.lang:hover { border-color: var(--sky-2); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 132, 224, 0.8); }
.btn-light { background: #fff; color: #0b1b2b; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges-center { justify-content: center; }
.badge { display: block; border-radius: 10px; transition: transform 0.15s; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 52px; width: auto; }

/* ------------------------------------------------------------------ hero (the 3D map) */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #cfe9f8; }
/* The map is light in both themes, so the hero (and the header while it sits over the hero) stays light too. */
.hero, .nav:not(.scrolled) {
  --bg: #f4f8fb; --surface: #ffffff; --ink: #0b1b2b; --muted: #526273; --line: #dde6ee; --shade: 244, 248, 251;
  color: var(--ink);
}
.hero .maplibregl-ctrl-top-left, .hero .maplibregl-ctrl-top-right { top: 72px; }
.map { position: absolute; inset: 0; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--hero-dir, to left), rgba(var(--shade), 0.96) 0%, rgba(var(--shade), 0.82) 30%, rgba(var(--shade), 0) 62%);
}
[dir="ltr"] .hero-shade { --hero-dir: to right; }
.hero-content {
  position: absolute; z-index: 2; inset-block-start: 50%; transform: translateY(-50%);
  inset-inline-start: max(16px, calc((100vw - 1160px) / 2));
  width: min(560px, 100% - 32px);
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; margin: 22px 0 18px; }
.grad { background: linear-gradient(120deg, var(--sky-2), var(--route) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30em; margin-bottom: 30px; }

.tour {
  position: absolute; z-index: 3; inset-inline: 0; inset-block-end: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 16px;
}
.tour-hint { font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(var(--shade), 0.8); padding: 3px 12px; border-radius: 999px; }
.chips {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(var(--shade), 0.72); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: rgba(127, 150, 170, 0.18); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; }

.province-tip {
  position: absolute; z-index: 4; pointer-events: none;
  padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  transform: translate(-50%, calc(-100% - 14px));
}
.maplibregl-ctrl-attrib { font-family: system-ui, sans-serif; font-size: 11px; }
.hero .maplibregl-ctrl-bottom-left, .hero .maplibregl-ctrl-bottom-right { bottom: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .map { position: relative; order: 2; height: 62svh; min-height: 420px; }
  .hero-shade { display: none; }
  .hero-content { position: relative; order: 1; transform: none; inset: auto; width: auto; padding: 96px 16px 24px; background: var(--bg); }
  .hero h1 { margin: 16px 0 12px; }
  .lead { margin-bottom: 22px; }
  .tour { position: relative; order: 3; inset: auto; padding: 14px 0 0; background: var(--bg); }
  .tour-hint { display: none; }
  .chips { width: calc(100% - 32px); border-radius: 18px; }
  .badge img { height: 46px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--sky-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
:lang(ar) .kicker { letter-spacing: 0; }
.section h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; margin-top: 14px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sky-2) 40%, var(--line)); }
.feature-wide { grid-column: span 2; }
.card h3 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--sky-2) 14%, transparent); color: var(--sky-2);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.ico-route { background: color-mix(in srgb, var(--route) 14%, transparent); color: var(--route); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-route { color: #a98bff; } }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } .feature-wide { grid-column: auto; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature-wide { grid-column: auto; } }

/* screenshots */
.phones {
  list-style: none; margin: 0 auto; padding: 0 16px 8px; max-width: 1240px;
  display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px);
}
.phone-item { flex: 0 1 220px; }
.phone-item:nth-child(2), .phone-item:nth-child(4) { flex-basis: 240px; }
.phone-hero { flex-basis: 270px; }
.phone-item figure { margin: 0; }
.phone {
  padding: 9px; border-radius: 40px; background: #0b1b2b;
  box-shadow: 0 30px 60px -24px rgba(11, 27, 43, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 31px; width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; }
.phone-item figcaption { text-align: center; font-weight: 600; font-size: 15px; color: var(--muted); margin-top: 16px; }
.reveal .phone-item { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in .phone-item { opacity: 1; transform: none; }
.reveal.in .phone-item:nth-child(2) { transition-delay: 0.08s; }
.reveal.in .phone-item:nth-child(3) { transition-delay: 0.16s; }
.reveal.in .phone-item:nth-child(4) { transition-delay: 0.24s; }
.reveal.in .phone-item:nth-child(5) { transition-delay: 0.32s; }
@media (max-width: 960px) {
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 8px 24px; }
  .phones::-webkit-scrollbar { display: none; }
  .phone-item, .phone-item:nth-child(n), .phone-hero { flex: 0 0 min(64vw, 260px); scroll-snap-align: center; }
}

/* privacy */
.section-dark { background: radial-gradient(1200px 500px at 50% -10%, #12406b 0%, #0b1b2b 55%), #0b1b2b; color: #eaf2f8; }
.section-dark .sub { color: #a8bdd0; }
.section-dark .kicker { color: var(--sky-1); }
.privacy-points { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; }
.privacy-points li { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.privacy-points .ico { background: rgba(91, 224, 255, 0.14); color: var(--sky-1); margin-bottom: 16px; }
.privacy-points p { color: #d3e1ec; }
.privacy-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 860px) { .privacy-points { grid-template-columns: 1fr; } }

/* download */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 80px) 24px; border-radius: 32px;
  background: radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, 0.35), transparent 70%), var(--grad);
  color: #fff; box-shadow: 0 30px 60px -30px rgba(10, 132, 224, 0.7);
}
.cta-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 16px 40px -12px rgba(0, 58, 107, 0.6); }
.cta h2 { color: #fff; }
.cta .sub { color: rgba(255, 255, 255, 0.88); margin-bottom: 30px; }
.safety { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* footer */
.footer { padding: 36px 0 28px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.mail { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.mail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.credits { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* social accounts in the footer: the brands' own colours, white logos (the SVGs carry their own size and fill) */
.social { display: flex; gap: 10px; }
.social a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: #fff; transition: transform 0.15s, box-shadow 0.15s;
}
.social a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5); }
.social svg { width: 22px; height: 22px; display: block; }
.s-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.s-fb { background: #1877f2; }
.s-tt { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.s-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }

/* The direct APK download, shaped like the store badges beside it */
.badge-apk { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 14px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; }
.badge-apk .apk-icon { font-size: 22px; line-height: 1; color: #3ddc84; }
.badge-apk span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.badge-apk small { font-size: 11px; opacity: 0.85; }
.badge-apk b { font-size: 16px; }
@media (max-width: 560px) { .badge-apk { height: 46px; } }
.badges + .live-link { margin-top: 20px; }
