@font-face{
  font-family:"ITCHandelGothicArabic";
  src:url("./fonts/ITCHandelGothicArabic-light.ttf") format("truetype");
  font-weight:300;
  font-style:normal;
}

:root{
  --orange:#f97316;
  --black:#111827;
  --gray:#6b7280;
  --glass:rgba(255,255,255,.55);
  --glass-2:rgba(255,255,255,.35);
  --border:rgba(255,255,255,.45);
  --shadow:0 40px 90px rgba(0,0,0,.10);
  --shadow-2:0 28px 70px rgba(0,0,0,.14);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--black);
  background: linear-gradient(120deg,#ffffff,#f1f5f9);
  overflow-x:hidden;
}

/* soft moving gradient backdrop */
body:before{
  content:"";
  position:fixed;
  inset:-20%;
  z-index:-3;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(249,115,22,.35), transparent 60%),
    radial-gradient(55% 55% at 80% 70%, rgba(249,115,22,.22), transparent 60%),
    radial-gradient(45% 45% at 55% 40%, rgba(107,114,128,.18), transparent 60%);
  filter: blur(10px);
  animation: bgFloat 18s ease-in-out infinite;
  transform: translate3d(0,0,0);
}
@keyframes bgFloat{
  0%{transform:translate(-1%, -1%) scale(1.02)}
  50%{transform:translate(1.5%, 1%) scale(1.04)}
  100%{transform:translate(-1%, -1%) scale(1.02)}
}

/* subtle grain */
body:after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Header */
header{
  position:fixed;
  top:0; left:0; right:0;
  padding:18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  z-index:50;
  background: rgba(255,255,255,.42);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand{
  font-weight:800;
  letter-spacing:.5px;
  font-size:24px;
  color:var(--orange);
  user-select:none;
}
.brand[dir="rtl"]{
  font-family:"ITCHandelGothicArabic", system-ui, sans-serif;
  letter-spacing:0;
}

.lang{
  display:flex;
  align-items:center;
  gap:8px;
}
.lang button{
  appearance:none;
  border:1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.65);
  padding:8px 12px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.lang button:hover{transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.08); background: rgba(255,255,255,.85)}
.lang button:active{transform: translateY(0px) scale(.98)}
.lang button[aria-pressed="true"]{
  border-color: rgba(249,115,22,.35);
  box-shadow: 0 10px 22px rgba(249,115,22,.14);
}

/* Layout */
.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:140px 18px 60px;
}
.shell{
  width:min(980px, 100%);
  position:relative;
}

.glass{
  position:relative;
  border-radius:26px;
  border:1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateZ(0);
}

/* Particles canvas inside glass */
#particles{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.65;
}

/* Content above particles */
.content{
  position:relative;
  z-index:1;
  padding:56px 50px 34px;
  text-align:center;
}

h1{
  margin:0;
  font-size:54px;
  line-height:1.05;
  color:var(--orange);
  font-weight:900;
  letter-spacing:.2px;
}
h1.ar{
  font-family:"ITCHandelGothicArabic", system-ui, sans-serif;
  font-weight:300;
  letter-spacing:0;
}

.tagline{
  margin:12px 0 18px;
  font-size:22px;
  font-weight:650;
  color:var(--black);
}
.lede{
  margin:0 auto 26px;
  max-width:820px;
  color:var(--gray);
  font-size:18px;
  line-height:1.7;
}

.pills{
  margin:0 auto 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.pill{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.62);
  font-weight:650;
  color: rgba(17,24,39,.84);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.grid{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}

.card{
  position:relative;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 55px rgba(0,0,0,.08);
  padding:18px 18px 16px;
  text-align:left;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}
.card:hover{
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2);
  border-color: rgba(249,115,22,.38);
}
.card:active{transform: translateY(-6px) scale(1.01)}

.card h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:850;
  color:var(--black);
}
.card p{
  margin:0;
  color:var(--gray);
  line-height:1.6;
  font-size:15px;
}
.icon{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:12px;
  background: rgba(249,115,22,.12);
  color: var(--orange);
  margin-bottom:10px;
}

/* Store buttons (custom, lightweight) */
.ctaRow{
  margin-top:22px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}
.storeBtn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.68);
  cursor:pointer;
  text-decoration:none;
  color: var(--black);
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  user-select:none;
}
.storeBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 62px rgba(0,0,0,.12);
  background: rgba(255,255,255,.88);
  border-color: rgba(249,115,22,.32);
}
.storeBtn:active{transform: translateY(0px) scale(.99)}
.storeMeta{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.storeMeta small{
  color: rgba(107,114,128,.95);
  font-weight:700;
  font-size:11px;
}
.storeMeta strong{
  font-size:14px;
  font-weight:900;
}
.badgeIcon{
  width:34px;height:34px;
  border-radius:12px;
  background: rgba(17,24,39,.06);
  display:grid;place-items:center;
}

.sep{
  margin:26px auto 0;
  width:min(720px, 100%);
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(17,24,39,.14), transparent);
}

.meta{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  color: rgba(107,114,128,.95);
  font-size:13px;
}
.meta a{
  color: rgba(17,24,39,.72);
  text-decoration:none;
  border-bottom: 1px solid rgba(17,24,39,.14);
}
.meta a:hover{border-bottom-color: rgba(249,115,22,.55)}

/* RTL helpers */
.rtl .content{text-align:right}
.rtl .card{text-align:right}
.rtl .pills{justify-content:flex-start}
.rtl .ctaRow{justify-content:flex-start}
.rtl .storeMeta{align-items:flex-end}

/* Motion reduction */
@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
  body:before{animation:none!important}
}

@media (max-width: 860px){
  .content{padding:44px 20px 28px}
  h1{font-size:44px}
  .grid{grid-template-columns:1fr; gap:12px}
  header{padding:16px 16px}
}


/* Make sure links never look "default blue" inside the glass */
a{color:inherit}
a:visited{color:inherit}
