/* =========================
   1. VARIABLES & RESET
========================= */
:root {
  /* Colors - Deep Black & Gold */
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  
  --text-main: #f2f2f2;
  --text-muted: #a3a3a3;
  --text-dim: #525252;

  --gold-1: #bf953f;
  --gold-2: #fcf6ba; 
  --gold-3: #b38728;
  --gold-4: #fbf5b7;
  --gold-5: #aa771c;

  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 25%, var(--gold-3) 50%, var(--gold-4) 75%, var(--gold-5) 100%);
  --gold-text: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%); /* Alternative complex gold */
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(191, 149, 63, 0.3);

  --font-primary: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif; /* Kept clean as requested */

  --max-width: 1200px;
  --nav-height: 80px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.is-rtl { direction: rtl; text-align: right; }
body.is-rtl .nav-center { margin-left: 0; margin-right: auto; }

/* Noise Texture Overlay */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
}

/* Ambient Glow */
.gold-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(191,149,63,0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.top-center { top: -200px; left: 50%; transform: translateX(-50%); }

/* Typography */
h1, h2, h3, h4 { color: white; line-height: 1.1; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   2. NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.navbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img { height: 32px; width: auto; filter: contrast(1.1); }

.nav-center {
  display: flex;
  gap: 32px;
}

.nav-center a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.nav-center a:hover, .nav-center a.active { color: white; }
.nav-center a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 1px;
  background: var(--gold-grad); transition: width 0.3s ease;
}
.nav-center a:hover::after, .nav-center a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-toggle:hover { color: white; border-color: rgba(255,255,255,0.3); }

.nav-cta {
  background: white;
  color: black;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 100px;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }

/* Mobile Menu */
@media (max-width: 900px) {
  .nav-center {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: #0a0a0a; border-bottom: 1px solid var(--border-light);
    flex-direction: column; padding: 24px; gap: 16px; transform: translateY(-150%); transition: transform 0.4s var(--ease-out);
    opacity: 0;
  }
  .nav-center.open { transform: translateY(0); opacity: 1; }
  .hamburger { display: block; }
  .nav-cta { display: none; } /* Hide generic CTA on mobile nav, rely on hero */
  
  .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); }
}

/* =========================
   3. HERO
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 24px;
  z-index: 2;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.status-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 8px #22c55e; }

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: transparent;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; align-items: center; margin-bottom: 60px; }

.primary-btn {
  background: var(--gold-grad);
  color: black;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(191, 149, 63, 0.4);
}

.text-link {
  color: white;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--text-muted);
}
.text-link:hover { text-decoration-color: white; }

.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0.8;
}
.metric { display: flex; flex-direction: column; }
.metric-val { font-size: 1.25rem; font-weight: 700; color: white; }
.metric-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.sep { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

@media (max-width: 600px) {
  .hero-metrics { flex-direction: column; gap: 16px; }
  .sep { width: 40px; height: 1px; }
}


/* =========================
   4. GENERAL SECTIONS
========================= */
.section { padding: 100px 0; }
.alt-bg { background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 100%); }
.glow-bg { background: radial-gradient(circle at center, rgba(191,149,63,0.05) 0%, transparent 70%); }

.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -1px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* Cards */
.services-grid, .solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.glass-card, .sol-card, .price-card, .step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  transition: 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.glass-card:hover, .sol-card:hover, .price-card:hover, .step:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.card-icon { font-size: 2rem; margin-bottom: 20px; }
.glass-card h3, .sol-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.glass-card p, .sol-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.feature-list, .check-list { font-size: 0.9rem; color: var(--text-dim); }
.feature-list li, .check-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feature-list li::before, .check-list li::before {
  content: '•'; color: var(--gold-1); font-size: 1.2rem;
}

/* Solutions Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 50px;
  color: var(--text-muted);
}

/* CTA Box */
.solutions-cta { display: flex; justify-content: center; margin-top: 40px; }
.cta-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 800px;
  width: 100%;
}
.secondary-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 600;
  transition: 0.2s;
}
.secondary-btn:hover { background: white; color: black; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card.featured {
  border-color: var(--gold-1);
  background: linear-gradient(180deg, rgba(191,149,63,0.05) 0%, rgba(0,0,0,0) 100%);
}
.pop-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold-grad); color: black;
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase;
}
body.is-rtl .pop-badge { right: auto; left: 12px; }

.plan-name { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 8px; }
.price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.amount { font-size: 2.5rem; font-weight: 700; color: white; }
.currency { font-size: 1rem; color: var(--gold-1); font-weight: 700; }
.from { color: var(--text-dim); margin-right: 4px; font-size: 0.9rem; }

.full { display: block; width: 100%; text-align: center; margin-top: 24px; }
.outline-btn {
  display: block; width: 100%; text-align: center; padding: 12px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
  color: white; transition: 0.2s; margin-top: 24px;
}
.outline-btn:hover { border-color: white; background: rgba(255,255,255,0.05); }

.pricing-note { text-align: center; margin-top: 32px; color: var(--text-dim); font-size: 0.9rem; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
@media (max-width: 800px) { .process-steps { grid-template-columns: 1fr; } }

.step-num {
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px;
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 40px; border-top: 1px solid var(--border-light); }
.info-item { padding: 0 24px; border-right: 1px solid var(--border-light); }
.info-item:last-child { border: none; }
.info-item h4 { margin-bottom: 8px; font-size: 1rem; color: white; }
.info-item p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 700px) { 
  .info-grid { grid-template-columns: 1fr; gap: 24px; } 
  .info-item { border: none; padding: 0; }
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 500; color: #ddd;
  padding: 12px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 24px; height: 24px; position: relative;
}
.faq-item summary .icon::before, .faq-item summary .icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--gold-1);
  transform: translate(-50%, -50%); transition: 0.2s;
}
.faq-item summary .icon::before { width: 12px; height: 2px; }
.faq-item summary .icon::after { width: 2px; height: 12px; }
.faq-item[open] summary .icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-content p { color: var(--text-muted); line-height: 1.6; padding-top: 8px; }

/* Contact */
.contact-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .contact-container { grid-template-columns: 1fr; } }

.big-cta-title { font-size: 2.5rem; margin-bottom: 16px; }
.direct-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.direct-link { 
  display: flex; align-items: center; gap: 12px; 
  font-size: 1.1rem; color: var(--text-muted);
}
.direct-link:hover { color: var(--gold-1); }

/* Form */
.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 40px; border-radius: 24px;
}
.form-title { margin-bottom: 24px; }
.input-group { margin-bottom: 16px; position: relative; }
.input-group input, .input-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-light);
  padding: 16px;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none; border-color: var(--gold-1); background: rgba(0,0,0,0.5);
}
.input-group textarea { min-height: 120px; resize: vertical; }

.submit-btn {
  width: 100%; padding: 16px; 
  background: white; color: black; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 12px; cursor: pointer; transition: 0.2s;
}
.submit-btn:hover { background: var(--gold-2); }
.tiny-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  background: #020202;
}
.footer-content { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-logo { height: 28px; margin-bottom: 16px; opacity: 0.8; margin-left: auto; margin-right: auto; }
.footer-tag { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; 
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-dim);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--text-dim); }
.footer-socials a:hover { color: white; }

/* Util */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Popup */
.popup-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.popup-backdrop.open { opacity: 1; pointer-events: auto; }
.popup-dialog {
  background: #111; border: 1px solid var(--border-light); padding: 32px;
  border-radius: 16px; text-align: center; max-width: 400px;
  transform: scale(0.9); transition: 0.3s var(--ease-out);
}
.popup-backdrop.open .popup-dialog { transform: scale(1); }
.popup-close-btn {
  margin-top: 20px; padding: 8px 24px; background: rgba(255,255,255,0.1);
  color: white; border: none; border-radius: 8px; cursor: pointer;
}
.popup-close-btn:hover { background: rgba(255,255,255,0.2); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
