/* =====================================================
   WP Dev Studio — styles.css
   Shared stylesheet for all pages — RTL / Persian
   ===================================================== */

/* ── فونت‌های محلی: YekanBakh برای عنوان‌ها ── */
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakhFaNum-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── فونت‌های محلی: Vazirmatn برای متن ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── CSS Variables ── */
:root {
  --bg:          #050810;
  --bg2:         #090d1a;
  --card:        #0c1220;
  --card-h:      #111b30;
  --cyan:        #00e5ff;
  --violet:      #7c3aed;
  --emerald:     #10b981;
  --amber:       #f59e0b;
  --rose:        #f43f5e;
  --text:        #e2e8f0;
  --text2:       #94a3b8;
  --muted:       #475569;
  --border:      rgba(0,229,255,.11);
  --borderh:     rgba(0,229,255,.35);
  --glow-c:      0 0 32px rgba(0,229,255,.18);
  --glow-v:      0 0 32px rgba(124,58,237,.18);
  --mono:        'Space Mono', monospace;
  --sans:        'Vazirmatn', sans-serif;
  --heading:     'YekanBakh', sans-serif;
  --ease:        cubic-bezier(.4,0,.2,1);
  --spring:      cubic-bezier(.34,1.56,.64,1);
  --r:           12px;
  --rl:          20px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.85;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .5s ease;
}
body.ready { opacity: 1; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }
::selection { background: rgba(0,229,255,.18); color: var(--cyan); }

/* ── Canvas ── */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: .72;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section, footer, header { position: relative; z-index: 1; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  letter-spacing: 0;
}

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .75rem;
  letter-spacing: 0; text-transform: none;
  color: var(--cyan);
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.2);
  padding: .28rem .8rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.tag::before { content: '//'; opacity: .5; margin-left: .25rem; }
.highlight { color: var(--cyan); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--heading); font-size: clamp(1.9rem,4vw,3rem);
  font-weight: 800; line-height: 1.25; letter-spacing: 0;
  margin-bottom: .8rem;
}
.section-sub { color: var(--text2); font-size: 1rem; max-width: 520px; margin: 0 auto; font-family: var(--sans); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .9rem; letter-spacing: 0;
  padding: .74rem 1.6rem; border-radius: 6px;
  border: none; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
  transform: translateX(101%);
  transition: transform .4s var(--ease);
}
.btn:hover::after { transform: translateX(0); }

.btn-primary  { background: var(--cyan);    color: #050810; font-weight: 700; }
.btn-primary:hover  { box-shadow: 0 0 28px rgba(0,229,255,.5); transform: translateY(-2px); }

.btn-outline  { background: transparent; color: var(--cyan); border: 1px solid var(--borderh); }
.btn-outline:hover  { background: rgba(0,229,255,.07); transform: translateY(-2px); }

.btn-ghost    { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover    { color: var(--text); border-color: var(--borderh); }

.btn-emerald  { background: var(--emerald); color: #fff; font-weight: 700; }
.btn-emerald:hover  { box-shadow: 0 0 28px rgba(16,185,129,.5); transform: translateY(-2px); }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(5,8,16,.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--border); padding: .65rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: .55rem;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .82; }
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg,var(--cyan),var(--violet));
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: .95rem; flex-shrink: 0;
}
.logo-dim { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: .9rem; letter-spacing: 0;
  transition: color .22s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; right: 0; width: 0; height: 1px;
  background: var(--cyan); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active-link { color: var(--cyan); }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-cta { margin-right: 1rem; margin-left: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .32s var(--ease), opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav — clip-path از سمت چپ در RTL */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(5,8,16,.97); backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.8rem;
  clip-path: circle(0% at 44px 44px);
  transition: clip-path .55s var(--spring);
  pointer-events: none;
}
.mobile-nav.open {
  clip-path: circle(160% at 44px 44px);
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--heading); font-size: 1.8rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(22px);
  transition: color .25s, opacity .38s, transform .38s var(--spring);
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: .06s; }
.mobile-nav.open a:nth-child(2) { transition-delay: .11s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .16s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .21s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .26s; }
.mobile-nav.open a:nth-child(6) { transition-delay: .31s; }
.mobile-nav a:hover { color: var(--cyan); }

/* ── Hero ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 4rem; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-eyebrow {
  font-family: var(--sans); font-size: .85rem;
  letter-spacing: 0; text-transform: none;
  color: var(--cyan); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--cyan);
}
.hero-title {
  font-family: var(--heading); font-weight: 800;
  font-size: clamp(2.4rem,5vw,4.2rem);
  line-height: 1.25; letter-spacing: 0;
  margin-bottom: 1.4rem;
}
.hero-title .line2 {
  background: linear-gradient(90deg,var(--cyan),var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { color: var(--text2); font-size: 1rem; max-width: 460px; line-height: 1.9; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat-num {
  font-family: var(--heading); font-size: 1.7rem; font-weight: 700;
  color: var(--text); line-height: 1; display: block;
}
.stat-label { font-size: .8rem; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: .22rem; display: block; }

/* Terminal */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-terminal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; width: 100%;
  box-shadow: var(--glow-c), 0 40px 80px rgba(0,0,0,.45);
}
.terminal-bar {
  background: rgba(255,255,255,.035); border-bottom: 1px solid var(--border);
  padding: .7rem 1.2rem; display: flex; align-items: center; gap: .5rem;
  direction: ltr;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #ffbd2e; } .dot-g { background: #28c840; }
.terminal-title { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-right: auto; margin-left: 0; }
.terminal-body {
  padding: 1.4rem; font-family: var(--mono); font-size: .8rem;
  line-height: 2; direction: ltr; unicode-bidi: embed;
}
.t-line { display: flex; gap: .7rem; align-items: baseline; }
.t-prompt { color: var(--emerald); flex-shrink: 0; }
.t-cmd { color: var(--text); }
.t-out { color: var(--cyan); padding-right: 1.1rem; }
.t-out.ok { color: var(--emerald); }
.t-out.info { color: var(--amber); }
.t-blank { height: .45rem; }
.cursor {
  display: inline-block; width: 8px; height: 13px;
  background: var(--cyan); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero badges */
.hero-badge {
  position: absolute; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .55rem .95rem; font-family: var(--sans); font-size: .82rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); white-space: nowrap;
  will-change: transform;
}
.hero-badge.b1 { top: -1rem; left: -2rem; right: auto; }
.hero-badge.b2 { bottom: 0; right: -2rem; left: auto; }
.bdot { width: 8px; height: 8px; border-radius: 50%; }
.bdot-g { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.bdot-c { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

/* ── Marquee ── */
.marquee-section {
  padding: 1.6rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); overflow: hidden; z-index: 1;
  cursor: default;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 3.2rem; width: max-content;
  animation: marquee 70s linear infinite;
  will-change: transform;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--sans); font-size: .85rem; color: var(--muted);
  letter-spacing: 0; display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0; padding: .22rem .3rem;
  transition: color .45s cubic-bezier(.4,0,.2,1), text-shadow .45s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}
.marquee-item::before {
  content: '◆'; color: rgba(0,229,255,.4); font-size: .42rem;
  transition: color .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.marquee-section:hover .marquee-item { color: rgba(71,85,105,.6); }
.marquee-section:hover .marquee-item:hover { color: var(--cyan); text-shadow: 0 0 18px rgba(0,229,255,.7), 0 0 32px rgba(0,229,255,.25); transform: translateY(-1px); }
.marquee-section:hover .marquee-item:hover::before { color: var(--cyan); transform: scale(1.6) rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Cards ── */
.plugins-section { padding: 6rem 0; }
.services-section { padding: 6rem 0; background: linear-gradient(180deg,transparent,rgba(124,58,237,.025),transparent); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.8rem; }
.filter-tab {
  font-family: var(--sans); font-size: .82rem; letter-spacing: 0;
  padding: .45rem 1.15rem; border-radius: 4px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .25s var(--ease);
}
.filter-tab:hover, .filter-tab.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,.06); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(295px,1fr)); gap: 1.5rem; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(0,229,255,.04),transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--borderh); background: var(--card-h); box-shadow: var(--glow-c), 0 20px 40px rgba(0,0,0,.3); }
.card:hover::before { opacity: 1; }

.card-icon {
  height: 135px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg,rgba(0,229,255,.06),rgba(124,58,237,.06));
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease);
}
.card:hover .card-icon { transform: scale(1.04); }
.card-icon::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 110%,rgba(0,229,255,.08),transparent 65%);
}
.card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.card-category { font-family: var(--sans); font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.card-badge { font-family: var(--sans); font-size: .7rem; padding: .18rem .55rem; border-radius: 3px; font-weight: 700; }
.badge-free { background: rgba(16,185,129,.13); color: var(--emerald); border: 1px solid rgba(16,185,129,.28); }
.badge-paid { background: rgba(245,158,11,.13); color: var(--amber); border: 1px solid rgba(245,158,11,.28); }
.badge-svc  { background: rgba(124,58,237,.13); color: #a78bfa; border: 1px solid rgba(124,58,237,.28); }
.card-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: .55rem; color: var(--text); }
.card-desc { font-size: .9rem; color: var(--text2); line-height: 1.75; flex: 1; margin-bottom: 1.1rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: var(--sans); font-size: .88rem; color: var(--muted); }
.card-price strong { color: var(--text); font-size: .96rem; }
.card-btn {
  font-family: var(--sans); font-size: .8rem; color: var(--cyan);
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2);
  padding: .38rem .85rem; border-radius: 4px; cursor: pointer;
  transition: all .25s var(--ease); display: flex; align-items: center; gap: .35rem;
}
.card-btn:hover { background: rgba(0,229,255,.15); border-color: var(--cyan); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,8,16,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card); border: 1px solid var(--borderh);
  border-radius: var(--rl); width: 100%; max-width: 660px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--glow-c), 0 60px 120px rgba(0,0,0,.6);
}
.modal-header {
  position: sticky; top: 0; background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem; z-index: 1;
}
.modal-icon {
  width: 54px; height: 54px; border-radius: 12px; font-size: 1.7rem;
  background: linear-gradient(135deg,rgba(0,229,255,.09),rgba(124,58,237,.09));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-header-text { flex: 1; }
.modal-title { font-family: var(--heading); font-size: 1.25rem; font-weight: 800; margin-bottom: .22rem; }
.modal-subtitle { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.modal-close {
  background: none; border: 1px solid var(--border); color: var(--muted);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .22s var(--ease);
}
.modal-close:hover { border-color: var(--borderh); color: var(--text); background: rgba(255,255,255,.04); }
.modal-body { padding: 1.5rem; }
.modal-desc { color: var(--text2); font-size: .95rem; line-height: 1.9; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.modal-section-title { font-family: var(--sans); font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: .7rem; }
.modal-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
  margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border);
}
.feature-item { display: flex; align-items: baseline; gap: .45rem; font-size: .9rem; color: var(--text2); }
.feature-item::before { content: '←'; color: var(--cyan); font-family: var(--mono); font-size: .72rem; flex-shrink: 0; }
.modal-pricing {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: rgba(0,229,255,.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.4rem; margin-bottom: 1.4rem;
}
.modal-price-label { font-family: var(--sans); font-size: .75rem; letter-spacing: 0; color: var(--muted); text-transform: none; margin-bottom: .18rem; }
.modal-price-amount { font-family: var(--heading); font-size: clamp(1.15rem, 4vw, 1.6rem); font-weight: 800; color: var(--text); line-height: 1.1; word-break: break-all; }
.modal-price-amount.free { color: var(--emerald); }
.modal-price-cycle { font-family: var(--sans); font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.modal-actions { display: flex; gap: .65rem; flex-wrap: wrap; flex-shrink: 0; align-self: center; }
.modal-actions .btn { flex: 1; min-width: 100px; justify-content: center; font-size: .82rem; padding: .7rem 1rem; }

/* ── Service Cards ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.5rem; }
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 1.9rem; cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden; will-change: transform;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,var(--cyan),var(--violet));
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.service-card:hover { border-color: var(--borderh); box-shadow: var(--glow-v), 0 20px 40px rgba(0,0,0,.28); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px; font-size: 1.4rem;
  background: linear-gradient(135deg,rgba(124,58,237,.14),rgba(0,229,255,.07));
  border: 1px solid rgba(124,58,237,.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.service-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: .55rem; }
.service-desc { font-size: .9rem; color: var(--text2); line-height: 1.75; margin-bottom: 1.1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.1rem; }
.service-tag { font-family: var(--sans); font-size: .72rem; padding: .18rem .55rem; border-radius: 3px; background: rgba(124,58,237,.1); color: #a78bfa; border: 1px solid rgba(124,58,237,.2); }

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 0; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.5rem; }
.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 1.7rem;
  position: relative; will-change: transform;
  transition: border-color .28s var(--ease);
}
.testi-card:hover { border-color: var(--borderh); }
.testi-quote { font-size: 2.4rem; color: var(--cyan); opacity: .28; font-family: Georgia,serif; line-height: 1; margin-bottom: .4rem; }
.testi-text { font-size: .92rem; color: var(--text2); line-height: 1.9; margin-bottom: 1.4rem; font-style: normal; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,var(--cyan),var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #050810; flex-shrink: 0;
  font-family: var(--mono);
}
.testi-name { font-weight: 700; font-size: .9rem; font-family: var(--heading); }
.testi-role { font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.testi-stars { position: absolute; top: 1.7rem; left: 1.7rem; right: auto; color: var(--amber); font-size: .75rem; letter-spacing: 2px; }

/* ── Blog Teaser (home) ── */
.blog-teaser { padding: 6rem 0; }
.blog-teaser-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.blog-mini-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  will-change: transform;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.blog-mini-card:hover { border-color: var(--borderh); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.blog-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.blog-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform .55s var(--ease); }
.blog-mini-card:hover .blog-thumb-inner { transform: scale(1.07); }
.thumb-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,transparent,transparent 20px,rgba(0,229,255,.015) 20px,rgba(0,229,255,.015) 21px);
}
.thumb-chip {
  position: absolute; top: .8rem; right: .8rem; left: auto;
  font-family: var(--sans); font-size: .7rem; padding: .25rem .6rem;
  border-radius: 3px; background: rgba(5,8,16,.78); border: 1px solid var(--borderh);
  color: var(--cyan); backdrop-filter: blur(8px);
}
.blog-mini-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.blog-mini-date { font-family: var(--sans); font-size: .72rem; color: var(--muted); margin-bottom: .55rem; }
.blog-mini-title { font-family: var(--heading); font-size: .98rem; font-weight: 700; line-height: 1.5; margin-bottom: .55rem; color: var(--text); transition: color .22s; }
.blog-mini-card:hover .blog-mini-title { color: var(--cyan); }
.blog-mini-exc { font-size: .88rem; color: var(--text2); line-height: 1.8; flex: 1; }

/* ── Thumb colors ── */
.tc-cyan    { background: linear-gradient(135deg,rgba(0,229,255,.08),rgba(124,58,237,.06)); }
.tc-violet  { background: linear-gradient(135deg,rgba(124,58,237,.1),rgba(0,229,255,.05)); }
.tc-emerald { background: linear-gradient(135deg,rgba(16,185,129,.1),rgba(0,229,255,.05)); }
.tc-amber   { background: linear-gradient(135deg,rgba(245,158,11,.1),rgba(124,58,237,.05)); }
.tc-rose    { background: linear-gradient(135deg,rgba(244,63,94,.1),rgba(124,58,237,.05)); }

/* ── CTA Band ── */
.cta-section { padding: 5rem 0; }
.cta-inner {
  background: linear-gradient(135deg,rgba(0,229,255,.055),rgba(124,58,237,.055));
  border: 1px solid var(--borderh); border-radius: 24px;
  padding: 4rem; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle,rgba(0,229,255,.035) 0%,transparent 55%);
  animation: rotateBg 20s linear infinite;
}
@keyframes rotateBg { to { transform: rotate(360deg); } }
.cta-title { font-family: var(--heading); font-size: clamp(1.8rem,4vw,2.9rem); font-weight: 800; margin-bottom: .9rem; position: relative; letter-spacing: 0; }
.cta-desc { color: var(--text2); margin-bottom: 2rem; font-size: 1rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.footer-tagline { font-size: .9rem; color: var(--text2); line-height: 1.8; margin-bottom: 1.4rem; max-width: 265px; }
.social-links { display: flex; gap: .6rem; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: .95rem;
  transition: all .22s var(--ease);
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,.06); }
.enamad {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--border); border-radius: 8px;
  padding: .6rem .9rem; font-family: var(--sans); font-size: .75rem;
  color: var(--muted); margin-top: .9rem;
}
footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: .9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .9rem; color: var(--text2); text-decoration: none; transition: color .22s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bot { border-top: 1px solid var(--border); padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer-copy { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.typed-wrap { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.typed-span { color: var(--cyan); }
.typed-cur { display: inline-block; width: 7px; height: 12px; background: var(--cyan); vertical-align: middle; margin-right: 2px; animation: blink 1s step-end infinite; }

/* ── Reveal base ── */
.gsap-from { will-change: opacity, transform; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-hero { padding: 9rem 0 5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.code-frame { background: var(--card); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; }
.code-tab { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); padding: .6rem 1.2rem; display: flex; align-items: center; gap: .6rem; direction: ltr; }
.ctab-dot { width: 10px; height: 10px; border-radius: 50%; }
.ctab-name { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.code-body { padding: 1.4rem; font-family: var(--mono); font-size: .8rem; line-height: 1.95; color: var(--text2); direction: ltr; unicode-bidi: embed; }
.ck { color: #c792ea; } .cs { color: var(--emerald); } .cc { color: var(--muted); font-style: italic; } .cf { color: var(--cyan); } .cn { color: var(--amber); }
.skills-wrap { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.skill-item { display: flex; flex-direction: column; gap: .4rem; }
.skill-name { font-family: var(--sans); font-size: .82rem; color: var(--text2); display: flex; justify-content: space-between; }
.skill-bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; direction: ltr; }
.skill-fill { height: 100%; background: linear-gradient(90deg,var(--cyan),var(--violet)); border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.stats-quad { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.8rem; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem; }
.stat-box-num { font-family: var(--heading); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.stat-box-lbl { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-hero { padding: 9rem 0 5rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.55fr; gap: 4rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.contact-item:last-of-type { border-bottom: none; }
.contact-ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-lbl { font-family: var(--sans); font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: .22rem; }
.contact-val { font-size: .92rem; color: var(--text2); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.9rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: .44rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: .77rem 1rem; color: var(--text);
  font-family: var(--sans); font-size: .92rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  outline: none; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.07); }
.form-textarea { height: 115px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-hero { padding: 9rem 0 5rem; overflow: hidden; }
.blog-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
/* Rings animation */
.rings-wrap { position: relative; width: 270px; height: 270px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,229,255,.15); }
.ring:nth-child(1) { width: 270px; height: 270px; }
.ring:nth-child(2) { width: 200px; height: 200px; border-color: rgba(124,58,237,.2); }
.ring:nth-child(3) { width: 130px; height: 130px; border-color: rgba(0,229,255,.3); }
.rings-center {
  width: 76px; height: 76px;
  background: linear-gradient(135deg,rgba(0,229,255,.14),rgba(124,58,237,.14));
  border: 1px solid var(--borderh); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; z-index: 2; box-shadow: var(--glow-c);
}
.float-tag {
  position: absolute; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: .45rem .85rem; font-family: var(--sans); font-size: .75rem; white-space: nowrap;
}
.ft1 { top: 8px; left: -18px; right: auto; color: var(--cyan); border-color: rgba(0,229,255,.2); }
.ft2 { bottom: 24px; right: -18px; left: auto; color: #a78bfa; border-color: rgba(124,58,237,.2); }
.ft3 { top: 50%; left: -28px; right: auto; transform: translateY(-50%); color: var(--emerald); border-color: rgba(16,185,129,.2); }

/* Blog search */
.blog-search-wrap { max-width: 520px; margin: 0 auto 2.5rem; position: relative; }
.blog-search {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem 1.1rem .85rem 3rem;
  color: var(--text); font-family: var(--sans); font-size: .92rem;
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.blog-search:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.07); }
.blog-search::placeholder { color: var(--muted); }
.blog-search-ico { position: absolute; left: .95rem; right: auto; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* Category pills */
.blog-cats { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-bottom: 2.8rem; }
.cat-pill {
  font-family: var(--sans); font-size: .82rem; letter-spacing: 0;
  padding: .42rem 1rem; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .22s var(--ease);
}
.cat-pill:hover, .cat-pill.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,.06); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 1.75rem; margin-bottom: 2.5rem; }
.blog-card-feat { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--rl); overflow: hidden; }
.blog-post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; will-change: transform;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.blog-post-card:hover { border-color: var(--borderh); box-shadow: var(--glow-c), 0 20px 40px rgba(0,0,0,.28); }
.post-thumb { position: relative; overflow: hidden; }
.blog-post-card:not(.blog-card-feat) .post-thumb { height: 195px; }
.blog-card-feat .post-thumb { height: 100%; min-height: 300px; }
.thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.8rem; transition: transform .55s var(--ease); }
.blog-post-card:hover .thumb-inner { transform: scale(1.06); }
.thumb-over { position: absolute; inset: 0; background: repeating-linear-gradient(45deg,transparent,transparent 22px,rgba(0,229,255,.014) 22px,rgba(0,229,255,.014) 23px); }
.thumb-cat { position: absolute; top: .9rem; right: .9rem; left: auto; font-family: var(--sans); font-size: .7rem; padding: .28rem .65rem; border-radius: 4px; background: rgba(5,8,16,.8); border: 1px solid var(--borderh); color: var(--cyan); backdrop-filter: blur(8px); }
.thumb-rt { position: absolute; bottom: .9rem; left: .9rem; right: auto; font-family: var(--sans); font-size: .68rem; color: var(--muted); background: rgba(5,8,16,.75); padding: .22rem .55rem; border-radius: 4px; }
.post-body { padding: 1.45rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: .65rem; }
.post-date, .post-author { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.post-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: .6rem; color: var(--text); transition: color .22s; }
.blog-card-feat .post-title { font-size: 1.35rem; }
.blog-post-card:hover .post-title { color: var(--cyan); }
.post-exc { font-size: .9rem; color: var(--text2); line-height: 1.8; flex: 1; margin-bottom: 1.1rem; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.post-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.post-tag { font-family: var(--sans); font-size: .68rem; padding: .17rem .52rem; border-radius: 3px; background: rgba(0,229,255,.07); color: var(--cyan); border: 1px solid rgba(0,229,255,.14); }
.read-btn {
  font-family: var(--sans); font-size: .78rem; color: var(--cyan);
  background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.18);
  padding: .38rem .85rem; border-radius: 4px; white-space: nowrap;
  cursor: pointer; transition: all .22s var(--ease); display: inline-flex; align-items: center; gap: .3rem;
}
.read-btn:hover { background: rgba(0,229,255,.14); border-color: var(--cyan); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.8rem; }
.pag-btn {
  font-family: var(--sans); font-size: .82rem; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .22s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.pag-btn:hover, .pag-btn.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,.06); }
.pag-btn.active { font-weight: 700; }

/* Newsletter */
.nl-band { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.nl-inner {
  background: linear-gradient(135deg,rgba(0,229,255,.05),rgba(124,58,237,.05));
  border: 1px solid var(--borderh); border-radius: var(--rl);
  padding: 2.5rem; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.nl-text { flex: 1; min-width: 200px; }
.nl-text h3 { font-family: var(--heading); font-size: 1.35rem; font-weight: 800; margin-bottom: .45rem; }
.nl-text p { color: var(--text2); font-size: .92rem; }
.nl-form { display: flex; gap: .65rem; flex-shrink: 0; flex-wrap: wrap; }
.nl-input {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: .72rem 1rem; color: var(--text); font-family: var(--sans); font-size: .9rem;
  outline: none; width: 230px; transition: border-color .25s;
}
.nl-input:focus { border-color: var(--cyan); }
.nl-input::placeholder { color: var(--muted); }

/* ================================================================
   SINGLE POST PAGE  (post.html)
   ================================================================ */
.post-page { padding-top: 5.5rem; padding-bottom: 5rem; }
.reading-bar { position: fixed; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--cyan),var(--violet)); z-index: 1001; width: 0; box-shadow: 0 0 10px rgba(0,229,255,.4); transition: none; }
.breadcrumb { display: flex; align-items: center; gap: .45rem; font-family: var(--sans); font-size: .75rem; color: var(--muted); margin-bottom: 2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .22s; }
.breadcrumb a:hover { color: var(--cyan); }
.bc-sep { color: var(--borderh); }
.bc-cur { color: var(--text2); }
.post-layout { display: grid; grid-template-columns: 1fr 295px; gap: 3rem; align-items: start; }
/* Post header */
.post-header { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.post-header-cats { display: flex; gap: .45rem; margin-bottom: .9rem; flex-wrap: wrap; }
.post-h1 { font-family: var(--heading); font-size: clamp(1.75rem,4vw,2.7rem); font-weight: 800; line-height: 1.3; letter-spacing: 0; margin-bottom: 1.2rem; }
.post-hmeta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.author-chip { display: flex; align-items: center; gap: .55rem; }
.author-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--cyan),var(--violet)); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #050810; flex-shrink: 0; font-family: var(--mono); }
.author-name { font-size: .9rem; font-weight: 600; font-family: var(--heading); }
.author-role { font-family: var(--sans); font-size: .68rem; color: var(--muted); }
.hmeta-item { font-family: var(--sans); font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
/* Featured image */
.post-feat-img { width: 100%; height: 400px; border-radius: var(--rl); overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.post-feat-img .thumb-inner { width: 100%; height: 100%; font-size: 7rem; }
/* Post content */
.post-content-wrap {
  background: rgba(8,12,22,.88);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(0,229,255,.1);
  border-radius: var(--rl);
  padding: 2.6rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.post-content { font-size: 1rem; line-height: 1.95; color: var(--text2); }
.post-content h2 { font-family: var(--heading); font-size: 1.45rem; font-weight: 800; color: var(--text); margin: 2.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.post-content h3 { font-family: var(--heading); font-size: 1.12rem; font-weight: 700; color: var(--text); margin: 1.8rem 0 .65rem; }
.post-content p { margin-bottom: 1.45rem; }
.post-content a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0,229,255,.3); transition: text-decoration-color .22s; }
.post-content a:hover { text-decoration-color: var(--cyan); }
.post-content ul, .post-content ol { padding-right: 1.4rem; padding-left: 0; margin-bottom: 1.45rem; }
.post-content li { margin-bottom: .45rem; }
.post-content li::marker { color: var(--cyan); }
.post-content strong { color: var(--text); font-weight: 700; }
.post-content blockquote { border-right: 3px solid var(--cyan); border-left: none; padding: 1rem 1.4rem; margin: 2rem 0; background: rgba(0,229,255,.04); border-radius: var(--r) 0 0 var(--r); font-style: normal; color: var(--text); font-size: 1.02rem; }
.post-content code { font-family: var(--mono); font-size: .83em; background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.15); padding: .13em .42em; border-radius: 4px; color: var(--cyan); direction: ltr; unicode-bidi: embed; }
.post-content pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem; overflow-x: auto; margin-bottom: 1.45rem; font-family: var(--mono); font-size: .82rem; line-height: 1.7; color: var(--text2); direction: ltr; unicode-bidi: embed; }
.post-content pre code { background: none; border: none; padding: 0; color: inherit; }
.post-callout { background: linear-gradient(135deg,rgba(0,229,255,.055),rgba(124,58,237,.04)); border: 1px solid var(--borderh); border-radius: var(--r); padding: 1.4rem; margin: 1.8rem 0; display: flex; gap: .9rem; align-items: flex-start; }
.callout-ico { font-size: 1.3rem; flex-shrink: 0; }
.callout-text { font-size: .92rem; line-height: 1.8; }
.callout-text strong { color: var(--text); display: block; margin-bottom: .2rem; }
.inline-fig { width: 100%; height: 240px; border-radius: var(--r); overflow: hidden; margin: 1.8rem 0; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
/* Post footer */
.post-tags-row { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.post-tags-lbl { font-family: var(--sans); font-size: .72rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
/* Share */
.post-share { margin-top: 1.4rem; padding: 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.share-lbl { font-family: var(--sans); font-size: .78rem; color: var(--muted); text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.share-btns { display: flex; gap: .45rem; flex-wrap: wrap; }
.share-btn { font-family: var(--sans); font-size: .78rem; padding: .38rem .85rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all .22s var(--ease); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.share-btn:hover { color: var(--text); border-color: var(--borderh); }
.share-tw:hover { color: #1d9bf0; border-color: rgba(29,155,240,.4); }
.share-li:hover { color: #0a66c2; border-color: rgba(10,102,194,.4); }
.share-tg:hover { color: #26a5e4; border-color: rgba(38,165,228,.4); }
.share-cp:hover { color: var(--emerald); border-color: rgba(16,185,129,.4); }
/* Author bio */
.author-bio { margin-top: 2.8rem; padding: 1.8rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--rl); display: flex; gap: 1.4rem; align-items: flex-start; }
.bio-av { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg,var(--cyan),var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: #050810; flex-shrink: 0; font-family: var(--mono); }
.bio-name { font-family: var(--heading); font-weight: 700; margin-bottom: .2rem; }
.bio-role { font-family: var(--sans); font-size: .72rem; color: var(--cyan); margin-bottom: .65rem; letter-spacing: 0; }
.bio-text { font-size: .9rem; color: var(--text2); line-height: 1.85; }
/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.pnav-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem; cursor: pointer; transition: border-color .25s, transform .25s var(--ease); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .35rem; }
.pnav-item:hover { border-color: var(--borderh); transform: translateY(-2px); }
.pnav-next { text-align: left; }
.pnav-dir { font-family: var(--sans); font-size: .7rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.pnav-title { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.4; font-family: var(--heading); }
/* Comments */
.comments { margin-top: 2.8rem; padding-top: 2.8rem; border-top: 1px solid var(--border); }
.comments-h { font-family: var(--heading); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.8rem; display: flex; align-items: center; gap: .65rem; }
.comments-cnt { font-family: var(--sans); font-size: .78rem; color: var(--cyan); background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2); padding: .18rem .55rem; border-radius: 4px; }

/* ── Star Rating ── */
.star-rating {
  display: inline-flex; align-items: center; gap: .15rem;
  direction: rtl;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.35rem; cursor: pointer; color: var(--muted);
  transition: color .2s cubic-bezier(.4,0,.2,1),
              transform .22s cubic-bezier(.34,1.56,.64,1),
              text-shadow .2s ease;
  line-height: 1; display: block;
  -webkit-user-select: none; user-select: none;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(245,158,11,.7);
}
.star-rating label:hover { transform: scale(1.28) rotate(-5deg); }
.star-rating label:hover ~ label { transform: scale(1.08); }

/* Display stars on existing comments */
.com-stars { display: flex; align-items: center; gap: .35rem; margin-bottom: .45rem; }
.com-stars-val { color: var(--amber); font-size: .95rem; letter-spacing: 1.5px; line-height: 1; }
.com-stars-val .empty { color: rgba(245,158,11,.22); }
.com-stars-num { font-family: var(--sans); font-size: .68rem; color: var(--muted); }

.form-star-row { margin-bottom: 1rem; }
.form-star-label { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: .55rem; }

.comment { display: flex; gap: .9rem; margin-bottom: 1.65rem; padding-bottom: 1.65rem; border-bottom: 1px solid var(--border); }
.comment:last-of-type { border-bottom: none; }
.com-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; color: #050810; font-family: var(--mono); }
.com-header { display: flex; align-items: center; gap: .65rem; margin-bottom: .35rem; flex-wrap: wrap; }
.com-author { font-weight: 700; font-size: .9rem; font-family: var(--heading); }
.com-date { font-family: var(--sans); font-size: .68rem; color: var(--muted); }
.com-text { font-size: .9rem; color: var(--text2); line-height: 1.85; }
.comment-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.65rem; margin-top: 1.8rem; }
.comment-form-h { font-family: var(--heading); font-weight: 700; font-size: .97rem; margin-bottom: 1.1rem; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
/* Related */
.related { margin-top: 3.5rem; padding-top: 2.8rem; border-top: 1px solid var(--border); }
.related-h { font-family: var(--heading); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.8rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.1rem; }
/* Sidebar */
.post-sidebar { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar-w { background: var(--card); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.4rem; }
.sw-title { font-family: var(--sans); font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 1.1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; }
.toc-item { margin-bottom: .35rem; }
.toc-link { font-size: .85rem; color: var(--text2); text-decoration: none; display: flex; align-items: center; padding: .28rem .7rem .28rem 0; border-right: 2px solid transparent; border-left: none; transition: color .22s, border-right-color .22s; }
.toc-link:hover, .toc-link.active { color: var(--cyan); border-right-color: var(--cyan); }
.toc-item.h3 .toc-link { padding-right: 1.4rem; padding-left: 0; font-size: .78rem; color: var(--muted); }
.recent-item { display: flex; gap: .65rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; cursor: pointer; }
.recent-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.recent-thumb { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; border: 1px solid var(--border); }
.recent-title { font-size: .85rem; font-weight: 600; line-height: 1.5; color: var(--text2); transition: color .22s; font-family: var(--heading); }
.recent-item:hover .recent-title { color: var(--cyan); }
.recent-date { font-family: var(--sans); font-size: .65rem; color: var(--muted); margin-top: .2rem; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-nav { grid-template-columns: 1fr; }
  .pnav-next { text-align: right; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-layout, .blog-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-badge { display: none; }
  .blog-hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .modal-features { grid-template-columns: 1fr; }
  .modal-pricing { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .modal-actions { flex-direction: row; width: 100%; }
  .modal-actions .btn { min-width: 0; flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .nl-inner { flex-direction: column; }
  .nl-input { width: 100%; }
  .blog-card-feat { grid-column: 1; display: flex; flex-direction: column; }
  .blog-card-feat .post-thumb { min-height: 190px; }
  .author-bio { flex-direction: column; }
  .post-feat-img { height: 220px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .post-content-wrap { padding: 1.4rem; }
}
@media (max-width: 480px) {
  .cards-grid, .services-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .stats-quad { grid-template-columns: 1fr 1fr; }
}
