/* ═══════════════════════════════════════════
   ERPRed — assets/style.css
   ═══════════════════════════════════════════ */
:root {
  --red: #c0001a;
  --red-dark: #8b0012;
  --red-light: #ff1a35;
  --black: #0a0a0a;
  --dark: #111111;
  --card: #161616;
  --border: rgba(192,0,26,0.18);
  --muted: #888;
  --white: #f5f5f5;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 3px; color: var(--white); }
.logo span { color: var(--red); }
nav ul { list-style: none; display: flex; gap: 36px; }
nav ul a { color: #aaa; text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color .2s; }
nav ul a:hover { color: var(--white); }
.nav-cta { background: var(--red); color: #fff !important; padding: 8px 22px; border-radius: 4px; font-weight: 600 !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--red-light) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 60px 80px; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(192,0,26,0.12); border: 1px solid rgba(192,0,26,0.35); border-radius: 99px; padding: 6px 16px; font-size: 0.8rem; color: #ff6070; margin-bottom: 28px; }
.hero-badge::before { content: '●'; font-size: 0.5rem; color: var(--red); }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
h1 span { color: var(--red); }
.hero-sub { font-size: 1.05rem; color: #aaa; margin-bottom: 44px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary { background: var(--red); color: #fff; padding: 14px 32px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform .15s, background .2s; display: inline-block; }
.btn-primary:hover { background: var(--red-light); transform: translateY(-2px); }
.btn-ghost { border: 1px solid #333; color: var(--white); padding: 14px 32px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: border-color .2s, transform .15s; display: inline-block; }
.btn-ghost:hover { border-color: var(--red); transform: translateY(-2px); }

/* hero screen */
.hero-screen { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.screen-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.screen-bar span { width: 10px; height: 10px; border-radius: 50%; }
.screen-bar span:nth-child(1){background:#ff5f57;} .screen-bar span:nth-child(2){background:#ffbd2e;} .screen-bar span:nth-child(3){background:#28ca41;}
.screen-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--dark); border-radius: 10px; padding: 16px; border: 1px solid #222; }
.stat-card .label { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; }
.stat-card .value.red { color: var(--red); }
.stat-card .delta { font-size: 0.72rem; color: #4caf50; margin-top: 4px; }
.screen-bar2 { display: flex; gap: 8px; margin-bottom: 12px; }
.bar-item { height: 8px; border-radius: 99px; background: var(--dark); flex: 1; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--red); }

.hero-bg-circles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.hero-bg-circles::before { content: ''; position: absolute; top: -200px; left: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(192,0,26,0.12) 0%, transparent 70%); }
.hero-bg-circles::after { content: ''; position: absolute; bottom: -300px; right: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(192,0,26,0.07) 0%, transparent 70%); }

/* ── STATS BAR ── */
.stats-bar { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 60px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--red); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--muted); margin-top: 6px; }

/* ── SECTION BASE ── */
section { padding: 100px 60px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
h2 span { color: var(--red); }
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 60px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: #aaa; margin-bottom: 20px; }
.about-visual { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.about-list { list-style: none; }
.about-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #222; font-size: 0.92rem; color: #ccc; }
.about-list li:last-child { border-bottom: none; }
.about-list li::before { content: '✓'; min-width: 22px; height: 22px; background: rgba(192,0,26,0.15); color: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; margin-top: 2px; flex-shrink: 0; }

/* ── MODULES ── */
.modules-bg { background: var(--dark); }
.modules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.module-card { background: var(--card); border: 1px solid #222; border-radius: 12px; padding: 32px 28px; transition: border-color .2s, transform .15s; position: relative; overflow: hidden; }
.module-card:hover { border-color: var(--red); transform: translateY(-4px); }
.module-card::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle at top right, rgba(192,0,26,0.10) 0%, transparent 70%); }
.mod-icon { width: 48px; height: 48px; background: rgba(192,0,26,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.module-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.module-card p { font-size: 0.875rem; color: #888; line-height: 1.65; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.features-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid #222; border-radius: 10px; padding: 20px; transition: border-color .2s; }
.feature-item:hover { border-color: var(--red); }
.feat-icon { min-width: 44px; height: 44px; background: rgba(192,0,26,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.feat-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 5px; }
.feat-text p { font-size: 0.83rem; color: #888; }
.features-code { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.features-code-header { background: #1a1a1a; padding: 14px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #222; }
.features-code-header span { font-size: 0.8rem; color: var(--muted); }
.features-code-body { padding: 28px; }
.code-line { display: flex; gap: 16px; margin-bottom: 14px; }
.code-key { color: #ff8080; font-size: 0.83rem; min-width: 150px; }
.code-val { color: #80ff80; font-size: 0.83rem; }
.code-num { color: #80c8ff; }

/* ── PURCHASE ── */
.purchase-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.purchase-card { background: var(--card); border: 1px solid #222; border-radius: 12px; padding: 28px 20px; text-align: center; transition: border-color .2s, transform .15s; }
.purchase-card:hover { border-color: var(--red); transform: translateY(-4px); }
.purchase-card .p-icon { font-size: 2rem; margin-bottom: 14px; }
.purchase-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.purchase-card .p-price { color: var(--red); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.purchase-card p { font-size: 0.78rem; color: #777; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.price-card { background: var(--card); border: 1px solid #222; border-radius: 16px; padding: 40px 32px; display: flex; flex-direction: column; transition: border-color .2s, transform .15s; position: relative; overflow: hidden; }
.price-card:hover { transform: translateY(-6px); border-color: #333; }
.price-card.featured { border-color: var(--red); background: linear-gradient(160deg, #1e0008 0%, #161616 60%); }
.price-card.featured::before { content: 'الأكثر شعبية'; position: absolute; top: 16px; left: 20px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.price-title { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.price-amount { font-family: 'Bebas Neue', sans-serif; font-size: 3.6rem; line-height: 1; color: var(--white); margin-bottom: 4px; }
.price-amount small { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 1rem; color: var(--muted); }
.price-period { font-size: 0.8rem; color: var(--muted); margin-bottom: 28px; }
.price-features { list-style: none; flex: 1; margin-bottom: 32px; }
.price-features li { padding: 10px 0; border-bottom: 1px solid #222; font-size: 0.875rem; color: #ccc; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: '✓'; color: var(--red); font-weight: 700; }
.btn-plan { display: block; text-align: center; background: transparent; border: 1px solid var(--red); color: var(--red); padding: 13px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background .2s, color .2s; font-family: inherit; }
.btn-plan:hover, .price-card.featured .btn-plan { background: var(--red); color: #fff; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card { background: var(--card); border: 1px solid #222; border-radius: 14px; padding: 30px; }
.testi-stars { color: var(--red); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text { font-size: 0.9rem; color: #aaa; line-height: 1.7; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.testi-name { font-size: 0.9rem; font-weight: 600; }
.testi-role { font-size: 0.78rem; color: var(--muted); }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, #150005 0%, var(--black) 50%, #150005 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-section p { color: #aaa; max-width: 540px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.c-icon { width: 44px; height: 44px; background: rgba(192,0,26,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.c-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.c-value { font-size: 0.95rem; color: var(--white); }
.contact-form { background: var(--card); border: 1px solid #222; border-radius: 16px; padding: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; color: #aaa; margin-bottom: 7px; }
.req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--dark); border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 11px 16px; color: var(--white); font-family: inherit; font-size: 0.9rem;
  transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: #ff4444; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-err { display: block; font-size: 0.75rem; color: #ff6060; margin-top: 5px; min-height: 16px; }
.form-submit {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 14px; border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background .2s; margin-top: 6px;
}
.form-submit:hover:not(:disabled) { background: var(--red-light); }
.form-submit:disabled { background: #555; cursor: not-allowed; }

/* Honeypot — visually hidden */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Math captcha */
.captcha-group label { font-size: 0.9rem; color: #ccc; }
#captcha-q { font-weight: 700; color: var(--red); }

/* Form messages */
.form-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.form-msg.success { background: rgba(76,175,80,0.12); border: 1px solid #4caf50; color: #81c784; }
.form-msg.error { background: rgba(244,67,54,0.10); border: 1px solid #f44336; color: #e57373; }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 1px solid #1a1a1a; padding: 60px 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { color: #555; font-size: 0.875rem; margin-top: 14px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #555; text-decoration: none; font-size: 0.875rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid #1a1a1a; font-size: 0.8rem; color: #3a3a3a; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav ul { display: none; }
  section, .stats-bar, footer { padding: 60px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-grid, .about-grid, .features-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .modules-grid, .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
  .purchase-grid { grid-template-columns: repeat(2,1fr); }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Module card as link ── */
.module-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.module-link:hover { text-decoration: none !important; }
.module-link::after {
  content: 'اعرف المزيد ←';
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 14px;
  font-weight: 600;
  transition: gap .2s;
}
