/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-block: var(--space-20) var(--space-16);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: var(--space-16);
  align-items: center;
}

/* Content column */
.hero__content { max-width: 580px; }

.hero__heading {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: var(--font-size-lg);
  color: var(--color-light);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Stats row */
.hero__stats {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-right: var(--space-8);
  padding-left: var(--space-8);
}
.hero__stat:first-child { padding-left: 0; }
.hero__stat + .hero__stat { border-left: 1px solid var(--color-border); }

.hero__stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  white-space: nowrap;
}
.hero__stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-gray);
  white-space: nowrap;
}

/* Screenshot column */
.hero__screenshot_wrapper {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__screenshot {
  /* position: relative; */
  border-radius: var(--border-radius-lg);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.hero__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Shown only when no image is loaded (placeholder state) */
.hero__screenshot:not(:has(img[src])) {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Live status indicator */
.screenshot-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-teal);
  z-index: 1;
}
.screenshot-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Breakpoints ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr 420px;
    gap: var(--space-10);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__screenshot {
    order: -1;         /* screenshot above text on tablet */
    max-width: 560px;
  }
  .hero__content { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .hero__stat {
    padding-left: 0;
    border-left: none;
    padding-right: 0;
    width: calc(50% - var(--space-2));
  }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; text-align: center; }
}
