/* ==========================================================================
   NEXYNUS LITE — lightweight stylesheet (no Tailwind runtime, no 3D)
   Green/teal theme, mirrors the main site's look but minimal + fast.
   ========================================================================== */
:root {
  --bg: #080C0C; --bg-2: #0D1515; --surface: #111A1A;
  --border: rgba(16, 185, 129, 0.15); --border-strong: rgba(16, 185, 129, 0.4);
  --accent: #10B981; --accent-2: #059669; --accent-3: #84CC16; --accent-teal: #5EEAD4;
  --fg: #F0F5F0; --muted: #6B8076;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.lite-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 12, 0.9);
  border-bottom: 1px solid var(--border);
}
.lite-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); font-weight: 800; font-size: 1.1rem; }
.brand svg { width: 30px; height: 30px; }
.lite-nav { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; }
.lite-nav a { color: rgba(240,245,240,0.75); }
.lite-nav a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 20px rgba(16,185,129,.5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero (static, no canvas) ---------- */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.2; margin: 0 0 1rem; }
.text-gradient { background: linear-gradient(135deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.text-teal { color: var(--accent-teal); }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stats .stat b { font-size: 1.6rem; display: block; }
.hero-stats .stat span { font-size: 0.75rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ---------- Section tags + headings ---------- */
.section-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(94,234,212,0.4); border-radius: 100px; font-size: 11px; color: var(--accent-teal); font-family: 'JetBrains Mono', monospace; background: rgba(94,234,212,0.05); letter-spacing: 1px; }
.section-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent-teal); border-radius: 50%; }
.section { padding: 3.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; margin: 0.8rem 0 0; }

/* ---------- Ticker (simple CSS marquee) ---------- */
.ticker { overflow: hidden; white-space: nowrap; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); direction: ltr; }
.ticker-track { display: flex; width: max-content; padding: 10px 0; will-change: transform; animation: ticker-ltr 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 3rem; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg); direction: rtl; }
@keyframes ticker-ltr { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ---------- Cards (why-us / testimonials / blog) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.icon-box { width: 52px; height: 52px; border-radius: 13px; background: rgba(16,185,129,0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent); margin-bottom: 1rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Testimonial row */
.t-card .head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); }
.stars { color: var(--accent-3); font-size: 0.8rem; margin-bottom: 0.5rem; }

/* Blog cards */
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.blog-card .thumb { aspect-ratio: 16/9; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.blog-card .body { padding: 1.2rem; }
.blog-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.blog-card p { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.6rem; }
.blog-card .more { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 0.8rem; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; color: var(--fg); font-family: inherit; font-size: 0.98rem; font-weight: 700; text-align: right; padding: 1rem 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { display: none; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.88rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; color: var(--muted); }

/* ---------- Footer ---------- */
.lite-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 3rem; padding: 2.2rem 0 1.4rem; text-align: center; }
.lite-footer .f-brand { margin-bottom: 1rem; }
.lite-footer .f-toggle { margin-bottom: 1.2rem; }
.lite-footer .f-toggle .btn { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.lite-footer .f-links { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 1rem; }
.lite-footer .f-meta { color: var(--muted); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; }

/* ---------- Article (post.php) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.article h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.3; margin: 0 0 0.6rem; }
.article .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-content { color: var(--fg); font-size: 0.95rem; }
.article-content h2, .article-content h3 { margin: 1.6rem 0 0.6rem; }
.article-content p { margin: 0 0 1rem; }
.article-content figure { margin: 1.2rem 0; }
.article-content img { border-radius: 12px; }
.article-content ul { padding-right: 1.3rem; margin-bottom: 1rem; }
.article-content figcaption { color: var(--muted); font-size: 0.8rem; text-align: center; margin-top: 0.5rem; }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.center { text-align: center; }
