/* ════════════════════════════════════════════════════════════════
   AS AUTOMATION SYSTEMS — HOMEPAGE STYLES
   Homepage-only styles. All design tokens and shared components
   live in core.css. Do not duplicate tokens here.
   Requires: core.css
════════════════════════════════════════════════════════════════ */

/* ── Preloader ────────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s, visibility .5s;
}
.preloader.preloader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-text {
  font-family: var(--f-display);
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.preloader-bar {
  width: clamp(120px, 20vw, 200px);
  height: 3px;
  background: var(--b-0);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-bar-inner {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
  border-radius: 3px;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

/* ── Homepage Hero ────────────────────────────────────────────── */
.home-hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Safety: hero heading is always visible in CSS.
   GSAP overrides opacity at runtime only after intentionally locking it. */
.hero-h1 { opacity: 1; visibility: visible; }

/* ── Trust Marquee ────────────────────────────────────────────── */
.marquee-wrap {
  padding: 22px 0;
  border-top: 1px solid var(--b-0);
  border-bottom: 1px solid var(--b-0);
  background: rgba(244, 246, 255, .6);
  overflow: hidden;
}
[data-theme="dark"] .marquee-wrap { background: rgba(13, 15, 26, .6); }
.marquee {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--t-3);
  width: max-content;
}

/* ── Metrics ──────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  backdrop-filter: blur(18px);
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  text-align: left;
}
.metric:hover {
  border-color: rgba(99, 102, 241, .28);
  box-shadow: var(--sh-card), 0 0 44px rgba(99, 102, 241, .12);
}
.metric::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .4), transparent);
}
.metric-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(140deg, var(--t-1) 20%, var(--c-blue-b) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
}
.metric-label {
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t-1);
  margin-bottom: 5px;
}

/* ── Products Grid ────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-card);
  position: relative;
  transition: border-color .38s, box-shadow .45s, transform .38s var(--ease);
  will-change: transform;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, .08), transparent 40%);
  opacity: 0;
  transition: opacity 500ms;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  border-color: rgba(99, 102, 241, .35);
  box-shadow: var(--sh-card), 0 24px 64px rgba(79, 110, 247, .16);
  transform: translateY(-8px);
}
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 10px;
  border: 1px solid;
  color: var(--c-blue-b);
  background: rgba(79, 110, 247, .08);
  border-color: rgba(79, 110, 247, .25);
  z-index: 1;
}
.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(79, 110, 247, .12);
  box-shadow: 0 0 24px rgba(79, 110, 247, .2);
  margin: 28px 28px 18px;
}
.product-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--t-1);
  margin: 0 28px 10px;
}
.product-desc {
  font-size: 14px;
  color: var(--t-2);
  line-height: 1.68;
  margin: 0 28px 22px;
  flex: 1;
}
.product-cta {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue);
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── About Gallery ────────────────────────────────────────────── */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--b-0);
  box-shadow: var(--sh-card);
  position: relative;
  transition: transform .42s, border-color .3s, box-shadow .3s;
}
.gallery-card:hover {
  transform: scale(1.025);
  border-color: rgba(79, 110, 247, .3);
  box-shadow: 0 8px 28px rgba(79, 110, 247, .18);
}
.gallery-img {
  width: 100%;
  height: 100%;
  display: block;
}
.gallery-cap {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 110, 247, .15);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t-1);
}
[data-theme="dark"] .gallery-cap {
  background: rgba(13, 15, 26, .88);
  color: var(--t-1);
}

/* ── Contact Section ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--sh-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--t-2);
  letter-spacing: .02em;
}
.form-input,
.form-textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--b-0);
  background: var(--bg-0);
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--t-1);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, .12);
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--t-3);
}
.form-note a { color: var(--c-blue); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--sh-card);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .3s, transform .3s;
}
.info-card:hover {
  border-color: rgba(79, 110, 247, .25);
  transform: translateY(-2px);
}
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gl);
  border: 1px solid var(--b-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.info-title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--t-1);
  margin-bottom: 2px;
}
.info-text {
  font-size: 13px;
  color: var(--t-3);
}
.info-text a { color: var(--c-blue); text-decoration: none; }
.info-text a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-hero { padding: 110px 0 64px; min-height: auto; }
  .metrics-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr; }
  .gallery-card { height: 200px !important; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { padding: 28px 24px; }
}


/* ── Value Pillars (replaces metrics) ── */
.metric-desc {
  font-size: 13.5px;
  color: var(--t-2);
  line-height: 1.65;
  margin-top: 8px;
}


/* ── Hero layout ──────────────────────────────────────────────── */
.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

/* ── Hero Waves (Light Mode) / Terminal (Dark Mode) ─────────── */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity .4s ease;
}
.hero-waves-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hero-terminal {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity .4s ease;
}

#hero-terminal canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Terminal Section (Dark Mode) ────────────────────────────── */
.terminal-section {
  position: relative;
  overflow: hidden;
}
.terminal-section .section-head {
  position: relative;
  z-index: 2;
}
.terminal-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.15);
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(103,232,249,0.08);
  min-height: 480px;
}
.terminal-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.terminal-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  min-height: 480px;
  height: 100%;
}
.terminal-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0,0,0,0.45);
  border-right: 1px solid rgba(103,232,249,0.08);
  transition: background 0.3s;
}
.terminal-card:last-child {
  border-right: none;
}
.terminal-card:hover {
  background: rgba(103,232,249,0.06);
}
.terminal-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(103,232,249,0.1);
  border: 1px solid rgba(103,232,249,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #67e8f9;
  margin-bottom: 8px;
}
.terminal-card-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: #e8eaff;
  letter-spacing: -0.02em;
}
.terminal-card-desc {
  font-size: 14px;
  color: #8b94c4;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .terminal-overlay {
    grid-template-columns: 1fr;
  }
  .terminal-card {
    border-right: none;
    border-bottom: 1px solid rgba(103,232,249,0.08);
  }
  .terminal-card:last-child {
    border-bottom: none;
  }
  .terminal-stage {
    min-height: auto;
  }
}


/* ── Process Section (Scroll Path) ────────────────────────────── */
.process-section {
  position: relative;
  overflow: hidden;
}
.process-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-top: 40px;
}
.process-path {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 90%;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.35;
}
.process-path svg {
  width: 100%;
  height: auto;
  display: block;
}
[data-theme="dark"] .process-path {
  opacity: 0.22;
}
.process-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.process-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--sh-card);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.process-card:hover {
  border-color: rgba(79,110,247,.28);
  box-shadow: var(--sh-card-hover);
  transform: translateY(-4px);
}
.process-card h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--t-1);
  margin-bottom: 14px;
  line-height: 1.2;
}
.process-card p {
  font-size: 16px;
  color: var(--t-2);
  line-height: 1.7;
}
.process-visual {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-card) 100%);
  border: 1px solid var(--b-0);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.process-visual:hover {
  border-color: rgba(79,110,247,.28);
  box-shadow: var(--sh-card-hover);
  transform: translateY(-4px);
}
.process-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-blue), transparent);
  opacity: .6;
}
.process-visual-lg {
  min-height: 380px;
  width: 100%;
  max-width: 720px;
}
.pv-badge {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(79,110,247,.1);
  border: 1px solid rgba(79,110,247,.2);
  border-radius: 100px;
  padding: 5px 14px;
}
.pv-label {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--t-1);
  letter-spacing: -.01em;
}

/* Capture visual */
.pv-capture-grid {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.pv-channel {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pv-channel:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover);
}
.pv-connector {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
  border-radius: 1px;
  position: relative;
}
.pv-connector::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--c-purple);
}

/* Score visual */
.pv-score-card {
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  border-radius: var(--r-lg);
  padding: 26px;
  width: 100%;
  max-width: 280px;
  box-shadow: var(--sh-card);
  text-align: left;
}
.pv-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.pv-score-name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--t-1);
}
.pv-score-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 24px rgba(79,110,247,.3);
  flex-shrink: 0;
}
.pv-score-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--gl);
  overflow: hidden;
  margin-bottom: 12px;
}
.pv-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
}

/* Sync visual */
.pv-sync-nodes {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.pv-node {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pv-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover);
}
.pv-sync-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
  border-radius: 1px;
  position: relative;
  flex-shrink: 0;
}
.pv-sync-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--c-purple);
}

/* Calendar visual */
.pv-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pv-cal-day {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--b-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--t-2);
  box-shadow: var(--sh-card);
  transition: transform .2s var(--ease);
}
.pv-cal-day.active {
  background: linear-gradient(135deg, var(--c-blue), var(--c-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(79,110,247,.3);
}
.pv-cal-day:hover {
  transform: translateY(-2px);
}

/* RTL */
[dir="rtl"] .process-card { text-align: right; }
[dir="rtl"] .pv-score-card { text-align: right; }
[dir="rtl"] .pv-score-header { flex-direction: row-reverse; }
[dir="rtl"] .pv-connector::after {
  right: auto;
  left: -3px;
  border-left: none;
  border-right: 5px solid var(--c-purple);
}
[dir="rtl"] .pv-sync-line::after {
  right: auto;
  left: -3px;
  border-left: none;
  border-right: 5px solid var(--c-purple);
}

/* Responsive */
@media (max-width: 960px) {
  .process-stage { gap: 80px; }
  .process-row-split { grid-template-columns: 1fr; }
  .process-row-split.process-row-flip .process-visual { order: -1; }
  .process-path { width: 275%; top: 10vh; opacity: 0.2; }
  .process-card { padding: 32px; }
  .process-visual { min-height: 260px; padding: 36px; }
  .process-visual-lg { min-height: 300px; }
}
@media (max-width: 640px) {
  .process-stage { gap: 56px; padding-top: 20px; }
  .process-card { padding: 26px; }
  .process-card h3 { font-size: 20px; }
  .process-visual { min-height: 220px; padding: 28px; }
  .process-visual-lg { min-height: 260px; }
  .pv-channel { width: 56px; height: 56px; }
  .pv-node { width: 52px; height: 52px; }
  .pv-cal-day { width: 48px; height: 48px; font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════════
   PRODUCTS HOVER LIST  (Hover Effect 5 — professional adaptation)
   Replaces the 3-column card grid with a premium interactive list
   that shows floating product-preview thumbnails on hover.
══════════════════════════════════════════════════════════════ */

.products-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Dim siblings on hover — focus effect */
.products-list:hover .product-row:not(:hover) {
  opacity: 0.38;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--b-0);
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  transition: opacity 0.4s var(--ease);
}
.product-row:last-child { border-bottom: 1px solid var(--b-0); }

.pr-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--t-3);
  width: 28px;
  flex-shrink: 0;
}

.pr-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.pr-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(79,110,247,.1);
  border: 1px solid var(--b-0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-row:hover .pr-icon {
  background: rgba(79,110,247,.18);
  box-shadow: 0 0 22px rgba(79,110,247,.22);
}

.pr-info { transition: transform 0.55s var(--ease-out-expo); }
.product-row:hover .pr-info { transform: translateX(-12px); }

.pr-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--t-1);
}

.pr-desc {
  font-size: 13.5px;
  color: var(--t-3);
  margin-top: 4px;
}

.pr-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  transition: transform 0.55s var(--ease-out-expo);
}
.product-row:hover .pr-meta { transform: translateX(12px); }

.pr-badge {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-blue-b);
  background: rgba(79,110,247,.08);
  border: 1px solid rgba(79,110,247,.2);
  border-radius: 100px;
  padding: 4px 10px;
}

.pr-price {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--t-3);
  white-space: nowrap;
}

.pr-cta {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue);
  white-space: nowrap;
  transition: letter-spacing 0.3s var(--ease);
}
.product-row:hover .pr-cta { letter-spacing: .02em; }

/* ── Floating Product Thumbnail ── */
.products-thumbnail {
  position: fixed;
  width: 300px;
  height: 200px;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 600;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.25), 0 0 0 1px rgba(79,110,247,.18);
  /* Inner frames stack vertically — GSAP slides them into view via yPercent */
  display: flex;
  flex-direction: column;
}

.pt-frame {
  width: 100%;
  height: 200px;        /* exact same as container height */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

/* ── LeadFlow frame ── */
.pt-frame[data-frame="0"] {
  background: linear-gradient(135deg, #0f1224 0%, #131836 100%);
}
.pt-lf-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(79,110,247,.08);
  border: 1px solid rgba(79,110,247,.14);
  border-radius: 10px;
  padding: 10px 13px;
}
.pt-lf-name {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  color: #e8eaff;
}
.pt-lf-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: #4a527a;
  margin-top: 2px;
}
.pt-score-pill {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f6ef7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pt-flow-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.pt-flow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #4a527a;
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 7px;
  border: 1px solid rgba(79,110,247,.07);
}
.pt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pt-dot-green { background: #059669; }
.pt-dot-blue  { background: #4f6ef7; }
.pt-dot-amber { background: #d97706; }
.pt-row-status {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #059669;
}

/* ── WaBot frame ── */
.pt-frame[data-frame="1"] {
  background: linear-gradient(135deg, #0a1a0f 0%, #0d2414 100%);
}
.pt-wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pt-wa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pt-wa-name {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  color: #d1fae5;
}
.pt-wa-status {
  font-family: var(--f-mono);
  font-size: 8px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pt-wa-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
}
.pt-chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.pt-msg {
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.45;
}
.pt-msg-bot {
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.18);
  color: #86efac;
  align-self: flex-start;
  border-radius: 3px 10px 10px 10px;
}
.pt-msg-user {
  background: rgba(255,255,255,.05);
  color: #d1fae5;
  align-self: flex-end;
  border-radius: 10px 3px 10px 10px;
}

/* ── ContentOS frame ── */
.pt-frame[data-frame="2"] {
  background: linear-gradient(135deg, #1a0b2e 0%, #1e1040 100%);
}
.pt-cos-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: #7c3aed;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pt-cos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  flex: 1;
}
.pt-cos-card {
  border-radius: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(124,58,237,.14);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pt-cos-card:nth-child(1) { background: rgba(124,58,237,.08); }
.pt-cos-card:nth-child(2) { background: rgba(79,110,247,.08); }
.pt-cos-card:nth-child(3) { background: rgba(8,145,178,.08); }
.pt-cos-card:nth-child(4) { background: rgba(236,72,153,.06); }
.pt-cos-tag {
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.pt-cos-card:nth-child(1) .pt-cos-tag { color: #a78bfa; }
.pt-cos-card:nth-child(2) .pt-cos-tag { color: #4f6ef7; }
.pt-cos-card:nth-child(3) .pt-cos-tag { color: #0891b2; }
.pt-cos-card:nth-child(4) .pt-cos-tag { color: #ec4899; }
.pt-cos-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
}
.pt-cos-line:last-child { width: 65%; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .pr-badge { display: none; }
  .pr-meta { gap: 14px; }
  .products-thumbnail { display: none; }
}
@media (max-width: 640px) {
  .product-row { padding: 20px 0; gap: 14px; }
  .pr-meta { gap: 10px; }
  .pr-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .pr-price { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   HOVER EFFECT 8 — Mouse-Tracked Radial Glow on Card Grids
   A spotlight radial gradient follows the cursor inside each
   card, giving the grid a premium "lens" feel. Uses CSS custom
   properties --mouse-x / --mouse-y set by JS on mousemove.
══════════════════════════════════════════════════════════════ */

/* Ensure stacking context for pseudo-element overlay */
.terminal-card { position: relative; }
.info-card     { position: relative; }

/* Radial spotlight — sits above content, blocks no interaction */
.feat-card::before,
.metric::before,
.terminal-card::before,
.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    460px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(79, 110, 247, 0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 480ms;
  pointer-events: none;
  z-index: 5;
}

/* Ambient ambient glow across all cards when cursor enters grid */
.glow-grid:hover .feat-card::before,
.glow-grid:hover .metric::before,
.glow-grid:hover .terminal-card::before {
  opacity: 0.45;
}

/* Full spotlight on the individually hovered card */
.feat-card:hover::before,
.metric:hover::before,
.terminal-card:hover::before,
.info-card:hover::before {
  opacity: 1;
}

/* Sibling dimming: cards not being hovered fade back slightly */
.features-grid.glow-grid:hover .feat-card:not(:hover),
.metrics-grid.glow-grid:hover .metric:not(:hover) {
  opacity: 0.76;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease),
              transform .35s var(--ease), opacity .28s;
}

/* Disable on touch devices — no hover support */
@media (hover: none) {
  .feat-card::before,
  .metric::before,
  .terminal-card::before,
  .info-card::before { display: none; }
  .features-grid.glow-grid:hover .feat-card:not(:hover),
  .metrics-grid.glow-grid:hover .metric:not(:hover) { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════
   TEXT ANIMATION  (Text Animation 5 — SplitText char stagger)
   Characters start invisible, stagger up into view on load and
   on scroll-enter for section headings.
══════════════════════════════════════════════════════════════ */

.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hero h1 starts hidden until JS plays it */
.hero-h1.split-ready {
  opacity: 0;
  visibility: visible;
}

/* ── Scramble targets: prevent text selection during animation ── */
.pr-cta { user-select: none; }
.nav-cta-btn { user-select: none; }
