/* =========================================================
   BazarFlow v2 — premium dark, Persian/RTL
   ========================================================= */
:root {
  --bg: #0B0B0B;
  --card: #161616;
  --card-hover: #1C1C1C;
  --border: #262626;
  --accent: #3B82F6;
  --accent-2: #22D3EE;
  --text: #F5F5F5;
  --text-soft: #A3A3A3;
  --text-faint: #6B6B6B;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
* {
  -webkit-tap-highlight-color: transparent;
}
section, .hero { scroll-margin-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Side glow (left & right edges, full page height) ----------
   Soft brand-blue light that fades toward the content. Fixed to the viewport
   so it stays visible all the way down the page, and sits behind everything. */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(70px, calc((100vw - var(--container)) / 2 + 80px), 360px);
  pointer-events: none;
  z-index: -1;
}
body::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(59,130,246,0.17) 0%,
    rgba(59,130,246,0.10) 25%,
    rgba(59,130,246,0.05) 50%,
    rgba(59,130,246,0.018) 76%,
    rgba(59,130,246,0) 100%);
}
body::after {
  right: 0;
  background: linear-gradient(to left,
    rgba(59,130,246,0.17) 0%,
    rgba(59,130,246,0.10) 25%,
    rgba(59,130,246,0.05) 50%,
    rgba(59,130,246,0.018) 76%,
    rgba(59,130,246,0) 100%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
* { box-sizing: border-box; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Cascading stagger for grids of cards revealing together */
.grid-2 .reveal:nth-child(1), .grid-3 .reveal:nth-child(1) { transition-delay: 0s; }
.grid-2 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2) { transition-delay: .1s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,11,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-2); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.nav-cta {
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06121F;
  font-weight: 600;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
}
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #06121F; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(59,130,246,0.55); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(59,130,246,0.08); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(34,211,238,0.07) 42%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.particle-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(18px, -26px); }
  100% { transform: translate(0, 0); }
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 32px;
  text-align: right;
}
.hero-content { 
  grid-column: 1; 
  max-width: 560px; 
}
.hero-image-wrap {
  grid-column: 2;
  position: relative;
  margin: 0; 
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity .7s var(--ease);
  /* Increased scale to stretch the image further */
  transform: scale(1.15); 
  /* Focuses the zoom on the left side where the robot chat is */
  transform-origin: left center; 
}
.hero-image.loaded { opacity: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent-2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34,211,238,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.hero h1 {
  font-size: 54px;
  line-height: 1.25;
  background: linear-gradient(180deg, #FFFFFF 0%, #C9C9C9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.hero p.sub {
  font-size: 17.5px;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-actions { display: flex; justify-content: flex-start; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #131313, #0E0E0E);
  padding: 32px 36px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  overflow-x: auto;
}
.pipeline-label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 20px;
  text-align: center;
}
.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  min-width: 640px;
}
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  padding: 14px 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-soft);
  min-width: 78px;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.pipeline-node .p-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.pipeline-node.active { border-color: var(--accent); background: rgba(59,130,246,0.08); color: var(--text); }
.pipeline-node.active .p-dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.pipeline-arrow {
  width: 26px; height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---------- Demo previews (under product cards) ---------- */
.demo-preview { margin-top: 8px; padding-top: 20px; border-top: 1px dashed var(--border); }
.demo-label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 12px; }
.chat-mock {
  background: #0F0F0F;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.chat-bubble { max-width: 82%; padding: 9px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.6; }
.chat-bubble.user { align-self: flex-start; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #06121F; }
.chat-bubble.bot { align-self: flex-end; background: #1C1C1C; border: 1px solid var(--border); color: var(--text-soft); }

.report-mock { background: #0F0F0F; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.report-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: var(--text-soft); }
.report-tag { color: var(--accent-2); font-weight: 700; }
.report-bar { height: 6px; border-radius: 3px; background: #1F1F1F; overflow: hidden; margin-bottom: 12px; }
.report-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.stage-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stage { font-size: 11px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; }
.stage.active { color: var(--accent-2); border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.06); }
.stage-line { width: 14px; height: 1px; background: var(--border); flex-shrink: 0; }

/* ---------- Fit / qualification section ---------- */
.fit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.fit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 18px; }
.fit-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.fit-icon.yes { background: rgba(34,211,238,0.12); color: var(--accent-2); }
.fit-icon.no { background: rgba(255,255,255,0.05); color: var(--text-faint); }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-list li { font-size: 14px; color: var(--text-soft); padding-right: 4px; }
.fit-yes .fit-list li::before { content: '— '; color: var(--accent-2); }
.fit-no .fit-list li::before { content: '— '; color: var(--text-faint); }

/* ---------- Sections ---------- */
/* ---------- Capability marquee ---------- */
.marquee-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 9px 18px;
  border-radius: 100px;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

section { padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head h2 { font-size: 36px; margin-bottom: 16px; }
.section-head p { color: var(--text-soft); font-size: 16px; }

.about-text { max-width: 760px; margin: 0 auto; text-align: center; font-size: 17px; color: var(--text-soft); }
.about-text strong { color: var(--text); font-weight: 600; }

/* ---------- About showcase (two-column) ---------- */
.about-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.about-left {
  position: relative;
  padding-right: 26px;
  text-align: right;
}
.about-left::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; right: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(59,130,246,0.5);
}
.about-left .eyebrow { display: block; }
.about-left h2 { font-size: 32px; margin: 14px 0 22px; line-height: 1.35; }
.about-left .about-text { text-align: right; margin: 0 0 26px; max-width: 100%; }
.tag-badge {
  display: inline-block;
  direction: ltr;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
  padding: 7px 14px;
  border-radius: 100px;
}

/* ---------- Visual Connectors (Text & Diagram) ---------- */

.diagram-caption {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--accent-2);
  font-size: 13px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.3); /* Subtle dashed line matching the accent */
}

.arrow-icon {
  display: inline-block;
  font-size: 15px;
  animation: pulseArrow 1.5s infinite ease-in-out;
}

/* Pulsing animation to guide the eye toward the diagram */
@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); } 
}

.diagram-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.05); /* Faint accent background */
  border: 1px solid rgba(34, 211, 238, 0.2); /* Subtle glowing border */
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.3s ease;
  user-select: none;
}

.diagram-link:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15); /* Glassmorphic glow on hover */
}

/* ---------- Workflow dashboard (right column) ---------- */
.about-right { position: relative; }
.workflow-dashboard {
  position: relative;
  background: rgba(22,22,22,0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.wf-chain { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.wf-node {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text-soft);
  backdrop-filter: blur(6px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.wf-node:hover { border-color: rgba(59,130,246,0.4); box-shadow: 0 0 20px -6px rgba(59,130,246,0.35); }
.wf-node-accent {
  color: var(--text);
  font-weight: 700;
  border-color: rgba(59,130,246,0.55);
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(34,211,238,0.08));
  box-shadow: 0 0 28px -6px rgba(59,130,246,0.5);
}
.wf-icon { font-size: 15px; flex-shrink: 0; }
.wf-line {
  position: relative;
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.35;
  margin: 2px 0;
}
.wf-line::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: flowDot 2.8s linear infinite;
  opacity: 0;
}
.wf-chain .wf-line:nth-of-type(1)::after,
.wf-line:nth-child(2)::after { animation-delay: 0s; }
.wf-line:nth-child(4)::after { animation-delay: .45s; }
.wf-line:nth-child(6)::after { animation-delay: .9s; }
.wf-line:nth-child(8)::after { animation-delay: 1.35s; }
.wf-line:nth-child(10)::after { animation-delay: 1.8s; }
.wf-line:nth-child(12)::after { animation-delay: 2.25s; }
@keyframes flowDot {
  0%   { top: -3px; opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Floating status cards */
.float-card {
  position: absolute;
  z-index: 3;
  font-size: 11.5px;
  color: var(--text);
  background: rgba(22,22,22,0.75);
  border: 1px solid rgba(34,211,238,0.3);
  backdrop-filter: blur(10px);
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5);
  animation: floatCard 7s ease-in-out infinite;
  white-space: nowrap;
}
.fc-1 { top: -14px;  right: 6%;   animation-delay: 0s; }
.fc-2 { top: 18%;    left: -22px; animation-delay: 1.2s; }
.fc-3 { top: 46%;    right: -26px; animation-delay: 2.4s; }
.fc-4 { bottom: 22%; left: -18px; animation-delay: 3.6s; }
.fc-5 { bottom: -14px; right: 10%; animation-delay: 4.8s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-block { background: var(--card); padding: 32px 20px; text-align: center; }
.stat-num {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 32px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  direction: ltr;
  display: inline-block;
}
.stat-label { margin-top: 8px; font-size: 13px; color: var(--text-soft); }

/* ---------- Cards / grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .4s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card::after, .product-card .spotlight {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,0.14), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::after, .product-card:hover .spotlight { opacity: 1; }
.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.35); background: var(--card-hover); }

/* product cards */
.product-card {
  position: relative;
  background: rgba(22, 22, 22, 0.65); /* Slightly more opaque glassmorphism for better contrast */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 30%, transparent 70%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-5px);
  background: rgba(28, 28, 28, 0.85); /* Lighten slightly on hover */
  border-color: rgba(34, 211, 238, 0.45); /* Cyan accent border */
  box-shadow: 0 20px 50px -15px rgba(34, 211, 238, 0.15), 
              0 0 25px -5px rgba(34, 211, 238, 0.1) inset; /* Outer and inner delicate cyan glow */
}

/* skip link */
.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: var(--accent);
  color: #06121F;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 999;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { right: 0; }

/* form submit loading */
#submit-btn.is-loading { opacity: .7; cursor: progress; }
.req { color: var(--accent-2); }
.field-error { display: block; font-size: 11.5px; color: #F87171; margin-top: 6px; min-height: 14px; }
.product-media {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.18), 0 24px 60px -20px rgba(59,130,246,0.35);
  transition: box-shadow .35s ease;
}
.product-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  opacity: 0;
  transition: transform .45s ease, filter .35s ease, opacity .6s var(--ease);
}
.product-image.loaded { opacity: 1; }
.product-card:hover .product-media { box-shadow: 0 0 0 1px rgba(34,211,238,0.35), 0 30px 80px -18px rgba(34,211,238,0.5); }
.product-card:hover .product-image { transform: scale(1.02); filter: brightness(1.05); }

/* ---------- Product media placeholder (no photo added yet) ---------- */
.product-media.is-placeholder {
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px),
    var(--card);
  border: 1.5px dashed var(--border);
  color: var(--text-faint);
  transition: border-color .3s ease, color .3s ease;
}
.product-card:hover .product-media.is-placeholder { border-color: rgba(34,211,238,0.4); color: var(--accent-2); }
.product-media.is-placeholder svg { width: 34px; height: 34px; opacity: .8; }
.product-media.is-placeholder .ph-title { font-size: 13.5px; font-weight: 600; }
.product-media.is-placeholder .ph-sub { font-size: 11.5px; color: var(--text-faint); }

/* ---------- Products carousel ---------- */
.products-carousel { position: relative; }
.products-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 60px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.products-track::-webkit-scrollbar { display: none; }
.products-track .product-card {
  flex: 0 0 auto;
  width: 560px;
  max-width: 88vw;
  scroll-snap-align: start;
}
.products-track .reveal:nth-child(1) { transition-delay: 0s; }
.products-track .reveal:nth-child(2) { transition-delay: .1s; }

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease, opacity .25s ease;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover {
  background: var(--card-hover);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.4), 0 16px 36px -10px rgba(34,211,238,0.45);
}
.carousel-btn:active { transform: translateY(-50%) scale(.9); }
.carousel-btn.is-disabled { opacity: .3; cursor: default; pointer-events: none; }
.carousel-btn-prev { right: 4px; }
.carousel-btn-next { left: 4px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, width .25s ease, border-radius .25s ease;
}
.carousel-dot:hover { background: var(--text-faint); }
.carousel-dot.active { background: var(--accent-2); width: 24px; border-radius: 5px; }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  background: rgba(11, 11, 11, 0.85);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Mobile nav toggle ---------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 110;
  padding: 0.4rem;
}

.product-card h3 { font-size: 22px; }
.product-card p.desc { color: var(--text-soft); font-size: 14.5px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-soft);
}
.feature-list li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.price-label { font-size: 11.5px; color: var(--text-faint); margin-bottom: 4px; }
.price-value { font-size: 17px; font-weight: 700; color: var(--text); }
.price-value span { color: var(--accent-2); }

/* why cards */
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 18px;
}
.card h3.why-title { font-size: 17px; margin-bottom: 8px; }
.card p.why-desc { font-size: 13.5px; color: var(--text-soft); }

/* ---------- Process timeline ---------- */
.process-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.process-row::before {
  content: '';
  position: absolute;
  top: 24px; right: 8%; left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
  z-index: 0;
}
.process-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700; font-size: 15px;
  color: var(--accent-2);
}
.process-item.active .process-num {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121F;
}
.process-item h4 { font-size: 14.5px; margin-bottom: 6px; }
.process-item p { font-size: 12px; color: var(--text-faint); max-width: 16ch; margin: 0 auto; }

/* ---------- Pricing note ---------- */
.pricing-panel {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}
.pricing-panel p { color: var(--text-soft); font-size: 15.5px; max-width: 56ch; margin: 0 auto 28px; }
.factor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: right;
}
.factor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.015);
}

/* ---------- FAQ accordion ---------- */
.faq-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.faq-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-tab:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.faq-tab.active {
  color: #06121F;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 4px 20px -4px rgba(34, 211, 238, 0.4);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.acc-item { margin-bottom: 16px; transition: margin .45s var(--ease); }
.acc-item.is-hidden { margin-bottom: 0; }
.acc-item:last-child { margin-bottom: 0; }

.glass-card {
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
  max-height: 600px;
  overflow: hidden;
  opacity: 1;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .45s var(--ease), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 30px -10px rgba(59, 130, 246, 0.15);
}

.glass-card.open {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(26, 26, 26, 0.75);
  box-shadow: 0 10px 35px -10px rgba(34, 211, 238, 0.2);
}

.acc-q-wrap {
  margin: 0;
}

.acc-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: right;
  gap: 16px;
}

.acc-q .icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.acc-q:hover .icon-wrap {
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.12);
}

.acc-item.open .acc-q .icon-wrap {
  transform: rotate(180deg);
  background: var(--accent-2);
  color: #06121F;
  border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

/* Smooth Accordion Height Expansion (Grid technique) */
.acc-a-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-item.open .acc-a-wrapper {
  grid-template-rows: 1fr;
}

.acc-a {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.8;
  padding-bottom: 0px;
  transition: padding 0.35s ease;
}

.acc-item.open .acc-a {
  padding-bottom: 22px;
}

.acc-item.is-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}
/* ---------- Blog preview ---------- */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.35); }
.blog-thumb {
  position: relative;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.22), transparent 60%),
              radial-gradient(circle at 75% 70%, rgba(34,211,238,0.16), transparent 55%),
              #101010;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}
.blog-thumb .soon-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10.5px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  background: rgba(11,11,11,0.6);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 100px;
}
.blog-body { padding: 24px; }
.blog-body span.tag { font-size: 11.5px; color: var(--accent-2); }
.blog-body h4 { font-size: 16px; margin: 10px 0 8px; }
.blog-body p { font-size: 13px; color: var(--text-soft); }

/* ---------- Contact form ---------- */
.contact-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 48px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #0F0F0F;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; gap: 20px; margin-top: 6px; }
.radio-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); }
.form-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; object-fit: contain; }
.footer-tagline { color: var(--text-faint); font-size: 13px; max-width: 30ch; }
.footer-col h5 { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-faint); }
.footer-col a:hover { color: var(--accent-2); }
.footer-cols { display: flex; gap: 64px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 12.5px; color: var(--text-faint);
  flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
}
.social-row a:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Focus a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .mobile-menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s var(--ease);
    z-index: 105;
    margin: 0;
    padding: 0;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.15rem; font-weight: 500; }

  .hero h1 { font-size: 34px; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-content { grid-column: 1; max-width: 100%; margin: 0 auto; }
  .hero-image-wrap { grid-column: 1; margin: -20px 0 -10px; order: -1; }
  .hero-actions { justify-content: center; }
  .hero p.sub { margin: 0 auto 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .process-row { flex-direction: column; gap: 28px; }
  .process-row::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; flex-wrap: wrap; }
  .factor-grid { grid-template-columns: 1fr; }
  .about-showcase { grid-template-columns: 1fr; gap: 48px; }
  .about-left { padding-right: 20px; text-align: right; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .product-image { height: 300px; }
  .product-media.is-placeholder { height: 300px; }
  .products-track .product-card { width: 460px; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-btn svg { width: 19px; height: 19px; }
}

@media (max-width: 560px) {
  .product-image { height: 280px; }
  .product-media.is-placeholder { height: 280px; }
  .product-card { padding: 18px 18px 28px; }
  .products-track { padding: 4px 42px 20px; }
  .products-track .product-card { width: 86vw; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-btn svg { width: 17px; height: 17px; }
  .carousel-btn-prev { right: -2px; }
  .carousel-btn-next { left: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(22,22,22,0.85);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease, color .3s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: rgba(34,211,238,0.5); color: var(--accent-2); }

/* ---------- Button ripple ---------- */
.btn { position: relative; overflow: hidden; }
.btn, .faq-tab, .acc-q, .mobile-menu-toggle, .nav-cta {
  min-height: 44px;
  min-width: 44px;
}
.ripple {
  position: absolute;
  width: 10px; height: 10px;
  margin-left: -5px; margin-top: -5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: rippleGrow .6s ease-out;
  pointer-events: none;
}
@keyframes rippleGrow {
  to { transform: scale(18); opacity: 0; }
}

/* ---------- Page entrance ---------- */
html.is-loading body { opacity: 0; }
body { opacity: 1; transition: opacity .4s ease; }

/* ---------- Language toggle ---------- */
.language-toggle {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 120;
  min-width: 64px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22,22,22,.86);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
  font: 600 12px/1 'Vazirmatn', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.65);
  transition: border-color .25s ease, color .25s ease, transform .25s ease, background .25s ease;
}
.language-toggle:hover {
  border-color: var(--accent-2);
  color: var(--text);
  background: rgba(28,28,28,.94);
  transform: translateY(-1px);
}
.language-toggle:active { transform: translateY(0); }

/* Direction-aware layout corrections for English mode. */
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .hero-split { text-align: left; }
html[dir="ltr"] .hero-content { grid-column: 1; }
html[dir="ltr"] .hero-image-wrap { grid-column: 2; }
html[dir="ltr"] .hero-image { transform-origin: right center; }
html[dir="ltr"] .about-left { padding-right: 0; padding-left: 26px; text-align: left; }
html[dir="ltr"] .about-left::before { right: auto; left: 0; }
html[dir="ltr"] .about-left .about-text { text-align: left; }
html[dir="ltr"] .fit-list li { padding-right: 0; padding-left: 4px; }
html[dir="ltr"] .fit-yes .fit-list li::before,
html[dir="ltr"] .fit-no .fit-list li::before { content: '— '; }
html[dir="ltr"] .nav-links { direction: ltr; }
html[dir="ltr"] .products-track { direction: ltr; }
html[dir="ltr"] .chat-bubble.user { align-self: flex-end; }
html[dir="ltr"] .chat-bubble.bot { align-self: flex-start; }
html[dir="ltr"] .diagram-caption { direction: ltr; }
html[dir="ltr"] .language-toggle { right: 20px; left: auto; }

@media (max-width: 880px) {
  .language-toggle { top: 88px; right: 16px; }
  html[dir="rtl"] .about-left { padding-right: 20px; }
  html[dir="ltr"] .about-left { padding-right: 0; padding-left: 20px; text-align: left; }
  html[dir="ltr"] .nav-links { right: auto; left: -100%; border-left: 0; border-right: 1px solid var(--border); transition: left .4s var(--ease); }
  html[dir="ltr"] .nav-links.active { right: auto; left: 0; }
}

@media (max-width: 560px) {
  .language-toggle { top: 84px; right: 12px; min-width: 60px; height: 38px; padding: 0 10px; }
}

/* ---------- Case study / portfolio section ---------- */
#case-study { padding: 20px 0; }
.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 32px;
  background: rgba(22, 22, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
.case-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 20px 50px -15px rgba(34, 211, 238, 0.15);
}
.case-card .spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,0.12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.case-card:hover .spotlight { opacity: 1; }
.case-visual, .case-info { position: relative; min-width: 0; }

.browser-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #0F0F0F;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.18), 0 30px 70px -25px rgba(59,130,246,0.4);
  transition: box-shadow .35s ease;
}
.case-card:hover .browser-frame { box-shadow: 0 0 0 1px rgba(34,211,238,0.35), 0 34px 80px -22px rgba(34,211,238,0.4); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  direction: ltr;
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.browser-url {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  font-size: 11.5px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(34,211,238,0.04)), var(--card);
}
.case-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
  transition: transform .6s var(--ease), filter .35s ease;
}
.case-card:hover .case-image { transform: scale(1.025); filter: brightness(1.04); }

.case-info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
  padding: 6px 14px;
  border-radius: 100px;
}
.case-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.case-info h3 { font-size: 26px; line-height: 1.35; }
.case-desc { color: var(--text-soft); font-size: 15.5px; line-height: 1.9; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.case-tags li {
  font-size: 12.5px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 7px 14px;
  border-radius: 100px;
}
.case-cta { margin-top: 6px; }

@media (max-width: 980px) {
  .case-card { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
  .case-info h3 { font-size: 23px; }
}
@media (max-width: 560px) {
  .case-card { padding: 14px 14px 26px; gap: 24px; }
  .browser-screen { aspect-ratio: 4 / 3; }
  .case-info { padding: 0 6px; }
  .case-cta { width: 100%; justify-content: center; }
}
