/* styles.css */
:root {
  --bg: #0b1220;
  --surface: #0f172a;
  --card: #121a2e;
  --border: #1f2a44;
  --fg: #e6eefc;
  --muted: #9db0d1;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --ring: rgba(34, 211, 238, .35);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 8, 23, .55);
}

:root.light {
  --bg: #f7fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e6eaf2;
  --fg: #0b1220;
  --muted: #4b5563;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --ring: rgba(14, 165, 233, .25);
  --shadow: 0 10px 28px rgba(2, 8, 23, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Vazirmatn", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 80% -10%, rgba(14,165,233,.25), transparent 60%) , var(--bg);
  color: var(--fg);
  line-height: 1.8;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  color: var(--fg);
  padding: .75rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: white;
}
.btn.secondary { background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(14, 165, 233, .15)); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.xl { padding: 1rem 1.25rem; font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  padding: .75rem 1rem; background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--fg); }
.nav .brand .dot { color: var(--brand); }
.logo { width: 28px; height: 28px; fill: var(--brand); stroke: white; }
.links { display: flex; gap: 1rem; justify-self: center; }
.links a { color: var(--fg); border-radius: 10px; padding: .35rem .6rem; }
.links a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.actions { display: flex; gap: .5rem; justify-self: end; }
.menu { display: none; }

.mobile-menu {
  position: absolute; inset-inline: .75rem; top: 62px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; padding: .5rem;
}
.mobile-menu a { padding: .75rem; border-radius: 12px; color: var(--fg); }
.mobile-menu a:hover { background: rgba(255,255,255,.06); text-decoration: none; }

.hero {
  position: relative; padding: 6rem 1rem 2rem; overflow: clip;
}
.bg-blur {
  position: absolute; inset: -10%; filter: blur(90px);
  background: radial-gradient(800px 500px at 10% -10%, rgba(34, 211, 238, .18), transparent 60%),
              radial-gradient(800px 500px at 90% -10%, rgba(14, 165, 233, .18), transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.15;
  margin: 0;
}
.gradient {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { margin: 1rem auto 1.5rem; max-width: 750px; color: var(--muted); font-size: clamp(14px, 2.2vw, 18px); }
.cta { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  margin: 2rem auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; max-width: 900px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 14px; }

.hero-shot { margin: 2rem auto 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-shot img { width: 100%; display: block; }

.section { padding: 4rem 1rem; max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(22px, 3.5vw, 32px); margin: 0 0 2rem; }

.grid { display: grid; gap: 1rem; }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature h3 { margin-top: .2rem; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.media figcaption { color: var(--muted); margin-top: .5rem; }

.pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.price { display: grid; align-content: start; gap: .75rem; padding: 1.25rem; position: relative; }
.price .badge {
  position: absolute; top: -12px; inset-inline-start: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; padding: .35rem .6rem; border-radius: 999px; font-size: 12px; box-shadow: var(--shadow);
}
.popular { border-width: 2px; border-color: var(--brand); }
.price-num { font-weight: 800; font-size: 26px; }
.list { margin: 0; padding-inline-start: 1rem; color: var(--muted); }
.list li { margin: .25rem 0; }

.accordion details {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .6rem;
}
.accordion summary { cursor: pointer; font-weight: 600; }
.accordion .answer { color: var(--muted); padding-top: .5rem; }

.contact { text-align: center; }
.muted { color: var(--muted); }
.contact-actions { display: inline-flex; gap: .75rem; flex-wrap: wrap; }

.footer {
  text-align: center; padding: 2rem 1rem; color: var(--muted); border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}

[data-animate] {
  opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity .6s ease, transform .6s ease, box-shadow .2s ease;
}
.show { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

#themeToggle { font-size: 18px; line-height: 1; }
.icon-sun { display: none; }
:root.light .icon-sun { display: inline; }
:root.light .icon-moon { display: none; }

@media (max-width: 900px) {
  .links { display: none; }
  .menu { display: inline-flex; }
  .features, .gallery, .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .features, .gallery, .pricing { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .subtitle { padding: 0 .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { transition: none; }
}

/* focus styles */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* cards hover */
.card:hover { border-color: color-mix(in oklab, var(--brand) 30%, var(--border)); }

/* light surface for light mode header */
:root.light .nav { background: rgba(255, 255, 255, .7); }
