:root {
  --bg: #07090d;
  --bg-2: #0d1117;
  --panel: #111722;
  --line: #1f2a37;
  --text: #f4f6f8;
  --muted: #8b98a9;
  --green: #50fa7b;        /* Dracula green — زنده و خوانا */
  --green-dim: #2fdd68;    /* hover/تیره‌تر */
  --brand: #00ff2b;        /* نئون — برای درخشش و هایلایت */
  --cyan: #38bdf8;
  --sans: "Estedad", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Estedad", monospace;   /* اعداد فارسی از Estedad می‌آیند */
  --pixel: "Silkscreen", var(--mono);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(80,250,123,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,250,123,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); transition: .2s; cursor: pointer;
  background: transparent; color: var(--text); font-family: inherit;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--green); color: #04110a; border-color: var(--green); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(80,250,123,.45); transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,13,.75); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; direction: ltr; }
.menu { direction: rtl; }
.logo { font-family: var(--pixel); font-weight: 400; font-size: 17px; letter-spacing: 1px; }
.prompt, .accent { color: var(--green); }
.menu { display: flex; gap: 26px; font-size: 15px; }
.menu a { color: var(--muted); transition: .2s; }
.menu a:hover { color: var(--green); }
.badge { font-size: 10px; background: var(--green); color: #04110a; padding: 1px 6px; border-radius: 6px; margin-inline-start: 4px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 8px; padding: 2px 10px; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 90px 60px; }
.tag { color: var(--green); font-family: var(--pixel); font-size: 11px; letter-spacing: 1px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; line-height: 1.35; margin-block: 14px 18px; }
.glow { color: var(--brand); text-shadow: 0 0 20px rgba(0,255,43,.6), 0 0 44px rgba(80,250,123,.4); }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 30px 18px; }
.slogan { color: var(--muted); font-size: 13px; }

/* Window */
.window { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.win-bar { display: flex; align-items: center; justify-content: space-between; direction: ltr; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.win-title { font-size: 12px; color: var(--muted); }
.hero-term { box-shadow: 0 0 80px rgba(80,250,123,.08); }
.term { padding: 20px; min-height: 340px; font-size: 13.5px; line-height: 1.9; color: var(--text); white-space: pre-wrap; text-align: left; }
.term .g { color: var(--green); }
.term .c { color: var(--cyan); }
.term .m { color: var(--muted); }
.cursor { display: inline-block; width: 8px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stat { padding: 26px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border: 0; }
.stat b { display: block; font-size: 34px; color: var(--green); font-family: var(--mono); }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding-block: 90px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; margin-block: 8px; }
.section-head p { color: var(--muted); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.phase { padding: 26px; transition: .25s; }
.phase:hover { border-color: var(--green); transform: translateY(-4px); }
.phase-no { font-size: 38px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--green); }
.phase h3 { margin-block: 6px 12px; }
.phase ul { list-style: none; color: var(--muted); font-size: 14px; }
.phase li::before { content: "▹ "; color: var(--green); }

/* Courses */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 6px 16px; border-radius: 30px; cursor: pointer; font-family: inherit; }
.chip.active, .chip:hover { color: #04110a; background: var(--green); border-color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .25s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--green); box-shadow: 0 0 30px rgba(80,250,123,.1); transform: translateY(-4px); }
.card.hide { display: none; }
.icon { font-size: 30px; }
.card h3 { font-size: 18px; margin-block: 10px 6px; }
.card p { color: var(--muted); font-size: 14px; flex: 1; }
.meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--green); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border-inline-start: 2px solid var(--green); background: linear-gradient(to left, rgba(80,250,123,.06), transparent); border-radius: 4px; }
.step span { color: var(--green); font-size: 12px; }
.step h3 { margin-block: 6px; }
.step p { color: var(--muted); }

/* Flashcards */
.flash-wrap { max-width: 620px; margin-inline: auto; }
.flashcard { position: relative; height: 230px; perspective: 1000px; cursor: pointer; }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); backface-visibility: hidden; transition: transform .6s;
}
.face p { font-size: 20px; font-weight: 600; margin-top: 10px; }
.back { transform: rotateY(180deg); border-color: var(--green); }
.flashcard.flip .front { transform: rotateY(-180deg); }
.flashcard.flip .back { transform: rotateY(0); }
.flash-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.feat { padding: 24px; }
.feat p { color: var(--muted); font-size: 14px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: .25s; }
.post:hover { border-color: var(--cyan); transform: translateY(-4px); }
.post span { color: var(--cyan); font-size: 12px; }
.post h3 { margin-block: 8px 4px; }
.post p { color: var(--muted); font-size: 14px; }

/* CTA */
.cta { text-align: center; padding: 60px 24px; background: radial-gradient(circle at center, rgba(80,250,123,.12), var(--panel) 70%); }
.cta h2 { font-size: clamp(26px, 4vw, 42px); }
.cta p { color: var(--muted); margin-block: 8px 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 90px; padding-block: 34px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-ig { font-family: var(--mono); font-weight: 800; color: var(--green); letter-spacing: .5px; transition: .2s; }
.foot-ig:hover { text-shadow: 0 0 18px rgba(0,255,43,.5); }
.foot-links { display: flex; gap: 22px; color: var(--muted); }
.foot-links a:hover { color: var(--green); }
.small { font-size: 12px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* Page hero (inner pages) */
.page-hero { padding-block: 70px 20px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; margin-block: 12px; }
.page-hero p { color: var(--muted); max-width: 640px; margin-inline: auto; font-size: 18px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--green); }

/* Soon badge / banner */
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--mono); color: #ffcf5c; background: rgba(255,207,92,.1); border: 1px solid rgba(255,207,92,.35); padding: 2px 9px; border-radius: 20px; }
.soon-banner { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; text-align: center; background: rgba(255,207,92,.07); border: 1px dashed rgba(255,207,92,.4); color: #ffcf5c; padding: 14px 20px; border-radius: var(--radius); font-family: var(--mono); font-size: 14px; }

/* Track groups (courses page) */
.track { margin-bottom: 46px; }
.track-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.track-title h2 { font-size: 22px; }
.track-title .line { flex: 1; height: 1px; background: var(--line); }
.course-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .25s; display: flex; flex-direction: column; gap: 8px; }
.course-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 0 30px rgba(80,250,123,.08); }
.course-card h3 { font-size: 17px; line-height: 1.6; }
.course-card p { color: var(--muted); font-size: 14px; flex: 1; }
.course-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; }
.level { font-family: var(--mono); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.level.beg { color: var(--green); background: rgba(80,250,123,.1); }
.level.int { color: var(--cyan); background: rgba(56,189,248,.1); }
.level.adv { color: #ff7b72; background: rgba(255,123,114,.1); }
.lessons-count { color: var(--muted); font-family: var(--mono); }

/* Curriculum / accordion */
.curriculum { max-width: 820px; margin-inline: auto; }
.module { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--panel); }
.module-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; user-select: none; }
.module-head:hover { background: var(--bg-2); }
.module-head h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.module-head .num { font-family: var(--mono); color: var(--green); }
.module-head .arrow { transition: .3s; color: var(--muted); }
.module.open .arrow { transform: rotate(90deg); }
.module-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.module.open .module-body { max-height: 1200px; }
.module-body ul { list-style: none; padding: 4px 20px 18px; }
.module-body li { padding: 8px 0; border-top: 1px dashed var(--line); color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: 14px; }
.module-body li .n { font-family: var(--mono); color: var(--green); font-size: 12px; min-width: 28px; }
.module-body li.free { color: var(--text); }
.module-body li .free-tag { font-size: 10px; color: var(--green); border: 1px solid var(--green); border-radius: 5px; padding: 0 6px; margin-inline-start: auto; }

/* Pillars (roadmap) */
.pillars { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-inline: auto; }
.pillar { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: .25s; }
.pillar:hover { border-color: var(--green); }
.pillar .p-num { font-family: var(--mono); font-size: 28px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--green); min-width: 46px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 14px; }
.pillar .subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pillar .subs span { font-size: 12px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 30px auto 0; }
.path { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); text-align: center; }
.path h4 { color: var(--green); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--green); box-shadow: 0 0 40px rgba(80,250,123,.12); position: relative; }
.plan.featured::before { content: "پیشنهاد ما"; position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%); background: var(--green); color: #04110a; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 20px; }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--mono); font-size: 40px; font-weight: 800; color: var(--green); margin-block: 10px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 18px 0; flex: 1; }
.plan li { padding: 8px 0; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); }
.plan li::before { content: "✓ "; color: var(--green); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq .module-body ul { padding: 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; background: var(--panel); }
.faq-q { padding: 16px 0; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-q .arrow { color: var(--muted); transition: .3s; }
.faq-item.open .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 16px; }

/* Contact form */
.contact-wrap { max-width: 620px; margin-inline: auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 15px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.form-note { text-align: center; color: var(--muted); margin-top: 16px; font-size: 14px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin-inline: auto; }
.quote { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.quote p { font-size: 15px; }
.quote .who { color: var(--green); font-family: var(--mono); font-size: 13px; margin-top: 12px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .roadmap, .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border: 0; }
}
@media (max-width: 760px) {
  .menu {
    display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column;
    background: var(--bg-2); padding: 20px; border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .burger { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .roadmap, .cards, .steps, .features, .posts { grid-template-columns: 1fr; }
  .term { min-height: 260px; font-size: 12px; }
}
@media (max-width: 1000px) {
  .plans, .paths, .quotes { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pillar { flex-direction: column; gap: 8px; }
}
