:root{
  --bg:#050505;
  --panel:#0c0c0d;
  --panel-2:#101011;
  --text:#f5f4f0;
  --text-muted:#8c8b87;
  --text-dim:#5f5e5b;
  --gold:#d4af37;
  --gold-bright:#f4e2a1;
  --gold-soft:rgba(212,175,55,0.14);
  --gold-line:rgba(212,175,55,0.35);
  --border:rgba(255,255,255,0.08);
  --border-soft:rgba(255,255,255,0.05);
  --radius:14px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html,body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', sans-serif;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
ul{ list-style:none; }

::selection{ background:var(--gold); color:#0a0a0a; }

/* ============ NAV ============ */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(5,5,5,0.7);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
.nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:18px;
  letter-spacing:-0.01em;
}
.logo-dot{ color:var(--gold); }
.nav-links{
  display:flex;
  gap:32px;
}
.nav-links a{
  font-size:14px;
  color:var(--text-muted);
  text-decoration:none;
  transition:color 0.2s ease;
}
.nav-links a:hover{ color:var(--text); }
.btn-nav{
  font-size:13px;
  padding:9px 18px;
  border-radius:8px;
  background:rgba(212,175,55,0.1);
  border:1px solid var(--gold-line);
  color:var(--gold-bright);
  text-decoration:none;
  transition:background 0.2s ease;
  white-space:nowrap;
}
.btn-nav:hover{ background:rgba(212,175,55,0.18); }

.lang-switch select{
  font-family:'Inter', sans-serif;
  font-size:13px;
  background:rgba(255,255,255,0.03);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
}
.lang-switch select:hover{ border-color:rgba(255,255,255,0.2); }
.lang-switch select:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

@media (max-width:860px){
  .nav-links{ display:none; }
}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:120px 24px 60px;
  overflow:hidden;
}

.aurora{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.aurora::before{
  content:"";
  position:absolute;
  top:-20%; left:50%;
  width:1100px; height:1100px;
  transform:translateX(-50%);
  background:radial-gradient(circle, var(--gold-soft) 0%, rgba(212,175,55,0.04) 40%, transparent 70%);
  filter:blur(40px);
  animation:drift 18s ease-in-out infinite alternate;
}
@keyframes drift{
  0%{ transform:translateX(-55%) translateY(0px) scale(1); }
  100%{ transform:translateX(-45%) translateY(30px) scale(1.08); }
}
.aurora-small::before{ width:700px; height:700px; top:-10%; }

.signal-wrap{
  position:absolute;
  left:0; right:0; top:58%;
  height:220px;
  z-index:0;
  opacity:0.55;
  pointer-events:none;
}
.signal-wrap svg{ width:100%; height:100%; }
.signal-path{
  fill:none;
  stroke:url(#goldGrad);
  stroke-width:1.4;
  stroke-linecap:round;
  filter:drop-shadow(0 0 6px rgba(212,175,55,0.45));
  stroke-dasharray:2400;
  stroke-dashoffset:2400;
  animation:draw 4.5s cubic-bezier(.6,0,.4,1) forwards, pulse 3.5s ease-in-out infinite 4.5s;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes pulse{ 0%,100%{ opacity:0.55; } 50%{ opacity:0.9; } }
.signal-dot{
  fill:var(--gold);
  filter:drop-shadow(0 0 8px rgba(212,175,55,0.9));
  opacity:0;
  animation:dotAppear 0.6s ease forwards 4.5s, dotPulse 2s ease-in-out infinite 5.1s;
}
@keyframes dotAppear{ to{ opacity:1; } }
@keyframes dotPulse{ 0%,100%{ r:4; } 50%{ r:6; } }

.content{ position:relative; z-index:2; max-width:880px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono', monospace;
  font-size:12px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
  border:1px solid var(--gold-line);
  background:rgba(212,175,55,0.06);
  padding:7px 14px;
  border-radius:100px;
  margin-bottom:32px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 8px var(--gold);
  animation:blink 1.6s ease-in-out infinite;
}
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.eyebrow-plain{
  display:inline-block;
  font-family:'JetBrains Mono', monospace;
  font-size:12px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
  margin-bottom:18px;
}

h1{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:clamp(34px, 5.4vw, 68px);
  line-height:1.1;
  letter-spacing:-0.02em;
}
h1 .accent{
  background:linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 45%, var(--gold) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.subhead{
  margin:26px auto 0;
  max-width:600px;
  font-size:18px;
  line-height:1.65;
  color:var(--text-muted);
}

.cta-row{
  margin-top:44px;
  display:flex; gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:15px;
  padding:15px 30px;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:none;
  transition:transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary{
  background:linear-gradient(180deg, #e8c765, var(--gold));
  color:#0a0a0a;
  box-shadow:0 0 0 1px rgba(212,175,55,0.4), 0 10px 30px -8px rgba(212,175,55,0.5);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 0 0 1px rgba(212,175,55,0.6), 0 14px 36px -6px rgba(212,175,55,0.65);
}
.btn-secondary{
  background:rgba(255,255,255,0.03);
  color:var(--text);
  border:1px solid var(--border);
  backdrop-filter:blur(6px);
}
.btn-secondary:hover{
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.18);
}
.btn-wide{ width:100%; justify-content:center; margin-top:8px; }
.btn-large{ padding:18px 38px; font-size:16px; margin-top:8px; }

.trust-row{
  margin-top:72px;
  display:flex; gap:48px;
  flex-wrap:wrap;
  justify-content:center;
}
.trust-item{
  text-align:left;
  border-left:1px solid var(--border);
  padding-left:14px;
  max-width:200px;
}
.trust-item .num{
  font-family:'JetBrains Mono', monospace;
  font-size:22px;
  font-weight:500;
}
.trust-item .label{
  font-size:12px;
  color:var(--text-muted);
  margin-top:2px;
}

/* ============ SECTIONS (shared) ============ */
.section{ padding:84px 24px; position:relative; }
.section-tight{ padding-top:0; }
.section-inner{ max-width:1100px; margin:0 auto; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:clamp(28px, 3.6vw, 42px);
  line-height:1.2;
  letter-spacing:-0.01em;
}
.section-sub{
  margin-top:16px;
  font-size:16px;
  color:var(--text-muted);
  line-height:1.6;
}

/* ============ WHAT IS MQL5 ============ */
.what-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:56px;
  align-items:center;
  padding:44px;
  background:var(--panel);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
}
.what-text h2{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.25;
  margin:14px 0 18px;
}
.what-text p{
  font-size:15px;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:14px;
}
.what-stats{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.what-stat{
  padding:18px 20px;
  border:1px solid var(--border-soft);
  border-radius:10px;
  background:var(--bg);
}
.what-stat-num{
  font-family:'JetBrains Mono', monospace;
  font-size:20px;
  color:var(--gold);
  font-weight:500;
}
.what-stat-label{
  font-size:12px;
  color:var(--text-muted);
  margin-top:4px;
}

@media (max-width:800px){
  .what-grid{ grid-template-columns:1fr; padding:28px; }
}

/* ============ STEPS ============ */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--border-soft);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  overflow:hidden;
}
.step{
  background:var(--panel);
  padding:36px 28px;
}
.step-num{
  font-family:'JetBrains Mono', monospace;
  font-size:13px;
  color:var(--gold);
  margin-bottom:20px;
}
.step h3{
  font-family:'Space Grotesk', sans-serif;
  font-size:19px;
  font-weight:600;
  margin-bottom:10px;
}
.step p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.6;
}

@media (max-width:900px){
  .steps{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .steps{ grid-template-columns:1fr; }
}

/* ============ OPPORTUNITY ============ */
.section-opportunity{
  background:var(--panel);
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
}
.opportunity-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.opportunity-text h2{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:clamp(28px, 3.6vw, 42px);
  line-height:1.18;
  margin-bottom:20px;
}
.opportunity-text p{
  color:var(--text-muted);
  font-size:16px;
  line-height:1.7;
  margin-bottom:16px;
}
.fine-print{
  font-size:13px !important;
  color:var(--text-dim) !important;
  border-left:2px solid var(--border);
  padding-left:14px;
}

.opportunity-math{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:44px 24px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
}
.math-row{ text-align:center; }
.math-num{
  display:block;
  font-family:'JetBrains Mono', monospace;
  font-weight:500;
  font-size:36px;
  color:var(--text);
}
.math-result .math-num{
  color:var(--gold);
  font-size:44px;
  text-shadow:0 0 24px rgba(212,175,55,0.35);
}
.math-label{
  font-size:12px;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.math-symbol{
  font-family:'Space Grotesk', sans-serif;
  font-size:20px;
  color:var(--text-dim);
}

@media (max-width:800px){
  .opportunity-grid{ grid-template-columns:1fr; }
}

/* ============ CONTROL SECTION ============ */
.control-section{ padding-top:0; }
.control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.control-card{
  padding:36px;
  border:1px solid var(--gold-line);
  background:linear-gradient(180deg, rgba(212,175,55,0.05), transparent);
  border-radius:var(--radius);
}
.control-card h3{
  font-family:'Space Grotesk', sans-serif;
  font-size:19px;
  font-weight:600;
  margin-bottom:12px;
  color:var(--gold-bright);
}
.control-card p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.7;
}
@media (max-width:700px){
  .control-grid{ grid-template-columns:1fr; }
}

/* ============ PROOF HIGHLIGHT (opportunity section) ============ */
.proof-highlight-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.proof-highlight{
  display:flex;
  align-items:center;
  gap:22px;
  padding:28px;
  border-left:2px solid var(--gold);
  background:var(--bg);
  border-radius:0 var(--radius) var(--radius) 0;
}
.proof-highlight-num{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:34px;
  color:var(--gold);
  flex-shrink:0;
  white-space:nowrap;
}
.proof-highlight-text{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.7;
}
.proof-highlight-text strong{ color:var(--text); font-weight:600; }

.proof-highlight-shot{ flex-direction:column; align-items:stretch; gap:16px; }
.proof-shot-wrap{
  background:#fff;
  border-radius:8px;
  padding:14px 16px;
  overflow:hidden;
}
.proof-shot{ width:100%; height:auto; display:block; }

.proof-highlight-chart{ flex-direction:column; align-items:stretch; gap:16px; }
.market-chart{ width:100%; height:130px; }
.chart-bar-a{ fill:rgba(212,175,55,0.55); }
.chart-bar-b{ fill:var(--gold); }
.chart-label{
  font-family:'JetBrains Mono', monospace;
  font-size:8px;
  fill:var(--text-muted);
}
.chart-price{
  font-family:'JetBrains Mono', monospace;
  font-size:8px;
  fill:var(--text);
}

@media (max-width:700px){
  .proof-highlight-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .proof-highlight{ flex-direction:column; align-items:flex-start; gap:12px; }
}

/* ============ INCLUDED ============ */
.included-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.included-item{
  padding:32px;
  background:var(--panel);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  transition:border-color 0.25s ease, transform 0.25s ease;
}
.included-item:hover{
  border-color:var(--gold-line);
  transform:translateY(-3px);
}
.included-item .icon{
  width:26px; height:26px;
  color:var(--gold);
  margin-bottom:20px;
}
.included-item h3{
  font-family:'Space Grotesk', sans-serif;
  font-size:17px;
  font-weight:600;
  margin-bottom:8px;
}
.included-item p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.6;
}

@media (max-width:900px){
  .included-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .included-grid{ grid-template-columns:1fr; }
}

/* ============ PROOF ============ */
.proof-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  text-align:center;
}
.proof-stat{
  padding:44px 24px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  background:var(--panel);
}
.proof-num{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:32px;
  color:var(--gold);
  margin-bottom:10px;
}
.proof-label{
  font-size:14px;
  color:var(--text-muted);
}
@media (max-width:700px){
  .proof-grid{ grid-template-columns:1fr; }
}

/* ============ PRICING ============ */
.pricing-card{
  max-width:480px;
  margin:0 auto;
  padding:44px;
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  border:1px solid var(--gold-line);
  border-radius:20px;
  box-shadow:0 20px 60px -20px rgba(212,175,55,0.15);
}
.pricing-card-head h3{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:22px;
  margin-bottom:10px;
}
.pricing-card-head p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.6;
  margin-bottom:28px;
}
.pricing-list{ margin-bottom:32px; }
.pricing-list li{
  position:relative;
  padding-left:26px;
  margin-bottom:14px;
  font-size:14px;
  color:var(--text);
  line-height:1.5;
}
.pricing-list li::before{
  content:"";
  position:absolute;
  left:0; top:6px;
  width:14px; height:14px;
  border-radius:50%;
  border:1.4px solid var(--gold);
  background:rgba(212,175,55,0.1);
}
.pricing-list li::after{
  content:"";
  position:absolute;
  left:4.5px; top:9.5px;
  width:5px; height:2.5px;
  border-left:1.4px solid var(--gold);
  border-bottom:1.4px solid var(--gold);
  transform:rotate(-45deg);
}
.pricing-note{
  margin-top:14px;
  font-size:12px;
  color:var(--text-dim);
  text-align:center;
}

/* ============ FAQ ============ */
.faq-list{
  max-width:760px;
  margin:0 auto;
  border-top:1px solid var(--border-soft);
}
.faq-item{ border-bottom:1px solid var(--border-soft); }
.faq-q{
  width:100%;
  background:none;
  border:none;
  color:var(--text);
  font-family:'Inter', sans-serif;
  font-size:16px;
  font-weight:500;
  text-align:left;
  padding:24px 4px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.faq-toggle{
  font-family:'Space Grotesk', sans-serif;
  font-size:20px;
  color:var(--gold);
  transition:transform 0.3s ease;
  flex-shrink:0;
}
.faq-item.open .faq-toggle{ transform:rotate(45deg); }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease;
}
.faq-a p{
  padding:0 4px 24px;
  font-size:14px;
  color:var(--text-muted);
  line-height:1.7;
  max-width:640px;
}

/* ============ FINAL CTA ============ */
.final-cta{
  position:relative;
  padding:100px 24px;
  text-align:center;
  overflow:hidden;
  border-top:1px solid var(--border-soft);
}
.final-cta-inner{ position:relative; z-index:2; max-width:640px; margin:0 auto; }
.final-cta h2{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:clamp(28px, 4vw, 44px);
  line-height:1.2;
  margin-bottom:18px;
}
.final-cta p{
  color:var(--text-muted);
  font-size:16px;
  margin-bottom:12px;
}

/* ============ FOOTER ============ */
.footer{
  border-top:1px solid var(--border-soft);
  padding:32px 24px;
}
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.footer-inner a{
  font-size:14px;
  color:var(--text-muted);
  text-decoration:none;
}
.footer-inner a:hover{ color:var(--gold); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal{
  opacity:0;
  animation:fadeUp 0.9s ease forwards;
}
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

.reveal-on-scroll{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.8s ease, transform 0.8s ease;
}
.reveal-on-scroll.is-visible{
  opacity:1;
  transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  .reveal-on-scroll{ opacity:1; transform:none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

@media (max-width:640px){
  .trust-row{ gap:28px; }
  .signal-wrap{ top:64%; height:160px; opacity:0.35; }
  .section{ padding:80px 20px; }
}

/* ============ RTL (Persian) ============ */
html[dir="rtl"] body{
  font-family: 'Vazirmatn', 'Inter', sans-serif;
}
html[dir="rtl"] .nav-inner{
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links{
  flex-direction: row-reverse;
}
html[dir="rtl"] .trust-item{
  border-left: none;
  border-right: 1px solid var(--border);
  padding-left: 0;
  padding-right: 14px;
  text-align: right;
}
html[dir="rtl"] .what-grid,
html[dir="rtl"] .opportunity-grid{
  direction: rtl;
}
html[dir="rtl"] .fine-print{
  border-left: none;
  border-right: 2px solid var(--border);
  padding-left: 0;
  padding-right: 14px;
}
html[dir="rtl"] .proof-highlight{
  border-left: none;
  border-right: 2px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}
html[dir="rtl"] .pricing-list li{
  padding-left: 0;
  padding-right: 26px;
}
html[dir="rtl"] .pricing-list li::before{
  left: auto;
  right: 0;
}
html[dir="rtl"] .pricing-list li::after{
  left: auto;
  right: 4.5px;
  transform: rotate(135deg);
}
html[dir="rtl"] .faq-q{
  text-align: right;
  flex-direction: row-reverse;
}
html[dir="rtl"] .step-num,
html[dir="rtl"] .proof-num,
html[dir="rtl"] .math-num,
html[dir="rtl"] .what-stat-num{
  direction: ltr;
  display: inline-block;
}
html[dir="rtl"] .control-grid,
html[dir="rtl"] .included-grid,
html[dir="rtl"] .steps,
html[dir="rtl"] .proof-grid,
html[dir="rtl"] .proof-highlight-grid,
html[dir="rtl"] .what-stats{
  direction: rtl;
}
