/* ═══════════════════════════════════════════════════════════
   ZADSOL POS & RETAIL — Page Styles & Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes pos-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(0deg); }
}
@keyframes pos-glow {
  0%, 100% { box-shadow: 0 24px 60px rgba(99,102,241,0.25), 0 0 0 1px rgba(99,102,241,0.15); }
  50% { box-shadow: 0 32px 70px rgba(99,102,241,0.35), 0 0 40px rgba(99,102,241,0.12); }
}
@keyframes pos-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 0.6; }
  100% { transform: translateY(200%); opacity: 0; }
}
@keyframes pos-pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.15; }
  100% { transform: scale(0.95); opacity: 0.5; }
}
@keyframes pos-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pos-count-pop {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── HERO SPLIT ──────────────────────────────── */
.pos-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: clamp(100px, 12vw, 140px) clamp(20px, 5vw, 60px) clamp(60px, 8vw, 80px);
  background: var(--hero-grad);
  overflow: hidden;
}
.pos-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(99,102,241,0.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(167,139,250,0.12) 0%, transparent 40%);
}
.pos-hero-grid {
  position: absolute; inset: 0; opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pos-hero-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  max-width: 1140px; margin: 0 auto; width: 100%;
}
.pos-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #FDE68A; background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 24px;
  animation: pos-slide-in 0.8s ease forwards;
}
.pos-hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FBBF24;
  animation: pos-pulse-ring 2s ease infinite;
}
.pos-hero-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 20px;
  animation: pos-slide-in 0.8s ease 0.1s both;
}
.pos-hero-title em { color: #A5B4FC; font-style: normal; }
.pos-hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.62);
  line-height: 1.75; max-width: 520px;
  animation: pos-slide-in 0.8s ease 0.2s both;
}
.pos-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;
  animation: pos-slide-in 0.8s ease 0.3s both;
}

/* ── POS MOCKUP ──────────────────────────────── */
.pos-mockup-wrap {
  position: relative;
  animation: pos-float 5s ease-in-out infinite;
}
.pos-mockup-ring {
  position: absolute; inset: -20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,102,241,0.25);
  animation: pos-pulse-ring 3s ease infinite;
}
.pos-mockup {
  position: relative;
  background: #1E1B4B;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  animation: pos-glow 4s ease-in-out infinite;
}
.pos-mockup-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pos-mockup-dots { display: flex; gap: 6px; }
.pos-mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.pos-mockup-dots span:first-child { background: #EF4444; }
.pos-mockup-dots span:nth-child(2) { background: #FBBF24; }
.pos-mockup-dots span:nth-child(3) { background: #22C55E; }
.pos-mockup-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: rgba(255,255,255,0.45); letter-spacing: 0.1em;
}
.pos-mockup-body { display: grid; grid-template-columns: 1fr 140px; min-height: 280px; }
.pos-mockup-items { padding: 16px; }
.pos-mockup-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: rgba(255,255,255,0.85);
  animation: pos-slide-in 0.5s ease both;
}
.pos-mockup-item:nth-child(1) { animation-delay: 0.4s; }
.pos-mockup-item:nth-child(2) { animation-delay: 0.55s; }
.pos-mockup-item:nth-child(3) { animation-delay: 0.7s; }
.pos-mockup-item:nth-child(4) { animation-delay: 0.85s; }
.pos-mockup-item span:last-child { color: #A5B4FC; font-weight: 700; }
.pos-mockup-side {
  background: rgba(99,102,241,0.15);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
}
.pos-mockup-total-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.pos-mockup-total {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.5rem; color: #fff;
}
.pos-mockup-btn {
  background: var(--accent); color: #fff;
  text-align: center; padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.04em;
}
.pos-mockup-scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,0.08), transparent);
  animation: pos-scan 4s linear infinite;
  pointer-events: none;
}

/* ── FEATURED BANNER (home page) ─────────────── */
.pos-featured-banner {
  max-width: 1060px; margin: -20px auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
  position: relative; z-index: 3;
}
.pos-featured-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 50%, #7C3AED 100%);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
  color: #fff;
  box-shadow: 0 24px 60px rgba(99,102,241,0.35);
  overflow: hidden;
  position: relative;
}
.pos-featured-inner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: pos-pulse-ring 4s ease infinite;
}
.pos-featured-icon {
  font-size: 2.5rem; font-weight: 900;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  position: relative; z-index: 1;
}
.pos-featured-text { position: relative; z-index: 1; }
.pos-featured-text h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem;
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.pos-featured-text p {
  font-size: 0.88rem; color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
.pos-featured-link {
  position: relative; z-index: 1;
  white-space: nowrap;
}

/* ── PROJECT CARD FEATURED ───────────────────── */
.project-card--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 0; padding: 0; overflow: hidden;
  border: 2px solid rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
}
.project-card--featured .project-card-visual {
  position: relative; min-height: 220px; overflow: hidden;
}
.project-card--featured .project-card-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card--featured:hover .project-card-visual img { transform: scale(1.05); }
.project-card--featured .project-card-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.project-card--featured .project-badge {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px;
  display: inline-block; margin-bottom: 12px; font-weight: 600;
}
.project-card--featured .project-title { font-size: 1.5rem; }
.project-card--featured .project-desc { font-size: 0.95rem; margin-bottom: 20px; }

/* ── VERTICAL / INDUSTRY CARDS ───────────────── */
.pos-verticals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pos-vertical-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pos-vertical-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.pos-vertical-img {
  position: relative; height: 220px; overflow: hidden;
}
.pos-vertical-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.pos-vertical-card:hover .pos-vertical-img img { transform: scale(1.08); }
.pos-vertical-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,17,32,0.75) 0%, transparent 55%);
}
.pos-vertical-icon {
  position: absolute; bottom: 16px; left: 20px;
  font-size: 2rem; font-weight: 900;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.pos-vertical-label {
  position: absolute; bottom: 16px; left: 56px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem; color: #fff;
}
.pos-vertical-body { padding: 24px 28px 28px; }
.pos-vertical-body h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 10px; color: var(--text);
}
.pos-vertical-body p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 16px;
}
.pos-vertical-features { list-style: none; }
.pos-vertical-features li {
  font-size: 0.82rem; color: var(--text-secondary);
  padding: 5px 0; padding-left: 18px; position: relative;
}
.pos-vertical-features li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ── FEATURES STRIP ──────────────────────────── */
.pos-features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pos-feature-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.pos-feature-item:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
}
.pos-feature-icon {
  font-size: 2rem; font-weight: 900;
  margin-bottom: 14px; line-height: 1;
}
.pos-feature-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.88rem;
  color: #fff; margin-bottom: 8px;
}
.pos-feature-desc { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* ── WORKFLOW STEPS ──────────────────────────── */
.pos-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pos-step {
  text-align: center; position: relative;
}
.pos-step-num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 2.5rem;
  color: var(--accent); line-height: 1;
  margin-bottom: 12px;
  animation: pos-count-pop 0.6s ease both;
}
.pos-step:nth-child(2) .pos-step-num { animation-delay: 0.1s; }
.pos-step:nth-child(3) .pos-step-num { animation-delay: 0.2s; }
.pos-step:nth-child(4) .pos-step-num { animation-delay: 0.3s; }
.pos-step h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  margin-bottom: 8px;
}
.pos-step p { font-size: 0.82rem; color: var(--text-secondary); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .pos-hero-layout { grid-template-columns: 1fr; }
  .pos-mockup-wrap { max-width: 420px; margin: 40px auto 0; }
  .pos-verticals, .pos-features-grid, .pos-steps { grid-template-columns: 1fr; }
  .project-card--featured { grid-template-columns: 1fr; }
  .pos-featured-inner { grid-template-columns: 1fr; text-align: center; }
  .pos-featured-icon { margin: 0 auto; }
  .pos-featured-link { justify-self: center; }
}
