/* Mobicolon — Home Hero (extends main design system) */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(72px + 88px);
  padding-bottom: 112px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(72px + 96px);
    padding-bottom: 120px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: 128px;
  }
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(37, 99, 235, 0.11) 0%, transparent 68%),
    radial-gradient(ellipse 45% 38% at 88% 42%, rgba(37, 99, 235, 0.06) 0%, transparent 62%),
    radial-gradient(ellipse 35% 30% at 8% 68%, rgba(37, 99, 235, 0.04) 0%, transparent 58%);
}

.dark .hero-bg-glow {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(59, 130, 246, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 45% 38% at 88% 42%, rgba(59, 130, 246, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 35% 30% at 8% 68%, rgba(59, 130, 246, 0.05) 0%, transparent 58%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.dark .hero-bg-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: heroOrbDrift 18s ease-in-out infinite;
}

.hero-bg-orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  right: -6%;
  background: rgba(37, 99, 235, 0.08);
}

.hero-bg-orb--2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -4%;
  background: rgba(37, 99, 235, 0.05);
  animation-delay: -9s;
}

@keyframes heroOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.04); }
}

/* Layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-content {
  max-width: 36rem;
}

@media (max-width: 1023px) {
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  margin-bottom: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #4b5563;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(37, 99, 235, 0.06);
}

.dark .hero-badge {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(59, 130, 246, 0.2);
  color: #94a3b8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
}

.dark .hero-badge-icon {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  animation: pulseDot 2s ease-in-out infinite;
}

/* Typography */
.hero-headline {
  font-size: clamp(2.25rem, 5.2vw, 3.625rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  color: #111827;
}

.dark .hero-headline {
  color: #f8fafc;
}

.hero-headline-accent {
  display: block;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: -0.015em;
  color: #6b7280;
  margin: 0 0 2.25rem;
  max-width: 32rem;
}

.dark .hero-subtitle {
  color: #94a3b8;
}

@media (max-width: 1023px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* CTAs */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-cta .btn-primary {
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 6px 20px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.hero-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.22), 0 10px 28px rgba(37, 99, 235, 0.28);
}

.hero-cta .btn-secondary {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta .btn-secondary:hover {
  transform: translateY(-1px);
}

/* Trust line */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: -0.01em;
}

.dark .hero-trust {
  color: #64748b;
}

@media (max-width: 1023px) {
  .hero-trust {
    justify-content: center;
  }
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-trust li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0.55;
}

.hero-trust li:first-child::before {
  display: none;
}

/* Device mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
    padding-right: 0.5rem;
  }
}

.hero-device-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}

@media (min-width: 640px) {
  .hero-device-wrap {
    max-width: 290px;
  }
}

@media (min-width: 1024px) {
  .hero-device-wrap {
    max-width: 300px;
  }
}

.hero-device-glow {
  position: absolute;
  bottom: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28) 0%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-device {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 280 / 580;
  padding: 0.7rem;
  border-radius: 2.75rem;
  background: linear-gradient(145deg, #2a2a3e 0%, #141422 48%, #0f0f18 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.22),
    0 48px 96px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 80px rgba(37, 99, 235, 0.12);
  animation: float 6s ease-in-out infinite;
}

.hero-device::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, transparent 35%, transparent 65%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-device-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #141422;
  border-radius: 0 0 14px 14px;
  z-index: 4;
}

.hero-device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.15rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #e0e7ff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.dark .hero-device-screen {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 55%, #020617 100%);
}

.hero-device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%);
  pointer-events: none;
  z-index: 3;
}

.dark .hero-device-screen::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
}

.hero-status-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.75rem 1.1rem 0.65rem;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
}

.dark .hero-status-bar {
  color: #94a3b8;
}

.hero-status-dots {
  display: flex;
  gap: 3px;
}

.hero-status-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.hero-screen-header {
  position: relative;
  z-index: 2;
  padding: 0 1.1rem 0.85rem;
}

.hero-screen-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.dark .hero-screen-label {
  color: #64748b;
}

.hero-screen-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin-top: 0.15rem;
}

.dark .hero-screen-title {
  color: #f1f5f9;
}

.hero-app-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  padding: 0 1.1rem 1.25rem;
}

.hero-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-app-tile:hover {
  transform: translateY(-3px) scale(1.04);
}

.hero-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-app-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, transparent 50%);
}

.hero-app-icon--health { background: linear-gradient(145deg, #10b981, #059669); }
.hero-app-icon--warranty { background: linear-gradient(145deg, #f59e0b, #d97706); }
.hero-app-icon--pdf { background: linear-gradient(145deg, #ef4444, #dc2626); }

.hero-app-icon--more {
  background: transparent;
  border: 1.5px dashed #d1d5db;
  color: #9ca3af;
  box-shadow: none;
}

.dark .hero-app-icon--more {
  border-color: #475569;
  color: #64748b;
}

.hero-app-name {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: -0.01em;
}

.dark .hero-app-name {
  color: #94a3b8;
}

.hero-device-reflection {
  position: absolute;
  bottom: -18%;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: 72%;
  height: 28%;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 80%);
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-orb,
  .hero-device,
  .hero-badge-dot {
    animation: none;
  }

  .hero-cta .btn-primary:hover,
  .hero-cta .btn-secondary:hover,
  .hero-app-tile:hover {
    transform: none;
  }

}