:root{
  /* Palette */
  --plum:#5b2a4e;
  --plum-700:#441f3a;
  --plum-600:#4b2442;
  --rose:#f7e8ee;
  --rose-150:#fbf1f6;
  --rose-200:#fdeff5;
  --gold:#d8a24b;
  --ink:#2b2a33;
  --white:#fff;
  --muted:#faf6f8;
  --border:#ead6df;

  /* Effects */
  --shadow:0 10px 28px rgba(91,42,78,.14), 0 2px 6px rgba(91,42,78,.05);
  --shadow-strong:0 18px 48px rgba(91,42,78,.22), 0 6px 14px rgba(91,42,78,.10);
  --shadow-soft:0 8px 22px rgba(91,42,78,.12);

  /* UI */
  --glass:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  --rad:20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--ink);
  background:
    radial-gradient(1100px 260px at 50% -40px, rgba(216,162,75,.14), transparent 65%),
    linear-gradient(180deg,#fff 0%, #fff 60%, #fdf7fa 100%);
  font-family:"Tajawal","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{width:min(1120px,92%); margin-inline:auto}

/* ---------------- Header ---------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .container{display:flex; align-items:center; gap:20px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.brand-logo{height:34px; width:auto; object-fit:contain; filter:saturate(.92) contrast(.96)}
.footer-logo{height:28px; width:auto; object-fit:contain; filter:saturate(.92) contrast(.96)}
.brand-text{font-weight:800; letter-spacing:.3px}
.nav{margin-inline:auto; display:flex; gap:20px}
.nav a{
  color:var(--ink); text-decoration:none; font-weight:700; opacity:.9;
  transition:color .2s ease, opacity .2s ease
}
.nav a:hover{opacity:1; color:var(--plum)}
.header-actions{display:flex; gap:10px; align-items:center}
.btn{
  padding:10px 16px; border-radius:999px; border:1px solid transparent; font-weight:800; cursor:pointer;
  transition:transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--plum); color:#fff; box-shadow:var(--shadow)}
.btn.primary:hover{background:var(--plum-700); box-shadow:var(--shadow-strong)}
.btn.ghost{background:transparent; border-color:var(--border)}
.btn.ghost:hover{border-color:var(--plum); color:var(--plum)}
.hamburger{display:none; flex-direction:column; gap:4px; background:transparent; border:0; cursor:pointer}
.hamburger span{display:block; width:22px; height:2px; background:var(--ink)}

/* ---------------- Hero ---------------- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(1200px 300px at 50% 0, rgba(216,162,75,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fdf3f8 100%);
}
.texture{position:absolute; inset:0; background-image:
  radial-gradient(circle at 25px 25px, rgba(91,42,78,.07) 2px, transparent 2px),
  radial-gradient(circle at 75px 75px, rgba(91,42,78,.07) 2px, transparent 2px);
  background-size:100px 100px; opacity:.35;}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:36px; padding:64px 0 40px}
.hero-title{margin:0 0 8px; font-size:clamp(28px,4vw,46px); font-weight:900; line-height:1.1}
.hero-title .accent{color:var(--plum)}
.hero-sub{font-size:clamp(15px,1.8vw,18px); opacity:.92; margin:0 0 22px}

.notify-form{
  display:flex; gap:10px; padding:8px; border:1px solid var(--border); border-radius:999px;
  box-shadow:var(--shadow); background:var(--glass); backdrop-filter: blur(6px) saturate(160%);
}
.notify-form input{
  flex:1; border:0; outline:0; padding:12px 14px; font-size:15px; background:transparent;
  direction:ltr !important;
}
.helper{font-size:12.5px; opacity:.8; margin-top:2px}
.notify-msg{min-height:22px; font-size:14px}
.hero-badges{display:flex; gap:10px; margin-top:10px}
.store-badge{
  display:inline-flex; align-items:center; padding:10px 16px; border-radius:12px;
  border:1px solid var(--border); font-weight:800; background:#fff; transition:all .2s ease; box-shadow:var(--shadow);
}
.store-badge:hover{border-color:var(--plum); color:var(--plum); box-shadow:var(--shadow-strong)}

/* ---------------- Logo showcase ---------------- */
.hero-art{position:relative; pointer-events:none !important}
.logo-showcase{position:relative; display:grid; place-items:center; padding:16px}
.logo-card{
  width:min(440px,90vw); aspect-ratio:1/1; border-radius:28px;
  background:linear-gradient(180deg,#fff,#fff,#fdeff5);
  border:1px solid var(--border); box-shadow:var(--shadow-strong); display:grid; place-items:center;
  animation:float 6s ease-in-out infinite; position:relative; overflow:hidden;
}
.logo-card::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 120% at 50% 10%, rgba(255,255,255,.7), transparent 55%),
    radial-gradient(90% 90% at 50% 85%, rgba(255,255,255,.65), transparent 55%);
  mix-blend-mode:screen;
}
.logo-hero{
  width:68%; height:auto; object-fit:contain;
  filter:saturate(.92) brightness(1.02) contrast(.94) drop-shadow(0 6px 14px rgba(91,42,78,.22));
}
.ring{position:absolute; inset:0; margin:auto; border-radius:999px; border:2px solid rgba(91,42,78,.12); pointer-events:none}
.r1{width:min(520px,96vw); height:min(520px,96vw); animation:pulse 7s linear infinite}
.r2{width:min(580px,110vw); height:min(580px,110vw); animation:pulse 9s linear infinite reverse}
.r3{width:min(640px,120vw); height:min(640px,120vw); animation:pulse 12s linear infinite}
.glow{position:absolute; bottom:-16px; width:60%; height:18px; border-radius:50%; background:radial-gradient(closest-side, rgba(91,42,78,.15), transparent 70%); filter:blur(6px)}
.tagline{position:absolute; bottom:-38px; inset-inline:0; margin:auto; width:max-content; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.96); border:1px solid var(--border); box-shadow:var(--shadow-soft); color:var(--plum); font-weight:900}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pulse{0%{transform:scale(.96);opacity:.23}50%{transform:scale(1);opacity:.12}100%{transform:scale(1.04);opacity:.23}}
.hero-wave{height:40px; background:linear-gradient(0deg, #f9edf3, transparent)}
.hero-copy{position:relative; z-index:5}

/* ---------------- Countdown ---------------- */
.countdown{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap}
.cd-box{
  background:var(--glass); border:1px solid var(--border); box-shadow:var(--shadow); padding:12px 16px;
  border-radius:14px; text-align:center; min-width:92px; backdrop-filter:blur(6px) saturate(160%);
}
.cd-box span{display:block; font-weight:900; font-size:22px; color:var(--plum)}
.cd-box label{font-size:12px; opacity:.75}

/* ---------------- Sections ---------------- */
.section{padding:72px 0}
.section.muted{background:var(--muted); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}
.section-title{margin:0 0 6px; font-size:clamp(22px,3.5vw,32px); font-weight:900}
.section-sub{margin:0 0 26px; opacity:.92}
.highlights{display:grid; grid-template-columns:1fr 1fr; gap:16px}

/* highlight cards (legacy small items) */
.hl{
  display:flex; gap:12px; align-items:flex-start; background:#fff; border:1px solid var(--border);
  border-radius:var(--rad); padding:18px; box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease;
}
.hl:hover{transform:translateY(-2px); box-shadow:var(--shadow-strong)}
.hl .dot{
  width:12px; height:12px; border-radius:50%;
  background:linear-gradient(180deg,var(--plum),var(--gold));
  margin-top:8px; box-shadow:0 3px 8px rgba(216,162,75,.35)
}

/* ---------------- The Idea (visual cards) ---------------- */
.idea-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.idea-card{
  display:grid;
  grid-template-columns:72px auto;
  gap:16px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--rad);
  padding:18px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.idea-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-strong); border-color:rgba(91,42,78,.25) }

/* circular icon badge (always light to contrast with backgrounds) */
.ico-badge{
  width:72px; height:72px; display:grid; place-items:center; border-radius:16px;
  background:var(--glass);
  border:1px solid rgba(91,42,78,.18);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.45), 0 10px 18px rgba(91,42,78,.10);
}
.ico-badge .zi{
  width:36px; height:36px;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.65)) drop-shadow(0 2px 6px rgba(91,42,78,.22));
}

/* text */
.idea-title{ margin:0 0 4px; font-weight:900; font-size:18px }
.idea-desc{ margin:0 0 8px; opacity:.9 }
.idea-bullets{ margin:0; padding:0 18px; line-height:1.9 }

/* ---------------- Apps ---------------- */
.app-cards{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.app-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--rad); padding:20px;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-strong); border-color:rgba(91,42,78,.25)}
.pill{
  display:inline-block; padding:6px 10px; border-radius:999px; background:var(--rose-150);
  border:1px solid var(--border); font-weight:800; color:var(--plum); margin-bottom:8px
}
.app-name{margin:0 0 8px; font-size:20px; font-weight:900}
.app-name .sub{font-weight:700; opacity:.8}
.app-points{margin:0 0 12px 0; padding:0 18px; line-height:1.8}
.badges{display:flex; gap:10px}

/* ---------------- Features ---------------- */
.features-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.feature{
  background:#fff; border:1px solid var(--border); border-radius:var(--rad); padding:18px;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover{transform:translateY(-3px); box-shadow:var(--shadow-strong); border-color:rgba(91,42,78,.25)}

/* ==== Icon badge (lighter to contrast with backgrounds) ==== */
.feature .icon{
  width:46px; height:46px; display:grid; place-items:center; border-radius:14px;
  background:var(--glass);             /* always light for contrast */
  border:1px solid rgba(91,42,78,.18); /* soft outline */
  box-shadow:
    0 6px 14px rgba(91,42,78,.10),
    inset 0 0 0 3px rgba(255,255,255,.45); /* inner shine */
  margin-bottom:12px;
}

/* SVG rendering (duotone defined inside <defs> in HTML) */
.zi{width:28px; height:28px; display:block; filter:drop-shadow(0 1px 0 rgba(255,255,255,.65)) drop-shadow(0 2px 6px rgba(91,42,78,.22))}
.zi *{vector-effect:non-scaling-stroke}

/* draw animation */
.feature:hover .zi{animation:zi-draw .8s ease-in-out}
@keyframes zi-draw{
  0%{ stroke-dasharray:1,200; stroke-dashoffset:0 }
  100%{ stroke-dasharray:200,0; stroke-dashoffset:-20 }
}
@media (prefers-reduced-motion:reduce){ .feature:hover .zi{animation:none} }

/* ---------------- Contact ---------------- */
.contact-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.contact-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--rad); padding:18px;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover{transform:translateY(-2px); box-shadow:var(--shadow-strong); border-color:rgba(91,42,78,.25)}
.socials{display:flex; gap:8px; margin-top:6px}
.socials .ghost{
  border:1px solid var(--border); padding:6px 10px; border-radius:10px; font-weight:800;
  box-shadow:var(--shadow-soft); background:#fff
}

/* ---------------- Footer ---------------- */
.site-footer{border-top:1px solid var(--border); background:#fff; padding:26px 0}
.footer-grid{display:flex; align-items:center; gap:18px}
.f-brand{flex:1}
.fine{opacity:.72; margin-top:6px}
.f-links{display:flex; gap:16px; list-style:none; margin:0; padding:0}
.f-links a{color:var(--ink); text-decoration:none; font-weight:800; transition:color .2s ease}
.f-links a:hover{color:var(--plum)}

/* ---------------- Reveal animations ---------------- */
/* ---------------- Reveal animations (SAFE) ---------------- */

/* Visible by default (in case JS fails or is blocked) */
.reveal{opacity:1; transform:none}

/* When JS is running, we add .has-js to <html> and animate */
@media (prefers-reduced-motion:no-preference){
  html.has-js .reveal{
    opacity:0;
    transform:translateY(14px) scale(.98);
    transition:opacity .6s ease, transform .6s ease;
  }
  html.has-js .reveal.in{
    opacity:1;
    transform:none;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr; padding-top:40px}
  .hero-art{order:-1}
}
@media (max-width:860px){
  .features-grid,.app-cards,.contact-grid,.highlights,.idea-cards{grid-template-columns:1fr}
  .idea-card{ grid-template-columns:60px auto }
  .ico-badge{ width:60px; height:60px; border-radius:14px }
  .ico-badge .zi{ width:30px; height:30px }
}
@media (max-width:640px){
  .nav{display:none}
  .hamburger{display:flex}
  .site-header.open .nav{
    display:flex; position:absolute; inset-inline:0; top:64px; background:#fff; border-bottom:1px solid var(--border);
    padding:12px 16px; gap:12px; flex-direction:column; box-shadow:var(--shadow)
  }
}

/* ---------------- RTL/LTR ---------------- */
body.is-en{font-family:"Inter","Tajawal",system-ui; direction:ltr}
body.is-en .notify-form input{direction:ltr}

/* ---------------- Click-through safety ---------------- */
.texture, .hero-wave, .logo-showcase .ring, .glow{pointer-events:none !important}
.hero-copy{position:relative; z-index:5}
