/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-20);
  overflow: hidden;
  position: relative;
}

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

/* ─── Hero Content ─── */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--space-8);
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* CTA Buttons */
.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── Phone Mockup ─── */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: var(--space-10) 0;
}

.phone {
  position: relative;
  width: 260px;
  height: 520px;
  background: #1C1C1E;
  border-radius: 46px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    var(--shadow-xl);
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
}

.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 30px;
  background: #1C1C1E;
  border-radius: 0 0 22px 22px;
  z-index: 20;
}

.phone__screen {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  overflow: hidden;
}

.phone__home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.28);
  border-radius: 3px;
  z-index: 20;
}

/* Decorative rings */
.phone__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(10, 132, 255, 0.12);
  z-index: 1;
  pointer-events: none;
}

.phone__ring--1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone__ring--2 {
  width: 540px;
  height: 540px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Glow */
.phone__glow {
  position: absolute;
  width: 320px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(10, 132, 255, 0.22), transparent 70%);
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* ─── Carousel inside phone ─── */
.carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Screenshot slides */
.carousel__slide--img {
  padding: 0;
  overflow: hidden;
}

.carousel__slide--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.carousel__dots {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel__dot.active {
  width: 20px;
  border-radius: 3px;
  background: rgba(255,255,255,0.9);
}

/* ─── Scroll hint ─── */
.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-16);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.15); opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .hero__subtitle {
    margin: 0 auto var(--space-8);
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone {
    width: 220px;
    height: 440px;
  }

  .phone__ring--1 { width: 320px; height: 320px; }
  .phone__ring--2 { width: 430px; height: 430px; }
}

@media (max-width: 480px) {
  .phone {
    width: 190px;
    height: 380px;
    border-radius: 38px;
  }

  .phone__notch {
    width: 90px;
    height: 26px;
  }

  .hero__scroll-hint {
    display: none;
  }
}
