/* ================= HERO ================= */

.hero {
  width: 100%;
  min-height: calc(100vh - 95px);
  padding-top: 95px;
  padding-bottom: 40px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  padding-top: 70px;
  margin: 0 auto;
  gap: 64px;
  min-height: auto;
}

.hero h1:first-child {
  margin-top: 0;
}

/* ================= LEFT ================= */

.hero-left {
  flex: 0 0 55%;
}

.headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.sub-headline {
  font-size: 1.25rem;                /* bigger */
  line-height: 1.45;                 /* tighter */
  color: #000000ff;                    /* light gray */
  max-width: 560px;
  margin-bottom: 40px;
  text-align: justify;
}

body.dark .sub-headline {
  color: #b0bec7;                   /* gray in dark mode */
}

.teal {
  color: var(--brand-1);
}

/* ================= BUTTONS ================= */

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.hero-actions .btn {
  display: inline-flex;              /* vertical centering fix */
  align-items: center;
  justify-content: center;
  padding: 0.9em 2.2em;              /* taller + wider */
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1;
  text-decoration: none;             /* remove underline */
}

/* FORCE demo outline (overrides .btn defaults) */
.hero-actions .btn-outline {
  background: transparent !important;
  border: 2px solid var(--brand-1) !important;
  color: var(--brand-1) !important;
}

.hero-actions .btn-outline:hover {
  background: var(--brand-1) !important;
  color: #000 !important;
}

/* ================= STATS ================= */

.hero-stats {
  display: flex;
  gap: 96px;                         /* horizontal spacing between stats */
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;                         /* number ↔ label spacing */
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-1);
}

.stat-label {
  font-size: 1.05rem;
  color: #000;                      /* black in light mode */
  letter-spacing: 0.4px;
}

body.dark .stat-label {
  color: #b0bec7;                   /* gray in dark mode */
}

/* ================= RIGHT ================= */

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= HERO GRAPH ================= */

.hero-graph {
  position: relative;
  width: 450px;
  height: 280px;
  padding: 30px;
  background: linear-gradient(
    180deg,
    rgba(0, 209, 204, 0.08),
    rgba(0, 209, 204, 0.02)
  );
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.12);
}

body.dark .hero-graph {
  background: linear-gradient(
    180deg,
    rgba(0, 209, 204, 0.15),
    rgba(0, 209, 204, 0.03)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.graph-title {
  position: absolute;
  top: -34px;               /* distance above graph */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  pointer-events: none;     /* avoids blocking clicks */
}

/* SVG */
.graph-svg {
  width: 100%;
  height: 100%;
}

/* Grid lines */
.grid-line {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
}

body.dark .grid-line {
  stroke: rgba(255, 255, 255, 0.08);
}

/* Main line */
.growth-line {
  fill: none;
  stroke: #00D1CC;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Glow effect */
.growth-line.glow {
  stroke-width: 10;
  opacity: 0.25;
  filter: blur(6px);
}



@keyframes graphFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes bubbleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); } /* smaller bounce */
}

.graph-bubble {
  position: absolute;
  right: -14px;
  top: 13px;
  background: #00D1CC;
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: bubbleBounce 2.4s ease-in-out infinite;
}


.hero-graph {
  animation: graphFloat 6s ease-in-out infinite;
}


.growth-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 7s ease forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}


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

@media (max-width: 900px) {
  /* Hero layout */

  .hero-inner {
    flex-direction: column;
    align-items: flex-start; /* left-aligned */
    text-align: left;
    gap: 56px;
    min-height: auto;
    width: 90%;
    max-width: 600px; /* ensures content fits nicely */
    margin: 0 auto;
    padding-top: 0;
  }

  .hero-left {
    flex: unset;
    width: 100%;
  }

  /* Headline large on mobile, similar to desktop */
  .headline {
    font-size: clamp(2.5rem, 7vw, 4rem); /* larger */
    line-height: 1.1;
  }

  .sub-headline {
    font-size: 1.25rem;
    max-width: 100%;
    margin: 0 0 40px 0;
    line-height: 1.45;
    padding-bottom: 20px;
    text-align: justify;
  }

  /* Stack buttons vertically, same width/shape */
  .hero-actions {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;            /* full width */
    max-width: 400px;       /* same as demo button */
    justify-content: center;
    padding: 0.9em 2.2em;   /* match desktop button height */
    font-size: 1rem;
    border-radius: 10px;
    box-sizing: border-box;  /* prevent overflow */
  }

  /* Adjust Start Trial button to match Demo button exactly */
  .hero-actions .btn.cta-solid {
    width: 100%;
    max-width: 400px;
    padding: 0.9em 2.2em;
  }



  /* Stats adjustments */
  .hero-stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
  }

  .stat {
    flex: 1;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }

   .hero-right {
    padding-top: 60px;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-graph {
    width: min(90vw, 310px);
    height: 180px;        /* explicit height = no runaway tall graph */
    padding: 16px;
  }
}