@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root{
  --bg:#12091f;
  --bg2:#1a102b;
  --card:#1d1231;
  --line:#2f2147;
  --text:#f8f5ff;
  --muted:#c1b2db;
  --p:#a855f7;
  --s:#ec4899;
  --p2:#7c3aed;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
  --radius: 22px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Tajawal',sans-serif;
  background:
    radial-gradient(circle at top, #30144f 0%, var(--bg) 55%),
    var(--bg);
  color:var(--text);
  line-height:1.8;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(1180px,92%);
  margin:auto;
}

.topbar{
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:.95rem;
  color:var(--muted);
}

.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  gap:12px;
  flex-wrap:wrap;
}

.nav{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(18,9,31,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
  gap:16px;
  flex-wrap:wrap;
}

.logo{
  font-size:1.45rem;
  font-weight:800;
  letter-spacing:.3px;
}

.logo span{
  color:#ff7ac3;
}

.menu{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
}

.menu a{
  color:var(--muted);
  font-weight:600;
  transition:.25s;
}

.menu a:hover,
.menu a.active{
  color:#fff;
}

.hero{
  padding:56px 0 30px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
  align-items:center;
}

.badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(168,85,247,.14);
  border:1px solid rgba(168,85,247,.35);
  color:#efd7ff;
  font-weight:700;
  margin-bottom:16px;
}

h1{
  font-size:clamp(2rem,5vw,4.2rem);
  line-height:1.08;
  margin-bottom:16px;
}

h2{
  font-size:1.9rem;
  margin-bottom:18px;
}

h3{
  font-size:1.15rem;
  margin-bottom:10px;
}

.lead{
  color:var(--muted);
  max-width:60ch;
  font-size:1.05rem;
}

.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:14px 22px;
  border-radius:16px;
  font-weight:800;
  border:1px solid transparent;
  transition:.25s;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn.primary{
  background:linear-gradient(135deg,var(--p),var(--s));
  box-shadow:0 12px 30px rgba(236,72,153,.22);
}

.btn.secondary{
  background:transparent;
  border-color:rgba(255,255,255,.18);
}

.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.1);
  border-radius:28px;
  padding:20px;
  box-shadow:var(--shadow);
}

.hero-card{
  position:relative;
  overflow:hidden;
  min-height:420px;
  border-radius:24px;
  padding:24px;
  background:linear-gradient(135deg,#7c3aed 0%, #ec4899 100%);
}

.hero-card::after{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:220px;
  height:220px;
  background:rgba(255,255,255,.12);
  border-radius:50%;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:-90px auto auto -90px;
  width:240px;
  height:240px;
  background:rgba(255,255,255,.1);
  border-radius:50%;
}

.hero-card .content{
  position:relative;
  z-index:1;
}

.hero-card p{
  color:rgba(255,255,255,.9);
  max-width:300px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:22px;
}

.stat{
  background:rgba(18,9,31,.22);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:16px 12px;
  text-align:center;
}

.stat strong{
  display:block;
  font-size:1.35rem;
  margin-bottom:4px;
}

.section{
  padding:22px 0;
}

.grid{
  display:grid;
  gap:18px;
}

.grid.products{
  grid-template-columns:repeat(4,1fr);
}
.grid.two{
  grid-template-columns:repeat(2,1fr);
}

.grid.three{
  grid-template-columns:repeat(3,1fr);
}

.card{
  background:rgba(29,18,49,.92);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.card .img{
  height:190px;
  background:linear-gradient(135deg,#f472b6,#a855f7);
}

.card .content{
  padding:16px;
}

.price{
  color:#ffd7ef;
  font-weight:800;
  margin-top:10px;
  font-size:1.05rem;
}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(236,72,153,.14);
  color:#ffd7ea;
  font-size:.85rem;
  margin-bottom:10px;
}

.list{
  display:grid;
  gap:14px;
}

.list-item{
  padding:18px;
  border-radius:20px;
  background:rgba(29,18,49,.88);
  border:1px solid var(--line);
}

.form{
  display:grid;
  gap:14px;
}

.input, .textarea, .select{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:#170f27;
  color:var(--text);
  outline:none;
  font-family:inherit;
}

.textarea{
  min-height:140px;
  resize:vertical;
}

.footer{
  margin-top:30px;
  padding:28px 0 40px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:18px;
}

.small{
  color:var(--muted);
  font-size:.95rem;
}

.inline-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}

.tag{
  display:inline-block;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}

@media (max-width: 980px){
  .hero-grid,
  .grid.products,
  .grid.three,
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 720px){
  .hero-grid,
  .grid.products,
  .grid.two,
  .grid.three,
  .footer-grid,
  .stats{
    grid-template-columns:1fr;
  }

  .nav .container,
  .topbar .container{
    justify-content:center;
    text-align:center;
  }

  .menu{
    justify-content:center;
  }

  .hero{
    padding-top:36px;
  }
}