/* ============================================================
   TECHNOBLUE — Main Stylesheet
   شرکت تکنو بلو | technoblue.ir
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ---------- FONTS — Local Vazirmatn (self-hosted, no CDN needed) ---------- */

/* Variable font — covers all weights in one file */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2') tech('variations'),
       url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2212, U+0020-007E;
}

/* Fallback individual weights for browsers without variable font support */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@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;
}

/* ---------- THEME VARIABLES ---------- */
:root {
  /* Dark — Modern Slate */
  --bg:          #0D0D0F;
  --bg2:         #111114;
  --bg3:         #16161A;
  --surface:     rgba(22, 22, 28, 0.80);
  --surface2:    rgba(28, 28, 36, 0.95);
  --border:      rgba(90, 160, 255, 0.10);
  --border2:     rgba(90, 160, 255, 0.22);
  --border3:     rgba(90, 160, 255, 0.45);
  --accent:      #3B9EFF;
  --accent2:     #1A6FE8;
  --accent3:     #60C8FF;
  --accent-dim:  rgba(59, 158, 255, 0.09);
  --accent-glow: rgba(59, 158, 255, 0.18);
  --text:        #EAEDF2;
  --text2:       #7A90B0;
  --text3:       #3D526A;
  --nav-blur:    rgba(13, 13, 15, 0.88);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.03) inset;
  --hero-grad:   radial-gradient(ellipse 70% 50% at 50% -5%, rgba(26,111,232,0.20) 0%, transparent 65%);
}

[data-theme="light"] {
  --bg:          #F0F6FF;
  --bg2:         #FFFFFF;
  --bg3:         #E4EFFC;
  --surface:     rgba(255,255,255,0.82);
  --surface2:    rgba(240,246,255,0.96);
  --border:      rgba(0, 100, 200, 0.12);
  --border2:     rgba(0, 100, 200, 0.26);
  --border3:     rgba(0, 100, 200, 0.48);
  --accent:      #0055CC;
  --accent2:     #1050C0;
  --accent3:     #007ACC;
  --accent-dim:  rgba(0, 85, 204, 0.08);
  --accent-glow: rgba(0, 85, 204, 0.16);
  --text:        #071220;
  --text2:       #2A5278;
  --text3:       #5888A8;
  --nav-blur:    rgba(240,246,255,0.90);
  --card-shadow: 0 8px 40px rgba(0,60,140,0.10);
  --hero-grad:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,80,200,0.12) 0%, transparent 70%);
}

/* ---------- BASE ---------- */
body {
  font-family: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .4s, color .4s;
}

/* Dark mode subtle mesh background */
[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 100% 60% at 20% 0%, rgba(26,111,232,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 80% 100%, rgba(59,158,255,0.04) 0%, transparent 50%);
}

[data-lang="en"] body,
[data-lang="en"] h1,
[data-lang="en"] h2,
[data-lang="en"] h3,
[data-lang="en"] h4,
[data-lang="en"] p,
[data-lang="en"] a,
[data-lang="en"] span,
[data-lang="en"] button,
[data-lang="en"] li {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-lang="fa"] { direction: rtl; }
[data-lang="en"] { direction: ltr; }

/* ---------- BILINGUAL ---------- */
.fa { display: block; }
.en { display: none; }
[data-lang="en"] .fa { display: none; }
[data-lang="en"] .en { display: block; }
.fa-i { display: inline; }
.en-i { display: none; }
[data-lang="en"] .fa-i { display: none; }
[data-lang="en"] .en-i { display: inline; }

/* ---------- BACKGROUND CANVAS ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s;
}
[data-theme="light"] #bg-canvas { opacity: 0.18; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
main { position: relative; z-index: 1; }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 32px;
  background: var(--nav-blur);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background .4s, border-color .4s, padding .3s;
}
#navbar.scrolled { padding: 0 32px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.nav-logo-text .fa-i,
.nav-logo-text .en-i { display: inline; }
.nav-logo-text span:not(.fa-i):not(.en-i) { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }

/* Controls */
.nav-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.n-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--accent-dim);
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
}
.n-btn:hover { border-color: var(--border3); color: var(--accent); background: var(--accent-glow); }
.n-btn.lang { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }

/* CTA in nav */
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 22px;
  border-radius: 10px;
  background: var(--accent2);
  color: #fff;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* Hamburger */
.ham-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--accent-dim);
  cursor: pointer;
}
.ham-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
#mob-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 199;
  background: var(--nav-blur);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
#mob-nav.open { display: flex; }
#mob-nav a {
  color: var(--text2);
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem; font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s;
}
#mob-nav a:hover { color: var(--accent); background: var(--accent-dim); border-color: var(--border2); }

/* ---------- SECTION BASE ---------- */
section { padding: 120px 0; position: relative; z-index: 1; }
section.tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  border-radius: 2px;
  flex-shrink: 0;
}

h1.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h2.sec-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.sec-sub {
  font-size: 1.08rem;
  color: var(--text2);
  line-height: 1.85;
  max-width: 580px;
}
.title-line {
  display: block;
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  border-radius: 4px;
  margin: 20px 0 40px;
}

/* ---------- BUTTONS ---------- */
.btn-p {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .3s;
  position: relative; overflow: hidden;
}
.btn-p::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0; transition: opacity .2s;
}
.btn-p:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,100,220,0.4); }
.btn-p:hover::after { opacity: 1; }

.btn-o {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  border-radius: 14px;
  border: 1.5px solid var(--border2);
  color: var(--text); font-family: inherit;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; background: var(--accent-dim); cursor: pointer;
  transition: all .3s; backdrop-filter: blur(8px);
}
.btn-o:hover {
  border-color: var(--border3); color: var(--accent);
  background: var(--accent-glow); transform: translateY(-3px);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .35s;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
[data-theme="light"] .card:hover { box-shadow: 0 24px 60px rgba(0,60,140,0.15); }

.card-top-line {
  display: block; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-top-line { opacity: 1; }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  background: var(--hero-grad);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.82rem; font-weight: 700;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent3);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-title .line1 { display: block; }
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.12rem; color: var(--text2);
  line-height: 1.85; margin: 28px 0 44px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 480px;
}
.orb-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.orb {
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,120,230,0.22) 0%, rgba(0,60,160,0.08) 50%, transparent 75%);
  animation: orb-breathe 5s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin linear infinite;
}
.orbit-1 { width: 280px; height: 280px; animation-duration: 18s; border-color: var(--border2); }
.orbit-2 { width: 380px; height: 380px; animation-duration: 28s; animation-direction: reverse; }
.orbit-3 { width: 460px; height: 460px; animation-duration: 40s; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Floating cards on orbit */
.orbit-dot {
  position: absolute;
  top: -6px; left: 50%;
  margin-left: -6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.hero-center-logo {
  position: relative; z-index: 2;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-center-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Stats row below hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat {
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
[data-lang="en"] .hero-stat + .hero-stat::before { left: 0; }
[data-lang="fa"] .hero-stat + .hero-stat::before { right: 0; }
.stat-num {
  font-size: 3.2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-lbl { font-size: 0.88rem; color: var(--text2); font-weight: 500; }

/* ---------- FEATURES (index) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.feat-card {
  padding: 36px 32px;
}
.feat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: all .3s;
}
.feat-card:hover .feat-icon {
  background: var(--accent-glow);
  border-color: var(--border3);
}
.feat-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feat-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1.4;
}
.feat-card p { font-size: 0.92rem; color: var(--text2); line-height: 1.75; }

/* ---------- PROJECTS PAGE ---------- */
.project-hero {
  min-height: 50vh;
  display: flex; align-items: center;
  padding: 160px 0 80px;
  text-align: center;
  background: var(--hero-grad);
}
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 80px;
}
.project-info h3 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 16px;
}
.project-info p { color: var(--text2); line-height: 1.85; margin-bottom: 16px; }

.feature-list { list-style: none; margin: 28px 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text2);
}
.feature-list li:last-child { border-bottom: none; }
.feat-li-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.feat-li-icon svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 2; }
.feat-li-text strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; font-size: 0.95rem; }

.project-visual-card {
  padding: 40px;
  position: sticky; top: 100px;
}
.proj-logo-wrap {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--accent-dim); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 2.5rem;
}
.proj-logo-wrap svg { width: 44px; height: 44px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.proj-title-big { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.proj-tagline { color: var(--text2); font-size: 0.95rem; margin-bottom: 28px; }
.proj-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.proj-tag {
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  color: var(--accent);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.3px;
}
.proj-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.95rem;
  transition: all .25s; width: 100%;
}
.proj-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,100,220,0.35); }
.proj-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Projects listing cards */
.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
  margin-top: 64px;
}
.proj-card-inner { padding: 40px; }
.proj-card-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.proj-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent-dim); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proj-icon-wrap svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.proj-card-title { font-size: 1.5rem; font-weight: 800; }
.proj-card-sub { color: var(--text2); font-size: 0.88rem; margin-top: 4px; }
.proj-card-desc { color: var(--text2); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
.proj-features-mini { list-style: none; margin-bottom: 32px; }
.proj-features-mini li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text2);
}
.proj-features-mini li:last-child { border-bottom: none; }
.check-icon { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--accent); fill: none; stroke-width: 2.5; }

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  min-height: 50vh; display: flex; align-items: center;
  padding: 160px 0 80px; text-align: center;
  background: var(--hero-grad);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 64px;
}
.team-card { padding: 40px 36px; text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem; font-weight: 800; color: #fff;
  border: 3px solid var(--border2);
  position: relative;
}
.team-avatar-img {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px; display: block;
  border: 3px solid var(--border2);
}
.online-dot {
  position: absolute; bottom: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #22D369;
  border: 2.5px solid var(--bg);
}
.team-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.team-handle { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.team-role {
  display: inline-block; padding: 5px 16px; border-radius: 100px;
  background: var(--accent-dim); border: 1px solid var(--border2);
  color: var(--accent2); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px;
}
.team-bio { color: var(--text2); font-size: 0.9rem; line-height: 1.75; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 60px;
}
.val-card { padding: 32px 28px; }
.val-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-dim); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.val-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }
.val-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.val-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.7; }

/* ---------- CONTACT PAGE ---------- */
.contact-hero {
  min-height: 45vh; display: flex; align-items: center;
  padding: 160px 0 60px; text-align: center;
  background: var(--hero-grad);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
  margin-top: 80px;
}
.contact-info h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p { color: var(--text2); line-height: 1.85; margin-bottom: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  margin-bottom: 14px;
  transition: all .2s;
}
.contact-item:hover { border-color: var(--border2); background: var(--accent-glow); }
.ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.ci-text strong { display: block; font-size: 0.82rem; color: var(--text3); font-weight: 600; margin-bottom: 3px; }
.ci-text span { font-size: 0.95rem; color: var(--text); font-weight: 500; }

/* Form */
.contact-form { padding: 44px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text2); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: all .2s; outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--border3); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; font-family: inherit;
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .3s; margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,100,220,0.4); }

/* ---------- TECH MARQUEE ---------- */
.marquee-wrap {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative; z-index: 1;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex; align-items: center; gap: 32px;
  width: max-content;
  animation: mq 32s linear infinite;
}
[data-lang="fa"] .marquee-inner { animation-direction: reverse; }
.marquee-inner:hover { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mq-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text2); font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; transition: color .2s;
}
.mq-item:hover { color: var(--accent); }
.mq-item svg { width: 18px; height: 18px; stroke: var(--text3); fill: none; stroke-width: 2; flex-shrink: 0; }
.mq-dot { color: var(--border3); font-size: 1.4rem; line-height: 1; }

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: 120px 32px;
  text-align: center; position: relative; z-index: 1;
}
.cta-box {
  max-width: 760px; margin: 0 auto;
  padding: 72px 56px;
  border-radius: 28px;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 250px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.cta-box p { color: var(--text2); margin-bottom: 40px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 64px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand p { color: var(--text2); font-size: 0.9rem; line-height: 1.75; margin: 16px 0 24px; }
.footer-col h5 { font-size: 0.82rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text3); font-size: 0.85rem; }
.footer-social { display: flex; gap: 10px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); text-decoration: none;
  transition: all .2s;
}
.soc-btn:hover { border-color: var(--border3); color: var(--accent); background: var(--accent-glow); }
.soc-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- SCROLL ANIM ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.on { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r.on { opacity: 1; transform: translateX(0); }

/* ---------- PAGE LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
#loader img { width: 72px; height: 72px; border-radius: 50%; animation: loader-spin 1.5s ease-in-out infinite; }
@keyframes loader-spin { 0%,100% { transform: scale(1) rotate(0deg); opacity: 0.8; } 50% { transform: scale(1.1) rotate(180deg); opacity: 1; } }
.loader-bar {
  width: 200px; height: 3px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  border-radius: 3px;
  animation: fill-bar 1.2s ease forwards;
}
@keyframes fill-bar { from { width: 0; } to { width: 100%; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { height: 360px; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .project-visual-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 80px 0; }
  .nav-links, .nav-cta { display: none; }
  .ham-btn { display: flex; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stat + .hero-stat::before { display: none; }
  .projects-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-box { padding: 44px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, .orb, .orbit, .marquee-inner { animation: none !important; transition: none !important; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
}

/* ============================================================
   APP PREVIEW / MOCKUP STYLES
   ============================================================ */

/* ---------- PREVIEW SECTION ---------- */
.preview-section {
  padding: 80px 0 120px;
  position: relative; z-index: 1;
  background: transparent;
}
.preview-section + .preview-section {
  border-top: 1px solid var(--border);
}
[data-theme="light"] .preview-section {
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
}

/* Phone/Browser mockup shell */
.mockup-shell {
  position: relative;
  border-radius: 28px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 32px 80px rgba(0,0,0,0.6),
    0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  max-width: 540px;
  margin: 0 auto;
}
.mockup-shell:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 6px rgba(59,158,255,0.06),
    0 48px 100px rgba(0,0,0,0.7),
    0 12px 24px rgba(0,0,0,0.4);
}

/* Top chrome bar */
.mockup-chrome {
  height: 42px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  flex-shrink: 0;
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.cd-r { background: #FF5F56; }
.cd-y { background: #FFBD2E; }
.cd-g { background: #27C93F; }
.chrome-bar {
  flex: 1; height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: 11px; color: var(--text3);
  letter-spacing: 0.3px;
}
.chrome-icon { margin-left: 6px; opacity: .5; font-size: 10px; }
[data-lang="en"] .chrome-icon { margin-left: 0; margin-right: 6px; }

/* Mockup content area */
.mockup-body {
  overflow: hidden;
  position: relative;
}

/* ===== PEYWEND PREVIEW ===== */
.pw-app {
  background: #0F1117;
  display: flex;
  height: 420px;
  font-size: 13px;
}

/* Sidebar */
.pw-sidebar {
  width: 220px;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  background: #13151C;
}
[data-lang="en"] .pw-sidebar {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.pw-sidebar-top {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pw-app-name {
  font-size: 16px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.pw-app-name-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3B9EFF;
  box-shadow: 0 0 8px #3B9EFF;
}
.pw-search {
  height: 30px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex; align-items: center;
  padding: 0 10px; gap: 6px;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}
.pw-search svg { width: 12px; height: 12px; flex-shrink: 0; }

.pw-chat-list { flex: 1; overflow: hidden; }
.pw-chat-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pw-chat-item:hover { background: rgba(255,255,255,0.04); }
.pw-chat-item.active { background: rgba(59,158,255,0.1); }
.pw-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.pw-chat-info { flex: 1; min-width: 0; }
.pw-chat-name {
  font-weight: 600; color: #e8eaf0;
  font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pw-chat-last {
  color: rgba(255,255,255,0.35);
  font-size: 11px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pw-chat-meta {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.pw-chat-time { font-size: 10px; color: rgba(255,255,255,0.25); }
.pw-unread {
  width: 18px; height: 18px; border-radius: 50%;
  background: #3B9EFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}

/* Chat window */
.pw-chat-window {
  flex: 1;
  display: flex; flex-direction: column;
  background: #0F1117;
}
.pw-chat-header {
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  padding: 0 16px; gap: 10px;
  background: #13151C;
}
.pw-header-info { flex: 1; }
.pw-header-name { font-weight: 700; color: #e8eaf0; font-size: 13px; }
.pw-header-status { font-size: 10.5px; color: #3B9EFF; margin-top: 1px; }
.pw-header-icons { display: flex; gap: 10px; }
.pw-header-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.pw-header-icon svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 2; }

.pw-messages {
  flex: 1; overflow: hidden;
  padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.pw-msg {
  max-width: 68%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px; line-height: 1.55;
  position: relative;
}
.pw-msg-in {
  background: rgba(255,255,255,0.07);
  color: #d0d8e8;
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
}
[data-lang="en"] .pw-msg-in { border-radius: 14px 4px 14px 14px; }
.pw-msg-out {
  background: linear-gradient(135deg, #1A6FE8, #3B9EFF);
  color: #fff;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}
[data-lang="en"] .pw-msg-out { border-radius: 4px 14px 14px 14px; }
.pw-msg-time {
  font-size: 9.5px;
  color: rgba(255,255,255,0.45);
  text-align: left; margin-top: 3px;
  display: flex; align-items: center; gap: 3px;
  justify-content: flex-end;
}
.pw-tick { color: #60C8FF; font-size: 10px; }

/* View once badge */
.pw-view-once {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(59,158,255,0.2);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  align-self: flex-start;
  color: #7A90B0; font-size: 11px;
}
.pw-view-once svg { width: 16px; height: 16px; stroke: #3B9EFF; fill: none; stroke-width: 2; flex-shrink: 0; }
.pw-view-once-label { color: #3B9EFF; font-weight: 600; font-size: 10.5px; display: block; margin-bottom: 2px; }

.pw-input-bar {
  height: 50px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #13151C;
  display: flex; align-items: center;
  padding: 0 12px; gap: 8px;
}
.pw-input {
  flex: 1; height: 32px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex; align-items: center;
  padding: 0 12px;
  font-size: 11.5px; color: rgba(255,255,255,0.25);
}
.pw-send-btn {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #1A6FE8, #3B9EFF);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pw-send-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; }
.pw-attach-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pw-attach-btn svg { width: 15px; height: 15px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 2; }

/* ===== WOOFY PREVIEW ===== */
.wf-app {
  background: #0B0E1A;
  height: 440px;
  display: flex; flex-direction: column;
}

/* Woofy top nav */
.wf-topbar {
  height: 52px;
  background: #0F1428;
  border-bottom: 1px solid rgba(59,120,255,0.12);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
}
.wf-logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #1A6FE8, #3B9EFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; font-weight: 900;
  flex-shrink: 0;
}
.wf-title { font-size: 14px; font-weight: 800; color: #e8eaf0; }
.wf-title span { color: #3B9EFF; }
.wf-topbar-actions { margin-right: auto; display: flex; gap: 8px; }
[data-lang="en"] .wf-topbar-actions { margin-right: 0; margin-left: auto; }
.wf-notif {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(59,158,255,0.1);
  border: 1px solid rgba(59,158,255,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wf-notif svg { width: 14px; height: 14px; stroke: #3B9EFF; fill: none; stroke-width: 2; }
.wf-notif-badge {
  position: absolute; top: -3px; left: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #FF4B6B; font-size: 7px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 1.5px solid #0B0E1A;
}
[data-lang="en"] .wf-notif-badge { left: auto; right: -3px; }

/* Stats row */
.wf-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 14px 14px 0;
}
.wf-stat-card {
  background: linear-gradient(135deg, rgba(26,111,232,0.12) 0%, rgba(59,158,255,0.06) 100%);
  border: 1px solid rgba(59,158,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
}
.wf-stat-label { font-size: 9.5px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.wf-stat-val {
  font-size: 17px; font-weight: 800;
  background: linear-gradient(135deg, #3B9EFF, #60C8FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.wf-stat-sub { font-size: 9px; color: #22D369; margin-top: 3px; }

/* Chart area */
.wf-chart-wrap {
  margin: 12px 14px 0;
  background: rgba(59,158,255,0.04);
  border: 1px solid rgba(59,158,255,0.1);
  border-radius: 12px;
  padding: 12px;
  height: 90px; position: relative; overflow: hidden;
}
.wf-chart-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.wf-bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 52px;
}
.wf-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #1A6FE8, #3B9EFF);
  opacity: 0.7; transition: opacity .2s;
  min-width: 14px;
}
.wf-bar:hover { opacity: 1; }
.wf-bar.hi { opacity: 1; background: linear-gradient(to top, #1A6FE8, #60C8FF); }

/* Orders table */
.wf-orders-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 6px;
}
.wf-orders-title { font-size: 12px; font-weight: 700; color: #e8eaf0; }
.wf-view-all { font-size: 10px; color: #3B9EFF; cursor: pointer; }

.wf-order-list { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.wf-order-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.wf-order-id { font-size: 11px; font-weight: 700; color: #3B9EFF; min-width: 46px; }
.wf-order-name { flex: 1; font-size: 11px; color: #d0d8e8; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-order-price { font-size: 11px; font-weight: 700; color: #e8eaf0; white-space: nowrap; }
.wf-status {
  font-size: 9.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  flex-shrink: 0;
}
.wf-status.done { background: rgba(34,211,105,0.12); color: #22D369; }
.wf-status.pending { background: rgba(255,189,46,0.12); color: #FFBD2E; }
.wf-status.new { background: rgba(59,158,255,0.14); color: #3B9EFF; }

/* Bottom nav bar for Woofy */
.wf-bottom-nav {
  margin-top: auto;
  height: 50px;
  background: #0F1428;
  border-top: 1px solid rgba(59,120,255,0.12);
  display: flex; align-items: center;
}
.wf-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; opacity: .45; transition: opacity .2s;
}
.wf-nav-item.active { opacity: 1; }
.wf-nav-item svg { width: 17px; height: 17px; stroke: #3B9EFF; fill: none; stroke-width: 2; }
.wf-nav-label { font-size: 9px; color: #3B9EFF; font-weight: 600; }

/* ===== PREVIEW LAYOUT ===== */
.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}
.preview-text .eyebrow { margin-bottom: 14px; }
.preview-text h2 { margin-bottom: 12px; }
.preview-text .sec-sub { margin-bottom: 28px; }

.preview-features {
  list-style: none; margin: 0 0 32px;
}
.preview-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text2);
}
.preview-features li:last-child { border-bottom: none; }
.pf-check {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-dim);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pf-check svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 3; }

/* Glow behind mockup */
.mockup-glow {
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
  filter: blur(40px);
}
.mockup-wrap { position: relative; }
.mockup-wrap .mockup-shell { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pw-sidebar { width: 180px; }
  .pw-app { height: 380px; }
}
@media (max-width: 640px) {
  .pw-sidebar { display: none; }
  .wf-stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOCKUP FORCED DARK — همیشه تاریک، صرف نظر از تم
   ============================================================ */

/* The mockup-wrap gets a dark isolation context */
.mockup-wrap {
  isolation: isolate;
}

/* Force ALL elements inside mockup-dark to use dark colors */
.mockup-dark {
  color-scheme: dark;
  background: #0F1117;
}

/* Override every possible inherited color inside mockup */
.mockup-dark .pw-app,
.mockup-dark .wf-app { background: #0F1117 !important; }

.mockup-dark .pw-sidebar,
.mockup-dark .pw-chat-header,
.mockup-dark .pw-input-bar,
.mockup-dark .wf-topbar,
.mockup-dark .wf-bottom-nav { background: #13151C !important; }

.mockup-dark .pw-chat-window { background: #0F1117 !important; }
.mockup-dark .wf-app { background: #0B0E1A !important; }
.mockup-dark .wf-topbar { background: #0F1428 !important; }
.mockup-dark .wf-bottom-nav { background: #0F1428 !important; }

/* Chrome stays dark */
[data-theme="light"] .mockup-chrome {
  background: #1A1A20 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
[data-theme="light"] .chrome-bar {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.30) !important;
}
[data-theme="light"] .chrome-dot.cd-r { background: #FF5F56 !important; }
[data-theme="light"] .chrome-dot.cd-y { background: #FFBD2E !important; }
[data-theme="light"] .chrome-dot.cd-g { background: #27C93F !important; }

/* Shell in light mode */
[data-theme="light"] .mockup-shell {
  border-color: rgba(59,158,255,0.28) !important;
  box-shadow:
    0 0 0 5px rgba(59,158,255,0.05),
    0 32px 80px rgba(0,40,140,0.20),
    0 8px 20px rgba(0,40,140,0.14) !important;
}
[data-theme="light"] .mockup-glow {
  background: radial-gradient(circle, rgba(59,158,255,0.16) 0%, transparent 70%) !important;
}

/* Woofy notif badge border */
.mockup-dark .wf-notif-badge {
  border-color: #0B0E1A !important;
}

/* ============================================================
   MOCKUP DARK ISOLATION — override via local data-theme="dark"
   ============================================================ */

/* When mockup-body has its own data-theme="dark", force all vars */
.mockup-body[data-theme="dark"] {
  --bg:      #0F1117;
  --bg2:     #13151C;
  --bg3:     #1A1D26;
  --text:    #EAEDF2;
  --text2:   #7A90B0;
  --text3:   #3D526A;
  --border:  rgba(90,160,255,0.10);
  --border2: rgba(90,160,255,0.22);
  --accent:  #3B9EFF;
  --accent-dim:  rgba(59,158,255,0.09);
  --accent-glow: rgba(59,158,255,0.18);
  color: #EAEDF2;
  background: #0F1117;
  color-scheme: dark;
}

/* Prevent light mode from affecting text inside mockup */
[data-theme="light"] .mockup-body[data-theme="dark"],
[data-theme="light"] .mockup-body[data-theme="dark"] * {
  color-scheme: dark;
}

/* Light mode: keep mockup text readable (dark on dark bg) */
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-chat-name,
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-msg-in,
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-title,
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-orders-title {
  color: #EAEDF2 !important;
}

/* Prevent any inherited light mode background leaking into mockup */
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-app { background: #0F1117 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-sidebar { background: #13151C !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-chat-window { background: #0F1117 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-chat-header { background: #13151C !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-input-bar { background: #13151C !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-search { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.3) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-input { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.25) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-msg-in { background: rgba(255,255,255,0.07) !important; color: #d0d8e8 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-chat-last,
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-chat-time { color: rgba(255,255,255,0.3) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-header-status { color: #3B9EFF !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-view-once { background: rgba(255,255,255,0.06) !important; color: #7A90B0 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .pw-msg-time { color: rgba(255,255,255,0.45) !important; }

/* Woofy light override */
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-app { background: #0B0E1A !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-topbar { background: #0F1428 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-bottom-nav { background: #0F1428 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-stat-card { background: linear-gradient(135deg, rgba(26,111,232,0.12) 0%, rgba(59,158,255,0.06) 100%) !important; border-color: rgba(59,158,255,0.15) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-stat-label { color: rgba(255,255,255,0.4) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-chart-wrap { background: rgba(59,158,255,0.04) !important; border-color: rgba(59,158,255,0.10) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-chart-title { color: rgba(255,255,255,0.4) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-orders-title { color: #e8eaf0 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-view-all { color: #3B9EFF !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-order-row { background: rgba(255,255,255,0.03) !important; border-color: rgba(255,255,255,0.04) !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-order-name { color: #d0d8e8 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-order-price { color: #e8eaf0 !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-nav-item { opacity: .45; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-nav-item.active { opacity: 1; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-notif-badge { border-color: #0B0E1A !important; }
[data-theme="light"] .mockup-body[data-theme="dark"] .wf-notif { background: rgba(59,158,255,0.1) !important; border-color: rgba(59,158,255,0.2) !important; }

/* ============================================================
   PREVIEW LAYOUT DIRECTION FIX
   ============================================================ */

/* Woofy section: mockup on left, text on right in both LTR/RTL */
.preview-layout-reverse {
  direction: ltr;
}
.preview-layout-reverse .woofy-text-col {
  direction: rtl;
}
[data-lang="en"] .preview-layout-reverse .woofy-text-col {
  direction: ltr;
}

/* Peywend section: always text-right mockup-left in RTL, text-left mockup-right in LTR */
[data-lang="fa"] .preview-layout:not(.preview-layout-reverse) {
  direction: rtl;
}

/* Light mode preview section: subtle contrast background */
[data-theme="light"] .preview-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
[data-theme="light"] .preview-section + .preview-section {
  border-top-color: var(--border);
}

/* Preview text stays readable in both themes */
.preview-text .sec-title { color: var(--text); }
.preview-text .sec-sub { color: var(--text2); }
.preview-features li { color: var(--text2); }
