/* Hero — Figma node 12935:3532 */

.sec-hero {
  background: var(--color-surface);
  padding-block: 64px 0;
}

/* 1200px design frame + the mockup that hangs below it (1355px total) */
.sec-hero__stage {
  position: relative;
  width: 1200px;
  max-width: 100%;
  height: 1355px;
  margin-inline: auto;
}

.sec-hero__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 102px;
  height: 1126px;
  width: 100%;
}

/* ---------------- Copy ---------------- */

.sec-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 740px;
  max-width: 100%;
  /* Fixed so the panel starts at y=467 and the mockup overlap is exact */
  height: 365px;
}

.sec-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.sec-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 90px;
  line-height: 1.1;
  letter-spacing: -4px;
  color: var(--color-ink);
  width: 740px;
  max-width: 100%;
}

.sec-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.5px;
  color: var(--color-muted);
  width: 514px;
  max-width: 100%;
}

.sec-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sec-hero__actions .btn {
  white-space: nowrap;
}

/* ---------------- Dark image panel ---------------- */

.sec-hero__panel {
  position: relative;
  width: 100%;
  height: 659px;
  background: var(--color-ink);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.sec-hero__panel-bg {
  position: absolute;
  top: -113px;
  left: calc(50% - 3px);
  transform: translateX(-50%);
  width: 1302.488px;
  height: 981px;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.sec-hero__badge {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  background: var(--color-white);
  border-radius: 100px;
}

.sec-hero__badge-check {
  display: block;
  width: 24px;
  height: 23.01px;
  flex-shrink: 0;
}

.sec-hero__badge-check img {
  width: 100%;
  height: 100%;
}

.sec-hero__badge-items {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sec-hero__badge-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  white-space: nowrap;
}

.sec-hero__badge-dot {
  display: block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.sec-hero__badge-dot img {
  width: 100%;
  height: 100%;
}

/* ---------------- Glass mockup (overlaps the panel) ---------------- */

.sec-hero__mockup {
  position: absolute;
  left: 129px;
  top: 642px;
  width: 943px;
  height: 713px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.54);
  -webkit-backdrop-filter: blur(27px);
  backdrop-filter: blur(27px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

.sec-hero__dashboard {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 911px;
  height: 679px;
  background: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
}

/* ---------------- Shared icon helper ---------------- */

.sec-hero__icon {
  display: inline-flex;
  flex-shrink: 0;
  overflow: hidden;
}

.sec-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sec-hero__icon--16 { width: 16px; height: 16px; }
.sec-hero__icon--18 { width: 18px; height: 18px; }
.sec-hero__icon--20 { width: 20px; height: 20px; }
.sec-hero__icon--22 { width: 22px; height: 22px; }
.sec-hero__icon--ai { width: 24px; height: 24px; padding: 1.5px 3.27px; }
.sec-hero__icon--send { width: 18px; height: 15.65px; }
.sec-hero__icon--meet { width: 16px; height: 13.2px; }

.sec-hero__icon--rot180 { transform: rotate(180deg); }
.sec-hero__icon--rot90 { transform: rotate(90deg); }
.sec-hero__icon--rotm90 { transform: rotate(-90deg); }

/* Sidebar glyphs sit inset inside the 22px box — exact Figma insets */
.sec-hero__icon--nav {
  position: relative;
}

.sec-hero__icon--nav img {
  position: absolute;
  width: auto;
  height: auto;
}

.sec-hero__icon--house img  { inset: 8.03% 9.38% 9.37% 9.38%; }
.sec-hero__icon--list img   { inset: 9.37% 9.38% 9.38% 9.37%; }
.sec-hero__icon--shapes img { inset: -0.28% 3.13% 4.69% 3.13%; }
.sec-hero__icon--clock img  { inset: 6.25%; }
.sec-hero__icon--cal22 img  { inset: 6.23% 9.38% 9.37% 9.37%; }
.sec-hero__icon--plug img   { inset: 1.56%; }

/* ---------------- Sidebar ---------------- */

.sec-hero__side-active {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 216px;
  padding: 8px 10px;
  background: var(--color-white);
  border-radius: 8px;
}

.sec-hero__side-active-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
}

.sec-hero__nav {
  position: absolute;
  left: 23px;
  top: 79px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.sec-hero__nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sec-hero__nav-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  white-space: nowrap;
}

.sec-hero__nav-label--active {
  font-weight: 500;
  color: var(--color-ink);
}

/* ---------------- Main white area ---------------- */

.sec-hero__main {
  position: absolute;
  left: 240px;
  top: 0;
  width: 671px;
  height: 679px;
  background: var(--color-white);
  overflow: hidden;
}

.sec-hero__card {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
}

.sec-hero__card--prompt {
  left: 20px;
  top: 20px;
  width: 306px;
  height: 309.5px;
  background: var(--color-white);
  border: 1px solid rgba(59, 59, 59, 0.06);
}

.sec-hero__card--sales {
  left: 345px;
  top: 20px;
  width: 306px;
  height: 309.5px;
  background: var(--color-white);
  border: 1px solid rgba(59, 59, 59, 0.06);
}

.sec-hero__card--calendar {
  left: 20px;
  top: 350px;
  width: 631px;
  height: 310px;
  background: var(--color-surface);
  border: 1px solid rgba(59, 59, 59, 0.06);
}

/* ---------------- AI prompt card ---------------- */

.sec-hero__prompt-head {
  position: absolute;
  left: 20px;
  top: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-hero__prompt-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-accent);
  white-space: nowrap;
}

.sec-hero__bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--color-surface);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-ink);
}

.sec-hero__bubble--in {
  position: absolute;
  left: 23px;
  top: 62px;
  white-space: nowrap;
}

.sec-hero__prompt-reply {
  position: absolute;
  left: 63px;
  top: 122px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sec-hero__bubble--out {
  width: 140px;
  flex-shrink: 0;
}

.sec-hero__input {
  position: absolute;
  left: 23px;
  top: 237px;
  width: 258px;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid rgba(59, 59, 59, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.sec-hero__input-row {
  position: absolute;
  left: 15px;
  top: 11px;
  width: 226px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-hero__input-placeholder {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  opacity: 0.72;
  white-space: nowrap;
}

.sec-hero__icon--send {
  opacity: 0.72;
}

/* ---------------- Avatars ---------------- */

.sec-hero__avatar {
  position: relative;
  display: block;
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.sec-hero__avatar--38 {
  width: 38px;
  height: 38px;
}

.sec-hero__avatar-img {
  position: absolute;
  max-width: none;
}

.sec-hero__avatar-img--prompt { left: -26.8%; top: -2.74%; width: 135.8%; height: 203.3%; }

/* ---------------- Sales analyzing card ---------------- */

.sec-hero__sales-title {
  position: absolute;
  left: 23px;
  top: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  white-space: nowrap;
}

.sec-hero__chart-line {
  position: absolute;
  top: 186px;
  left: calc(50% + 11.25px);
  transform: translateX(-50%);
  width: 328.5px;
  height: 35.356px;
  max-width: none;
}

.sec-hero__chart-area {
  position: absolute;
  left: -49.84px;
  top: 98px;
  width: 406.175px;
  height: 175px;
  max-width: none;
}

.sec-hero__chart-vline {
  position: absolute;
  left: 130px;
  top: 86px;
  width: 181px;
  height: 1.5px;
  max-width: none;
  transform: rotate(90deg);
  transform-origin: 0 0;
}

.sec-hero__chart-dot {
  position: absolute;
  left: 125px;
  top: 91px;
  width: 12px;
  height: 12px;
  background: var(--color-white);
  border-radius: 100px;
}

.sec-hero__chart-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 100px;
}

.sec-hero__chart-tag {
  position: absolute;
  left: 135.83px;
  top: 64.42px;
  width: 116.313px;
  height: 39.643px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-hero__chart-tag-pill {
  transform: rotate(6.97deg);
  padding: 6px 12px;
  background: var(--color-accent);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: var(--color-white);
  white-space: nowrap;
}

.sec-hero__chart-months {
  position: absolute;
  top: 272px;
  left: 50%;
  transform: translateX(-50%);
  width: 258px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: rgba(59, 59, 59, 0.72);
  white-space: nowrap;
}

.sec-hero__chart-months .is-active {
  color: var(--color-ink);
}

/* ---------------- Calendar card ---------------- */

.sec-hero__cal-head {
  position: absolute;
  left: 23px;
  top: 17px;
  width: 218px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-hero__cal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  white-space: nowrap;
}

.sec-hero__cal-month {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-ink);
  white-space: nowrap;
}

.sec-hero__cal-days {
  position: absolute;
  left: 17px;
  top: 74px;
  width: 595px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-hero__cal-strip {
  width: 516px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.sec-hero__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 29px;
  flex-shrink: 0;
}

.sec-hero__day-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-muted);
  opacity: 0.72;
  width: 100%;
}

.sec-hero__day-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--color-ink);
  width: 100%;
}

.sec-hero__day--active {
  width: 50px;
  padding-block: 8px;
  background: var(--color-accent);
  border-radius: 8px;
}

.sec-hero__day--active .sec-hero__day-name {
  color: var(--color-white);
  opacity: 0.8;
}

.sec-hero__day--active .sec-hero__day-num {
  color: var(--color-white);
}

/* Event row */

.sec-hero__event {
  position: absolute;
  left: 23px;
  top: 158px;
  width: 583px;
  height: 127px;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
}

.sec-hero__event-top {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 543px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.sec-hero__event-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
}

.sec-hero__event-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #000;
}

.sec-hero__event-time {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-muted);
  opacity: 0.72;
}

.sec-hero__event-bottom {
  position: absolute;
  left: 20px;
  top: 78px;
  width: 543px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-hero__meet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-surface);
  border-radius: 100px;
}

.sec-hero__meet-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: #000;
  white-space: nowrap;
}

/* ---------------- Small screens ---------------- */

@media (max-width: 900px) {
  /* Bottom padding only has to hold the mockup's drop shadow, which `overflow:
     hidden` would otherwise clip (8px offset + 32px blur, halved by the 0.5 display
     scale = ~20px). The logo strip below brings its own 86px of top padding, so
     anything more just doubles up -- desktop sets 0 here for the same reason.
     32 + 86 = a 110px break, in line with the rest of the page's section rhythm. */
  .sec-hero {
    overflow: hidden;
    padding-block: 32px 24px;
  }

  /* `transform: scale()` paints smaller but still reserves the element's full
     unscaled box, and the mockup is absolutely positioned on top of that -- so this
     stage height is what actually reserves the room for it, by hand. State it as the
     *drawn* height (mockup offset + its 713px box at the display scale) instead of a
     magic number: the old 980px reserved 223px more than the 757px picture occupies,
     which is the dead gap that opened up between the hero and the logo strip.
     `min-height`, not `height`, so a taller-wrapping copy block still fits. */
  .sec-hero__stage {
    --hero-mockup-top: 400px;
    --hero-mockup-scale: 0.5;
    width: 100%;
    height: auto;
    min-height: calc(var(--hero-mockup-top) + 713px * var(--hero-mockup-scale));
  }

  .sec-hero__frame {
    height: auto;
    gap: 40px;
  }

  .sec-hero__copy {
    width: 100%;
    height: auto;
    padding-inline: 24px;
  }

  .sec-hero__title {
    font-size: 44px;
    letter-spacing: -1.5px;
    width: 100%;
  }

  .sec-hero__subtitle {
    font-size: 16px;
    width: 100%;
  }

  .sec-hero__panel {
    height: 420px;
    border-radius: 12px;
  }

  .sec-hero__badge {
    top: 24px;
    padding: 6px 12px;
    max-width: calc(100% - 24px);
  }

  .sec-hero__badge-items {
    gap: 10px;
  }

  .sec-hero__badge-text {
    font-size: 12px;
  }

  /* Keeps its own `transform`, so it carries `data-motion-prop="translate"` in the
     markup -- the reveal drives `translate`/`scale` and never overwrites this. */
  .sec-hero__mockup {
    left: 50%;
    top: var(--hero-mockup-top);
    transform: translateX(-50%) scale(var(--hero-mockup-scale));
    transform-origin: top center;
  }
}

/* Phones: the badge pill must stay on one line — it sits above the mockup */
@media (max-width: 560px) {
  .sec-hero__badge {
    gap: 6px;
    padding: 6px 8px;
  }

  .sec-hero__badge-check {
    width: 16px;
    height: 15.34px;
  }

  .sec-hero__badge-items {
    gap: 5px;
  }

  .sec-hero__badge-text {
    font-size: clamp(9px, 2.8vw, 12px);
  }

  .sec-hero__badge-dot {
    width: 6px;
    height: 6px;
  }
}
