/*
Theme Name: Bourse Amoozesh - Frame by Frame Replica
Version: 4.0 (Final Precision)
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&display=swap');

:root {
  /* --- EXACT COLORS extracted from typical Dark Finance UI --- */
  --bg-dark: #020408;       /* سیاه متمایل به آبی خیلی تیره */
  --bg-card: rgba(13, 19, 31, 0.6); /* شیشه‌ای تیره */
  
  --primary-neon: #00f0ff;  /* آبی نئونی خالص */
  --secondary-blue: #0066ff; /* آبی استاندارد */
  
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.5);
  
  --container-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

body {
  background-color: var(--bg-dark);
  /* افکت نور مرکزی (Spotlight) دقیقاً مثل عکس */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  background-position: center top;
  color: var(--text-white);
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- HEADER --- */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary-neon); text-shadow: 0 0 15px var(--primary-neon); }

/* --- HERO SECTION (Split Layout) --- */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 5% 6rem;
  position: relative;
}

/* Right Side: Text */
.hero-text {
  flex: 1;
  max-width: 550px;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  color: var(--primary-neon);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.hero-heading {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  /* گرادینت متنی دقیق */
  background: linear-gradient(180deg, #ffffff 20%, #8db5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* دکمه با افکت نوری دقیق */
.btn-glow {
  display: inline-block;
  background: linear-gradient(92deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(0, 114, 255, 0.4);
  overflow: hidden;
}
/* افکت هایلایت سفید بالای دکمه */
.btn-glow::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  z-index: -1;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 114, 255, 0.6);
}

/* Left Side: Visual/Globe */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* هل دادن به سمت چپ */
  position: relative;
}

/* شبیه‌سازی دقیق کره زمین در عکس */
.globe-art {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 80, 255, 0.1), #020408 70%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 
    inset 0 0 60px rgba(0, 100, 255, 0.1),
    0 0 80px rgba(0, 100, 255, 0.05);
  position: relative;
  /* اضافه کردن خطوط شبکه روی کره */
  background-image: 
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(255,255,255,0.03) 40px);
}
/* حلقه دور کره */
.globe-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}

@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- STATS BAR --- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 1.5rem 0;
  border-block: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(10px);
}
.stat-box { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; display: block; }
.stat-lbl { color: var(--text-gray); font-size: 0.85rem; letter-spacing: 1px; }

/* --- CARDS GRID (The Precision Part) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* دقیقا سه ستون */
  gap: 2rem;
  max-width: var(--container-width);
  margin: 4rem auto 6rem;
  padding: 0 5%;
}

.pro-card {
  position: relative;
  background: var(--bg-card); /* زمینه شیشه‌ای */
  padding: 2.5rem 2rem;
  border-radius: 12px;
  /* تکنیک بوردر گرادینت */
  background-clip: padding-box;
  border: 1px solid transparent;
  transition: 0.4s;
}

/* بوردر نورانی دور کارت */
.pro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* خط نئونی بالای کارت */
.pro-card::after {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
  box-shadow: 0 0 10px var(--primary-neon);
  opacity: 0.6;
  transition: 0.4s;
}

.pro-card:hover {
  background: rgba(13, 19, 31, 0.9);
  transform: translateY(-5px);
}
.pro-card:hover::after { opacity: 1; width: 100%; left: 0; right: 0; }

.card-icon-box {
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon-box svg { width: 28px; fill: var(--primary-neon); }

.card-head { font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; font-weight: 700; }
.card-tag { display: block; font-size: 0.85rem; color: var(--secondary-blue); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.card-body { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.7; }

.card-action {
  color: #fff; font-size: 0.9rem; font-weight: 700; 
  display: inline-flex; align-items: center; gap: 5px;
}
.card-action:hover { color: var(--primary-neon); gap: 10px; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-wrapper { flex-direction: column-reverse; text-align: center; gap: 4rem; justify-content: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-heading { font-size: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center; width: 100%; }
  .stats-strip { flex-direction: column; gap: 2rem; }
}
