:root {
  --bg-black: #050505;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  
  --accent-neon-purple: #8B00FF;
  --accent-neon-blue: #00D4FF;
  
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(24px);
  
  --font-main: 'Inter', sans-serif;
  --font-fa: 'Vazirmatn', sans-serif;
  
  --border-radius: 20px;
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; overflow: hidden; background: var(--bg-black);
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.25;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 450px; height: 450px; background: var(--accent-neon-purple); top: -10%; left: -10%; }
.orb-2 { width: 550px; height: 550px; background: var(--accent-neon-blue); bottom: -20%; right: -10%; animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 120px) scale(1.3); }
}

.fa-lang { font-family: var(--font-fa); direction: rtl; }

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 5%; position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5, 5, 5, 0.6); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-border);
}

.logo { font-size: 2rem; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #fff, #8B00FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo span { font-size: 1rem; padding: 3px 10px; background: rgba(255,255,255,0.1); border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; -webkit-text-fill-color: #fff; }

.lang-switch {
  text-decoration: none; color: var(--text-primary); padding: 0.7rem 1.4rem;
  border: 1px solid var(--glass-border); border-radius: 30px; background: var(--glass-bg);
  transition: all 0.3s ease; font-size: 1rem; font-weight: 700;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.05); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 0 20px; padding-top: 100px;
}

h1 { font-size: 5.5rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 900; background: linear-gradient(180deg, #FFFFFF 0%, #B0B0B0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fa-lang h1 { font-size: 4.5rem; }
.hero p { font-size: 1.4rem; color: var(--text-secondary); max-width: 750px; margin-bottom: 3rem; font-weight: 500; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 1.2rem 2.5rem; border-radius: 40px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; cursor: pointer; font-size: 1.2rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-neon-purple), var(--accent-neon-blue)); color: #fff; border: none; box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6); }
.btn-outline { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); transform: translateY(-3px); }

/* Social Share Bar */
.social-share { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.2); color: #fff; text-decoration: none; font-size: 1.4rem; transition: all 0.3s ease; backdrop-filter: var(--glass-blur); }
.social-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--accent-neon-blue); transform: translateY(-4px) scale(1.1); box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4); color: var(--accent-neon-blue); }

/* Typing Effect for Hero Terminal */
.hero-terminal { background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(0, 212, 255, 0.3); padding: 1.5rem 2rem; border-radius: 16px; font-family: 'Courier New', monospace; text-align: left; max-width: 700px; margin: 0 auto 3rem auto; box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15); position: relative; }
.hero-terminal::before { content: "• • •"; color: rgba(255,255,255,0.3); font-size: 2rem; line-height: 0; position: absolute; top: 15px; right: 20px; letter-spacing: 2px; }
.fa-lang .hero-terminal { direction: ltr; text-align: left; }
.typing-text { color: #00D4FF; border-right: 2px solid #00D4FF; white-space: nowrap; overflow: hidden; animation: typing 3s steps(40, end), blink-caret .75s step-end infinite; font-size: 1.1rem; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #00D4FF; } }

/* Supported Agents Band */
.agents-band { padding: 4rem 5%; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(139,0,255,0.1), rgba(0,0,0,0.8)); text-align: center; }
.agents-band p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
.agents-flex { display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem; }
.agent-badge { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: #fff; opacity: 0.6; transition: all 0.4s; filter: grayscale(100%); cursor: default; }
.agent-badge:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.agent-badge span { font-size: 1.8rem; }

/* Features */
.features, .how-it-works, .quickstart { padding: 8rem 5%; max-width: 1300px; margin: 0 auto; }
.section-title { text-align: center; font-size: 3.5rem; margin-bottom: 5rem; font-weight: 900; background: linear-gradient(90deg, #fff, var(--accent-neon-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fa-lang .section-title { font-size: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }

.glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 3.5rem 2.5rem; backdrop-filter: var(--glass-blur); transition: all 0.4s ease; position: relative; overflow: hidden; }
.glass-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent-neon-purple), var(--accent-neon-blue)); opacity: 0; transition: opacity 0.4s; }
.glass-card:hover { transform: translateY(-15px); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.glass-card:hover::before { opacity: 1; }
.card-icon { font-size: 3.5rem; margin-bottom: 2rem; display: inline-block; padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 0 20px rgba(255,255,255,0.05); }
.glass-card h3 { font-size: 1.8rem; margin-bottom: 1.2rem; color: var(--text-primary); font-weight: 800; }
.glass-card p { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.8; }

/* Magical Prompt Box (Installation) */
.prompt-box { background: rgba(0,0,0,0.8); border: 1px solid var(--accent-neon-blue); border-radius: 16px; padding: 2rem; margin-top: 2rem; position: relative; font-size: 1.1rem; line-height: 1.8; color: #fff; box-shadow: 0 0 30px rgba(0, 212, 255, 0.1); }
.prompt-box::after { content: "AI PROMPT"; position: absolute; top: -12px; left: 20px; background: var(--accent-neon-blue); color: #000; font-size: 0.8rem; font-weight: 900; padding: 2px 10px; border-radius: 10px; letter-spacing: 1px; }
.fa-lang .prompt-box::after { left: auto; right: 20px; content: "پرامپت هوش مصنوعی"; }
.prompt-box p { color: #fff; font-weight: 500; font-family: var(--font-fa); }
.copy-btn { margin-top: 1.5rem; width: 100%; padding: 1rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.copy-btn:hover { background: #fff; color: #000; }

.terminal { background: rgba(0, 0, 0, 0.8); border-radius: 16px; padding: 2rem; font-family: 'Courier New', monospace; text-align: left; border: 1px solid var(--glass-border); margin-top: 2rem; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.fa-lang .terminal { text-align: left; direction: ltr; }
.terminal::before { content: " "; display: block; height: 12px; width: 12px; border-radius: 50%; background: #ff5f56; box-shadow: 24px 0 0 #ffbd2e, 48px 0 0 #27c93f; margin-bottom: 1.5rem; }
.terminal code { color: #a8ff60; display: block; white-space: pre; font-size: 1.1rem; line-height: 1.8; }

/* FAQ Accordion */
.faq-section { padding: 4rem 5%; max-width: 900px; margin: 0 auto 8rem auto; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; margin-bottom: 1.5rem; overflow: hidden; backdrop-filter: var(--glass-blur); transition: all 0.3s ease; }
.faq-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.3); transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.faq-item details { width: 100%; }
.faq-item summary { padding: 2rem; font-size: 1.3rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 2rem; color: var(--accent-neon-blue); transition: transform 0.4s ease; font-weight: 300; }
.faq-item details[open] summary::after { transform: rotate(45deg); color: #ff5f56; }
.faq-answer { padding: 0 2rem 2rem 2rem; color: var(--text-secondary); line-height: 2; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 0.5rem; padding-top: 1.5rem; font-size: 1.15rem; }
.faq-answer strong { color: #fff; }

/* Footer */
footer { text-align: center; padding: 4rem 5%; border-top: 1px solid var(--glass-border); color: var(--text-secondary); background: rgba(0,0,0,0.5); font-size: 1.1rem; }
footer a { color: var(--accent-neon-blue); text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; text-shadow: 0 0 10px var(--accent-neon-blue); }

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  .fa-lang h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
  .typing-text { font-size: 0.9rem; white-space: normal; animation: none; border-right: none; }
  .card-icon { font-size: 2.5rem; }
}

.fade-in { opacity: 0; transform: translateY(40px); animation: fadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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