/* =====================
   VIPROW MODERN UI
   ===================== */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0f19;
  --card: #121826;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --border: #1f2937;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
}

/* BASE */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1b1f33, transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

/* WRAPPER */
.wrap {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 1.2rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand span {
  color: var(--primary);
}

nav a {
  margin-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

/* CARDS */
.card {
  background: linear-gradient(180deg, #121826, #0e1320);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

/* HERO */
.hero {
  text-align: center;
  padding: 3rem 2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.lede {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 2rem;
}

/* HERO IMAGE CENTER */
.hero-image {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 720px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* BUTTONS */
.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f97316);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.55);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* SECTION CTA */
.section-cta {
  margin-top: 2.2rem;
  text-align: center;
}

/* CTA INSIDE GRID - CENTERED & RESPONSIVE */
.grid .section-cta {
  grid-column: 1 / -1;
  /* ياخذ عرض الـ grid كامل */
  display: flex;
  justify-content: center;
  /* في الوسط */
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .section-cta .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* CTA TEXT */
.cta-text {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* CTA inside grid */
.grid .section-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .cta-text {
    font-size: 0.9rem;
  }

  .section-cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

/* MINI CARD */
.mini-card {
  background: #0e1424;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.mini-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
details {
  background: #0e1424;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 0.8rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 0.6rem;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* LEGAL */
.legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1.2rem;
  }

  nav {
    display: none;
  }
}