/* ═══════════════════════════════════════════════════════════
   Digiviora Studio Theme v3.0
   البالتة المطابقة للشعار: أزرق داكن + بنفسجي
   ═══════════════════════════════════════════════════════════ */

:root {
  /* الأساسيّات — مطابقة للشعار */
  --ink: #0a1740;              /* أزرق داكن جداً (مثل D في الشعار) */
  --ink-soft: #1a2557;         /* أزرق داكن أفتح للعمق */
  --paper: #faf9ff;            /* أبيض بهمسة بنفسجية */
  --cream: #f3f1fb;            /* خلفيّة قسم بهمسة بنفسجية */

  /* الألوان النابضة */
  --accent: #1e40af;           /* أزرق متوسّط (مثل V) */
  --accent-soft: #3b5fd9;      /* أزرق فاتح */
  --accent-purple: #6B47D9;    /* البنفسجي الرئيسي (مثل V يميناً) */
  --accent-purple-soft: #8B6FE6; /* بنفسجي فاتح */

  --line: #e3deef;             /* خط فاصل بهمسة بنفسجية */
  --status-available: #16a34a;
  --status-soon: #6B47D9;      /* بنفسجي بدلاً من أصفر */
  --status-dev: #6b7280;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
  font-family: Tahoma, Geneva, "DejaVu Sans", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-purple-soft); }
button { font-family: inherit; cursor: pointer; }

/* ───────────── Layout ───────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 3rem; }
}

.section {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

.section--dark { background: var(--ink); color: var(--paper); }
.section--cream { background: var(--cream); }

/* ───────────── Decorative ───────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 800px 600px at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 800px 600px at center, black 30%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

/* ───────────── Typography ───────────── */
.font-display {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: block;
}
.section--dark .section-eyebrow { color: var(--accent-purple-soft); }

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem 0;
}

/* Marker highlight - الآن بنفسجي بدل أصفر */
.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.marker::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  right: -0.1em;
  left: -0.1em;
  height: 0.35em;
  background: var(--accent-purple);
  opacity: 0.3;
  z-index: -1;
  transform: skewX(-3deg);
}

/* Gradient text - يطابق الشعار (أزرق → بنفسجي) */
.gradient-text {
  background: linear-gradient(120deg, #0a1740 0%, #1e40af 40%, #6B47D9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────── Header ───────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 249, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .site-nav { padding: 0 3rem; } }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.brand-logo-fallback {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-purple) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-weight: 900;
  font-size: 1.125rem;
}

.brand-name {
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.625rem;
  color: #6b7280;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .nav-menu { display: flex; } }

.nav-menu a {
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent-purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-menu a:hover { color: var(--accent-purple); }
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: bold;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--accent-purple);
  color: var(--paper);
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent-purple);
  color: var(--paper);
  gap: 0.75rem;
}

.btn--outline {
  background: white;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* الزر المميّز - بنفسجي بدل أصفر */
.btn--accent {
  background: var(--accent-purple);
  color: white;
}
.btn--accent:hover {
  background: var(--accent-purple-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10, 23, 64, 0.15);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding: 11rem 0 8rem; }
}

.hero-blob {
  position: absolute;
  top: 8rem;
  inset-inline-end: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30,64,175,0.15), rgba(107,71,217,0.15));
  filter: blur(60px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
}

.hero-tag-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 2fr 1fr; }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ───────────── Stats ───────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 5rem;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--paper);
  padding: 1.5rem;
}
@media (min-width: 1024px) { .stat { padding: 2rem; } }

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   PRODUCTS GRID
   ═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s, border-color 0.3s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -15px rgba(107, 71, 217, 0.25);
  border-color: var(--accent-purple);
}

.product-card--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

.product-card--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: white;
  border-color: transparent;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.status-badge--available {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.status-badge--soon {
  background: rgba(107, 71, 217, 0.12);
  color: #5538b8;
}

.status-badge--dev {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.product-card--featured .status-badge--available {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.product-card--featured .status-badge--soon {
  background: rgba(139, 111, 230, 0.2);
  color: #c4b3f5;
}

.status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--available .status-dot { animation: pulse 2s infinite; }

.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--cream);
  color: var(--accent-purple);
}

.product-card--featured .product-icon {
  background: var(--accent-purple);
  color: white;
}

.product-card--accent .product-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.product-tagline {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem;
  font-weight: 600;
}

.product-card--featured .product-tagline { color: rgba(255,255,255,0.6); }
.product-card--accent .product-tagline { color: rgba(255,255,255,0.85); }

.product-description {
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.product-card--featured .product-description { color: #d1d5db; }
.product-card--accent .product-description { color: rgba(255,255,255,0.9); }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.product-card--featured .product-meta { border-top-color: rgba(255,255,255,0.1); }
.product-card--accent .product-meta { border-top-color: rgba(255,255,255,0.2); }

.product-version {
  font-size: 0.75rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
  font-family: monospace;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: bold;
  font-size: 0.875rem;
  color: inherit;
  transition: gap 0.3s;
}

.product-link:hover { gap: 0.75rem; color: inherit; }

/* ───────────── Generic Cards ───────────── */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(107, 71, 217, 0.2);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card-icon--ink { background: var(--ink); color: var(--paper); }
.card-icon--blue { background: rgba(30, 64, 175, 0.1); color: var(--accent); }
.card-icon--purple { background: rgba(107, 71, 217, 0.12); color: var(--accent-purple); }
.card-icon--green { background: #dcfce7; color: #16a34a; }
.card-icon--rose { background: #ffe4e6; color: #e11d48; }
.card-icon--cyan { background: #cffafe; color: #0891b2; }

.card-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.card-text {
  color: #4b5563;
  margin: 0;
  line-height: 1.7;
}

/* ───────────── Why Studio (Bento) ───────────── */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento--big { grid-column: span 4; }
  .bento--medium { grid-column: span 3; }
  .bento--small { grid-column: span 2; }
}

/* ───────────── Pricing ───────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.pricing-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.pricing-card--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--accent-purple);
  position: relative;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.pricing-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #16a34a;
}

.pricing-card--featured .pricing-feature-icon { color: var(--accent-purple-soft); }

/* ───────────── Contact cards ───────────── */
.contact-card {
  display: block;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid;
  transition: all 0.2s;
  margin-bottom: 1rem;
  text-decoration: none;
}

.contact-card--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  color: var(--paper);
}
.contact-card--whatsapp:hover {
  background: #25D366;
  color: white;
}

.contact-card--email {
  background: rgba(107, 71, 217, 0.1);
  border-color: rgba(107, 71, 217, 0.3);
  color: var(--paper);
}
.contact-card--email:hover {
  background: var(--accent-purple);
  color: white;
}

/* ───────────── Footer ───────────── */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; text-align: start; } }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a { color: #4b5563; font-size: 0.875rem; text-decoration: none; }
.footer-list a:hover { color: var(--accent-purple); }

/* ───────────── Floating WhatsApp ───────────── */
.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.float-whatsapp:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

/* ───────────── Single Product Page ───────────── */
.product-hero {
  padding: 8rem 0 4rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.product-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.product-breadcrumb a { color: #4b5563; text-decoration: none; }
.product-breadcrumb a:hover { color: var(--accent-purple); }

.product-content {
  padding: 4rem 0 6rem;
}

.product-content-inner {
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.product-content-inner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.product-content-inner h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.product-content-inner p { margin: 0 0 1.25rem; color: #1f2937; }
.product-content-inner ul, .product-content-inner ol { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; }
.product-content-inner li { margin-bottom: 0.5rem; }

/* ───────────── Reveal ───────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

::selection {
  background: var(--accent-purple);
  color: white;
}

/* ───────────── WP essentials ───────────── */
.alignleft { float: right; margin-inline-start: 1rem; }
.alignright { float: left; margin-inline-end: 1rem; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px;
}

.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline-start: calc(50% - 50vw); }
