/* ===== CSS Variables ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #00c9ff;
  --accent-glow: #00e5ff;
  --secondary: #6c63ff;
  --dark: #0a0e1a;
  --dark-card: #111827;
  --text: #e0e6ed;
  --text-muted: #8892a4;
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;
  --gradient-1: linear-gradient(135deg, #1a3a5c 0%, #0a0e1a 100%);
  --gradient-accent: linear-gradient(135deg, #00c9ff 0%, #6c63ff 100%);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-glow); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== Utility ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--dark);
  box-shadow: 0 4px 20px rgba(0,201,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,201,255,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
}
.glass-card:hover {
  border-color: rgba(0,201,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,201,255,0.1);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-bg.hero-home { background-image: url('_uploads/ai_72ea51f94b2493a8.jpg'); }
.hero-bg.hero-services { background-image: url('_uploads/ai_37c7e6d7787a984d.jpg'); }
.hero-bg.hero-funnel { background-image: url('_uploads/ai_39e2c64c2abb13c0.jpg'); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.7) 0%, rgba(10,14,26,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0,201,255,0.1);
  border: 1px solid rgba(0,201,255,0.3);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Mini Hero (sub-pages) ===== */
.mini-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.mini-hero .hero-bg { background-attachment: fixed; }
.mini-hero .hero-content { max-width: 700px; margin: 0 auto; }
.mini-hero h1 { font-size: 2.8rem; animation: fadeInUp 0.8s ease both; }
.mini-hero p { animation: fadeInUp 0.8s ease 0.2s both; }

/* ===== Features / Stats Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card { text-align: center; }
.feature-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
}
.stat-card h3 {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-card p { color: var(--text-muted); }

/* ===== Services Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card .service-num {
  font-size: 4rem;
  font-weight: 900;
  background: rgba(0,201,255,0.05);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 16px;
  left: 16px;
  line-height: 1;
  color: rgba(0,201,255,0.08);
  -webkit-text-fill-color: rgba(0,201,255,0.08);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.service-card .btn { padding: 10px 24px; font-size: 0.85rem; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card { position: relative; }
.testimonial-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card blockquote {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; color: var(--white); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.08;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  position: relative;
}
.cta-section .btn { position: relative; }

/* ===== Footer ===== */
.footer {
  background: rgba(10,14,26,0.95);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); margin-top: 12px; max-width: 300px; line-height: 1.8; }
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,201,255,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}
.form-message {
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 16px;
  font-weight: 600;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--success);
}
.form-message.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--error);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(0,201,255,0.2); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--accent);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Funnel Steps ===== */
.funnel-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.funnel-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity var(--transition);
}
.funnel-step-indicator.active { opacity: 1; }
.funnel-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.funnel-step-indicator.active .funnel-step-num {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--dark);
}
.funnel-step-label { font-weight: 600; font-size: 0.9rem; }
.funnel-panel { display: none; }
.funnel-panel.active { display: block; animation: fadeInUp 0.5s ease; }
.funnel-form { max-width: 600px; margin: 0 auto; }

/* ===== Quote Flow ===== */
.quote-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.quote-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  transition: all var(--transition);
}
.quote-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,201,255,0.4);
}
.quote-step { display: none; }
.quote-step.active { display: block; animation: fadeInUp 0.5s ease; }
.quote-form { max-width: 600px; margin: 0 auto; }
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.option-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.option-card:hover { border-color: rgba(0,201,255,0.3); }
.option-card.selected {
  border-color: var(--accent);
  background: rgba(0,201,255,0.08);
}
.option-card .option-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.option-card .option-label { font-weight: 600; color: var(--white); }
.quote-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ===== Privacy ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.privacy-content ul {
  padding-right: 24px;
  margin-bottom: 16px;
  list-style: disc;
}
.privacy-content li {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.8;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    gap: 24px;
    z-index: 999;
    animation: fadeInUp 0.3s ease;
  }
  .hamburger { display: flex; z-index: 1001; }
  .features-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .hero-stat h3 { font-size: 1.8rem; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .hero-bg { background-attachment: scroll; }
  .mini-hero .hero-bg { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 60px 0; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  .mini-hero { padding: 130px 0 60px; }
  .mini-hero h1 { font-size: 2rem; }
}
