:root{
  --bg0:#070b14;
  --bg1:#0b1220;

  --card: rgba(255,255,255,.07);
  --card2: rgba(255,255,255,.05);

  --border: rgba(255,255,255,.12);

  --text:#eef3ff;
  --muted: rgba(238,243,255,.72);
  --text-muted: rgba(238,243,255,.72); /* توافق مع صفحات الأداة */

  --primary:#7c5cff;
  --success:#22c55e;
  --warn:#f59e0b;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --r:18px;
  --container: 1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Tajawal",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(124,92,255,.40), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height:100vh;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(var(--container), calc(100% - 32px)); margin:0 auto}
.muted{color:var(--muted)}
.hidden{display:none !important}
.text-center{text-align:center}

hr{border:none;border-top:1px solid var(--border);margin:18px 0}

.skip-link{
  position:absolute; right:12px; top:-80px;
  background:#111827; color:#fff;
  border:1px solid var(--border);
  padding:10px 12px; border-radius:10px;
  z-index:9999;
}
.skip-link:focus{top:12px}

/* Navbar */
.navbar{
  position:sticky; top:0; z-index:1000;
  background: rgba(10,14,25,.55);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.nav-container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  padding:14px 0;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.2px;
}
.logo-mark{
  width:38px;height:38px;display:grid;place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(124,92,255,.45), rgba(34,197,94,.25));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.logo-text .dot{color:rgba(238,243,255,.85)}
.nav-actions{display:flex;align-items:center;gap:10px}

.mobile-menu-btn{
  width:42px;height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.mobile-menu-btn:hover{background:rgba(255,255,255,.08)}

.nav-links{display:flex;align-items:center;gap:10px}
.nav-links a{
  padding:10px 12px;
  border-radius:12px;
  color:rgba(238,243,255,.85);
  border:1px solid transparent;
}
.nav-links a:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.08);
}
.nav-links a.active{
  background:rgba(124,92,255,.14);
  border-color:rgba(124,92,255,.28);
  color:#fff;
}
.nav-cta{
  margin-inline-start:6px;
  background:linear-gradient(135deg, rgba(124,92,255,.95), rgba(124,92,255,.65));
  border:1px solid rgba(124,92,255,.35) !important;
  color:#fff !important;
  display:flex;align-items:center;gap:10px;
}

/* Hero */
.hero{
  padding:52px 0 18px;
  text-align:center;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height:1.25;
}
.hero p{
  margin:0 auto;
  width:min(860px, calc(100% - 32px));
  color:var(--muted);
  font-size:1.05rem;
}

/* Cards */
.glass-card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:22px;
}
.section{margin:18px 0}

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(34,197,94,.55));
  border:1px solid rgba(34,197,94,.35);
  color:#04140a;
  padding:12px 18px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
}
.btn-primary:hover{filter:brightness(1.06)}

.btn-outline{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  color:var(--text);
  padding:12px 16px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
}
.btn-outline:hover{background:rgba(255,255,255,.08)}

.upload-buttons{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.btn-upload{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  cursor:pointer;
}
.btn-upload:hover{background:rgba(255,255,255,.09)}

/* Features */
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin: 18px 0 40px;
}
.feature-card{
  padding:18px;
  border-radius:var(--r);
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.feature-icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(124,92,255,.14);
  border: 1px solid rgba(124,92,255,.22);
  margin-bottom:10px;
}

/* Forms */
.form{display:grid;gap:12px}
.field{display:grid;gap:8px}
label{color:rgba(238,243,255,.88); font-weight:700}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
textarea{min-height:140px; resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color: rgba(124,92,255,.45);
  box-shadow: 0 0 0 4px rgba(124,92,255,.14);
}

/* Blog */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin:18px 0 44px;
}
.post-card{
  border:1px solid var(--border);
  border-radius:var(--r);
  overflow:hidden;
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.post-card .cover{
  height:160px;
  background:
    radial-gradient(600px 220px at 30% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(600px 220px at 80% 30%, rgba(34,197,94,.18), transparent 55%),
    rgba(255,255,255,.04);
  border-bottom:1px solid var(--border);
}
.post-card .body{padding:16px}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,243,255,.82);
  font-size:.85rem;
}
.post-meta{margin-top:10px; color:var(--muted); font-size:.9rem}

/* Prose */
.prose{line-height:1.95; color:rgba(238,243,255,.90)}
.prose h2,.prose h3{line-height:1.4}
.prose a{text-decoration:underline}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  background: rgba(5,7,12,.55);
  backdrop-filter: blur(10px);
  margin-top: 40px;
}
.footer-container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  padding:34px 0;
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap:18px;
}
.footer h3{margin:0 0 12px;font-size:1.05rem}
.footer-links a{
  display:block;
  padding:8px 0;
  color: rgba(238,243,255,.78);
}
.footer-links a:hover{color:#fff;text-decoration:underline}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.footer-bottom{
  border-top:1px solid var(--border);
  padding:14px 0;
  text-align:center;
  color: rgba(238,243,255,.65);
}

/* Cookie banner */
.cookie-banner{
  position: fixed;
  bottom: 14px;
  right: 14px;
  left: 14px;
  z-index: 2000;
  background: rgba(10,14,25,.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
}
.cookie-banner p{ margin:0; color: rgba(238,243,255,.80); font-size:.95rem; line-height:1.6; }
.cookie-actions{display:flex; gap:10px; flex-wrap:wrap}

/* Small */
@media (max-width: 980px){
  .features-grid{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .footer-container{grid-template-columns:1fr}
  .upload-buttons{grid-template-columns:1fr}

  .nav-links{
    position: fixed;
    inset: 72px 12px auto 12px;
    display:none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(10,14,25,.92);
    border:1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(14px);
  }
  .nav-links.open{display:flex}
  .cookie-banner{ flex-direction:column; }
}

/* Spinner */
@keyframes spin { 100% { transform: rotate(360deg); } }
.spinner{
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}