.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, #DBEAFE 0%, transparent 65%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating blobs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero::before {
  width: 500px; height: 500px;
  background: var(--blue);
  top: -100px; right: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  background: #8B5CF6;
  bottom: 0; left: -100px;
  animation-delay: 4s;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-50); border: 1px solid #BFDBFE;
  border-radius: 100px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--blue);
  margin-bottom: 32px; position: relative; z-index: 1;
  animation: fadeUp 0.7s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -3px; color: var(--navy);
  margin-bottom: 24px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 em { color: var(--blue); font-style: normal; }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--navy-700); max-width: 560px;
  margin: 0 auto 40px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 72px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Browser mock */
.hero-visual {
  width: 100%; max-width: 960px;
  position: relative; z-index: 1;
  animation: fadeUp 0.9s 0.4s ease both;
}

.browser-mock {
  background: var(--navy-800); border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(15,23,42,0.3),
    0 80px 120px rgba(37,99,235,0.1);
}

.browser-bar {
  background: var(--navy); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
}
.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; background: rgba(255,255,255,0.06);
  border-radius: 6px; padding: 5px 14px;
  font-size: 12px; color: var(--navy-400);
  margin: 0 16px; text-align: center; font-family: monospace;
}

.browser-content {
  background: #F1F5F9; padding: 28px;
  min-height: 360px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  position: relative; gap: 20px;
}

/* Site skeleton */
.site-skeleton {
  position: absolute; inset: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.skel { background: var(--navy-200); border-radius: 6px; }
.skel-nav { height: 40px; border-radius: 8px; margin-bottom: 8px; }
.skel-title { height: 32px; width: 45%; }
.skel-text { height: 14px; }
.skel-img { height: 120px; border-radius: 12px; margin-top: 8px; }

/* Widget inside browser */
.widget-preview {
  width: 320px; flex-shrink: 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.2);
  overflow: hidden; position: relative; z-index: 2;
}
.widget-header {
  background: var(--blue); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.widget-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.widget-header-name { font-size: 14px; font-weight: 600; color: #fff; }
.widget-header-status { font-size: 11px; color: rgba(255,255,255,0.75); }

.widget-messages {
  padding: 16px; background: #F8FAFC;
  min-height: 180px; max-height: 180px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.msg {
  max-width: 85%; padding: 10px 14px;
  border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.msg-bot {
  background: #fff; color: var(--navy);
  border: 1px solid var(--navy-200);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg-user {
  background: var(--blue); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-typing {
  display: flex; gap: 5px; align-items: center;
  padding: 12px 14px; align-self: flex-start;
  background: #fff; border: 1px solid var(--navy-200);
  border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--navy-400);
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.widget-input-bar {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--navy-200); background: #fff;
}
.widget-input-fake {
  flex: 1; background: #F1F5F9;
  border-radius: 8px; height: 36px;
}
.widget-send-fake {
  width: 36px; height: 36px;
  background: var(--blue); border-radius: 8px;
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-7px); }
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero h1 { letter-spacing: -2px; }
  .widget-preview { width: 260px; }
  .browser-content { padding: 16px; }
}
