/* MAXSCAN app download page — tokens ported from maxscan.mwf-metaldetectors.com */
@font-face { font-family: 'Tajawal'; font-weight: 100 450; font-display: swap; src: url('assets/fonts/Tajawal-400.woff2') format('woff2'); }
@font-face { font-family: 'Tajawal'; font-weight: 451 650; font-display: swap; src: url('assets/fonts/Tajawal-500.woff2') format('woff2'); }
@font-face { font-family: 'Tajawal'; font-weight: 651 900; font-display: swap; src: url('assets/fonts/Tajawal-700.woff2') format('woff2'); }

:root {
  --bg: #000000;
  --card: #161616;
  --card-border: rgba(255,255,255,0.10);
  --text: #f2f5f9;
  --muted: #c7c7c7;
  --primary: #1455ac;
  --secondary: #ed7328;
  --cyan: #00ade3;
  --green: #23cb60;
  --white: #ffffff;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: 'Tajawal', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }

.bg-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 88% 0%, rgba(72,72,72,.9) 0%, rgba(0,0,0,0) 45%),
    radial-gradient(circle at 10% 80%, rgba(20,85,172,.25) 0%, rgba(0,0,0,0) 40%);
}

/* header */
.top {
  max-width: 1120px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { width: 96px; height: auto; }
.lang { display: flex; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--card-border); border-radius: 999px; padding: 4px; }
.lang button {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.lang button.active { background: var(--white); color: #000; }
.lang button:hover:not(.active) { color: var(--white); }

/* hero */
main { max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  padding: 24px 0 40px;
}
.app-logo { width: 260px; margin-bottom: 18px; }
.eyebrow {
  color: var(--secondary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0d0d0d; color: var(--white); text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: var(--radius-md);
  padding: 10px 18px 10px 14px; min-width: 190px; min-height: 60px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-2px); border-color: var(--white); box-shadow: 0 8px 28px rgba(0,173,227,.25); }
.badge-txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge-txt small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge-txt strong { font-size: 21px; font-weight: 700; }
.badge.preferred { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,173,227,.18); }
.badge.soon { opacity: .55; pointer-events: none; }
.badge.soon .badge-txt small { color: var(--secondary); }
.soon-note { color: var(--secondary); font-size: 15px; margin-top: 4px; }

.req { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.req li::before { content: '✓'; color: var(--green); margin-inline-end: 6px; font-weight: 700; }

.hero-visual img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 48px; }
.features article {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px 22px;
}
.features .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0,173,227,.14); color: var(--cyan); margin-bottom: 14px;
}
.features h3 { font-size: 19px; }
.features p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* qr */
.qr-block {
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(135deg, rgba(20,85,172,.35), rgba(0,0,0,0) 70%), var(--card);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 48px;
}
.qr { background: #000; border: 1px solid var(--card-border); border-radius: 14px; padding: 12px; flex: 0 0 auto; }
.qr img { width: 150px; height: 150px; }
.qr-block h2 { font-size: 26px; }
.qr-block p { color: var(--muted); margin: 0 0 6px; }
.qr-block .url { color: var(--white); font-weight: 700; letter-spacing: .02em; }

/* help */
.help { text-align: center; padding: 8px 0 24px; }
.help h2 { font-size: 26px; }
.help p { color: var(--muted); }
.help-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 20px; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

footer { border-top: 1px solid var(--card-border); padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--white); }

/* RTL */
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .badge-txt small { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .badge { padding: 10px 14px 10px 18px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .lead { max-width: 100%; }
  .badges { justify-content: center; }
  .req { justify-content: center; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .qr-block { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .app-logo { width: 210px; }
  .badge { width: 100%; justify-content: center; }
  .lang button { padding: 6px 9px; font-size: 13px; }
}
