/* =============================================
   DAFOR — Premium Dark Theme
   Color identity: Purple #A855F7 → Blue #3B82F6
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Variables ---------- */
:root {
  --purple:        #A855F7;
  --purple-light:  #C084FC;
  --purple-dim:    rgba(168, 85, 247, 0.18);
  --blue:          #3B82F6;
  --blue-light:    #60A5FA;
  --blue-dim:      rgba(59, 130, 246, 0.15);

  --bg:            #07071A;
  --bg-2:          #0D0D24;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.07);
  --border-active: rgba(168, 85, 247, 0.35);

  --text-1: #F2F0FF;
  --text-2: rgba(242, 240, 255, 0.55);
  --text-3: rgba(242, 240, 255, 0.30);

  --gradient:      linear-gradient(135deg, #A855F7, #3B82F6);
  --gradient-text: linear-gradient(135deg, #C084FC 0%, #818CF8 50%, #60A5FA 100%);

  --font: 'Cairo', -apple-system, system-ui, sans-serif;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  28px;
  --r-2xl: 36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-11px) rotate(-1.2deg); }
  66%      { transform: translateY(-5px) rotate(0.8deg); }
}

@keyframes icon-glow {
  0%,100% { box-shadow: 0 0 50px rgba(168,85,247,.4), 0 0 100px rgba(168,85,247,.15), 0 24px 64px rgba(0,0,0,.6); }
  50%      { box-shadow: 0 0 70px rgba(59,130,246,.45), 0 0 140px rgba(59,130,246,.18), 0 24px 64px rgba(0,0,0,.6); }
}

@keyframes ring-out {
  0%   { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes blob {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(28px,-18px) scale(1.04); }
  50%  { transform: translate(-15px, 24px) scale(.96); }
  75%  { transform: translate(18px, 12px) scale(1.02); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.3); }
}

/* =============================================
   BACKGROUND LAYER
   ============================================= */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Dot grid */
.bg-layer::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(168,85,247,.08) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 20%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(168,85,247,.22) 0%, transparent 65%);
  top: -160px; right: -120px;
  animation: blob 15s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 65%);
  bottom: -80px; left: -80px;
  animation: blob 19s ease-in-out infinite reverse;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168,85,247,.1) 0%, transparent 65%);
  top: 42%; left: 44%;
  animation: blob 25s ease-in-out infinite 4s;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   LAYOUT
   ============================================= */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,26,.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: background .3s;
}
.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(168,85,247,.4);
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all .2s;
}
.nav-link:hover { color: var(--text-1); background: var(--surface-hover); }
.nav-link.active {
  color: var(--purple-light);
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.2);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
}

/* subtle radial fade at top */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at top, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Icon */
.hero-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 36px;
}
.ring {
  position: absolute;
  border: 1.5px solid rgba(168,85,247,.3);
  animation: ring-out 3.2s ease-out infinite;
  pointer-events: none;
}
.ring-1 {
  top: -14px; right: -14px; bottom: -14px; left: -14px;
  border-radius: 35px;
}
.ring-2 {
  top: -28px; right: -28px; bottom: -28px; left: -28px;
  border-radius: 43px;
  animation-delay: 1.6s;
}

.hero-icon {
  width: 148px;
  height: 148px;
  border-radius: 33px;
  position: relative;
  z-index: 2;
  animation: float 5.5s ease-in-out infinite, icon-glow 3.5s ease-in-out infinite;
  display: block;
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 900;
  letter-spacing: .03em;
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* CTA buttons */
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 30px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 8px 32px rgba(168,85,247,.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(168,85,247,.5);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: var(--surface-hover);
}

/* =============================================
   SECTION HEADING
   ============================================= */

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.section-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

/* =============================================
   GLASS CARD (single column)
   ============================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease,
              background .28s ease, box-shadow .28s ease;
}
/* gradient top line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .28s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.22);
  background: var(--surface-hover);
  box-shadow: 0 12px 48px rgba(168,85,247,.1);
}
.card:hover::before { opacity: 1; }

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cicon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.cicon.purple { background: rgba(168,85,247,.14); }
.cicon.blue   { background: rgba(59,130,246,.14); }
.cicon.green  { background: rgba(34,197,94,.14); }
.cicon.orange { background: rgba(249,115,22,.14); }
.cicon.pink   { background: rgba(236,72,153,.14); }
.cicon.cyan   { background: rgba(6,182,212,.14); }
.cicon.yellow { background: rgba(234,179,8,.14); }
.cicon.indigo { background: rgba(99,102,241,.14); }
.cicon.rose   { background: rgba(244,63,94,.14); }

.card-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}
.card-body {
  color: var(--text-2);
  font-size: .9rem;
  line-height: 2;
}
.card-body ul {
  list-style: none;
  padding: 0;
}
.card-body ul li {
  padding: 2px 0;
  padding-inline-start: 20px;
  position: relative;
}
.card-body ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  transform: translateY(-50%);
}
.card-body p + p { margin-top: 10px; }
.card-body strong { color: var(--text-1); font-weight: 600; }

/* =============================================
   FEATURE GRID (2-col)
   ============================================= */

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: transform .28s, border-color .28s, background .28s, box-shadow .28s;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .28s;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,.22);
  background: var(--surface-hover);
  box-shadow: 0 12px 48px rgba(168,85,247,.1);
}
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feat-card h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.feat-card p {
  color: var(--text-2);
  font-size: .86rem;
  line-height: 1.85;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: rgba(168,85,247,.3); }
.faq-btn {
  width: 100%;
  background: var(--surface);
  border: none;
  color: var(--text-1);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: right;
  direction: rtl;
  transition: background .2s;
}
.faq-btn:hover { background: var(--surface-hover); }
.faq-chevron {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(168,85,247,.2);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-body { max-height: 400px; }
.faq-body-inner {
  padding: 0 22px 18px;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 2;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact {
  margin-top: 8px;
  padding: 44px 36px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg,
    rgba(168,85,247,.1) 0%,
    rgba(59,130,246,.08) 100%
  );
  border: 1px solid rgba(168,85,247,.18);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -60%; left: -10%;
  width: 120%; height: 120%;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(168,85,247,.08) 0%, transparent 55%);
  pointer-events: none;
}
.contact h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}
.contact p {
  color: var(--text-2);
  font-size: .92rem;
  margin-bottom: 26px;
  position: relative;
}
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 34px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all .26s ease;
  box-shadow: 0 8px 32px rgba(168,85,247,.35);
  position: relative;
}
.email-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(168,85,247,.55);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  text-align: center;
  padding: 40px 0 0;
  color: var(--text-3);
  font-size: .82rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
footer a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
footer a:hover { color: var(--purple-light); }

/* =============================================
   PRIVACY SPECIFIC
   ============================================= */

.privacy-badge {
  display: inline-block;
  font-size: .8rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 32px;
}

/* =============================================
   UTILITIES
   ============================================= */

.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.mt-8  { margin-top: 32px; }
.spacer { height: 24px; }

/* =============================================
   RESPONSIVE — TOUCH DEVICES
   Disable hover lift effects on touch (they get "stuck")
   ============================================= */

@media (hover: none) {
  .card:hover,
  .feat-card:hover { transform: none; box-shadow: none; background: var(--surface); border-color: var(--border); }
  .card:hover::before,
  .feat-card:hover::before { opacity: 0; }
  .btn-primary:hover,
  .btn-ghost:hover,
  .email-btn:hover { transform: none; }
}

/* =============================================
   RESPONSIVE — MOBILE  ≤ 600px
   ============================================= */

@media (max-width: 600px) {
  /* Layout */
  .wrap { padding: 0 14px 64px; }

  /* Navbar */
  .nav-inner { height: 54px; padding: 0 14px; }
  .nav-brand  { font-size: .92rem; gap: 8px; }
  .nav-brand img { width: 30px; height: 30px; border-radius: 7px; }
  .nav-links { gap: 2px; }
  .nav-link { font-size: .78rem; padding: 5px 10px; }

  /* Hero */
  .hero { padding: 44px 0 34px; }
  .hero-icon-wrap { margin-bottom: 26px; }
  .hero-icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
  }
  /* Replace inset shorthand with explicit props for broader compat */
  .ring-1 {
    top: -10px; right: -10px; bottom: -10px; left: -10px;
    border-radius: 30px;
  }
  .ring-2 {
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    border-radius: 38px;
  }
  .hero-title  { font-size: 2.3rem; }
  .hero-sub    { font-size: .87rem; line-height: 1.6; margin-bottom: 26px; }
  .hero-btns   { flex-direction: column; align-items: stretch; padding: 0 4px; }
  .btn-primary,
  .btn-ghost   { justify-content: center; width: 100%; font-size: .9rem; padding: 13px 20px; }

  /* Section headings */
  .section-head { margin-bottom: 14px; padding-bottom: 12px; }
  .section-head h2 { font-size: 1.1rem; }

  /* Glass cards */
  .card {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .card-head { gap: 10px; margin-bottom: 10px; }
  .cicon { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }
  .card-head h3 { font-size: .9rem; }
  .card-body { font-size: .86rem; line-height: 1.85; }
  .card-body ul li { padding-inline-start: 16px; }

  /* Feature grid → single column */
  .feat-grid { grid-template-columns: 1fr; gap: 10px; }
  .feat-card { padding: 18px 16px; border-radius: 14px; }
  .feat-icon { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 12px; }
  .feat-card h3 { font-size: .9rem; margin-bottom: 6px; }
  .feat-card p  { font-size: .83rem; line-height: 1.75; }

  /* FAQ */
  .faq-item { border-radius: 12px; margin-bottom: 8px; }
  .faq-btn { padding: 14px 16px; font-size: .87rem; }
  .faq-chevron { width: 22px; height: 22px; font-size: .68rem; }
  .faq-body-inner { padding: 0 16px 14px; font-size: .86rem; }

  /* Contact */
  .contact { padding: 26px 16px; border-radius: var(--r-xl); }
  .contact h2 { font-size: 1.2rem; }
  .contact p  { font-size: .87rem; margin-bottom: 20px; }

  /* Email button — make it full-width and prevent overflow */
  .email-btn {
    width: 100%;
    justify-content: center;
    font-size: .83rem;
    padding: 13px 12px;
    letter-spacing: -.01em;
    word-break: break-all;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  /* Footer */
  footer { padding: 30px 0 0; font-size: .78rem; }
  .footer-links { gap: 16px; }

  /* Privacy */
  .privacy-badge { font-size: .74rem; }
}

/* =============================================
   RESPONSIVE — SMALL PHONES  ≤ 380px  (iPhone SE, older Android)
   ============================================= */

@media (max-width: 380px) {
  .nav-brand  { font-size: .86rem; }
  .nav-brand img { width: 26px; height: 26px; }
  .nav-link   { font-size: .72rem; padding: 4px 8px; }
  .hero-title { font-size: 2rem; }
  .hero-sub   { font-size: .82rem; }
  .section-head h2 { font-size: 1rem; }
  .card       { padding: 14px; }
  .cicon      { width: 36px; height: 36px; font-size: 1rem; }
  .email-btn  { font-size: .78rem; }
}
