/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

:root {
  --bg: #05060b;
  --bg-alt: #0b0c14;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #ff8a1f;
  --primary-light: #ffb347;
  --primary-soft: rgba(255, 138, 31, 0.2);
  --border: rgba(55, 65, 81, 0.7);
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}

body.theme-light {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #111827;
  --text-muted: #6b7280;
  --primary: #e65c00;
  --primary-light: #ff8a1f;
  --primary-soft: rgba(230, 92, 0, 0.12);
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #020617; }
.section-soft { background: var(--bg-alt); }

.section-head, .section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.section-desc, .section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 11, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.theme-light .header { background: rgba(255,255,255,0.95); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.logo-img { height: 50px; width: auto; object-fit: contain; display: block; }
.logo-fallback { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--primary); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.95rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle-btn:hover { background: var(--primary-soft); border-color: var(--primary); }

.theme-icon-sun, .theme-icon-moon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.theme-icon-sun { background: #fbbf24; box-shadow: 0 0 0 2px var(--bg); }
.theme-icon-moon { display: none; background: #64748b; }
body.theme-light .theme-icon-sun { display: none; }
body.theme-light .theme-icon-moon { display: inline-block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  border-radius: 1px;
  transition: transform 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s;
}
.backdrop.visible { opacity: 1; pointer-events: auto; }

/* HERO */
.hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,138,31,0.12), transparent 60%),
    var(--bg);
}
body.theme-light .hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,138,31,0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero-title span { color: var(--primary-light); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.hero-features { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 36px; }
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
body.theme-light .hero-features li { background: #fff; }
.hero-features .icon-svg { flex-shrink: 0; color: var(--primary); }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #1a0d00;
  border: none;
  box-shadow: 0 8px 30px rgba(255,138,31,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,138,31,0.5); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary); }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  opacity: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card.visible { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.card-icon svg { display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.card-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 500;
}

/* WORKFLOW */
.workflow-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.workflow-head { font-size: 1.25rem; margin-bottom: 20px; text-align: center; }
.workflow-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(15,23,42,0.8);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  opacity: 0;
}
.workflow-step.visible { opacity: 1; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #1a0d00;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.workflow-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* CONTACT */
.contact-card {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.contact-left { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-logo { height: 80px; width: auto; object-fit: contain; }
.contact-logo-fallback { font-weight: 700; font-size: 2rem; color: var(--primary); }
.contact-right { flex: 1; }
.contact-title { font-size: 1.5rem; margin-bottom: 8px; }
.contact-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.contact-email {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--primary-light); border-color: var(--primary-light); }

/* FOOTER */
.footer { background: #020617; padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }
.footer-copy { color: var(--text-muted); }
.footer-link { color: var(--primary); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ABOUT */
.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-body { color: var(--text-muted); font-size: 0.98rem; line-height: 1.8; margin-bottom: 16px; }
.about-img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.team-card {
  background: rgba(15,23,42,0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.team-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.4s, transform 0.4s; }
.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #1a0d00;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 0.9rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.team-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    z-index: 90;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; transition: opacity 0.2s, transform 0.2s; }
  .nav-toggle { display: flex; }
  .hero { padding: 80px 0 60px; }
  .hero-features { flex-direction: column; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .contact-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .contact-right { text-align: center; }
  .about-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 24px, 600px); }
  .hero { padding: 60px 0 48px; }
  .hero-title { font-size: 1.9rem; }
  .contact-card { padding: 32px 24px; }
  .contact-logo { height: 60px; }
  .contact-email { font-size: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}