/* SANAD Player website — violet brand on near-black, from the app's "SANAD Violet" theme. */
:root {
  --bg: #06030d; --bg2: #0b0716; --surface: #120c1f; --surface2: #1c1430; --line: #2e2447;
  --accent: #a23bf5; --accent-deep: #6a1bd8; --accent-light: #d9b8ff; --text: #fff; --muted: #a9a3ba;
  --wa: #25d366; --wa-deep: #128c7e;
  --grad: linear-gradient(135deg, #d9b8ff, #a23bf5 45%, #6a1bd8);
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="fr"] body, html[lang="en"] body { font-family: "Inter", "Cairo", system-ui, sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.ico { width: 22px; height: 22px; flex: none; }
.defs { position: absolute; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(6, 3, 13, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.top-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: .3px; direction: ltr; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { font-weight: 900; }
.menu { display: flex; gap: 6px; margin-inline-start: auto; }
.menu a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: color .15s, background .15s; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .06); }
.langs button { border: 0; background: none; padding: 5px 9px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; }
.langs button.on { background: var(--surface2); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; font-weight: 700; transition: transform .15s, box-shadow .2s, filter .2s; text-align: start; }
.btn:hover { transform: translateY(-2px); }
.btn span { display: flex; flex-direction: column; line-height: 1.25; }
.btn small { font-size: 12.5px; font-weight: 600; opacity: .85; margin-top: 3px; }
.btn b { font-size: 17px; }
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 14px 40px rgba(162, 59, 245, .38); }
.btn-main:hover { box-shadow: 0 18px 50px rgba(162, 59, 245, .5); filter: brightness(1.06); }
.btn-wa { background: linear-gradient(135deg, #2fe377, var(--wa) 50%, var(--wa-deep)); color: #04210f; box-shadow: 0 14px 40px rgba(37, 211, 102, .25); }
.btn-wa:hover { box-shadow: 0 18px 50px rgba(37, 211, 102, .38); }
.btn.sm { padding: 9px 14px; border-radius: 12px; gap: 8px; font-size: 14px; }
.btn.sm .ico { width: 18px; height: 18px; }
.btn.big { padding: 18px 28px; border-radius: 18px; }
.btn.big .ico { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.g1 { width: 620px; height: 620px; background: rgba(162, 59, 245, .28); top: -220px; inset-inline-end: -160px; }
.g2 { width: 520px; height: 520px; background: rgba(106, 27, 216, .22); bottom: -260px; inset-inline-start: -180px; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px; border-radius: 99px; background: rgba(162, 59, 245, .14); border: 1px solid rgba(162, 59, 245, .4); color: var(--accent-light); font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd47e; box-shadow: 0 0 0 4px rgba(47, 212, 126, .18); }
h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff 30%, #d9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 30px; font-size: 19px; color: #cfc8e0; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { width: 19px; height: 19px; color: var(--accent-light); }

.hero-art { position: relative; min-height: 470px; }
.device-tv { position: relative; }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 10px solid #121018; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(162, 59, 245, .18); }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; border-radius: 0 0 14px 14px; background: linear-gradient(#1a1724, #0d0b13); }
.hero .device-tv { width: 92%; margin-inline-start: auto; animation: float 7s ease-in-out infinite; }
.device-phone { position: relative; width: 210px; aspect-ratio: 620 / 1311; border-radius: 34px; overflow: hidden; background: #000; border: 8px solid #0d0b13;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1); }
.device-phone img { width: 100%; height: 100%; object-fit: cover; }
.device-phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); border-radius: 99px; background: #0d0b13; z-index: 1; }
.hero .device-phone { position: absolute; bottom: -18px; inset-inline-start: 0; width: 34%; max-width: 220px; animation: float 7s ease-in-out -3.5s infinite; }
.float-card { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(18, 12, 31, .85); border: 1px solid rgba(162, 59, 245, .4); backdrop-filter: blur(8px); font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.float-card .ico { width: 20px; height: 20px; color: var(--accent-light); }
.fc1 { top: -14px; inset-inline-start: 18%; }
.fc2 { bottom: 26%; inset-inline-end: -12px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid rgba(255, 255, 255, .04); }
.head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { margin: 0 0 8px; color: var(--accent-light); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; font-weight: 900; }
.sub { margin: 0; color: var(--muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { padding: 26px 22px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(162, 59, 245, .55); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 40px rgba(162, 59, 245, .12); }
.fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 16px; box-shadow: 0 10px 26px rgba(162, 59, 245, .35); }
.fi svg { width: 26px; height: 26px; color: #fff; }
.feat h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.tabs { display: flex; justify-content: center; gap: 6px; margin: -20px auto 40px; padding: 5px; width: max-content; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tabs button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 20px; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 700; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(162, 59, 245, .35); }
.tabs .ico { width: 18px; height: 18px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; justify-items: center; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.gallery .device-phone.small { width: 100%; max-width: 230px; }
.gallery figcaption { color: var(--muted); font-weight: 600; font-size: 15px; text-align: center; }
.gallery.tv { grid-template-columns: repeat(2, 1fr); }
.gallery.tv .device-tv { width: 100%; }
.gallery[hidden] { display: none; }
.themes-row { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.themes-row p { margin: 0 12px; color: var(--muted); font-weight: 600; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); }
.sw[data-t="violet"] { background: linear-gradient(135deg, #d9b8ff, #a23bf5, #6a1bd8); }
.sw[data-t="cinema"] { background: linear-gradient(135deg, #ff8a8f, #e50914, #9e0a12); }
.sw[data-t="ocean"] { background: linear-gradient(135deg, #9ccbff, #2e8bff, #1555d0); }
.sw[data-t="emerald"] { background: linear-gradient(135deg, #8ff0cc, #12c98b, #078a60); }
.sw[data-t="gold"] { background: linear-gradient(135deg, #f7da98, #e2ae43, #a9741a); }
.sw[data-t="sunset"] { background: linear-gradient(135deg, #ffb79e, #ff5e62, #d62f6e); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(162, 59, 245, .16); border: 1px solid rgba(162, 59, 245, .45); color: var(--accent-light); font-weight: 900; font-size: 20px; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tvbox { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(162, 59, 245, .18), rgba(18, 12, 31, .9) 60%); border: 1px solid rgba(162, 59, 245, .4); }
.tvbox h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.tvbox p { margin: 0; color: #cfc8e0; }
.tvbox-text { flex: 1; min-width: 260px; }
.code { padding: 14px 22px; border-radius: 14px; background: #000; border: 1px dashed rgba(217, 184, 255, .5); font: 700 24px/1 "Inter", ui-monospace, monospace; color: var(--accent-light); letter-spacing: .5px; }

.sub-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 48px 52px; border-radius: 30px;
  background: linear-gradient(120deg, #1d0f37, #120a22 55%, #0a1f17); border: 1px solid rgba(162, 59, 245, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sub-card h2 { margin-bottom: 6px; }
.sub-card p { margin: 0; color: #cfc8e0; font-size: 18px; max-width: 520px; }
.sub-card > div:not(.glow) { position: relative; z-index: 1; }
.sub-card .btn { position: relative; z-index: 1; }
.g3 { width: 420px; height: 420px; background: rgba(37, 211, 102, .16); top: -160px; inset-inline-end: -120px; }

details { margin-bottom: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
details[open] { border-color: rgba(162, 59, 245, .5); }
summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(162, 59, 245, .16); color: var(--accent-light); font-size: 20px; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.foot { border-top: 1px solid rgba(255, 255, 255, .06); padding: 40px 0; background: #040209; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot p { margin: 0; color: var(--muted); font-size: 15px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; color: var(--wa); font-weight: 700; }
.copy { width: 100%; text-align: center; font-size: 13px !important; }

.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: ping 2.4s ease-out infinite; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

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

/* ---------- tablets & phones ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero { padding: 40px 0 70px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .trust { justify-content: center; }
  .hero-art { min-height: 0; padding-bottom: 40px; max-width: 640px; margin: 0 auto; width: 100%; }
  .menu { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 16px 18px; background: rgba(6, 3, 13, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; margin: 0; }
  .menu.open { transform: none; }
  .menu a { padding: 14px 12px; font-size: 17px; }
  .burger { display: flex; }
  .top-actions .btn-wa span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .gallery.tv { grid-template-columns: 1fr; }
  .sub-card { padding: 34px 26px; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { gap: 10px; height: 66px; }
  .menu { inset: 66px 0 auto 0; }
  .brand span { display: none; }
  .section { padding: 70px 0; }
  .features { grid-template-columns: 1fr; }
  .gallery { gap: 18px; }
  .btn { width: 100%; justify-content: center; }
  .btn.sm { width: auto; }
  .tabs { margin-top: -16px; }
  .code { font-size: 19px; width: 100%; text-align: center; }
  .float-card { display: none; }
  .tvbox { padding: 22px 18px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}
