/* Midad download site — colours follow the app (lib/ui.dart): blue #1F4FFF, dark surface #12141C. */
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url(fonts/IBMPlexSansArabic-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0B0D16;
  --bg2: #10131F;
  --card: #161A28;
  --card2: #1C2133;
  --line: #262B3F;
  --ink: #ECEEF6;
  --muted: #9CA2BA;
  --blue: #1F4FFF;
  --blue2: #6E8BFF;
  --violet: #8E7BFF;
  --orange: #FF6B3D;
  --green: #14A06B;
  --yellow: #FFC83D;
  --pink: #FF5FA2;
  --teal: #19B9B0;
  --red: #E5484D;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: Plex, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

/* soft colour light behind the page */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 520px at 85% -5%, rgba(31, 79, 255, .32), transparent 70%),
    radial-gradient(560px 460px at 0% 30%, rgba(142, 123, 255, .16), transparent 70%),
    radial-gradient(600px 500px at 60% 110%, rgba(255, 107, 61, .10), transparent 70%),
    var(--bg);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 22, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.45rem; }
.brand img { border-radius: 11px; box-shadow: 0 6px 18px rgba(31, 79, 255, .45); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #3B67FF, var(--blue) 55%, #1739C9);
  color: #fff; font-weight: 700; border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(31, 79, 255, .40), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31, 79, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-sm { font-size: .95rem; padding: 8px 18px; border-radius: 12px; }
.btn-lg { padding: 14px 26px; font-size: 1.15rem; border-radius: 18px; }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.35; text-align: start; }
.btn-lg small { font-weight: 500; font-size: .78rem; opacity: .85; }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 12px 34px rgba(0, 0, 0, .25); }
.btn-light:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.btn-ghost { font-weight: 600; color: var(--blue2); padding: 10px 6px; }
.btn-ghost:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; font-size: .9rem; font-weight: 500;
  background: rgba(31, 79, 255, .14); border: 1px solid rgba(110, 139, 255, .32); color: #BFCBFF;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.25; font-weight: 700; margin: 20px 0 18px; letter-spacing: -.5px; }
.grad {
  background: linear-gradient(90deg, #6E8BFF, #A694FF 45%, #FF8A64);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 14px; }
.meta { color: var(--muted); font-size: .88rem; }

.hero-phones { position: relative; height: 600px; }
.phone {
  position: relative; border-radius: 34px; padding: 9px;
  background: linear-gradient(160deg, #2C3247, #11141F 60%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone img { border-radius: 26px; width: 100%; height: auto; background: #12141C; }
.phone-main { position: absolute; width: 270px; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; }
.phone-side { position: absolute; width: 222px; top: 70px; z-index: 1; opacity: .9; }
.phone-l { left: 4%; transform: rotate(-8deg); }
.phone-r { right: 4%; transform: rotate(8deg); }
.phone-main::after {
  content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(31, 79, 255, .45), transparent);
}

.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 13px; border-radius: 14px; font-weight: 600; font-size: .92rem;
  background: rgba(22, 26, 40, .82); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  animation: bob 6s ease-in-out infinite;
}
.ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: .8rem; }
.ic-violet { background: linear-gradient(135deg, #8E7BFF, #5B4BFF); }
.ic-orange { background: linear-gradient(135deg, #FF8A64, #FF5A2A); }
.ic-blue { background: linear-gradient(135deg, #5C80FF, #1F4FFF); }
.chip-a { top: 40px; right: 0; }
.chip-b { top: 330px; left: -6px; animation-delay: -2s; }
.chip-c { bottom: 40px; right: 6%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(22, 26, 40, .55);
}
.strip div { padding: 20px 24px; display: flex; flex-direction: column; }
.strip div + div { border-inline-start: 1px solid var(--line); }
.strip b { font-size: 1.15rem; }
.strip span { color: var(--muted); font-size: .92rem; }

/* ---------- sections ---------- */
.section { padding: 90px 0 10px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker { color: var(--blue2); font-weight: 700; font-size: .95rem; letter-spacing: .3px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.35; margin-top: 6px; }
.sec-head p { color: var(--muted); margin-top: 8px; font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(110, 139, 255, .45); }
.card h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.fi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; }
.fi svg { width: 26px; height: 26px; fill: #fff; }
.fi-violet { background: linear-gradient(135deg, #9A88FF, #5B4BFF); box-shadow: 0 8px 22px rgba(142, 123, 255, .35); }
.fi-blue { background: linear-gradient(135deg, #5C80FF, #1F4FFF); box-shadow: 0 8px 22px rgba(31, 79, 255, .35); }
.fi-orange { background: linear-gradient(135deg, #FF9A74, #FF5A2A); box-shadow: 0 8px 22px rgba(255, 107, 61, .3); }
.fi-green { background: linear-gradient(135deg, #2FD08F, #0E8A5A); box-shadow: 0 8px 22px rgba(20, 160, 107, .3); }
.fi-teal { background: linear-gradient(135deg, #3BD8CE, #0F9189); box-shadow: 0 8px 22px rgba(25, 185, 176, .3); }
.fi-pink { background: linear-gradient(135deg, #FF86BA, #E5397F); box-shadow: 0 8px 22px rgba(255, 95, 162, .3); }
.fi-yellow { background: linear-gradient(135deg, #FFD86B, #F0A800); box-shadow: 0 8px 22px rgba(255, 200, 61, .3); }
.fi-red { background: linear-gradient(135deg, #FF7A7E, #C9363B); box-shadow: 0 8px 22px rgba(229, 72, 77, .3); }

/* ---------- tour rows ---------- */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 44px 48px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: 30px;
  background:
    radial-gradient(500px 300px at 20% 50%, rgba(31, 79, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(28, 33, 51, .7), rgba(22, 26, 40, .7));
  overflow: hidden;
}
.row-rev .row-text { order: 2; }
.row-rev { background:
    radial-gradient(500px 300px at 80% 50%, rgba(255, 95, 162, .13), transparent 70%),
    linear-gradient(180deg, rgba(28, 33, 51, .7), rgba(22, 26, 40, .7)); }
.row-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 12px 0 10px; line-height: 1.4; }
.row-text p { color: var(--muted); font-size: 1.05rem; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .85rem; font-weight: 700; }
.tag-violet { background: rgba(142, 123, 255, .16); color: #B7AAFF; }
.tag-pink { background: rgba(255, 95, 162, .14); color: #FF9CC6; }
.tag-blue { background: rgba(31, 79, 255, .18); color: #A9BBFF; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks li::before {
  content: '✓'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(61, 220, 151, .15); color: #3DDC97; font-size: .8rem; font-weight: 700;
}
.row-media { display: flex; justify-content: center; }
.row-media .phone { width: 270px; }
.row-media .phone-short { width: 300px; }
.duo { position: relative; min-height: 560px; }
.duo .phone { position: absolute; width: 240px; }
.duo .phone:first-child { right: 8%; top: 0; z-index: 2; transform: rotate(3deg); }
.duo .phone-back { left: 8%; top: 40px; transform: rotate(-5deg); }

/* ---------- install ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line);
}
.num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  font-weight: 700; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, #5C80FF, #1F4FFF); box-shadow: 0 8px 22px rgba(31, 79, 255, .4);
}
.steps h3 { margin: 16px 0 6px; font-size: 1.2rem; }
.steps p { color: var(--muted); }

/* ---------- faq ---------- */
.qa {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  margin-bottom: 12px; transition: border-color .2s;
}
.qa[open] { border-color: rgba(110, 139, 255, .4); }
.qa summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font-size: 1.4rem; color: var(--blue2); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- final ---------- */
.final {
  text-align: center; padding: 60px 24px; border-radius: 34px; position: relative; overflow: hidden;
  background:
    radial-gradient(400px 260px at 15% 0%, rgba(255, 255, 255, .18), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(142, 123, 255, .5), transparent 70%),
    linear-gradient(135deg, #2F5CFF, #1F4FFF 50%, #1739C9);
  box-shadow: 0 30px 80px rgba(31, 79, 255, .35);
}
.final img { margin: 0 auto 16px; border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.final h2 { margin: 0; }
.final > p { color: rgba(255, 255, 255, .85); margin: 6px 0 26px; font-size: 1.1rem; }
.final .meta { color: rgba(255, 255, 255, .75); margin-top: 16px; }

/* ---------- footer ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 26px 0 34px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 1.2rem; }
.foot .brand img { border-radius: 9px; }
.foot p { color: var(--muted); font-size: .92rem; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding-top: 36px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .hero-phones { height: 520px; max-width: 520px; width: 100%; margin: 10px auto 0; }
  .phone-main { width: 236px; }
  .phone-side { width: 190px; top: 60px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-inline-start: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row, .row-rev { grid-template-columns: 1fr; gap: 34px; padding: 34px 26px; text-align: center; }
  .row-rev .row-text { order: 0; }
  .ticks { justify-items: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-in { height: 64px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 34px; height: 34px; }
  .lead { font-size: 1.03rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-phones { height: 430px; }
  .phone { border-radius: 26px; padding: 7px; }
  .phone img { border-radius: 20px; }
  .phone-main { width: 196px; }
  .phone-side { width: 150px; top: 56px; }
  .phone-l { left: -2%; }
  .phone-r { right: -2%; }
  .float-chip { font-size: .8rem; padding: 7px 11px 7px 9px; }
  .ic { width: 22px; height: 22px; }
  .chip-a { top: 14px; right: -4px; }
  .chip-b { top: 250px; left: -4px; }
  .chip-c { bottom: 14px; }
  .strip div { padding: 16px; }
  .strip b { font-size: 1rem; }
  .strip span { font-size: .82rem; }
  .grid { grid-template-columns: 1fr; }
  .section { padding-top: 70px; }
  .row-media .phone { width: 230px; }
  .row-media .phone-short { width: 250px; }
  .duo { min-height: 470px; width: 100%; }
  .duo .phone { width: 190px; }
  .duo .phone:first-child { right: 2%; }
  .duo .phone-back { left: 2%; }
  .foot-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
