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

/* ========== CSS VARIABLES ========== */
:root {
  --color-bg: #FDFAF6;
  --color-bg-alt: #FFF8F0;
  --color-surface: #FFFFFF;
  --color-primary: #1B7A5A;
  --color-primary-dark: #145C44;
  --color-primary-light: #E8F5EE;
  --color-accent: #E8913A;
  --color-accent-light: #FFF3E6;
  --color-text: #1A1A2E;
  --color-text-secondary: #5A5A72;
  --color-text-muted: #8E8EA0;
  --color-border: #E8E4DF;
  --color-success: #1B7A5A;
  --color-error: #D64545;
  --font-main: 'Cairo', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 2px 20px rgba(27, 122, 90, 0.06);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ========== DECORATIVE ========== */
.pattern-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, var(--color-primary) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: 0.07;
  z-index: 0;
}

/* ========== HEADER ========== */
.header {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(232, 228, 223, 0.5);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.header-cta {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(27, 122, 90, 0.3);
}

/* ========== HERO ========== */
.hero {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero .pattern-dots {
  top: 30px;
  left: -30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 22px;
  color: var(--color-text);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 100%;
  height: 8px;
  background: var(--color-accent);
  opacity: 0.25;
  border-radius: 4px;
  z-index: -1;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 620px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 122, 90, 0.3);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(-4px);
}

/* ========== WHO SECTION ========== */
.who-section {
  padding: 60px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--color-text);
  line-height: 1.4;
  span {
    color: var(--color-primary);
  }
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.who-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: all 0.3s ease;
}

.who-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.who-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.who-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.who-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 60px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--color-text);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========== WHY FREE ========== */
.why-free {
  padding: 60px 0;
}

.why-free-card {
  background: var(--color-accent-light);
  border: 1px solid rgba(232, 145, 58, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.why-free-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--color-text);
}

.why-free-card p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}

.why-free-card p:last-child {
  margin-bottom: 0;
}

/* ========== FORM SECTION ========== */
.form-section {
  padding: 70px 0 80px;
  position: relative;
}

.form-section .pattern-dots {
  bottom: 40px;
  right: -40px;
}

.form-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  left: -2px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all 0.3s ease;
  direction: rtl;
  text-align: right;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(27, 122, 90, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A5A72' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-left: 40px;
  cursor: pointer;
}

.form-group .input-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(27, 122, 90, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.submit-btn.loading .spinner {
  display: block;
}

.submit-btn.loading .btn-text {
  display: none;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.form-note svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
  display: none;
  text-align: center;
  padding: 50px 20px;
}

.success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.success-message h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 12px;
}

.success-message p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 450px;
  margin: 0 auto;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 60px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-content {
  max-width: 700px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========== FINAL CTA ========== */
.final-cta {
  padding: 70px 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.final-cta .hero-cta {
  opacity: 1;
  animation: none;
}

/* ========== ERROR TOAST ========== */
.error-toast {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-error);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(214, 69, 69, 0.3);
}

.error-toast.show {
  display: block;
  animation: slideUp 0.4s ease;
}

/* ========== FOOTER ========== */
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 4px;
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  span {
    color: var(--color-primary);
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero {
    padding: 50px 0 40px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .who-card {
    padding: 22px 18px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .step {
    padding: 20px;
    gap: 14px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .why-free-card {
    padding: 28px 20px;
  }

  .form-wrapper {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .form-title {
    font-size: 1.35rem;
  }

  .final-cta h2 {
    font-size: 1.6rem;
  }

  .final-cta .hero-cta {
    width: 100%;
    justify-content: center;
  }
}