/* ==========================================================================
   Home page (index.html) — components used only on the homepage
   ========================================================================== */

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:calc(var(--header-h) + var(--announce-h) + 48px);
  padding-bottom:48px;
  transition:padding-top .35s ease;
  background:var(--grad-dark);
  overflow:hidden;
}
@media(max-width:640px){.hero{padding-top:calc(var(--header-h) + var(--announce-h) + 28px);padding-bottom:32px;}}
.hero-grid{
  position:relative;z-index:2;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:48px;
  align-items:center;
  width:100%;
}
.hero-copy .eyebrow{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff;margin-bottom:24px;}
.hero-copy .eyebrow::before{background:var(--red);}
.hero-copy h1{
  color:#fff;
  font-size:clamp(2.4rem,1.6vw,1.7rem);
  margin-bottom:20px;
}
.hero-copy p.lead{
  color:rgba(255,255,255,.72);
  font-size:1.1rem;
  max-width:480px;
  margin-bottom:36px;
}
.hero-signals{display:flex;gap:22px;flex-wrap:wrap;margin-bottom:28px;}
.hero-signals span{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.75);font-size:.86rem;font-weight:500;}
.hero-signals svg{width:16px;height:16px;color:var(--red-light);flex:none;}

.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:44px;}
.hero-rating{display:flex;align-items:center;gap:10px;}
.hero-rating .stars{color:#FFC53D;font-size:.95rem;letter-spacing:1px;}
.hero-rating span{color:rgba(255,255,255,.65);font-size:.78rem;line-height:1.3;max-width:120px;}

.hero-trust{
  display:flex;gap:0;flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:28px;
}
.hero-trust .item{
  display:flex;flex-direction:column;gap:4px;
  padding-right:32px;margin-right:32px;
  border-right:1px solid rgba(255,255,255,.12);
}
.hero-trust .item:last-child{border-right:none;padding-right:0;margin-right:0;}
.hero-trust .item b{font-family:var(--font-head);color:#fff;font-size:1.7rem;font-weight:700;line-height:1;}
.hero-trust .item span{color:rgba(255,255,255,.5);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;}
@media(max-width:480px){
  .hero-trust{gap:20px 0;}
  .hero-trust .item{padding-right:20px;margin-right:20px;}
  .hero-trust .item b{font-size:1.4rem;}
  .hero-rating{width:100%;padding-top:4px;}
}

/* dashboard visual — simple rounded image frame (no clip-path masking) */
.hero-visual{position:relative;}
.device-frame{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  background:#241631;
  border:1px solid rgba(255,255,255,.08);
}
.device-frame img{
  width:100%;height:auto;display:block;
}
.device-frame .frame-glow{
  position:absolute;inset:-2px;
  border-radius:30px;
  padding:2px;
  background:linear-gradient(135deg, rgba(228,58,41,.6), rgba(240,90,75,.2), rgba(255,255,255,.5));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.float-card{
  position:absolute;
  padding:14px 18px;
  border-radius:16px;
  display:flex;align-items:center;gap:12px;
  box-shadow:var(--shadow-lg);
  will-change:transform;
}
.float-card .ic{
  width:38px;height:38px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:var(--grad-red);color:#fff;flex:none;
}
.float-card .ic svg{width:18px;height:18px;}
.float-card b{display:block;font-family:var(--font-head);color:var(--dark);font-size:.95rem;}
.float-card span{display:block;font-size:.72rem;color:var(--ink-light);}
.float-card.fc-1{top:-6%;left:-8%;}
.float-card.fc-2{bottom:8%;right:-10%;}
.float-card.fc-3{top:42%;right:-14%;}
.float-card.fc-4{bottom:-8%;left:14%;}
@media(max-width:1024px){.float-card.fc-4{display:none;}}

/* hero background fx layer (b1/b2 base sizing lives in style.css since
   they're shared with .page-hero on every other page; b3 is home-only) */
.hero .bg-blob.b3{width:340px;height:340px;top:30%;left:44%;background:#fff;opacity:.08;}

@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr;text-align:left;}
  .hero-visual{max-width:520px;margin-top:20px;}
}

/* ---------- Pillars strip ---------- */
.pillars{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
  margin-top:-70px;
  position:relative;z-index:3;
  box-shadow:var(--shadow-lg);
}
.pillar{
  background:#fff;padding:28px 24px;
  display:flex;flex-direction:column;gap:6px;
}
.pillar .n{font-family:var(--font-mono);color:var(--red);font-size:.78rem;}
.pillar h4{font-size:1rem;margin:0;}
.pillar p{margin:0;font-size:.85rem;}
@media(max-width:900px){.pillars{grid-template-columns:1fr 1fr;margin-top:0;}}
@media(max-width:560px){.pillars{grid-template-columns:1fr;}}

/* Feature grid: moved to shared.css (also used by features.html) */

/* ---------- Stats ---------- */
.stats-band{
  background:var(--grad-dark);
  border-radius:var(--radius-lg);
  padding:64px 48px;
  position:relative;overflow:hidden;
}
.stats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;position:relative;z-index:2;
}
.stats-band .stat .num{color:#fff;}
.stats-band .stat .label{color:rgba(255,255,255,.6);}
@media(max-width:900px){.stats-grid{grid-template-columns:1fr 1fr;row-gap:36px;}}

/* ---------- Platform demo tabs ---------- */
.demo-shell{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--line);
}
.demo-tabs{
  display:flex;gap:4px;background:var(--dark);padding:10px;
}
.demo-tab{
  flex:1;padding:14px 12px;text-align:center;border-radius:12px;
  color:rgba(255,255,255,.55);font-family:var(--font-head);font-size:.9rem;font-weight:500;
  position:relative;
}
.demo-tab.active{color:#fff;background:rgba(255,255,255,.1);}
.demo-tab .ind{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);width:20px;height:2px;background:var(--red);border-radius:2px;opacity:0;}
.demo-tab.active .ind{opacity:1;}
.demo-panels{position:relative;background:#241631;}
.demo-panel{
  display:none;
  padding:40px;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;
  opacity:0;
}
.demo-panel.active{display:grid;opacity:1;}
.demo-panel h3{color:#fff;font-size:clamp(1.2rem,2.4vw,1.5rem);}
.demo-panel p{color:rgba(255,255,255,.6);}
.demo-panel ul{margin-top:18px;}
.demo-panel ul li{color:rgba(255,255,255,.75);padding:8px 0 8px 26px;position:relative;font-size:.92rem;}
.demo-panel ul li::before{content:'';position:absolute;left:0;top:14px;width:14px;height:14px;border-radius:4px;background:var(--red);}
.demo-panel .visual{border-radius:16px;overflow:hidden;box-shadow:0 20px 40px rgba(0,0,0,.4);}
.demo-panel .visual img{width:100%;height:auto;display:block;}
@media(max-width:900px){
  .demo-panel{grid-template-columns:minmax(0,1fr);padding:28px;}
  .demo-tabs{flex-wrap:wrap;}
}
@media(max-width:480px){
  .demo-panel{padding:20px;gap:24px;}
  .demo-tab{padding:12px 8px;font-size:.82rem;}
}

/* Industry cards: moved to shared.css (also used by features.html) */

/* ---------- Testimonials ---------- */
.testi-track-wrap{overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);}
.testi-track{display:flex;gap:24px;width:max-content;}
.testi-card{
  width:380px;flex:none;padding:30px 28px;
}
.testi-card p{color:var(--ink);font-size:.98rem;}
.testi-who{display:flex;align-items:center;gap:12px;margin-top:18px;}
.testi-who .av{width:44px;height:44px;border-radius:50%;background:var(--grad-dark);flex:none;}
.testi-who b{display:block;font-family:var(--font-head);font-size:.9rem;color:var(--dark);}
.testi-who span{display:block;font-size:.78rem;color:var(--ink-light);}



/* ---------- Clients marquee (two rows, opposite direction) ---------- */
.clients-marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  display:flex;
  flex-direction:column;
  gap:28px;
}

.clients-row{
  display:flex;
  align-items:center;
  gap:52px;
  width:max-content;
  will-change:transform;
}

.clients-row img{
  height:38px;              /* was 30px (+~27%) */
  width:auto;
  object-fit:contain;
  /* original brand colours by default: no grayscale, no reduced opacity */
  transition:transform .3s ease;
  will-change:transform;
}

.clients-row img:hover{
  transform:scale(1.08);
}

.clients-row.dir-ltr{
  animation:marqueeToLeft 36s linear infinite;
}

.clients-row.dir-rtl{
  animation:marqueeToRight 32s linear infinite;
}

.clients-marquee:hover .clients-row{
  animation-play-state:paused;
}

@keyframes marqueeToLeft{
  0%{
    transform:translateX(0);
  }

  100%{
    transform:translateX(-50%);
  }
}

@keyframes marqueeToRight{
  0%{
    transform:translateX(-50%);
  }

  100%{
    transform:translateX(0);
  }
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials-section{
  width:100%;
  padding:40px 0;
}

.testi-track-wrap{
  width:100%;
  overflow:hidden;
}

.testi-track{
  display:flex;
  gap:24px;
  width:100%;
}

.testi-card{
  flex:0 0 calc(25% - 18px);
  box-sizing:border-box;
}

.testi-card p{
  margin:0 0 25px;
  line-height:1.6;
}

.testi-who{
  display:flex;
  align-items:center;
  gap:12px;
}


/* ---------- Client / Testimonial Image ---------- */

.av{
  width:52px;
  height:52px;
  min-width:52px;
  min-height:52px;

  border-radius:50%;
  overflow:hidden;

  background:#eee;

  display:flex;
  align-items:center;
  justify-content:center;

  flex-shrink:0;
}

.av img{
  width:100%;
  height:100%;

  display:block;

  object-fit:cover;
  object-position:center;

  border-radius:50%;
}


/* ---------- Testimonial Person Details ---------- */

.testi-person{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.testi-person b{
  font-size:15px;
  line-height:1.3;
}

.testi-person span{
  font-size:13px;
  line-height:1.4;
  opacity:.7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:991px){

  .testi-track{
    gap:20px;
  }

  .testi-card{
    flex:0 0 calc(50% - 10px);
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:640px){

  .clients-row{
    gap:32px;
  }

  .clients-row img{
    height:30px;
  }


  /* Testimonials */

  .testimonials-section{
    padding:30px 0;
  }

  .testi-track{
    gap:16px;
  }

  .testi-card{
    flex:0 0 100%;
  }

  .av{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
  }

  .testi-person b{
    font-size:14px;
  }

  .testi-person span{
    font-size:12px;
  }

}

/* Pricing cards: moved to shared.css (also used by pricing.html) */

/* ---------- Savings calculator widget ---------- */
.calc-widget{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:48px;
}
.calc-copy p{margin-bottom:26px;}
.calc-field{margin-bottom:24px;}
.calc-field label{display:block;font-size:.86rem;font-weight:600;color:var(--ink);margin-bottom:10px;}
.calc-field input[type="range"]{
  width:100%;height:6px;border-radius:999px;
  background:var(--line);appearance:none;-webkit-appearance:none;outline:none;
}
.calc-field input[type="range"]::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;
  width:20px;height:20px;border-radius:50%;
  background:var(--grad-red);cursor:pointer;
  box-shadow:0 4px 10px rgba(228,58,41,.4);
  border:3px solid #fff;
}
.calc-field input[type="range"]::-moz-range-thumb{
  width:20px;height:20px;border-radius:50%;border:3px solid #fff;
  background:var(--grad-red);cursor:pointer;box-shadow:0 4px 10px rgba(228,58,41,.4);
}
.calc-field-value{margin-top:10px;font-family:var(--font-mono);font-size:.86rem;color:var(--ink-light);}
.calc-field-value span{color:var(--red);font-weight:700;}
.calc-field select{
  width:100%;padding:12px 16px;border-radius:10px;border:1px solid var(--line);
  background:#fff;font-size:.9rem;color:var(--ink);cursor:pointer;
}
.calc-results{
  background:#fff;border-radius:var(--radius);padding:32px;
  border:1px solid var(--line);
  display:flex;flex-direction:column;gap:20px;
}
.calc-stat{display:flex;flex-direction:column;gap:2px;padding-bottom:16px;border-bottom:1px dashed var(--line);}
.calc-stat:last-of-type{border-bottom:none;padding-bottom:0;}
.calc-num{font-family:var(--font-head);font-size:2rem;font-weight:700;color:var(--dark);}
.calc-label{font-size:.82rem;color:var(--ink-light);}
.calc-results .btn{margin-top:4px;}
@media(max-width:900px){
  .calc-widget{grid-template-columns:minmax(0,1fr);padding:32px;gap:32px;}
}
@media(max-width:480px){
  .calc-widget{padding:24px;}
  .calc-num{font-size:1.7rem;}
}


/* =========================================================
   HERO CTA — "Book Demo" permanently in its active red state
   ========================================================= */
.hero .hero-actions .btn-primary{
  background:linear-gradient(135deg,var(--red-dark),#D93424);   /* white text stays >= 4.5:1 */
  box-shadow:0 14px 30px rgba(228,58,41,.34);
  transition:translate .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.hero .hero-actions .btn-primary::after{display:none;}
.hero .hero-actions .btn-primary:hover,
.hero .hero-actions .btn-primary:focus-visible{
  translate:0 -3px;                                              /* subtle lift (composes with magnetic transform) */
  box-shadow:0 18px 36px rgba(228,58,41,.42);
}

/* =========================================================
   EXPLORE OUR OTHER PRODUCTS
   ========================================================= */
.products-section{background:#fff;}
.products-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:28px;align-items:stretch;
}
.product-card{
  display:flex;flex-direction:column;height:100%;overflow:hidden;
  border-radius:var(--radius-lg);
}
.product-card .pc-media{
  position:relative;aspect-ratio:8/5;overflow:hidden;
  background:linear-gradient(135deg,#F4F3F8,#ECEAF3);
  border-bottom:1px solid var(--line);
}
.product-card .pc-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s cubic-bezier(.16,1,.3,1);
}
.product-card:hover .pc-media img{transform:scale(1.05);}
.product-card .pc-body{display:flex;flex-direction:column;flex:1;padding:28px;}
.product-card .pc-logo{height:38px;display:flex;align-items:center;margin-bottom:18px;}
.product-card .pc-logo img{height:100%;width:auto;max-width:200px;object-fit:contain;object-position:left center;}
.product-card h3{font-size:1.25rem;margin-bottom:10px;}
.product-card p{font-size:.94rem;margin-bottom:24px;}
.product-card .btn{margin-top:auto;align-self:flex-start;}
@media(max-width:1024px){.products-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:640px){.products-grid{grid-template-columns:1fr;gap:20px;}.product-card .pc-body{padding:24px;}}
