*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@font-face {
  font-family: "Arad";
  src: url("AradVF.ttf") format("truetype-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: #080C1B;
  color: #F4F7FF;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --bg-primary: #080C1B;
  --bg-secondary: #0B1120;
  --bg-surface: #0F162C;
  --text-primary: #F4F7FF;
  --text-secondary: #A8B0C5;
  --text-muted: #6B7591;
  --accent-cyan: #28D7D1;
  --accent-purple: #9B6CFF;
  --accent-green: #45D483;
  --border: rgba(168, 176, 197, 0.06);
  --border-strong: rgba(168, 176, 197, 0.15);
  --max-width: 1140px;
  --radius: 8px;
  --radius-sm: 6px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; border-bottom: 1px solid var(--border); }

:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent-cyan); color: var(--bg-primary);
  padding: 10px 18px; border-radius: var(--radius-sm);
  z-index: 100; font-weight: 600; font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 0.93rem; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--accent-cyan); color: var(--bg-primary); font-weight: 600; }
.btn-primary:hover { background: #46e7e1; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 27, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.75rem; color: var(--text-secondary); font-family: var(--mono); }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.15s ease; position: relative; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent-cyan);
  transform: scaleX(0); transform-origin: center; transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.hero {
  position: relative; padding: 100px 0 120px;
  background-image: radial-gradient(circle at 1px 1px, rgba(168,176,197,0.04) 1px, transparent 0);
  background-size: 28px 28px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan));
  opacity: 0.4;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem;
  color: var(--accent-cyan); font-family: var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid rgba(40, 215, 209, 0.2);
  border-radius: 3px; margin-bottom: 28px; background: rgba(40, 215, 209, 0.03);
}
.eyebrow::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(40, 215, 209, 0.12);
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 24px; line-height: 1.1; }
.hero h1 .line { display: block; }
.hero h1 .cyan { color: var(--accent-cyan); }
.hero h1 .purple { color: var(--accent-purple); }
.hero-sub { font-size: 1.22rem; color: var(--text-primary); font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.hero-desc { color: var(--text-secondary); font-size: 1rem; margin-bottom: 36px; max-width: 460px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.trust-indicators { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-indicators li { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.trust-indicators li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-green); }

.terminal {
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.terminal-header {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: rgba(255, 255, 255, 0.01); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); opacity: 0.45; }
.terminal-dot:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.terminal-dot:nth-child(2) { background: #febc2e; opacity: 0.6; }
.terminal-dot:nth-child(3) { background: #28c840; opacity: 0.6; }
.terminal-title { margin-left: 10px; font-size: 0.75rem; color: var(--text-muted); font-family: var(--mono); }
.terminal-body { padding: 22px 24px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.85; }
.term-line { color: var(--text-primary); }
.term-line + .term-line { margin-top: 10px; }
.term-output { color: var(--text-secondary); margin-top: 4px; }
.term-output + .term-line { margin-top: 10px; }
.term-output.success { color: var(--accent-green); }
.term-output.link { color: var(--accent-purple); }
.term-prompt { color: var(--accent-cyan); margin-right: 8px; font-weight: 600; }
.term-tree { margin-top: 10px; font-size: 0.83rem; color: var(--text-secondary); }
.term-tree-root { color: var(--text-primary); }
.term-tree-line { white-space: nowrap; }
.term-tree .branch { color: var(--text-muted); margin-right: 6px; }
.term-tree .dir { color: var(--accent-purple); }
.term-tree .muted { color: var(--text-muted); }
.term-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent-cyan); vertical-align: text-bottom;
  margin-left: 2px; animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.hero-tag {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,0.015); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.74rem;
  color: var(--text-secondary); font-family: var(--mono);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hero-tag:hover { border-color: var(--border-strong); color: var(--text-primary); }
.hero-tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-tag.cyan svg { color: var(--accent-cyan); }
.hero-tag.purple svg { color: var(--accent-purple); }
.hero-tag.green svg { color: var(--accent-green); }

.section-eyebrow { display: inline-block; font-size: 0.76rem; color: var(--accent-cyan); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.028em; margin-bottom: 18px; line-height: 1.2; }
.section-desc { color: var(--text-secondary); font-size: 1.02rem; max-width: 620px; margin-bottom: 56px; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card {
  background: rgba(255,255,255,0.015); padding: 28px 24px 30px;
  border-radius: var(--radius-sm); transition: background 0.2s ease;
}
.feature-card:hover { background: rgba(255,255,255,0.03); }
.feature-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  margin-bottom: 18px; color: var(--accent-cyan); background: rgba(40, 215, 209, 0.03);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 26px; left: 12.5%; right: 12.5%;
  height: 1px; background: linear-gradient(to right, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step-icon {
  width: 52px; height: 52px; margin: 0 auto 18px; display: flex;
  align-items: center; justify-content: center; background: var(--bg-primary);
  border: 1px solid var(--border-strong); border-radius: 50%; color: var(--accent-cyan);
}
.step-icon svg { width: 22px; height: 22px; }
.step-num { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.12em; }
.step h3 { font-size: 0.98rem; margin-bottom: 6px; font-weight: 600; }
.step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.dev-section { background: var(--bg-secondary); }
.dev-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.dev-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dev-features li {
  padding: 6px 12px; font-size: 0.8rem; font-family: var(--mono);
  border: 1px solid var(--border-strong); border-radius: 3px;
  color: var(--text-secondary); background: var(--bg-primary);
}
.dev-features li.accent { color: var(--accent-cyan); border-color: rgba(40, 215, 209, 0.3); background: rgba(40, 215, 209, 0.03); }
.dev-features li.accent-purple { color: var(--accent-purple); border-color: rgba(155, 108, 255, 0.3); background: rgba(155, 108, 255, 0.03); }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; }
.pricing-card {
  background: var(--bg-secondary); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; position: relative;
}
.pricing-card.current { border-color: rgba(40, 215, 209, 0.4); }
.pricing-card .badge {
  position: absolute; top: -10px; right: 24px; background: var(--accent-cyan);
  color: var(--bg-primary); font-size: 0.68rem; font-family: var(--mono);
  padding: 3px 9px; border-radius: 3px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
}
.pricing-card .tier { font-size: 0.78rem; font-family: var(--mono); color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.pricing-card.pro .tier { color: var(--accent-purple); }
.pricing-card h3 { font-size: 1.7rem; margin-bottom: 4px; font-weight: 600; }
.pricing-card .price { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; font-family: var(--mono); }
.pricing-card ul { margin-bottom: 28px; flex: 1; }
.pricing-card ul li { padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: '+'; color: var(--accent-green); font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }
.pricing-card.pro ul li::before { color: var(--text-muted); }

.philosophy { background: var(--bg-secondary); }
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 56px; flex-wrap: wrap; }
.flow-step {
  padding: 16px 22px; background: var(--bg-surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 0.86rem; font-family: var(--mono); text-align: center;
  min-width: 140px; position: relative;
}
.flow-step.accent-cyan { border-color: rgba(40, 215, 209, 0.4); color: var(--accent-cyan); background: rgba(40, 215, 209, 0.03); }
.flow-step.accent-purple { border-color: rgba(155, 108, 255, 0.4); color: var(--accent-purple); background: rgba(155, 108, 255, 0.03); }
.flow-step .label { display: block; font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.flow-arrow { color: var(--text-muted); font-family: var(--mono); font-size: 1rem; }

.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  padding: 22px 0; font-size: 1rem; font-weight: 500; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; transition: color 0.15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-cyan); }
.faq-list summary::after { content: '+'; font-family: var(--mono); font-size: 1.3rem; color: var(--accent-cyan); transition: transform 0.2s ease; flex-shrink: 0; width: 24px; text-align: center; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { color: var(--accent-cyan); }
.faq-list p { padding: 0 0 22px; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65; max-width: 680px; }

.final-cta { text-align: center; padding: 140px 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 1px; background: linear-gradient(to right, transparent, var(--accent-cyan), transparent); }
.final-cta h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 600; margin-bottom: 18px; letter-spacing: -0.03em; }
.final-cta p { color: var(--text-secondary); max-width: 540px; margin: 0 auto 36px; font-size: 1.02rem; }

.site-footer { padding: 64px 0 32px; background: var(--bg-primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 18px; }
.footer-terminal { display: inline-block; padding: 9px 13px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 0.78rem; color: var(--text-secondary); }
.footer-terminal .prompt { color: var(--accent-cyan); margin-right: 6px; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 18px; font-family: var(--mono); font-weight: 500; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-secondary); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-muted); font-family: var(--mono); }

.footer-langs {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--border); margin-bottom: 28px;
}
.footer-langs-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-family: var(--mono); }

.lang-menu { position: relative; }
.lang-menu details { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 3px;
  background: var(--bg-surface); font-size: 0.9rem; color: var(--text-primary);
  list-style: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.lang-menu summary::after { content: '▾'; font-family: var(--mono); color: var(--text-muted); transition: transform 0.15s ease; }
.lang-menu details[open] summary::after { transform: rotate(180deg); }
.lang-menu svg { width: 22px; height: 13px; border-radius: 2px; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }

.lang-menu-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 180px; background: var(--bg-secondary); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.lang-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 3px; font-size: 0.9rem;
  color: var(--text-secondary); transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu-list a:hover { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); }
.lang-menu-list a.active { color: var(--accent-cyan); background: rgba(40, 215, 209, 0.06); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .steps::before { display: none; }
  .dev-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) { .main-nav { display: none; } }
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 64px 0 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-tags { grid-template-columns: repeat(2, 1fr); }
  .header-inner .btn { padding: 9px 16px; font-size: 0.88rem; }
  .brand-sub { display: none; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .final-cta { padding: 96px 0; }
  .footer-bottom { font-size: 0.75rem; }
  .container { padding: 0 20px; }
  .terminal-body { padding: 18px 18px; font-size: 0.82rem; }
  .pricing-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .term-cursor { animation: none; opacity: 0.6; }
}

/* RTL */
html[dir="rtl"] {
  --mono: "Arad", Tahoma, ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
html[dir="rtl"] body {
  font-family: "Arad", Tahoma, "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Iranian Sans", "Helvetica Neue", Arial, sans-serif;
}
html[dir="rtl"] .terminal,
html[dir="rtl"] .terminal *,
html[dir="rtl"] .footer-terminal {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .brand-mark,
html[dir="rtl"] .brand-sub,
html[dir="rtl"] .step-num,
html[dir="rtl"] .pricing-card .tier,
html[dir="rtl"] .pricing-card .badge,
html[dir="rtl"] .footer-col h4,
html[dir="rtl"] .flow-step .label,
html[dir="rtl"] .footer-langs-label { letter-spacing: 0; }
