



/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding-top: 146px;
  padding-bottom: 80px;
}
.cb02-home_banner{
  width: 100%;
  background: var(--color-brand-light);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display:flex;
  flex-direction: row;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 0px 24px;
}

.hero-copy {
  max-width: 560px;
  width: 100%;
}
.cb02-home_banner{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2740%27%20height%3D%2740%27%20viewBox%3D%270%200%2040%2040%27%3E%3Cpath%20d%3D%27M%2040%200%20L%200%200%200%2040%27%20fill%3D%27none%27%20stroke%3D%27rgba(84%2C130%2C53%2C0.15)%27%20stroke-width%3D%271%27/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 40px 40px;
  margin-top: -98px
}
/* Hero Pill animation start */

.hero-pill-wrap {
  transform-origin: left center;
  opacity: 0;
  transform: scaleX(0);
  animation: pillReveal 1s cubic-bezier(.25, .1, .25, 1) forwards;
  /* this corresponds to the wrapper motion.div */
}

@keyframes pillReveal {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* the pill itself */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  border-radius: 9999px;
  padding: 6px 16px;
  border: 1px solid rgba(74, 119, 50, 0.2);
  background: rgba(74, 119, 50, 0.06);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;

  /* float starts after reveal finishes */
  animation: floatY 4s ease-in-out infinite;
  animation-delay: .9s;
  will-change: transform;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

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

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-brand);
  animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: .7;
  }
}

/* Hero Pill animation start */

.reveal-up-clip {
  opacity: 0;
  transform: translateY(30px);
  clip-path: inset(0 0 100% 0);
  animation: revealUpClip 1.1s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity, clip-path;
}

@keyframes revealUpClip {
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
}

.hero-kicker {
  margin-top: 24px;
  color: #024036;
  font-size: 28px;
  font-weight: 600;
}

.hero-title {
  color: var(--color-primary);
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 54px;
  font-style: normal;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: -1.08px;
  width: 90%;
}

.reveal-up-clip-40 {
  opacity: 0;
  transform: translateY(40px);
  clip-path: inset(0 0 100% 0);
  animation: revealUpClip40 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity, clip-path;
}

@keyframes revealUpClip40 {
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
}

.hero-subtitle {
  color: #496543;
  font-family: var(--font-sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  margin-top: 20px;
  line-height: 24.38px;
}

.fade-up-24 {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp24 1.1s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

@keyframes fadeUp24 {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}



.fade-up-20 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp20 1.1s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

@keyframes fadeUp20 {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-x {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  animation: slideInX .3s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

@keyframes slideInX {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.primary-btn:active {
  transform: translateY(1px);
}




.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(2, 64, 54, 0.22);
}

.hero-btn-arrow {
  font-size: 16px;
  line-height: 1;
}

.hero-media {
  width: 100%;
  max-width: 512px;
}

.hero-media-frame {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(2, 64, 54, 0.10);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.10),
    0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px dashed rgba(2, 64, 54, 0.25);
  background: linear-gradient(135deg, rgba(2, 64, 54, 0.06), rgba(74, 119, 50, 0.06));
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(2, 64, 54, 0.65);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-media-placeholder small {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: rgba(2, 64, 54, 0.45);
}

@media (max-width: 980px) {
  .hero-grid {
    flex-direction: column;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-media-frame {
    max-width: 720px;
  }
  
  .hero-title{
    font-size: 42px;
    width: 100%;
  }

}
@media (max-width: 510px) {
  .primary-btn{
    width: 100%;
  }
  .secondary-btn{
    width: 100%;
  }
  .hero-title{
    font-size: 32px;
    line-height: 40px;
  }
  .hero-pill {
    font-size: 10px;
  }

}

/* ***********************************************************This is moving html hero widget CSS************************************************************************ */



.dashboard-wrapper {
  /* Scoped widget tokens (avoids conflicting with global :root) */
  --bgg: #0b1f14;
  --cardd: #0f2a1a;
  --borderr: rgba(84, 130, 53, 0.15);
  --l-border-light: rgba(84, 130, 53, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.45);
  --dim: rgba(255, 255, 255, 0.25);
  --green: #4a7732;
  --glow: rgba(84, 130, 53, 0.25);
}

.dashboard-wrapper,
.dashboard-wrapper * {
  box-sizing: border-box;
}


/* .hero-media-widget {
  transform: scale(0.86);
  transform-origin: left center;
} */
.dashboard-wrapper {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.dashboard-stage {
  height: 520px;
  position: relative;
}

.dashboard-container {
  width: 560px;
  height: 520px;
  perspective: 1200px;
  transform-origin: top left;
}

.dashboard-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.main-card {
  position: absolute;
  top: 20px;
  left: 0;
  width: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--borderr);
  background: var(--bgg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.main-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--l-border-light);
}
.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.dot-red { background: rgba(255,95,87,0.7); }
.dot-yellow { background: rgba(255,189,46,0.7); }
.dot-green { background: rgba(39,201,63,0.7); }
.live-pill {
  margin-left: auto;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  color: #4a7732;
  background: rgba(84, 130, 53, 0.25);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(84, 130, 53, 0.15);
}
.kpi {
  padding: 12px 16px;
  border-right: 1px solid rgba(84, 130, 53, 0.08);
}
.kpi:last-child { border-right: 0; }
.kpi-label { margin: 0; font-size: 9px; color: var(--muted); }
.kpi-value { margin: 4px 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.kpi-sub { margin: 0; font-size: 9px; color: var(--muted); font-weight: 600; }
.kpi-up { color: var(--green); }

.chart-block { padding: 16px 16px 4px; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.chart-title { margin: 0; font-size: 11px; font-weight: 700; }
.chart-sub { margin: 2px 0 0; font-size: 9px; color: var(--dim); }
.legend { display: flex; gap: 6px; flex-wrap: wrap; font-size: 7px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.swatch { width: 6px; height: 6px; border-radius: 1px; display: inline-block; }
.s1 { background: rgba(84,130,53,1); }
.s2 { background: rgba(84,130,53,0.5); }
.s3 { background: rgba(84,130,53,0.2); }

.bar-grid {
  height: 120px;
  border-bottom: 1px solid var(--l-border-light);
  position: relative;
  background:
    linear-gradient(var(--l-border-light), var(--l-border-light)) 0 25%/100% 1px no-repeat,
    linear-gradient(var(--l-border-light), var(--l-border-light)) 0 50%/100% 1px no-repeat,
    linear-gradient(var(--l-border-light), var(--l-border-light)) 0 75%/100% 1px no-repeat;
}
.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 0 16px;
}
.bar {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(84,130,53,0.5), rgba(84,130,53,0.85));
  height: 0;
  transition: height 0.6s ease-out;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 2px 0 8px;
}
.months span {
  text-align: center;
  font-size: 7px;
  color: var(--dim);
}

.cards-row {
  padding: 4px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.inner-card {
  border-radius: 5px;
  padding: 10px 12px;
  background: rgba(84,130,53,0.06);
  border: 1px solid var(--l-border-light);
}
.inner-title { margin: 0 0 8px; font-size: 8px; color: var(--muted); font-weight: 600; }
#sparkline { width: 100%; height: 24px; display: block; }
#sparkline-area { fill: var(--glow); opacity: 0.3; }
#sparkline-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.sparkline-animate {
  animation: draw-sparkline 1.2s ease forwards;
}
@keyframes draw-sparkline {
  from { stroke-dashoffset: var(--sparkline-length, 0); }
  to { stroke-dashoffset: 0; }
}
.vendors { display: grid; gap: 4px; }
.vendors div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
}
.vendors span { color: var(--muted); }
.vendors strong { color: var(--text); }

/* Grid layout on all float cards; fc-1 & fc-3: icon left (pseudo), label + value right */
.float-card {
  position: absolute;
  border-radius: 8px;
  border: 1px solid var(--borderr);
  background: var(--cardd);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--text);
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

.float-card.fc-1 {
  grid-template-columns: auto 1fr;
}

.float-card.fc-1::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: start;
  align-self: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--glow);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%234a7732%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2222%207%2013.5%2015.5%208.5%2010.5%202%2017%22%2F%3E%3Cpolyline%20points%3D%2216%207%2022%207%2022%2013%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.float-card.fc-1 .float-label,
.float-card.fc-1 .float-big {
  grid-column: 2;
}

/* Rate Optimization — circular green badge, white Lucide check */
.float-card.fc-3 {
  grid-template-columns: auto 1fr;
}

.float-card.fc-3::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: start;
  align-self: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.float-card.fc-3 .float-label,
.float-card.fc-3 .float-text {
  grid-column: 2;
}

.float-card.fc-3 .float-text {
  font-size: 11px;
  line-height: 1.25;
  color: var(--text);
}

.float-card:not(.fc-1):not(.fc-3) {
  grid-template-columns: 1fr;
  column-gap: 0;
}

.fc-1 { top: 10px; right: -10px; padding: 12px 16px; }
.fc-2 { top: 100px; right: -18px; padding: 10px 12px; 
  width: 90px;
  padding: 10px 12px;}
.fc-3 { bottom: 40px; right: 36px; padding: 12px 16px; }
.fc-4 { bottom: 40px; left: 20px; padding: 8px 12px; }

.fc-4  .float-label {
  display: none;
}
.fc-4 {
  row-gap: 0px !important;
  column-gap: 0px !important;
}
.fc-2 .float-label {
  font-size: 7px;
}
.fc-1{
  padding: 8px 12px;
}
.float-label {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  grid-column: 1;
  grid-row: 1;
}

.float-big {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  grid-column: 1;
  grid-row: 2;
}

.float-text {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  grid-column: 1;
  grid-row: 2;
}

.mini-bars {
  margin-top: 0;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}
.mini-bar {
  width: 5px;
  border-radius: 2px;
  background: rgba(84, 130, 53, 0.6);
  height: 0;
  transition: height 0.4s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/***************************************************************** This is moving html hero widget CSS  end here************************************************************/
