/* ============================================
   TWO4DELIVERY - Hero Section
   ============================================ */

.hero {
  position: relative;
  /* 100dvh foloseste viewport-ul real (fara bara browser) pe mobile/tablet */
  min-height: 100dvh;
  min-height: 100vh; /* fallback pentru browsere vechi */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--black-soft);
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.85) 0%,
    rgba(37, 99, 235, 0.75) 40%,
    rgba(15, 15, 15, 0.7) 100%
  );
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 40%);
}

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* Platform badges floating */
.hero__platforms {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.platform-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  animation: floatBadge 6s ease-in-out infinite;
}

.platform-badge img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.platform-badge--bolt {
  top: 28%;
  left: 6%;
  animation-delay: 0s;
}

.platform-badge--glovo {
  top: 18%;
  right: 8%;
  animation-delay: -2s;
}

.platform-badge--coressy {
  top: 60%;
  right: 12%;
  animation-delay: -2s;
}

.platform-badge--hio {
  top: 52%;
  left: 8%;
  animation-delay: -4s;
}


@keyframes floatBadge {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 60px;
  max-width: 900px;
  width: 100%;
}

/* Logo SVG integrat */
.hero__logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  width: 100%;
}

.hero-logo-svg {
  width: min(960px, 95vw);
  height: auto;
  overflow: visible;
  display: block;
  margin: 0 auto;
}

.hero-logo-img {
  width: min(720px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(37,99,235,0.3));
}

/* SVG logo complet cu biciclist — overflow hidden ca biciclistul
   sa nu fie vizibil cand e in afara ecranului */
.hero__logo-wrapper {
  overflow: hidden;
  width: 100%;
}

.hero-logo-svg {
  width: min(860px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}

/* Hero tagline */
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  margin-bottom: 20px;
}

.hero__tagline strong {
  color: var(--white);
  font-weight: 700;
}

/* Stats bar */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
  color: var(--white);
}

.hero__stat-number {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-indicator .scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   FORM OVERLAP SECTION
   ============================================ */

.hero-form-section {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding: 0 24px 80px;
}

.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15),
              0 8px 32px rgba(37, 99, 235, 0.12);
  padding: 56px 64px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light), var(--blue-primary));
  background-size: 200% 100%;
  animation: shimmerBar 3s linear infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.hero-form-card__header {
  text-align: center;
  margin-bottom: 40px;
}

.hero-form-card__header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.hero-form-card__header p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ============================================
   STEPS SECTION
   ============================================ */

.steps-section {
  padding: 100px 0;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.steps-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--white);
  border-radius: 0 0 60px 60px;
}

.steps-section__header {
  text-align: center;
  margin-bottom: 72px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light), var(--blue-primary));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-card__icon-wrap {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}

.step-card__icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.3);
  animation: rotateDash 12s linear infinite;
}

@keyframes rotateDash {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.step-card:hover .step-card__icon-wrap {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.45);
}

.step-card__number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 2px solid var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue-primary);
}

.step-card__icon-wrap svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.step-card__desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   DESCRIPTION SECTION (CURIER INFO)
   ============================================ */

.courier-info-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.courier-info-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
  pointer-events: none;
}

.courier-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.courier-info__text .section-title {
  margin-bottom: 20px;
}

.courier-info__text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.courier-info__highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.highlight-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.highlight-item__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-item__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
}

.highlight-item__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.courier-info__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.earnings-card {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  margin: auto;
}

/* Decoratiunile circulare eliminate - causau pata luminoasa pe mobile */

.earnings-card__label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.earnings-card__amount {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.earnings-card__period {
  font-size: 1rem;
  opacity: 0.75;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.earnings-card__platforms {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.earnings-platform-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.earnings-platform-badge img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps-grid::before {
    display: none;
  }

  .courier-info__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .courier-info__visual {
    width: 100%;
  }

  .earnings-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 32px;
  }

  .earnings-card__amount {
    font-size: clamp(2rem, 10vw, 3rem);
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding: 100px 20px 50px;
  }

  .hero-form-card {
    padding: 36px 24px;
  }

  /* Toate cele 4 platforme, pe doua randuri, in banda libera dintre
     navbar si logo. Masurat la 390x844: navbar se termina la ~90px,
     logo-ul incepe la 275px - randurile de la 16% si 23% incap acolo.

     Inainte, Coressy ramanea pe pozitia de desktop (top 60%) si cadea
     peste blocul de statistici. */
  .platform-badge {
    font-size: 0.72rem;
    padding: 7px 12px;
    gap: 7px;
  }

  .platform-badge--bolt {
    top: 16%;
    left: 3%;
    right: auto;
    bottom: auto;
  }

  .platform-badge--glovo {
    top: 16%;
    right: 3%;
    left: auto;
    bottom: auto;
  }

  .platform-badge--hio {
    top: 23%;
    left: 3%;
    right: auto;
    bottom: auto;
  }

  .platform-badge--coressy {
    top: 23%;
    right: 3%;
    left: auto;
    bottom: auto;
  }

  .platform-badge img {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .hero__stats {
    gap: 28px;
  }

  .steps-section::before {
    display: none;
  }

  .hero-form-section {
    margin-top: -40px;
  }

  /* Fix 3: ascunde lumina decorativa din dreapta pe mobile */
  .courier-info-section::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__logo-wrapper {
    margin-bottom: 24px;
  }

  .earnings-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .earnings-platform-badge {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .earnings-platform-badge img {
    width: 16px;
    height: 16px;
  }

  .earnings-card__platforms {
    gap: 8px;
  }
}

/* ============================================
   RESPONSIVE — Laptop mic / tablet landscape
   (fix: hero content vizibil fara scroll)
   ============================================ */

@media (max-width: 1280px) and (max-height: 800px) {
  .hero__content {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero__logo-wrapper {
    margin-bottom: 20px;
  }

  .hero__tagline {
    margin-bottom: 12px;
  }

  .hero__stats {
    margin-top: 20px;
    gap: 36px;
  }

  .hero__stat-number {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
  }

  .hero-logo-svg {
    width: min(680px, 85vw);
  }
}

@media (max-width: 1024px) and (max-height: 768px) {
  .hero__content {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .hero-logo-svg {
    width: min(600px, 80vw);
  }
}
