@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* CashProcess Direct Response Palette */
  --bg-color: #ffffff;
  --surface-color: #ffffff;
  --surface-border: #e5e7eb;
  --primary: #dc2626;      /* Strong Red */
  --secondary: #111827;    /* Deep Black */
  --accent: #f59e0b;       /* Warning/Highlight Orange/Gold */
  --text-main: #111827;    /* Black text */
  --text-muted: #374151;   /* Darker muted text */
  --gradient-text: linear-gradient(135deg, #dc2626, #991b1b); /* Red Gradient */
  --gradient-bg: linear-gradient(135deg, #dc2626, #b91c1c);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  position: relative;
}

/* Background Gradients */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3; /* Lighter opacity for light mode */
  animation: float 20s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(220, 38, 38, 0.1); top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: rgba(17, 24, 39, 0.05); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(220, 38, 38, 0.05); top: 40%; left: 50%; transform: translateX(-50%); animation-delay: -10s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-50px) scale(1.1); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
a {
  text-decoration: none;
  color: inherit;
}
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 8px; /* CashProcess style sharp corners */
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: .5s;
  z-index: -1;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

.btn-primary {
  background: var(--primary); /* Solid red */
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Forms */
.optin-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: right;
}
.optin-form input {
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.optin-form input::placeholder {
  color: #94a3b8;
}
.optin-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Light shadow for light mode */
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Darker shadow on hover */
  border-color: rgba(0,0,0,0.15);
}

/* Header */
header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
  color: var(--text-main);
}
.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Features Grid */
.features {
  padding: 5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Articles Section */
.articles-section {
  padding: 5rem 0;
  background: rgba(0,0,0,0.02);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-img {
  height: 200px;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.article-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-content h3 {
  font-size: 1.4rem;
}
.article-content p {
  flex: 1;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 8rem 0;
  text-align: center;
}
.cta-box {
  background: #ffffff;
  border: 2px solid var(--primary);
  padding: 4rem 2rem;
  border-radius: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}
footer p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding-top: 6rem; min-height: auto; padding-bottom: 3rem; }
  .hero-content { padding: 0 0.5rem; }
  .nav-links { display: none; }
  .logo { font-size: 1.4rem; }
  .features-grid, .articles-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; display: block; margin-bottom: 1rem; font-size: 1rem; padding: 0.9rem 1.5rem; }
  .glass-card { padding: 1.5rem; border-radius: 16px; }
  .feature-icon { font-size: 2.5rem; }
  .feature-card h3 { font-size: 1.3rem; }
  h2 { font-size: 1.8rem; }
  .container { padding: 0 1rem; }
  .features { padding: 3rem 0; }
  .articles-section { padding: 3rem 0; }
  .cta-section { padding: 4rem 0; }
  .cta-box { padding: 2.5rem 1.5rem; border-radius: 20px; }
  .cta-box h2 { font-size: 1.6rem; }
  .cta-box p { font-size: 1rem; }
  .article-img { height: 150px; font-size: 3rem; }
  .article-content { padding: 1.5rem; }
  .article-content h3 { font-size: 1.2rem; }

  /* Article pages responsive */
  .article-body { padding: 2rem 1rem !important; }
  .article-body h1 { font-size: 1.8rem !important; line-height: 1.5 !important; }
  .article-body h2 { font-size: 1.5rem !important; }
  .article-body h3 { font-size: 1.3rem !important; }
  .article-body p { font-size: 1.05rem !important; }
  .article-body ul, .article-body ol { font-size: 1.05rem !important; margin-right: 1rem !important; }
  .highlight-box, .pain-point, .solution-point { padding: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  .glass-card { padding: 1.2rem; }
  .cta-box h2 { font-size: 1.4rem; }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards ease-out;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Squeeze Page Specific Styles */
.squeeze-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}
.squeeze-content { text-align: right; }
.squeeze-form-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--surface-border);
}
.squeeze-bullets li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.squeeze-bullets li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.5rem;
}
@media (max-width: 900px) {
  .squeeze-layout { grid-template-columns: 1fr; gap: 2rem; }
}
