/* ============================================================
   SMARTOUCH — PRODUCT PAGE CSS
   Shared styles for all product pages (raqeem, cenatra, sub-modules)
   ============================================================ */

/* ============================================================
   PRODUCT LOGOS
   ============================================================ */

/* Hero product logo image */
.prod-logo-img {
  display: block;
  max-height: 64px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

/* Cenatra module card logo */
.mod-logo-img {
  display: block;
  height: 32px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

/* ----------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------- */
.breadcrumb { padding: calc(var(--nav) + 16px) 0 0; position: relative; z-index: 2; }
.bc-inner { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--w40); }
.bc-inner a { color: var(--w40); transition: color .15s var(--ease-out-quart); text-decoration: none; }
@media (hover: hover) {
  .bc-inner a:hover { color: var(--w80); }
}
.bc-sep { color: var(--w20); }
.bc-cur { font-weight: 600; }

/* ----------------------------------------------------------
   SECTION TAGS
   ---------------------------------------------------------- */
.sec-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--w40);
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.sec-h {
  font-family: var(--fd);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 15px;
  color: var(--w60);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.prod-hero { padding: 24px 0 80px; position: relative; overflow: hidden; }
.prod-hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; position: relative; z-index: 2; }

.prod-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.prod-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pdot 2s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { box-shadow: 0 0 5px currentColor; }
  50%      { box-shadow: 0 0 14px currentColor; }
}

.prod-wordmark {
  font-family: var(--fd);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .9;
}
.prod-tagline { font-size: 14px; font-weight: 500; margin-top: 10px; margin-bottom: 16px; }
.prod-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--w60);
  line-height: 1.8;
  max-width: 430px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-kpis {
  display: flex;
  gap: 0;
  border: 1px solid var(--b);
  border-radius: var(--r);
  overflow: hidden;
}
.hkpi {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--b);
}
.hkpi:last-child { border-right: none; }
.hkpi-n { font-family: var(--fd); font-size: 18px; font-weight: 800; }
.hkpi-l { font-size: 10px; color: var(--w40); margin-top: 2px; }

/* ----------------------------------------------------------
   PRODUCT VISUAL / DASHBOARD MOCKUP
   ---------------------------------------------------------- */
.prod-visual {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(70px);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  animation: pglow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pglow {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%      { transform: translate(-50%,-50%) scale(1.1); }
}

.dash-main {
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: 14px;
  width: min(340px, 90vw);
  box-shadow: 0 24px 72px rgba(4,5,15,.8);
  animation: dmfloat 5s ease-in-out infinite;
  will-change: transform;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
@keyframes dmfloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(-1.5deg); }
}

.dash-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--b);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-dots { display: flex; gap: 5px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; }

.dash-title-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  justify-content: center;
}
.dash-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(0,226,102,.6);
}
.dash-title-txt { font-size: 10px; color: var(--w40); }

.dash-body { padding: 14px; }

/* Rate display */
.rate-display { margin-bottom: 12px; }
.rate-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rate-pair { font-size: 10px; color: var(--w40); flex: 1; }
.rate-val { font-family: var(--fd); font-size: 16px; font-weight: 800; }
.rate-change {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,226,102,.12);
  color: var(--success);
}
.rate-bar-bg { height: 3px; background: var(--b); border-radius: 2px; }
.rate-bar-fill { height: 100%; width: 65%; border-radius: 2px; }

/* Mini chart */
.mini-chart {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 48px;
  margin: 12px 0;
}
.mc-bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--b2); }

/* Transaction list */
.tx-list { display: flex; flex-direction: column; gap: 7px; }
.tx-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--card);
}
.tx-pair { flex: 1; color: var(--w60); }
.tx-amt { font-weight: 700; }
.tx-time { color: var(--w20); margin-left: auto; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(4,5,15,.6);
  will-change: transform;
}
.float-badge.fb-vol { top: 30px; right: -10px; animation: fb1 5s ease-in-out infinite; }
.float-badge.fb-sec { bottom: 40px; left: -10px; animation: fb2 6s ease-in-out infinite; }
@keyframes fb1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fb2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.fb-label { font-size: 9px; color: var(--w40); text-transform: uppercase; letter-spacing: .06em; }
.fb-val { font-family: var(--fd); font-size: 14px; font-weight: 800; margin: 2px 0; }
.fb-sub { font-size: 9px; color: var(--success); }

/* Module grid mockup (for Cenatra hero) */
.dash-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0; }
.dash-mod {
  border: 1px solid var(--b2);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--w60);
}
.dm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ----------------------------------------------------------
   FEATURES GRID
   ---------------------------------------------------------- */
.features-sec { padding: 88px 0; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 44px;
}
.feat-card {
  border: 1px solid var(--b);
  border-radius: var(--r2);
  background: var(--card);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: background .22s var(--ease-out-quart), border-color .22s var(--ease-out-quart), transform .22s var(--ease-out-quart);
}
@media (hover: hover) {
  .feat-card:hover {
    background: var(--card2);
    border-color: var(--b2);
    transform: translateY(-4px);
  }
  .feat-card:hover::after { opacity: 1; }
}
.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity .22s var(--ease-out-quart);
}

.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feat-title { font-family: var(--fd); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: 12.5px; color: var(--w40); line-height: 1.65; }

/* ----------------------------------------------------------
   SCREENSHOTS / DEMO TABS
   ---------------------------------------------------------- */
.shots-sec { padding: 0 0 88px; }
.shots-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; margin-bottom: 20px; }
.stab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--b);
  color: var(--w40);
  background: var(--card);
  transition: color .15s var(--ease-out-quart), border-color .15s var(--ease-out-quart), background .15s var(--ease-out-quart);
}
.stab.act { color: var(--w); border-color: var(--b2); background: var(--card2); }

.shots-frame {
  border: 1px solid var(--b);
  border-radius: var(--r2);
  background: var(--s1);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.shots-placeholder { text-align: center; padding: 60px 20px; }
.shots-placeholder-icon { font-size: 40px; margin-bottom: 14px; opacity: .4; }
.shots-placeholder-txt { font-size: 13px; color: var(--w40); }

/* ----------------------------------------------------------
   DEMO SECTION
   ---------------------------------------------------------- */
.demo-sec { padding: 0 0 88px; }
.demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
}
.demo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(0,226,102,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}

.demo-h {
  font-family: var(--fd);
  font-size: clamp(26px,3.5vw,42px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.demo-sub {
  font-size: 15px;
  color: var(--w60);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

.demo-creds {
  border: 1px solid var(--b);
  border-radius: var(--r2);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.demo-cred-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--w40);
  margin-bottom: 14px;
}
.demo-cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--b);
  font-size: 12.5px;
}
.demo-cred-lbl { color: var(--w40); width: 55px; flex-shrink: 0; }
.demo-cred-val { font-family: monospace; font-size: 12px; flex: 1; }
.demo-cred-copy {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--b2);
  cursor: pointer;
  color: var(--w40);
  transition: color .15s var(--ease-out-quart), border-color .15s var(--ease-out-quart);
  background: none;
}
@media (hover: hover) {
  .demo-cred-copy:hover { color: var(--w); border-color: var(--b3); }
}
.demo-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Browser mockup */
.browser-mock {
  background: var(--s2);
  border: 1px solid var(--b2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: dmfloat 5s ease-in-out infinite;
}
.bm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--b);
  background: var(--s1);
}
.bm-dots { display: flex; gap: 5px; }
.bm-dot { width: 9px; height: 9px; border-radius: 50%; }
.bm-url {
  font-size: 10.5px;
  color: var(--w40);
  flex: 1;
  text-align: center;
  padding: 4px 10px;
  background: var(--card);
  border-radius: 5px;
}
.bm-body { padding: 24px; min-height: 180px; }
.bm-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 180px;
  margin: 0 auto;
}
.bm-logo-text { font-family: var(--fd); font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.bm-field {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--b);
  font-size: 11px;
  color: var(--w60);
}
.bm-btn { padding: 9px; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; color: #fff; }

/* ----------------------------------------------------------
   CLIENTS STRIP
   ---------------------------------------------------------- */
.clients-strip {
  padding: 44px 0;
  border-top: 1px solid var(--b);
  border-bottom: 1px solid var(--b);
  background: var(--s1);
}
.cs-label {
  font-size: 11px;
  color: var(--w40);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 24px;
}
.cs-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cs-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--b);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--w60);
}
.cs-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   MODULE CARDS (Cenatra sub-modules)
   ---------------------------------------------------------- */
.modules-sec { padding: 88px 0; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 44px;
}
.mod-card {
  border: 1px solid var(--b);
  border-radius: var(--r2);
  background: var(--card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: background .22s var(--ease-out-quart), transform .22s var(--ease-out-quart), box-shadow .22s var(--ease-out-quart);
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) {
  .mod-card:hover {
    background: var(--card2);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.45);
  }
}
.mod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.mod-icon { font-size: 32px; margin-bottom: 14px; }
.mod-name { font-family: var(--fd); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.mod-tagline { font-size: 13px; color: var(--w40); margin-bottom: 12px; }
.mod-desc { font-size: 13px; color: var(--w60); line-height: 1.65; margin-bottom: 16px; }
.mod-link { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.mod-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--b);
  color: var(--w40);
}

/* Aurora blobs (shared keyframe) */
.aurora { position: absolute; border-radius: 50%; pointer-events: none; }
@keyframes ab {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,10px) scale(.97); }
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .prod-hero-in { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .prod-visual { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .shots-tabs { gap: 4px; }
  .stab { font-size: 11px; padding: 7px 12px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero-kpis { flex-wrap: wrap; }
  .hkpi { min-width: 33%; }
  .demo-creds { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Client logo image in cs-chip */
.cs-logo {
  /* White card to show real brand colors */
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  padding: 4px 6px;
  overflow: hidden;
}
.cs-img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* No filter — real brand colors */
}

/* ── 3D Hero element ── */
.hero-3d {
  position: absolute;
  top: -30px; right: -20px;
  width: 180px; height: 180px;
  pointer-events: none;
  z-index: 0;
}
.hero-3d-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  animation: float3d 5s ease-in-out infinite;
}
@keyframes float3d {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
